Organizations: Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications (Southeast University), Ministry of Education, No. 2 Sipailou, Nanjing, 210096, Jiangsu, China · Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), Masdar City, Abu Dhabi, United Arab Emirates · School of Medicine, Case Western Reserve University, 10900 Euclid Avenue, Cleveland, 44106, OH, USA
Video polyp segmentation (VPS) is essential for computer-aided colonoscopy, as it localizes and tracks polyps frame by frame. However, VPS remains challenging because polyps resemble the mucosa and change quickly in scale, which calls for history beyond a short clip, and because blur, specular highlights, and occlusion often degrade only part of a frame. Existing methods keep history as whole frames, so their cost grows with the history length, and a partly degraded frame carries its degraded content to later predictions. To address these issues, we propose STREAM, a streaming framework for VPS that extends the causal multi-scale aggregation (CMA) of our conference work from a fixed clip to an online stream. STREAM introduces a Recursive Slot Memory (RSM) that summarizes multi-scale features and soft foreground and background cues into a constant number of slots, which the current features read and pass to CMA, supplying long-range history at a constant cost. Furthermore, we design Reliability-Aware Slot Writing (RASW), which estimates a pixel-level quality map from the current frame, supervised by its local error, and uses it to control which locations are written into RSM and how much each slot is updated. Experiments on SUN-SEG and CVC-ClinicDB demonstrate that STREAM achieves state-of-the-art performance, improving the Dice of the conference model from 81.3% to 85.7% on the hardest subset while running at 48 FPS with a constant state of 0.32 MB. Code will be released at https://github.com/wangtong627/STREAM.
Figures & tables
Figure 1: Challenges in VPS. Challenge 1 (long-range history dependence): (a) low contrast and (b) fast scale change need earlier clear frames. Challenge 2 (spatially non-uniform degradation): (c) motion blur and (d) a partial specular highlight. Green lines mark polyps. Clips (a)–(d): case6_2 , case95_1 , case25_2 , and case51_2 .
Figure 2: How VPS methods use history. (a) Frame windows and (b) reference frames (e.g., CMSA-Net) keep a few whole frames; (c) memory banks store past features at a cost that grows with capacity. (d) STREAM summarizes history in fixed recursive slots (RSM) and controls their writing with a pixel-level quality map (RASW).
Figure 3: Observation 1. Synthetic degradation ( D=32 ). (a) Short FIFO banks lose clean context as degraded entries replace it. (b) Sparse history nears dense storage at one quarter of the state.
Table 1: Observation 1: accuracy during D=32 synthetic intervals and storage cost. Dice: mean over three seeds; latency: median per-frame time on an NVIDIA A100; state in MB.
Figure 4: Observation 2. Gain over unconditional writing ( K=8 , three-seed means, oracle masks). (a) Both selection rules help under persistent occlusion. (b) Spatial selection retains usable updates under drifting highlights. Each gain compares paired inputs; D settings contain different intervals.
Table 2: Observation 2: Dice during synthetic degradation ( K=8 , three-seed means). Spatial selection uses oracle masks. Comparisons are within columns.
Figure 5: Overview of STREAM. At frame t , the three-scale features of It read the old memory St−1 , and the streaming CMA fuses the memory-enhanced features with the cached previous-frame features before decoding Pt . An observation head, which does not see the memory, predicts the quality map Qt . The memory tokenizer and a GRU of RSM then compute a candidate state, and RASW uses Qt to control the write at two points: \scriptsize1⃝ the spatial pooling of candidate content and \scriptsize2⃝ the per-slot acceptance gate, giving St for the next frame. Gray: inherited from CMSA-Net; blue: streaming changes; orange: RSM; red: RASW.
Figure 6: Reliability-aware slot writing (RASW). (a) The quality map is supervised by the local error of the observation branch. (b) In one write, the quality map controls \scriptsize1⃝ which locations form the candidate content and \scriptsize2⃝ how much of the GRU update each slot accepts.
Method
Publication
Backbone
SUN-SEG-Easy-Seen (%)
SUN-SEG-Easy-Unseen (%)
Sα↑
Eϕmn↑
Fβw↑
Dice ↑
IoU ↑
MAE ↓
Sα↑
Eϕmn↑
Fβw↑
Dice ↑
IoU ↑
MAE ↓
PraNet
MICCAI’20
Res2Net-50
91.8
94.2
87.7
88.3
82.5
2.0
78.1
78.8
66.3
66.5
58.2
5.2
ACSNet
MICCAI’20
ResNet-34
92.0
94.2
87.4
88.2
82.8
1.7
77.2
76.6
63.0
63.8
56.4
4.6
SANet
MICCAI’21
Res2Net-50
91.6
93.3
86.6
87.2
82.0
1.8
75.0
72.8
59.0
59.3
52.4
5.2
SEPNet
TCSVT’24
PVTv2-B2
93.1
96.2
88.3
89.6
83.4
1.7
82.9
88.3
73.5
75.1
66.6
4.2
PNS-Net
MICCAI’21
Res2Net-50
90.6
91.0
83.6
84.1
78.3
2.0
76.7
74.4
61.6
61.8
54.5
4.8
Table 3: Quantitative comparison on the SUN-SEG-Easy dataset. All methods are retrained under the same settings. The best and second-best results are highlighted in bold and underlined , respectively.
Method
Publication
Backbone
SUN-SEG-Hard-Seen (%)
SUN-SEG-Hard-Unseen (%)
Sα↑
Eϕmn↑
Fβw↑
Dice ↑
IoU ↑
MAE ↓
Sα↑
Eϕmn↑
Fβw↑
Dice ↑
IoU ↑
MAE ↓
PraNet
MICCAI’20
Res2Net-50
88.4
91.9
83.1
83.9
76.6
3.1
78.7
80.2
66.7
67.5
58.7
5.3
ACSNet
MICCAI’20
ResNet-34
87.2
91.0
80.6
82.0
74.8
3.6
76.2
77.6
61.0
62.4
54.7
5.3
SANet
MICCAI’21
Res2Net-50
87.4
90.5
81.0
82.0
74.8
3.3
75.3
73.6
59.0
59.5
52.7
5.5
SEPNet
TCSVT’24
PVTv2-B2
89.4
94.0
83.5
85.7
77.6
3.4
84.7
89.5
74.5
77.4
68.4
3.9
PNS-Net
MICCAI’21
Res2Net-50
87.0
89.2
78.7
79.6
72.1
3.3
76.7
75.5
60.9
61.5
53.9
5.0
Table 4: Quantitative comparison on the SUN-SEG-Hard dataset. All methods are retrained under the same settings. The best and second-best results are highlighted in bold and underlined , respectively.
Figure 7: Qualitative comparison on SUN-SEG-Hard-Unseen. Left (Case 1, from case32_4 ): consecutive frames with blur and specular highlights. Right (Case 2, from case42 ): a polyp with a large scale change. Green, yellow, and blue denote true positives, false positives, and false negatives.
Table 5: Dice (%) on scenario subsets of the SUN-SEG test sets. Left: subsets that call for long-range history; right: subsets with spatially non-uniform degradation. SV, IB, FM, GH, and OCC are official SUN-SEG video attributes; the other subsets are defined in Section 4.3 . The last three rows add the components of STREAM one at a time ( Section 4.5 ). All methods use PVTv2-B2 except PNS+ (Res2Net-50); Δ : STREAM − CMSA-Net.
Method
Sα↑
Eϕmn↑
Fβw↑
Dice ↑
IoU ↑
MAE ↓
PraNet
84.3
86.7
76.0
76.4
68.0
3.9
SEPNet
85.2
88.1
77.6
77.4
69.9
3.8
STDDNet (R)
87.0
88.8
80.3
80.4
72.5
3.2
STDDNet (P)
88.7
91.8
83.7
83.7
75.7
2.8
CMSA-Net (R)
82.6
83.4
74.1
73.4
65.1
4.4
CMSA-Net (P)
87.2
89.0
80.1
80.4
72.1
3.4
Table 6: Cross-dataset comparison on CVC-ClinicDB (CVC-612). The best and second-best results are highlighted in bold and underlined , respectively. R: Res2Net-50; P: PVTv2-B2.
Method
GFLOPs ↓
Param. (M) ↓
FPS ↑
State (MB) ↓
PraNet
78.89
30.50
42
N/A
ACSNet
130.52
29.45
21
N/A
SALI
86.58
82.73
10
7.46
STDDNet (R)
75.17
38.16
45
7.09
STDDNet (P)
64.18
29.67
36
7.09
CMSA-Net (R)
73.36
29.61
47
7.09
Table 7: Efficiency comparison over 6 frames (one clip for clip-based methods). State: memory carried between frames at 352×352 (N/A: image-based). R: Res2Net-50; P: PVTv2-B2.
Table 8: Step-wise ablation and RSM slot capacity (Dice, %). Slot-count variants disable RASW; the full model uses 32 slots.
Figure 8: Visual ablation on a clip ( case29_1 ) with two blurred frames (middle columns). Rows show the input frame, the ground truth, and Streaming only ( 1 ), RSM with 32 slots ( 3 ), and the full model ( 5 ) in Table 8 . Colors as in Fig. 7 .
Table 9: Ablation of RASW (Dice, %). Content: quality-weighted pooling; State: per-slot acceptance gate. All rows use RSM. Highl./Blur: the Highlight and Blur subsets of Table 5 .
Figure 9: Failure case of STREAM. Long continuous blur in case51_9 (frames 151–170). Columns show four frames of the clip. Rows show the input frame, the ground truth, STDDNet, CMSA-Net, and STREAM. Colors as in Fig. 7 .
Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications, Southeast University, Ministry of Education, Jiangsu, China · Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), Abu Dhabi, UAE · School of Medicine, Case Western Reserve University, Cleveland, OH, USA