Memory as the Backbone: A Dual-Store Associative Memory Architecture for Visual Recognition
Organizations: Faculty of Informatics, Vienna University of Technology, Austria · Department of Computer Science, University of Oxford, United Kingdom
Abstract
We investigate whether explicit memory can serve as the organizing principle of a general-purpose visual backbone. Inspired by the interaction between working and long-term memory in human cognition, we introduce DuSAM (Dual-Store Associative Memory), a hierarchical memory-native visual backbone coupling image-local working memory (WM) with a fixed-capacity persistent semantic memory (PM). WM organizes local visual evidence into compact, spatially anchored states that are updated and transported across stages, then read back to refine dense features. PM consolidates semantic evidence from training images and annotated regions into prototypes, whose retrieved content enriches the same working states. With these memory operations in place of self-attention or state-space blocks, DuSAM achieves competitive performance relative to representative, similarly sized backbones on ImageNet-1K classification, ADE20K semantic segmentation, and COCO object detection and instance segmentation. Ablations show contributions from both stores, with PM particularly benefiting class groups with fewer annotated training pixels. At , the complete DuSAM-based UPerNet segmentor achieves the throughput of the evaluated DeiT-S/16 counterpart while using less GPU memory, and the throughput of the linear-complexity VMamba-T. Memory analyses reveal spatially selective WM access and semantic associations between retrieved prototypes and training regions. Class-targeted removal and restoration further demonstrate that category-specific experience can be replenished through state updates without changing network parameters. These results establish explicit memory as a viable organizing principle for visual backbones and provide a foundation for jointly designing contextual computation and addressable semantic memory.
Figures & tables
| Method | Architecture | Input | #param. | Data Aug. | Top-1 acc. |
| ResNet-18 | CNN | 11.7M | RRC + HF | 69.8 | |
| ResNet-34 | CNN | 21.8M | RRC + HF | 73.3 | |
| ResNet-50 | CNN | 25.6M | RRC + HF | 76.1 | |
| ResNet-101 | CNN | 44.5M | RRC + HF | 77.4 | |
| SE-ResNet-50 | CNN | 28.1M | RRC + HF | 76.7 | |
| ConvNeXt-T | CNN | 28.6M | RRC + HF + RA + MU + CM + RE | 82.1 |
| Method | Architecture | #param. | FLOPs | Train Mem. | mIoU | ||
|---|---|---|---|---|---|---|---|
| Backbone | Total | SS | MS | ||||
| ResNet-18 | CNN | 11.2M | 41.5M | 220.29G | 14.29GiB | 38.90 | 39.36 |
| ResNet-34 | CNN | 21.3M | 51.6M | 229.97G | 14.77GiB | 40.08 | 41.66 |
| ResNet-50 | CNN | 23.5M | 66.5M | 238.19G | 22.53GiB | 41.65 | 42.60 |
| SE-ResNet-50 | CNN | 26.0M | 69.0M | 236.96G | 23.13GiB | 41.63 | 41.66 |
| ConvNeXt-T | CNN | 27.8M | 60.2M | 234.94G | 18.67GiB | 45.00 | 45.92 |
| Method | Architecture | #param. | Bounding box | Instance mask | ||||
|---|---|---|---|---|---|---|---|---|
| ResNet-18 | CNN | 31.3M | 34.0 | 54.0 | 36.8 | 31.2 | 51.0 | 32.9 |
| ResNet-34 | CNN | 41.2M | 37.2 | 57.5 | 40.5 | 33.7 | 54.3 | 36.1 |
| ResNet-50 | CNN | 44.2M | 38.0 | 58.6 | 41.4 | 34.4 | 55.1 | 36.7 |
| ResNet-101 | CNN | 63.2M | 40.0 | 60.5 | 44.0 | 36.1 | 57.5 | 38.6 |
| SE-ResNet-50 | CNN | 46.7M | 38.7 | 60.9 | 42.1 | 35.4 | 57.4 | 37.8 |
| Method | #param. | PM state | Train Mem. | SS mIoU | ||||
|---|---|---|---|---|---|---|---|---|
| Overall | Lowest | Low | High | Highest | ||||
| Standard | 19.43M | 0.77MiB | 18.98GiB | |||||
| w/o WM+PM | 17.18M | 0.00MiB | 18.18GiB | |||||
| w/o WM transport | 19.43M | 0.77MiB | 18.99GiB | |||||
| w/o PM | 18.16M | 0.00MiB | 18.58GiB | |||||
| w/o PM, keep address | 18.53M | 0.00MiB | 18.65GiB | |||||
| Variant | #param. | SS mIoU | ||||
|---|---|---|---|---|---|---|
| Overall | Lowest | Low | High | Highest | ||
| Persistent-memory injection route | ||||||
| PM-to-WM binding (ours) | 19.43M | 42.90 | 37.75 | 34.81 | 42.96 | 56.43 |
| PM-to-token fusion | 19.43M | 42.03 | 37.45 | 31.59 | 43.08 | 56.41 |
| Working-memory write mechanism | ||||||
| Spatially anchored writing (ours) ♣ | 19.43M | 42.78 | 36.31 | 35.54 | 43.12 | 56.51 |
| Mode | mIoU | mIoU | Disagr. |
| Standard | |||
| WM_off | 11.01 | 57.02 | |
| WM_shuffle | 20.01 | 34.02 | |
| WM_mean_state | 37.10 | 11.93 | |
| WM_rank1_state | 39.07 | 9.98 | |
| WM_transport_off | 38.19 | 11.54 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Throughput (FPS) | |||||||
|---|---|---|---|---|---|---|---|
| Method | Input resolution | Retained ( ) | |||||
| ResNet-50 | 37.569 | 28.267 | 24.543 | 15.780 | 7.185 | 4.207 | 11.20 |
| ViT-S/16 † | 41.077 | 28.848 | 22.788 | 13.069 | 4.944 | 1.736 | 4.23 |
| DeiT-S/16 † | 41.600 | 28.833 | 22.985 | 13.144 | 4.945 | 1.745 | 4.19 |
| Swin-T | 43.829 | 31.355 | 25.986 | 15.800 | 7.341 | 4.273 | 9.75 |
| Metric | Resolution | ConvNeXt-T | DuSAM (ours) |
|---|---|---|---|
| Kernel launches per forward | 259 | 1,281 | |
| 263 | 1,265 | ||
| Memory-op shares, launches / GPU time | - / - | 66% / 3% | |
| - / - | 66% / 2% | ||
| GPU busy fraction | 96% | 56% | |
| 99.6% | 95% |
| Component | Time (ms) | Share of step (%) |
|---|---|---|
| Training step without writer | 448.0 | 87.4 |
| Writer overhead (total) | 64.5 | 12.6 |
| Separate stage-4 pass (no PM retrieval) | 2.0 | 0.4 |
| Region construction and bank commit | 62.5 | 12.2 |
| Full training step (Standard) | 512.5 | 100.0 |
| Method | Architecture | #param. | Bounding box | Instance mask | ||||
|---|---|---|---|---|---|---|---|---|
| ResNet-18 ( He et al., 2016 ) | CNN | 31.3M | 19.2 | 36.7 | 43.7 | 14.6 | 33.2 | 44.8 |
| ResNet-34 ( He et al., 2016 ) | CNN | 41.2M | 21.4 | 40.4 | 48.5 | 16.0 | 36.3 | 49.2 |
| ResNet-50 ( He et al., 2016 ) | CNN | 44.2M | 21.9 | 40.9 | 49.5 | 18.3 | 37.4 | 47.2 |
| ResNet-101 ( He et al., 2016 ) | CNN | 63.2M | 22.6 | 44.0 | 52.6 | 18.8 | 39.7 | 49.5 |
| SE-ResNet-50 ( Hu et al., 2018 ) | CNN | 46.7M | 23.4 | 42.7 | 50.0 | 17.1 | 38.6 | 51.8 |
| Class | Frequency group | IoU (pp) | TP (k px) | FP (k px) | Removed FP sources (k px) | |
|---|---|---|---|---|---|---|
| Largest | Second largest | |||||
| grandstand | High | stairs 50.1 | wall 19.7 | |||
| tent | Lowest | sky 7.1 | tree 1.2 | |||
| sea | Highest | water 255.6 | animal 3.7 | |||
| rock | Highest | mountain 83.4 | earth 36.3 | |||
| pier | Lowest | wall 1.5 | rock 0.4 | |||
| PM content | SS mIoU | MS mIoU |
|---|---|---|
| Fine-tuned backbone | ||
| No PM | 41.75 | 42.97 |
| ADE20K prototypes | 42.90 ( ) | 44.12 ( ) |
| Frozen backbone | ||
| No PM | 36.70 | 37.92 |
| ADE20K prototypes | 36.82 ( ) | 37.90 ( ) |
Memory-Augmented Neural Networks
Memory-augmented neural networks combine learned computation with explicit or persistent memory for retrieval, long-context reasoning, and adaptation.
See all 98 papers