arXiv:2610.18039cs.CVOct 2026

Manuscript Offprint

arXiv:2610.18039

Scaling Vision Transformers Without Training: Prune-and-Merge Token Compression

Vatsal, Soumil Malhotra, Priyanshu Chahal, Sanjeev Kumar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Vatsal

Department of Mathematics

Indian Institute of Technology Roorkee

vatsal@ma.iitr.ac.in

Priyanshu Chahal

Department of Mathematics

Indian Institute of Technology Roorkee

priyanshu@ma.iitr.ac.in

Soumil Malhotra

Department of Mathematics

Indian Institute of Technology Roorkee

soumil_m@ma.iitr.ac.in

Sanjeev Kumar

Department of Mathematics

Indian Institute of Technology Roorkee

sanjeev.kumar@ma.iitr.ac.in

Abstract

Vision Transformers achieve strong performance but incur high computational costs from quadratic token interactions. Training-free token reduction methods improve efficiency, but their robustness remains underexplored. We propose Prune-and-Merge ViT, a training-free framework for off-the-shelf models. It combines class-attention-based pruning with similarity-based merging to reduce redundancy while preserving semantic information. To evaluate robustness we introduce two metrics. Relative Accuracy Drop (RAD) measures relative accuracy degradation under transformations, and Prediction Flip Rate (PFR) quantifies prediction consistency. On pretrained ViT and DeiT, Prune-and-Merge reduces computation competitively while maintaining robustness and better accuracy than existing token reduction methods. Our analysis suggests that hybrid token reduction does not introduce hallucination-like behavior and preserves prediction stability for common image transformations.

1 Introduction

Vision Transformers (ViTs) forgo convolutional inductive biases and treat an image as a sequence of visual tokens [4]. Non-overlapping patches are projected into N tokens and passed, with a learnable class ([CLS]) token, through Transformer blocks. The token count is constant across layers, so cost scales quadratically, O(N2)O(N^{2}).

To address this issue, token pruning removes redundant tokens and merging aggregates similar ones to cut computation [2, 8]. Many such methods are training-free and apply directly to pretrained models. While such approaches improve efficiency, they may introduce instability under input transformations, potentially affecting prediction consistency. Aggressive reduction at lower keep rates can also degrade performance, as fewer tokens remain to capture essential visual information. This motivates a systematic analysis of prediction stability under aggressive reduction.

Existing approaches apply pruning or merging in isolation, which causes semantic loss or hallucination-like errors under input transformations. We address this with Prune-and-Merge ViT (Figure 1), a plug-and-play, training-free framework that combines class-attention-based pruning with similarity-driven merging for off-the-shelf ViT [4] and DeiT [13]. The first stage discards low-importance tokens via top-k selection on class-attention scores [8], which filters noise while

∗^{*}Official Repository

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: GlobalSouthAI @ NeurIPS 2026.

Figure

Figure 1: Overview of the Prune-and-Merge ViT architecture. The framework processes tokens through a dual-stage reduction at layers l∈{3,6,9}l \in \{3, 6, 9\}. Stage 1 (pruning) filters out background tokens based on class-attention scores kpk_p, while Stage 2 (merging) aggregates redundant salient tokens using bipartite matching kmk_m.

retaining salient features. Subsequently, a merging stage aggregates the remaining redundant tokens by bipartite matching on cosine similarities [2], preserving the semantic manifold in a compact bottleneck T′∈RN′×D\mathbf{T}' \in \mathbb{R}^{N' \times D}, where N′≪NN' \ll N. Unlike single-strategy methods, our framework controls the token budget finely: adjusting the pruning ratio and the merging threshold preserves semantic stability.

To evaluate robustness we introduce two metrics: Relative Accuracy Drop (RAD), which measures relative accuracy degradation under input transformations, and Prediction Flip Rate (PFR), which quantifies prediction consistency between original and transformed inputs. Experiments on pretrained ViT and DeiT show that Prune-and-Merge ViT competitively reduces computation while maintaining robustness and achieving strong accuracy. Our analysis further shows that hybrid token reduction preserves prediction stability under common image transformations.

Our contributions are summarized as follows:

• Prune-and-Merge ViT, a training-free hybrid token reduction framework.

• An analysis showing that hybrid pruning and merging preserve stability while reducing computation.

• RAD and PFR, which evaluate robustness and prediction stability under semantics-preserving transformations.