Skip to main content
QUICK REVIEW

[Paper Review] Vision-LSTM: xLSTM as Generic Vision Backbone

Benedikt Alkin, Maximilian Beck|arXiv (Cornell University)|Jun 6, 2024
Infrared Target Detection MethodologiesEngineering20 citations
TL;DR

Vision-LSTM (ViL) adapts the xLSTM architecture to vision, using alternating mLSTM blocks processing patch tokens row-wise in opposite directions, showing competitive ImageNet, ADE20K, and VTAB-1K results as a generic backbone with linear-like complexity.

ABSTRACT

Transformers are widely used as generic backbones in computer vision, despite initially introduced for natural language processing. Recently, the Long Short-Term Memory (LSTM) has been extended to a scalable and performant architecture - the xLSTM - which overcomes long-standing LSTM limitations via exponential gating and parallelizable matrix memory structure. In this report, we introduce Vision-LSTM (ViL), an adaption of the xLSTM building blocks to computer vision. ViL comprises a stack of xLSTM blocks where odd blocks process the sequence of patch tokens from top to bottom while even blocks go from bottom to top. Experiments show that ViL holds promise to be further deployed as new generic backbone for computer vision architectures.

Motivation & Objective

  • Motivate and explore a generic backbone for computer vision based on xLSTM architecture originally designed for language modeling.
  • Adapt xLSTM to process image patch tokens in alternating traversal directions to handle non-autoregressive vision inputs.
  • Evaluate ViL on ImageNet-1K pre-training, ADE20K semantic segmentation, and VTAB-1K transfer classification to assess its competitiveness with existing backbones.

Proposed method

  • Split an image into non-overlapping patches and project them linearly to obtain patch tokens with learnable positional embeddings.
  • Construct ViL as a stack of alternating mLSTM blocks; odd blocks traverse patch tokens top-left to bottom-right, even blocks traverse bottom-right to top-left.
  • Use a matrix memory with covariance update within each mLSTM block and allow fully parallelizable computation.
  • Classification uses bilateral concatenation of the first and last patch tokens (no mandatory CLS token).
  • Adjust xLSTM to vision by replacing causal 1D conv with 2D conv and optionally include bias in projection and layernorm for stability and accuracy.
Figure 1: Schematic overview of Vision-LSTM (ViL). Following ViT [ 18 ] , an input image is split into patches and linearly projected. Then, a learnable vector is added per position to the patches, producing a sequence of patch tokens. This sequence is then processed by alternating mLSTM blocks wher
Figure 1: Schematic overview of Vision-LSTM (ViL). Following ViT [ 18 ] , an input image is split into patches and linearly projected. Then, a learnable vector is added per position to the patches, producing a sequence of patch tokens. This sequence is then processed by alternating mLSTM blocks wher

Experimental results

Research questions

  • RQ1Can xLSTM-based blocks serve as a generic backbone for vision tasks beyond language modeling?
  • RQ2What architectural design choices (directionality, parameter sharing, pooling/classification design) yield best performance for ViL on standard vision benchmarks?
  • RQ3How does ViL perform on ImageNet-1K, ADE20K, and VTAB-1K compared to optimized ViTs and vision backbones?
  • RQ4What are the computational characteristics (FLOPs, runtime) of ViL relative to other backbones across scales?

Key findings

  • ViL achieves competitive ImageNet-1K pre-training results, outperforming several optimized ViT protocols on tiny and small scales and remaining strong at larger scales.
  • On ADE20K, ViL-S and ViL-B achieve higher mIoU and ACC than several baselines, with ViL-B matching or surpassing some DeiT variants.
  • In VTAB-1K transfer, ViL outperforms several baselines on average across natural, specialized, and structured datasets, with notable strength on structured data.
  • Bi-directional alternating block design improves performance while remaining computationally efficient compared to multi-directional blocks; quad-directional variants offer higher accuracy at substantial runtime costs.
  • Classification design is robust across pooling strategies; Bilateral Concat (first+last token) yields strong results without relying on a CLS token.
Figure 2: Performance overview of ImageNet-1K pre-trained models in relation to pre-training compute. ViL shows strong performances across classification and semantic segmentation tasks.
Figure 2: Performance overview of ImageNet-1K pre-trained models in relation to pre-training compute. ViL shows strong performances across classification and semantic segmentation tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.