Bridging the Gap between Continual Learning and Test-Time Adaptation with Domain Preview

Frédéric Li Combeau, Nicolas Michel, Toshihiko YamasakiarXiv 2026

It’s late, you’ve had a long day, and the last thing you want is a dry lecture on catastrophic forgetting. So, let’s talk about robots and cameras instead.

Imagine you’ve deployed an image recognition system for a city-wide security network. You’ve trained it on "Domain A" (sunny day footage). Suddenly, a new camera comes online in a foggy district ("Domain B"). You have plenty of video from the foggy camera, but no one has sat down to label it yet.

In the machine learning world, we usually handle this in two separate ways: Continual Learning (CL) helps the model learn new things without forgetting the old, and Test-Time Adaptation (TTA) helps the model adjust to new environments (like fog) on the fly using unlabeled data.

The problem? When you try to do both at once, the model often "breaks." This paper introduces a clever way to fix that.

TL;DR

When models try to adapt to a new environment (like a "preview" of a future task) using unlabeled data, they often accidentally overwrite the "memory" of what they just learned. This paper introduces DOSE, a method that detects which environment an image belongs to and "doses" the adaptation accordingly, allowing models to learn from the future without destroying the past.

What Problem Does This Paper Address?

The authors identify a gap they call Continual Learning with Domain Preview (CL-P).

In a standard setup, a model learns Task 1, then Task 2, and so on. But in the real world, there’s often a "preview" period: you get data from Task 2 before you get the labels. Naturally, you’d want to use TTA to start adapting to Task 2 immediately.

However, the authors found a nasty side effect: naive TTA destroys CL.

Most modern neural networks use something called BatchNorm, which keeps track of the "average" look of the data. When TTA sees the new, foggy data, it updates these BatchNorm statistics. If the model then sees an old, sunny image but processes it using the "foggy" statistics, it gets confused and fails. The model hasn't forgotten the features of the sunny day; it's just forgotten how to normalize them.

This figure illustrates the different setups: standard CL, standard CTTA, and the authors' proposed CL-P setup with a "preview" phase.

Methods

The authors propose DOSE (Dosing by Online Statistics of Each domain). Think of it as a smart gatekeeper for the model’s adaptation.

  1. Domain Detection: DOSE uses a "frozen" copy of the very first layer of the network to look at an incoming image. It calculates basic statistics (means and variances) to see if the image looks more like the "sunny" domain it already knows or the "foggy" preview domain.
  2. The Dose ($\lambda$): It assigns a probability ($\lambda$) that the image comes from the preview.
  3. Adaptive BatchNorm: Instead of having one set of statistics that gets overwritten, DOSE maintains a "bank" of statistics for old domains. When a new image arrives, it processes it using a mixture: a "preview" branch (adapted by TTA) and a "trained" branch (preserved by CL), weighted by that $\lambda$ value.
  4. Prototype Head: For the new preview domain (where we don't have labels yet), DOSE builds "prototypes"—essentially average feature vectors for each class—to help make better guesses.
Figure 2. DOSE. (a) During training, the frozen first block of the initial network gives the recorded statistics of domain t, while a bank stores the BatchNorm statistics of each domain for memory-free CL. (b) TTA adapts online, while DOSE records the statistics of the preview and builds prototypes from the predictions of TTA. (c) For any image, the posterior over the recorded statistics gives λ, which weighs the branch of the preview and the prototypes.

Datasets

The researchers put DOSE through the ringer across 24 different settings using both ResNet and Vision Transformer (ViT) backbones. They used:

  • C100-C & IN-C: CIFAR-100 and ImageNet with 15 different types of digital corruptions (blur, noise, weather).
  • C20: A version of CIFAR-100 where the model has to learn different sub-classes over time.
  • DomainNet: A challenging dataset where the "domain shift" is a change in style (e.g., moving from photos to sketches to paintings).
  • ImageNet-R & ImageNet-A: Used specifically for testing the robustness of Vision Transformers.

Key Insights and Ideas

  • BatchNorm is the "Aha!" Moment: The researchers realized that the "forgetting" wasn't happening in the deep, complex parts of the brain (the weights), but in the "thermostat" settings (BatchNorm). By simply isolating these statistics, they could stop the damage.
  • Soft Dosing vs. Hard Switching: You don't need to perfectly guess the domain. Using a "soft" probability ($\lambda$) to mix the branches is robust enough to handle batches where images from different domains are mixed together.
  • ViTs are Naturally Safer: Vision Transformers use LayerNorm instead of BatchNorm. Because LayerNorm calculates statistics for each image individually rather than across a whole domain, ViTs are much less prone to this specific type of forgetting, though they still benefit from DOSE's other features.

Key Results

  • Universal Improvement: DOSE matched or improved upon standard CL methods in all 24 settings tested.
  • ResNet Rescue: On ResNet models, DOSE improved accuracy by an average of 7.7 points over CL alone.
  • Fixing the Naive Fail: In many cases, adding standard TTA to a CL model actually lowered the overall score because the forgetting was so severe. DOSE consistently turned this negative interaction into a positive one.

Limitations and Future Work

While DOSE is a powerful plug-in, the authors note a few areas for growth:

  • Single Domain Preview: The current version assumes the "preview" stream contains only one new domain at a time. Real-world data might be a messy mix of several new environments.
  • The "Bank" Check: To save memory, DOSE doesn't store old images, just their statistics. However, as the model continues to learn, those old statistics can become "stale." The authors implemented a "bank check" to drop outdated stats, but more sophisticated memory management could help.
  • Content vs. Style: If two domains differ only by what is in the image (content) rather than how the image looks (style/low-level stats), DOSE’s domain detector might struggle to tell them apart.

In short, DOSE provides a much-needed bridge, allowing AI to be "forward-looking" without losing its grip on the past.

Summary updated

Abstract

Domain shift is a major problem for training machine learning models. While Continual Learning (CL) assumes distribution shift during training and Continual Test-Time Adaptation (CTTA) considers new domains at test time, setups that require explicit online adaptation to domain shift during both phases remain under-explored. We propose continual learning with domain preview (CL-P), a new combination of CL and TTA where both train and test data suffer from distribution shift. The training phase of CL-P is analogous to domain-incremental learning while the testing phase consists of a TTA phase on a future domain (which we call preview), and an evaluation phase on all seen domains. The model must then adapt to new domains at train and test time. In this paper, we evaluate mainstream CL and TTA methods that adapt only at train or test time, as well as their naive combination. Experimentally, TTA heavily damages the domain on which the CL method has just trained and increases forgetting. Notably, this damage mostly comes from the BatchNorm statistics shared by all domains. In that sense, we propose DOSE (Dosing by Online Statistics of Each domain), which allows a seamless combination of any CL and TTA methods by adaptive domain inference at test time, where the adaptation is applied to each image in proportion to the probability that it comes from the preview domain. Through extensive experiments with ResNet and ViT backbones, various combinations of CL and TTA baseline methods and datasets considering diverse domains, we show that DOSE matches or improves on CL methods alone in all 24 settings and on the naive combination in all but one. The code can be found in appendix.
BibTeX
@misc{combeau2026bridging,
  author = {Frédéric Li Combeau and Nicolas Michel and Toshihiko Yamasaki},
  title = {{Bridging the Gap between Continual Learning and Test-Time Adaptation with Domain Preview}},
  year = {2026},
  eprint = {2611.29905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29905},
}
Figure