XF-CLS: Cross-Foundation Complementary Learning Systems for Continual Test-Time Adaptation in Open-Vocabulary Semantic Segmentation

Guan-Yu Chen, Wei-Hua Li, Huei-Fang Yang, Chu-song ChenNeurIPS 2026

TL;DR

Imagine an autonomous vehicle’s vision system adapting on the fly as daylight fades into a torrential night storm—without forgetting what a "potted plant" or "sofa" looks like once it parks. When open-vocabulary segmentation models adapt continuously to unlabeled video streams, their unchecked updates usually compound into catastrophic collapse. Inspired by how the human brain balances rapid learning with long-term memory, XF-CLS introduces a three-path architecture that lets vision-language models adapt to wild, shifting environments over tens of thousands of frames without losing their minds—or their vocabulary.

What Problem Does This Paper Address?

Open-Vocabulary Semantic Segmentation (OVSS) lets a model label every pixel of an image using arbitrary text prompts (transferring CLIP-style image-text alignment down to the pixel level). It works great in clear weather, but real-world deployment throws curveballs like fog, rain, snow, and night.

Test-Time Adaptation (TTA) updates a model online using unlabeled incoming images to handle these shifts. Historically, OVSS-TTA has been evaluated episodically: adapt to a batch, make a prediction, and hit the reset button back to the original weights. In persistent real-world streams (Continual TTA, or CTTA), there is no reset button. Carrying unsupervised updates forward over long horizons creates two nasty traps:

  1. Cumulative Drift & Collapse: Small early errors compound, causing predictions to degrade into gibberish.
  2. Vocabulary Amnesia: As the visual encoder updates to survive a snowstorm, its features drift out of alignment with the frozen text embeddings, ruining its ability to recognize classes it hasn't seen lately.
Figure 1: (a) Continual adaptation. Per-round mIoU on ACDC and OnDA shows that several baselines degrade or become unstable over the streams, while XF-CLS sustains adaptation gains. (b) Open-vocabulary retention. After each stream, we evaluate the 14 VOC classes outside the Cityscapes adaptation vocabulary without further updates. Retention is their mIoU relative to the source model (100%); values above 100% indicate improvement over source. Both XF-CLS and CoTTA retain near-source performance, but only XF-CLS also raises the driving-stream mIoU. Both panels show means over three stream orders; some baseline settings differ from the single-run rows of Tables 1–2 (Appendix I.2).

Methods

Drawing an analogy to neuroscience's Complementary Learning Systems theory, XF-CLS separates rapid plasticity from slow consolidation, supervised by an external "structural observer"—all without needing source data or target labels.

Figure 2: Overview of XF-CLS. Hippocampal Adaptation (fast path) updates only visual Layer- Norm parameters by dense entropy minimization; Neocortical Consolidation (slow path) maintains an EMA memory and a source-anchored recovery target; recovery pulls the fast state toward this target. The frozen DINOv2 path compares its structure with the current OVSS prediction to modulate recovery, and refines the final output. The lower visual encoder is the same fast model after recovery. The gradient step is schematic (Adam in implementation); each image receives two inner updates before prediction and the scheduled refinement in Eq. (5).

Using NACLIP as the base OVSS model, XF-CLS runs three interacting paths on each image:

  • Fast Path (Hippocampal Adaptation): Provides rapid plasticity by updating only the visual LayerNorm affine parameters (just 102,400 parameters!) via simple pixel-level entropy minimization, keeping the text encoder and the rest of the backbone frozen.
  • Slow Path (Neocortical Consolidation): Maintains an ultra-slow Exponential Moving Average (EMA) of the fast weights ($\alpha = 0.99999$, guided by a finite-horizon mathematical analysis so initialization retains majority weight over tens of thousands of steps). This slow memory is blended 50/50 with the original source weights to form an anchor that gently pulls the fast weights back from the brink of drift.
  • Cross-Foundation Structural Path: An EMA of a drifting model can still drift. So, the authors bring in a frozen DINOv2 model as an independent, non-drifting observer. DINOv2 never trains or generates pseudo-labels; instead, it checks structural consistency to modulate the slow path's recovery pull, and sharpens the final dense predictions via feature-space neighbor smoothing and prototype consensus.

Datasets

Rather than introducing new datasets, the authors formulate long-horizon OVSS-CTTA protocols out of established benchmarks (using the 19 Cityscapes driving classes for adaptation):

  • Cityscapes-to-ACDC: Cycles through fog, night, rain, and snow for 10 rounds (16,000 images total).
  • OnDA: Cityscapes validation images rendered with physics-based rain at five intensities (25 to 200 mm/h), repeated for 5 rounds (12,500 images).
  • PASCAL VOC 2012: Used post-adaptation (specifically the 14 non-driving classes like aeroplane or cat) to test open-vocabulary retention, plus a 10-cycle (14,490-image) non-driving stability stress test.

Key Insights and Ideas

  • Short evaluations hide fatal flaws: An episodic champion like MLMP achieves the highest score on Round 1 fog (33.18 mIoU), looking like a winner—until carried updates cause it to collapse to 5.13 mIoU by Round 10. Stability over the stream matters just as much as the per-image objective.
  • Output polish cannot save a rotting core: You might wonder if frozen DINOv2 refinement is doing all the heavy lifting. When the authors kept full DINOv2 output refinement active but turned off source-anchored recovery, OnDA performance cratered from 30.75 to 6.51 mIoU. Slow, source-anchored weight recovery is the true stabilizer; DINOv2 is the complementary spatial sharpener.
  • Adapting without forgetting: Because updates are restricted to lightweight LayerNorm parameters and tethered to the source anchor, the visual encoder adapts to extreme weather without severing its alignment with frozen text embeddings for unseen objects.

Key Results

  • Sustained Driving Gains: On Cityscapes-to-ACDC, XF-CLS reaches 32.92 mIoU (+9.00 over source NACLIP, +2.82 over the strongest baseline, SAR). On OnDA rain streams, where every baseline degrades below the unadapted source model (26.18 mIoU), XF-CLS climbs to 30.75 mIoU. Even without DINOv2, XF-CLS beats all baselines on both streams (30.21 and 27.57 mIoU).
  • Near-Perfect Vocabulary Retention: Evaluated on the 14 unseen VOC classes after adaptation, XF-CLS retains 99.56% (post-ACDC) and 98.78% (post-OnDA) of the original model's mIoU.
  • Compute Cost: Updating online and querying DINOv2 isn't free. On an H200 GPU, source NACLIP runs at 14.50 FPS (69 ms). Full XF-CLS drops to 1.45 FPS, though reusing DINOv2 features per image brings it up to 2.52 FPS (396 ms) with ~19.2 GiB peak memory (dominated by the backward pass).

Limitations and Future Work

The authors are admirably transparent about the catches:

  • Target-Informed Tuning: While online updates are strictly label-free, key hyperparameters (recovery rates and refinement strengths) were selected offline using labeled benchmark performance. True unsupervised model selection remains an open step.
  • Latency & Memory: Dropping from 14.5 FPS to 2.5 FPS—and needing ~19 GiB of VRAM for backprop—limits immediate deployment on resource-constrained edge hardware.
  • Prompt Sensitivity: Swapping canonical class names for synonyms (e.g., alternative phrasings for street classes) still drops mIoU by 5.67 points, showing that preserving feature-text margins doesn't automatically guarantee prompt invariance.
  • Controlled Streams: Experiments used NACLIP backbones on cyclical, fixed-vocabulary benchmarks. Testing lighter structural observers, other OVSS architectures, dynamically changing vocabularies, and unscripted real-world video sequences are next on the horizon.

Summary updated

Abstract

Open-vocabulary semantic segmentation (OVSS) labels each pixel with classes named in natural language, but deployed models face changing conditions such as fog, night, rain, and snow. Continual test-time adaptation (CTTA) can adapt them online without labels, yet over long streams without resets, unsupervised updates accumulate: predictions can degrade or collapse, and updated visual features can lose alignment with the frozen text embeddings that support open-vocabulary recognition. We propose Cross-Foundation Complementary Learning Systems (XF-CLS), a source-free OVSS-CTTA framework that separates rapid adaptation from slow consolidation. Hippocampal Adaptation (fast path) updates only visual normalization parameters on each incoming image, while Neocortical Consolidation (slow path) keeps a slowly updated, source-anchored memory and pulls the fast parameters back toward it to counter drift, with a finite-horizon analysis guiding the memory's update rate. A third path uses a frozen DINOv2 model as a non-drifting structural observer to guide recovery and refine dense predictions, without training another teacher or supervising updates with pseudo-labels. On long-horizon Cityscapes-to-ACDC and OnDA streams, XF-CLS reaches 32.92 and 30.75 mIoU, outperforming all compared methods, and retains 99.6% and 98.8% of source mIoU on VOC classes outside the adaptation vocabulary. Matched controls identify source-anchored recovery as the main stabilizer and frozen refinement as complementary output correction. These gains come with additional computation from online updates and structural inference. Our code is available at https://github.com/Gary20011207/XF-CLS.
BibTeX
@inproceedings{chen2026xf,
  author = {Guan-Yu Chen and Wei-Hua Li and Huei-Fang Yang and Chu-song Chen},
  title = {{XF-CLS: Cross-Foundation Complementary Learning Systems for Continual Test-Time Adaptation in Open-Vocabulary Semantic Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vP6mCzbls0},
}
Figure