← Back to learning

Mamba × TTT · IRSTD

The same learner, a two-dimensional problem.

Understand sequence order, position, bidirectional context and dense prediction before choosing visual TTT for IRSTD.

About 25 min

Course chapters
Progress and notes stay in this browser.

Text order is not image geometry

QuestionAutoregressive textSingle-frame vision
Available contextFuture tokens must not be readThe whole image is usually available; noncausal learning is possible
Sequence meaningA linear token orderFlattened 2D patches; order is a design choice
Required outputNext token or sequence representationSpatially localized dense features for IRSTD
State boundarySequence or documentIndependent image and layer boundaries must be defined

Bidirectional scans, multiple directions and whole-image key/value fitting are possible designs, not universal components of every visual TTT model. Textual causal masks are not mandatory for image detection; future leakage remains forbidden in genuinely causal tasks.

Two similarly named visual candidates

ViT³ / ViTTT studies inner models and inner training for visual TTT, including classification and dense tasks. It is an entry point for studying internal objectives, architectures and optimization choices. Vision-TTT, in the fixed v1 text, uses bidirectional processing and Conv2d for 2D relations and compares CLS placement and pooling. These are different papers, authors and implementations.

ViT³ · arXiv 2025 / CVPR 2026 ↗ · Official ViTTT code ↗ · Vision-TTT · arXiv 2026 v1 ↗

A classification head is not a segmentation head

image H×W → patch / stem → tokens N×d → TTT → spatial tokens
preserve coordinate mapping → reshape / multiscale features → fixed decoder → H×W probabilities

A CLS vector or globally pooled vector has summarized spatial information. Changing the last classifier to one output channel does not recover pixel locations. First identify each stage’s stride, token grid, special-token removal and positional-embedding interpolation; then attach the segmentation decoder.

Where can a tiny target disappear?

Possible failure points include initial coarse patch compression, repeated downsampling, background-dominated inner objectives and prototype aggregation that removes rare details. A feature-space prototype is not the spatial centroid of a mask component. Trace token coordinates and compare original/prototype responses for small and low-contrast targets.

One hypothesis is to retain a lightweight local path and fuse it with global TTT features. Diagnose the baseline failure first. This general idea is neither a verified gain nor an established novel contribution.

Account for the full computation

With fixed patch/stride: N ≈ (H/p)×(W/p)
Doubling both H and W makes N approximately four times larger

Linear scaling in token count assumes fixed state size, inner steps and other settings. Wall-clock cost also depends on inner gradients, the decoder, memory traffic, kernel fusion and utilization. Report forward/training time, peak memory, precision, batch, tokens and every inner update. A reported high-resolution advantage is not an IRSTD replication result.

Six questions for code handoff

  1. Which paper and commit define the model?
  2. Is W a linear map, an MLP or another state model?
  3. What are the inner objective, learning rate and update steps?
  4. Do prototypes compress inputs, parameterize the inner model or aggregate outputs?
  5. Are spatial tokens retained, and where is state reset?
  6. What task, pretraining, metric and configuration produced the checkpoint?

Apply these questions to IRSTD →

Pause and check your understanding

A model returns only a CLS classification vector. What is the first IRSTD migration step?

Connect this unit to your IRSTD work

Progress and notes stay in this browser.