arrow
Return

Adaptive patch selection to improve Vision Transformers through Reinforcement Learning

delete2025-05-01
delete1
delete
OA
AI
F
Francesco Cauteruccio
M
Michele Marchetti
D
Davide Traini
D
Domenico Ursino
L
Luca Virgili *
DOI:10.1007/s10489-025-06516-zdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
In recent years, Transformers have revolutionized the management of Natural Language Processing tasks, and Vision Transformers (ViTs) promise to do the same for Computer Vision ones. However, the adoption of ViTs is hampered by their computational cost. Indeed, given an image divided into patches, it is necessary to compute for each layer the attention of each patch with respect to all the others. Researchers have proposed many solutions to reduce the computational cost of attention layers by adopting techniques such as quantization, knowledge distillation and manipulation of input images. In this paper, we aim to contribute to the solution of this problem. In particular, we propose a new framework, called AgentViT, which uses Reinforcement Learning to train an agent that selects the most important patches to improve the learning of a ViT. The goal of AgentViT is to reduce the number of patches processed by a ViT, and thus its computational load, while still maintaining competitive performance. We tested AgentViT on CIFAR10, FashionMNIST, and Imagenette+\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$<^>+$$\end{document} (which is a subset of ImageNet) in the image classification task and obtained promising performance when compared to baseline ViTs and other related approaches available in the literature.
Keywords:
Vision transformers
Training time reduction
Reinforcement learning
Computer vision

Journal

Applied Intelligence cover
Applied Intelligence
IF:
3.5
Papers:
7.5K
Citations:
1.7W

Organization

U
University of Salerno
Scholars:
1.2W
Papers: 1.1W
Citations: 1.2W
M
Marche Polytechnic University
Scholars:
1.2W
Papers: 9.4K
Citations: 1.1W
U
universita di modena e reggio emilia
Scholars:
1.6W
Papers: 1.2W
Citations: 12
researcher View more organizations