# Controlling Temporal Pseudo-Label Marginals for Stable Online Test-Time Adaptation

DevFeed: [Controlling Temporal Pseudo-Label Marginals for Stable Online Test-Time Adaptation](<https://devfeed.tech/articles/controlling-temporal-pseudo-label-marginals-for-stable-online-test-time-adaptation-125533.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12242>)

Author: Rani Amar, Ofir Lindenbaum

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [ImageNet](<https://devfeed.tech/topics/imagenet.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [balancing](<https://devfeed.tech/tags/balancing.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [class](<https://devfeed.tech/tags/class.md>), [classes](<https://devfeed.tech/tags/classes.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [diversity](<https://devfeed.tech/tags/diversity.md>), [entropy](<https://devfeed.tech/tags/entropy.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpu-memory](<https://devfeed.tech/tags/gpu-memory.md>), [model](<https://devfeed.tech/tags/model.md>), [model-architecture](<https://devfeed.tech/tags/model-architecture.md>), [models](<https://devfeed.tech/tags/models.md>), [module](<https://devfeed.tech/tags/module.md>), [online](<https://devfeed.tech/tags/online.md>), [predictions](<https://devfeed.tech/tags/predictions.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [stable](<https://devfeed.tech/tags/stable.md>), [temporal](<https://devfeed.tech/tags/temporal.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

Continual test-time adaptation can become unstable when early prediction biases narrow pseudo-label use to a few classes, leading to drift or collapse. The proposed Sinkhorn Class-Marginal Regularization (SCALAR) buffers recent predictions, balances their class distribution toward a specified target with the Sinkhorn algorithm, and uses the resulting soft targets for adaptation. It adds no model architecture changes, maintains per-step runtime, and increases peak GPU memory by 10 MB on ImageNet-C. The abstract reports particular effectiveness on skewed, non-stationary data with severe shifts, where SCALAR alleviates drift and collapse when combined with entropy- or diversity-based stabilization methods.

## Source excerpt

arXiv:2611.12242v1 Announce Type: new Abstract: Continual Test-Time Adaptation (CTTA) methods update models online using a stream of unlabeled data to overcome distribution shifts encountered at test time. However, CTTA is often unstable, as it can reinforce biases in early predictions and increasingly predict only a few classes, resulting in drift or even collapse. In this paper, we identify narrowing pseudo-label class usage as an indicator of CTTA instability and quantify this behavior. Most existing methods have attempted to address this issue by either selecting reliable adaptation samples or re-weighting the loss to encourage diverse pseudo-labels, but they do not explicitly enforce a class marginal over a temporal window. Instead, we propose Sinkhorn Class-Marginal Regularization (SCALAR), a simple plug-and-play module that controls the pseudo-label distribution over a short temporal window. SCALAR works by maintaining recent predictions in a buffer, balancing their class distribution via the Sinkhorn algorithm to match a specified target distribution, and using the balanced soft targets for adaptation. Without changing the model architecture, SCALAR maintains the per-step runtime and increases the peak allocated GPU memory by only 10 MB on ImageNet-C. Our method is particularly effective on skewed, non-stationary data with severe distribution shifts, where SCALAR significantly alleviates drift and collapse when combined with existing stabilization methods based on entropy or diversity.