Skip to content
hustvlPublic

About

Native Scalable Memory Models with Transformers

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Native Scalable Memory Models with Transformers

MeT makes native visual memory an independently scalable architectural resource, establishing two scaling trends with compact states and low computational overhead

Ziyang Xu1, Lucia Cascone2, Aniello Castiglione2, Michele Nappi2, Wenyu Liu1, Xinggang Wang1✉

1 Huazhong University of Science and Technology  ·  2 University of Salerno
✉: Corresponding Author

Project Page

Figure 1. MeT carries visual state across frames and scales model size and memory capacity independently.

Figure 6. THUMOS14 framewise action scores and SSv2 clip-level predictions for ViT-Large, TRecViT-Large, and MeT-Large.

Highlights

  • Native visual memory as an independently scalable architectural resource. Memory Transformer (MeT) interleaves ViT blocks with recurrent stages that carry token histories across frames and feed them back into spatial computation through residual readouts. The recurrent width sets memory capacity independently of the backbone's width and depth. The retained state stays bounded as the input sequence grows.

    Figure 3. The MeT architecture and the four token memory designs compared in the paper.

  • Two complementary scaling trends. Across three model sizes and 15 memory capacity configurations, wider recurrent states consistently improve accuracy on THUMOS14 and SSv2 at fixed backbones and memory layouts. Larger MeT models deliver further gains, including at matched memory widths.

    Figure 5. Accuracy and resource measurements for memory capacity and model size scaling across MeT-Small, MeT-Base, and MeT-Large.

  • Compact states and low computational overhead. Within each model size, widening memory changes THUMOS14 latency by at most 0.03 ms per frame. MeT-Small surpasses ViT-Large on both benchmarks with less than one-tenth of its parameters and per-frame FLOPs. On THUMOS14, MeT-Large retains 92.7% less persistent state and runs causal framewise inference about 3.0× as fast as TRecViT-Large.

    Figure 2. Matched-size comparisons with ViT and accuracy and efficiency comparisons with other methods.

  • Design studies and benchmark validation. We characterize the memory mechanisms, token inputs, insertion depths, and stage layouts that support scaling. With the same spatial backbone and ImageNet-1K initialization, MeT-Large outperforms ViT-Large by 6.69 mAP on THUMOS14 and 26.91 Top-1 accuracy on SSv2.

    Table 5. Accuracy and inference efficiency for causal action recognition on THUMOS14.

    Table 6. Accuracy and inference efficiency for video classification on SSv2.

News

  • November 27, 2026: 🔥🔥 We’ve launched the MeT project page. Take a look at the interactive scaling charts, detailed results, and visual showcases. Stay tuned for more updates. ☕

Todo

  • Release a simple PyTorch implementation of MeT.
  • Release weights for all MeT model sizes.
  • Release the MeT training scripts.
  • Release the MeT inference and evaluation scripts.

Code and model weights will be released upon acceptance.

About

Native Scalable Memory Models with Transformers

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors