Mamba × TTT · IRSTD
Make one pipeline work, then ask one question at a time.
A week for handoff, segmentation integration and a first controlled comparison. Exports describe plans, not completed experiments.
About 20 min
Course chapters
This week’s goal and priorities
Goal: run original TTT → integrate single-frame segmentation → compare original/prototype variants. Reading papers is not a completed training run; the exact baseline, weights and inner loop still need handoff. The supervisor should review the hypothesis and division of work.
Replicate the existing method first. Do not simultaneously add a Mamba hybrid, complex multiscale design and TTA updates. If code or resources are unavailable, deliver the handoff sheet and interface design without invented scores.
A working-day schedule
| When | Work | Acceptance evidence |
|---|---|---|
| Monday | Pin original/prototype commits, configs, weights and differences | Handoff sheet, original task and metric meaning |
| Tuesday | Forward/backward, spatial features, data and decoder | Aligned shapes and valid gradients |
| Wednesday | Fit a few samples; freeze splits/evaluation; review the idea | Traceable short-run logs and agreed matrix |
| Thursday | Start B0/B1 with matched settings | Separate configs, logs and checkpoints |
| Friday | Inspect predictions, misses, false alarms and cost | Interim comparison; unfinished runs marked in progress |
| Remaining budget | Choose one inner-loop ablation or paired high-resolution comparison | Ablation record or next-week budget |
The minimum matrix: required versus optional
| ID | Configuration | Input | Question | Priority |
|---|---|---|---|---|
| S0 | Original TTT + fixed decoder, a few samples | 256×256 | Data/gradients/fitting; not a performance result | Required |
| B0 | Original TTT + fixed decoder | 256×256 | IRSTD baseline | Required |
| B1 | Prototype TTT + same decoder | 256×256 | Accuracy and cost relative to B0 | Required |
| B2 | B1, changing only inner-step count | 256×256 | Effect of update count | If time remains |
| H0 | Original TTT + same decoder | 512×512 | High-resolution baseline | Later, as a pair |
| H1 | Prototype TTT + same decoder | 512×512 | Efficiency and detection relative to H0 | Later, as a pair |
Here B2 is a step-count ablation. Give the research chapter’s IRSTD-specific change a separate run identifier rather than conflating two changes. The 256 setting is an initial local protocol, not automatically any paper’s original protocol.
Interactive: choose a stage and export a draft
The export records variables and missing information. It starts no training and promises neither memory use nor accuracy. Before running, supply the source version, data lists, inner-loop and training configurations.
Resources: measure before expanding
Start by requesting one GPU, preferably 40–48 GB of memory; 24 GB can be tried with a small model, input 256 and batch=1. Reserve 24–48 GPU-hours for debugging and short runs. This is a planning allowance, not measured runtime or a fit guarantee. Consider 2–4 parallel GPUs after validation; 8/16 GPUs are not a minimum requirement.
After warmup, measure 100–200 full training steps including inner updates and decoder, and record peak memory. Ordinary data parallelism does not split one sample’s computation graph automatically. For single-sample OOM, inspect tokens, inner loops and graph retention first.
Shared records and stop conditions
Fix file lists, seed, initialization source, decoder, loss, training budget and evaluator. A first single-seed run diagnoses issues; later repeats are needed for stability claims. If masks are misaligned, gradients break, NaNs appear or a few samples cannot be fitted, debug before long training.
Save IoU/nIoU/Pd/Fa, latency, throughput and memory. For H0/H1, fix hardware, batch, precision and inner steps. Report incomplete runs honestly rather than predicting a gain from an early curve.
Pause and check your understanding
Connect this unit to your IRSTD work
Progress and notes stay in this browser.
