NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Token Recycling for Efficient Sequential Inference with Vision Transformers

Jan Olszewski, Dawid Rymarczyk, Piotr Wójcik, Mateusz Pach, Bartosz Zielinski · DOI

Introduction

In Active Visual Exploration (AVE), an autonomous agent builds an understanding of its environment by taking a sequence of visual "glimpses." Modern approaches leverage Vision Transformers (ViTs) due to their inherent ability to process incomplete data. However, a significant efficiency bottleneck exists: standard ViT-based AVE methods re-process the entire history of observations every time a new glimpse is acquired. This redundant computation is particularly problematic for battery-constrained robotic systems.

To address this, the TORE (TOken REcycling) framework introduces a method to slash computational costs by up to 90% while maintaining or even improving classification accuracy. The core concept involves splitting the Transformer into two distinct stages, allowing the model to process each new glimpse only once and recycle those intermediate representations for all subsequent predictions.

The TORE forward pass illustrates how glimpses are processed sequentially, with tokens (T) from previous steps cached and reused for updated predictions.

The Extractor-Aggregator Framework

TORE replaces the standard monolithic ViT with an Extractor-Aggregator architecture. A standard ViT with $n$ blocks is divided at a split point $\kappa$:

  1. The Extractor ($M_E$): This component processes only the most recent visual glimpse to produce "midway tokens."
  2. The Aggregator ($M_A$): This component takes the new midway tokens and combines them with a cache of tokens from all previous glimpses to generate the final prediction.

Key Architectural Components

  • Token Caching: Instead of storing raw image data, TORE stores intermediate token representations. When a new glimpse is selected by the policy, the extractor runs once, and its output is appended to the midway tokens cache.
  • Lightweight Decoder: Deciding where to look next typically requires calculating uncertainty via image reconstruction. TORE utilizes a "tiny" decoder (e.g., 1 block instead of the standard 8), demonstrating that high-fidelity reconstruction is unnecessary for effective policy selection.
  • Random $\kappa$ Sampling: During training, the split point $\kappa$ is varied randomly. This produces a flexible model that can be tuned at inference time for either maximum speed (higher $\kappa$) or maximum accuracy (lower $\kappa$) without retraining.
Detailed TORE architecture showing the interaction between the selection policy, the midway tokens cache, and the lightweight decoder used for entropy map generation.

Experimental Results and Insights

The framework was evaluated across four diverse datasets: SUN360 (panoramic scenes), CIFAR100, Food101, and Flowers102.

Performance and Efficiency

TORE achieved massive speedups, reducing computational overhead (measured in GFLOPs) by up to 90% on the SUN360 dataset compared to previous state-of-the-art methods like AME. Notably, this efficiency did not come at the cost of performance. On SUN360, TORE achieved 77.1% accuracy using only 13.4 GFLOPs, whereas the previous best (AME) reached 73.4% accuracy while requiring 71.9 GFLOPs.

Decoupling Tasks

A key insight from this research is the decoupling of classification and reconstruction. The authors found that a model can be highly effective at identifying a scene even if its internal reconstruction of that scene is blurry. By prioritizing classification accuracy over pretty reconstructions, the system saves significant compute on the decoder stage.

Limitations and Future Work

While TORE represents a major step forward in efficient AVE, some limitations remain. The current implementation uses a fixed grid for image patches; future work may explore more organic or random patch geometries to improve generalization in messy real-world environments. Additionally, the team is investigating "early exit" strategies, where the model stops processing a sequence once it reaches a sufficient confidence threshold, further optimizing energy consumption for mobile robotics.

Summary updated

BibTeX
@inproceedings{olszewski2025token,
  author = {Jan Olszewski and Dawid Rymarczyk and Piotr Wójcik and Mateusz Pach and Bartosz Zielinski},
  title = {{Token Recycling for Efficient Sequential Inference with Vision Transformers}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00834},
}
Figure