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 2048×2048, the complete DuSAM-based UPerNet segmentor achieves 2.36× the throughput of the evaluated DeiT-S/16 counterpart while using 59.5% less GPU memory, and 1.24× 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
Figure 1: Overview of DuSAM. Upper: the four-stage backbone. Lower: a Memory Block. WM Write and State Transport construct the workspace, PM-to-WM Binding integrates retrieved semantics, and WM Read with Gated Readback updates dense features.
Method
Architecture
Input
#param.
Data Aug.
Top-1 acc.
ResNet-18
CNN
2242
11.7M
RRC + HF
69.8
ResNet-34
CNN
2242
21.8M
RRC + HF
73.3
ResNet-50
CNN
2242
25.6M
RRC + HF
76.1
ResNet-101
CNN
2242
44.5M
RRC + HF
77.4
SE-ResNet-50
CNN
2242
28.1M
RRC + HF
76.7
ConvNeXt-T
CNN
2242
28.6M
RRC + HF + RA + MU + CM + RE
82.1
Table 1: Image classification on the ImageNet-1K. ‡ denotes MLP-Mixer parameter counts excluding the classification head. RC, random crop; RRC, random resized crop; IC, Inception-style crop; HF, horizontal flip; RA, RandAugment; MU, Mixup; CM, CutMix; RE, random erasing. ⋆ : stronger augmentation ImageNet-1K pretraining.
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
Table 2: Semantic segmentation on ADE20K with UPerNet. SS and MS denote single- and multi-scale evaluation; † indicates an additional SimpleFPN is used to produce hierarchical feature maps. ⋆ : stronger augmentation pretraining.
Table 3: Object detection and instance segmentation on COCO val2017 with Mask R-CNN. † indicates an additional SimpleFPN is used. ⋆ : stronger augmentation pretraining.
Method
#param.
PM state
Train Mem.
SS mIoU
Overall
Lowest
Low
High
Highest
Standard
19.43M
0.77MiB
18.98GiB
42.90
37.75
34.81
42.96
56.43
w/o WM+PM
17.18M
0.00MiB
18.18GiB
40.45
33.96
30.62
42.00
55.64
w/o WM transport
19.43M
0.77MiB
18.99GiB
42.48
36.50
34.29
43.23
56.29
w/o PM
18.16M
0.00MiB
18.58GiB
41.75
35.87
31.96
43.28
56.30
w/o PM, keep address
18.53M
0.00MiB
18.65GiB
41.55
35.20
31.91
43.38
56.13
Table 4: Component ablations on ADE20K. Classes are divided into four approximately equal-sized groups by annotated training-pixel count, from rare (Lowest) to frequent (Highest).
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
Table 5: Comparison with existing mechanisms on ADE20K. We replace either the PM injection route or the WM write mechanism in DuSAM, keeping the remaining components unchanged. ♣ indicates that DuSAM’s WM write-side parameters are reinitialized. Class groups follow Table 4 .
Figure 3: Visualization of WM routing for two queries.
Figure 4: Visualization of PM retrieval. Maps show target-class retrieval weights; exemplars are nearest training regions of the top-four prototypes at the marked query. w are not renormalized.
Mode
mIoU
Δ mIoU
Disagr.
Standard
42.90
0.00
0.00
WM_off
11.01
−31.89
57.02
WM_shuffle
20.01
−22.89
34.02
WM_mean_state
37.10
−5.80
11.93
WM_rank1_state
39.07
−3.83
9.98
WM_transport_off
38.19
−4.71
11.54
Table 6: Inference-time memory interventions on ADE20K. Disagr.: pixel-label disagreement with Standard.
Figure 5: Class-targeted PM removal and restoration on ADE20K. Left: target-class IoU drops, sorted within annotated-pixel frequency groups. Right: recovery rates (mean ± SD across classes).
Figure 6: Class-targeted PM removal and restoration with fixed weights. Restore-5 uses five annotated training regions. Red marks the target class on backgrounds desaturated for clarity.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Throughput (FPS) ↑
Method
Input resolution
Retained ( % ) ↑
5122
6402
7682
10242
15362
20482
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
Appendix
Table 7: UPerNet inference efficiency across input resolutions. Throughput and GPU memory are the median and maximum over three measurement runs, respectively. Retained is the percentage of throughput at 5122 maintained at 20482 . Growth indicates the corresponding increase factor for peak memory or FLOPs. The pixel count increases 16× . † indicates an additional SimpleFPN is used to produce hierarchical feature maps.
Metric
Resolution
ConvNeXt-T
DuSAM (ours)
Kernel launches per forward
5122
259
1,281
20482
263
1,265
Memory-op shares, launches / GPU time
5122
- / -
66% / 3%
20482
- / -
66% / 2%
GPU busy fraction
5122
96%
56%
20482
99.6%
95%
Appendix
Table 8: Kernel-level profiling of complete UPerNet segmentors with DuSAM and ConvNeXt-T backbones. Memory-op shares report the percentages of kernel launches and GPU time attributable to WM and PM operations. GPU busy fraction is the percentage of forward wall-clock time during which at least one kernel is executing.
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
Appendix
Table 9: Training-time cost of the PM writer on ADE20K. Indented rows decompose the total writer overhead. Shares are relative to the full Standard training step.
Method
Architecture
#param.
Bounding box
Instance mask
APs
APm
APl
APs
APm
APl
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
Appendix
Table 10: COCO val2017 results by object size for the models in Table 3 . Subscripts s , m , and l denote small, medium, and large objects. † indicates an additional SimpleFPN is used. ⋆ : stronger augmentation ImageNet-1K pretraining.
Figure 7: Memory capacity and utilization on ADE20K.
Figure 8: Sensitivity to PM update and retrieval settings. SS/MS mIoU on ADE20K under different EMA rates η , retrieval widths r , and read temperatures τp .
Figure 9: Cross-stage WM routing for the same logical state within each example. Columns correspond to Stages 2–4. Upper: current write-source density. Lower: spatial read weights.
Figure 10: Additional PM retrieval examples. Red outlines mark exemplar regions, w denotes retrieval weights without renormalization.
Figure 11: Additional class-targeted PM removal and restoration on ADE20K. Restore-5 uses five annotated training regions with fixed weights.
Figure 12: Additional class-targeted PM removal and restoration on COCO. Restore-5 uses five annotated training instances with fixed weights. Blue and red indicate ground truth and predictions.
Class
Frequency group
Δ IoU (pp)
Δ TP (k px)
Δ FP (k px)
Removed FP sources (k px)
Largest
Second largest
grandstand
High
+4.26
−15.0
−105.8
stairs 50.1
wall 19.7
tent
Lowest
+3.23
−0.5
−9.7
sky 7.1
tree 1.2
sea
Highest
+1.63
−107.0
−269.4
water 255.6
animal 3.7
rock
Highest
+1.32
−50.9
−231.1
mountain 83.4
earth 36.3
pier
Lowest
+1.25
−0.6
−3.1
wall 1.5
rock 0.4
Appendix
Table 11: The classes with the largest IoU gains after removing their own PM entries on ADE20K. Changes are relative to Standard; FP sources identify the ground-truth classes of removed false-positive pixels.
PM content
SS mIoU
MS mIoU
Fine-tuned backbone
No PM
41.75
42.97
ADE20K prototypes
42.90 ( +1.15 )
44.12 ( +1.15 )
Frozen backbone
No PM
36.70
37.92
ADE20K prototypes
36.82 ( +0.12 )
37.90 ( −0.02 )
Appendix
Table 12: Frozen-feature transfer and PM contribution on ADE20K. We compare frozen and fine-tuned backbones while retaining WM. Parentheses report mIoU changes relative to no PM within each backbone setting.