Soft Mixture-of-Recursions: Going Deeper with Recursive Vision Transformers

TL;DR

SoftMoR enhances Vision Transformers via recursion, boosting SR-ViT accuracy to 82.48% on ImageNet-1K.

cs.CV 🔴 Advanced 2026-07-01 4 views
Sang In Lee Jihun Park
recursion Vision Transformer deep learning parameter efficiency image classification

Key Findings

Methodology

SoftMoR employs token-wise mixture weights to flexibly combine outputs from all recursion steps, fully utilizing intermediate representations. SR-ViT implements SoftMoR in a standard Vision Transformer architecture, recursively reusing shared Transformer blocks to increase computational depth and produce richer visual representations.

Key Results

  • On ImageNet-1K, increasing SR-ViT-S recursion depth from 1 to 4 improves top-1 accuracy from 79.83% to 82.48%, with only 1.7M additional parameters, outperforming DeiT-B.
  • In COCO detection tasks, increasing recursion depth in SR-ViT-S raises APbox from 45.9 to 47.7.
  • In ADE20K semantic segmentation, increasing recursion depth improves mIoU from 38.5% to 41.5%.

Significance

SoftMoR provides a parameter-efficient path to deeper and stronger Vision Transformers through recursion. This approach enhances model expressiveness without significantly increasing parameters, making it applicable to various vision tasks with broad potential.

Technical Contribution

SoftMoR introduces a learnable soft mixture mechanism that significantly enhances the representational capacity of recursive Transformers, distinct from traditional hard depth selection methods. SR-ViT achieves deeper computational depth through recursive reuse without increasing parameters.

Novelty

SoftMoR is the first to introduce a soft mixture recursive mechanism in Vision Transformers, differing from existing hard depth allocation methods by fully leveraging intermediate representations to enhance model expressiveness.

Limitations

  • SoftMoR's performance improvement is limited at extreme recursion depths, possibly requiring further optimization of the recursive mechanism.
  • Increasing recursion depth may lead to higher computational costs in resource-constrained environments.

Future Work

Future research could explore more efficient recursive mechanisms, optimize computational costs, and validate SoftMoR's generality across more vision tasks.

AI Executive Summary

In recent years, Vision Transformers have excelled in computer vision tasks, but their parameter size and computational demands have also increased. Existing recursive Transformers build compact models by sharing parameters, but simply increasing recursion depth does not reliably improve performance in vision tasks. To address this, the paper proposes Soft Mixture-of-Recursions (SoftMoR) and its implementation in Vision Transformers, SR-ViT. SoftMoR learns token-wise mixture weights to flexibly combine outputs from all recursion steps, fully utilizing intermediate representations. Experiments show that SR-ViT significantly improves performance across tasks like ImageNet-1K, COCO detection, and ADE20K segmentation as recursion depth increases, with minimal parameter overhead. These results demonstrate that SoftMoR provides a parameter-efficient path to deeper Vision Transformers through recursion. Future research could explore more efficient recursive mechanisms, optimize computational costs, and validate its generality across more vision tasks.

Deep Analysis

Background

Vision Transformers (ViTs) have made significant advances in tasks like image classification and object detection, with scalability largely driven by larger architectures. However, this scaling comes with increased parameter count and computational demands, leading to higher training and deployment costs. Researchers are exploring recursive mechanisms to enhance model representational capacity.

Core Problem

In Vision Transformers, simply increasing recursion depth does not reliably improve performance, as existing recursive methods do not fully utilize intermediate representations produced during recursive computation. Effectively leveraging these intermediate representations to enhance model expressiveness is a key challenge.

Innovation

SoftMoR employs token-wise mixture weights to flexibly combine outputs from all recursion steps, fully utilizing intermediate representations. Unlike existing hard depth selection methods, SoftMoR allows each token to draw from different recursion depths, enhancing model expressiveness.

Methodology

  • �� SoftMoR uses a linear router to generate mixture weights for each input token.
  • �� Softmax function computes weights for each recursion step.
  • �� Final token representation is obtained by weighted combination of all recursion step outputs.
  • �� Implemented in SR-ViT by recursively reusing shared Transformer blocks.

Experiments

On ImageNet-1K, trained using standard DeiT protocol, recursion depth increased from 1 to 4, showing significant top-1 accuracy improvement. On COCO and ADE20K, fine-tuned using Mask R-CNN and UPerNet, validating SR-ViT's effectiveness in detection and segmentation tasks.

Results

On ImageNet-1K, SR-ViT-S recursion depth from 1 to 4 improves top-1 accuracy from 79.83% to 82.48%. On COCO, increasing recursion depth raises APbox from 45.9 to 47.7. On ADE20K, recursion depth increase improves mIoU from 38.5% to 41.5%.

Applications

SoftMoR excels in tasks like image classification, object detection, and semantic segmentation, suitable for scenarios requiring efficient parameter utilization and enhanced representational capacity, especially in resource-constrained environments.

Limitations & Outlook

SoftMoR's performance improvement is limited at extreme recursion depths, possibly requiring further optimization of the recursive mechanism. Increasing recursion depth may lead to higher computational costs in resource-constrained environments. Future research could explore more efficient recursive mechanisms, optimize computational costs, and validate its generality across more vision tasks.

Plain Language Accessible to non-experts

Imagine a kitchen where a chef is preparing a complex dish. Each step requires different preparations like chopping, boiling, and seasoning. SoftMoR acts like a smart assistant, flexibly choosing and combining different preparations at each step to ensure the best result. This way, even if the chef reuses the same tools and ingredients, the dish's flavor improves. In Vision Transformers, this method recursively reuses shared modules, combining outputs from all steps to enhance model expressiveness.

ELI14 Explained like you're 14

Imagine playing a game where each level has different challenges. SoftMoR is like a super helper that flexibly chooses and combines different skills at each level to help you pass faster. This way, even if you reuse the same skills, the game's difficulty decreases. In Vision Transformers, this method recursively reuses shared modules, combining outputs from all steps to enhance model expressiveness.

Glossary

Soft Mixture-of-Recursions

A method that uses token-wise mixture weights to combine outputs from all recursion steps.

Used to enhance Vision Transformers' representational capacity.

Vision Transformer

A vision model based on the Transformer architecture, suitable for tasks like image classification.

Used as the base architecture to implement SoftMoR.

ImageNet-1K

A large dataset widely used for image classification tasks, containing 1000 classes.

Used to evaluate SR-ViT's classification performance.

COCO

A standard dataset for object detection and instance segmentation, containing various object categories.

Used to evaluate SR-ViT's performance in detection tasks.

ADE20K

A standard dataset for semantic segmentation, containing various scenes and object categories.

Used to evaluate SR-ViT's performance in segmentation tasks.

Open Questions Unanswered questions from this research

  • 1 How to further improve performance at extreme recursion depths? Current methods may not be efficient in resource-limited settings.
  • 2 What is SoftMoR's generality across other vision tasks? More experiments are needed.

Applications

Immediate Applications

Image Classification

Use SR-ViT for efficient image classification in resource-limited settings.

Object Detection

Use SR-ViT for efficient object detection on COCO dataset.

Long-term Vision

Smart Surveillance

Utilize SR-ViT for real-time object detection and recognition in smart surveillance systems.

Abstract

Recent recursive Transformer studies have primarily reused shared parameters across computation steps to construct compact, parameter-efficient models. In this work, we leverage recursion to build effectively deeper Transformers with stronger representational capacity. However, in Vision Transformers, simply increasing recursion depth does not reliably improve performance, as existing recursive approaches do not fully utilize the intermediate representations produced throughout recursive computation. We propose Soft Mixture-of-Recursions (SoftMoR) and its Vision Transformer instantiation, Soft Recursive Vision Transformer (SR-ViT). SoftMoR learns token-wise mixture weights to softly combine outputs from all recursion steps, allowing intermediate representations to be utilized in a learnable and flexible way. Across diverse vision tasks, SR-ViT consistently improves as recursion depth increases with minimal parameter overhead. On ImageNet-1K, increasing recursion depth from 1 to 4 improves SR-ViT-S top-1 accuracy from 79.83% to 82.48% with only 1.7M additional parameters, outperforming the substantially larger DeiT-B while using approximately 27% of its parameters. These results demonstrate that SoftMoR provides a parameter-efficient path to deeper and stronger Vision Transformers through recursion.

cs.CV cs.LG