Salvato in:
Dettagli Bibliografici
Autori principali: Lu, Chenglong, Liang, Shen, Wang, Xuewei, Wang, Wei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2503.23459
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916666418397184
author Lu, Chenglong
Liang, Shen
Wang, Xuewei
Wang, Wei
author_facet Lu, Chenglong
Liang, Shen
Wang, Xuewei
Wang, Wei
contents Vision Transformers (ViTs) have computational costs scaling quadratically with the number of tokens, calling for effective token pruning policies. Most existing policies are handcrafted, lacking adaptivity to varying inputs. Moreover, they fail to consider the sequential nature of token pruning across multiple layers. In this work, for the first time (as far as we know), we exploit Reinforcement Learning (RL) to data-adaptively learn a pruning policy. Formulating token pruning as a sequential decision-making problem, we model it as a Markov Game and utilize Multi-Agent Proximal Policy Optimization (MAPPO) where each agent makes an individualized pruning decision for a single token. We also develop reward functions that enable simultaneous collaboration and competition of these agents to balance efficiency and accuracy. On the well-known ImageNet-1k dataset, our method improves the inference speed by up to 44% while incurring only a negligible accuracy drop of 0.4%. The source code is available at https://github.com/daashuai/rl4evit.
format Preprint
id arxiv_https___arxiv_org_abs_2503_23459
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Reinforcement Learning-based Token Pruning in Vision Transformers: A Markov Game Approach
Lu, Chenglong
Liang, Shen
Wang, Xuewei
Wang, Wei
Computer Vision and Pattern Recognition
Vision Transformers (ViTs) have computational costs scaling quadratically with the number of tokens, calling for effective token pruning policies. Most existing policies are handcrafted, lacking adaptivity to varying inputs. Moreover, they fail to consider the sequential nature of token pruning across multiple layers. In this work, for the first time (as far as we know), we exploit Reinforcement Learning (RL) to data-adaptively learn a pruning policy. Formulating token pruning as a sequential decision-making problem, we model it as a Markov Game and utilize Multi-Agent Proximal Policy Optimization (MAPPO) where each agent makes an individualized pruning decision for a single token. We also develop reward functions that enable simultaneous collaboration and competition of these agents to balance efficiency and accuracy. On the well-known ImageNet-1k dataset, our method improves the inference speed by up to 44% while incurring only a negligible accuracy drop of 0.4%. The source code is available at https://github.com/daashuai/rl4evit.
title Reinforcement Learning-based Token Pruning in Vision Transformers: A Markov Game Approach
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2503.23459