Decomposing the Neurons: Activation Sparsity via Mixture of Experts for Continual Test Time Adaptation

Rongyu Zhang, Anle Cheng, Y. Luo, Gaole Dai, Huanrui Yang, Jiaming Liu, Ran Xu, Li Du, Dan Wang, Yuan Du

TL;DR

This paper introduces MoASE, a novel approach for Continual Test-Time Adaptation (CTTA) that tackles catastrophic forgetting by explicitly decomposing neural activations into domain-specific and domain-agnostic components. By leveraging a Mixture-of-Experts architecture with specialized "sparsity experts" and adaptive routing, MoASE significantly improves model robustness to evolving data distributions in vision tasks.

What Problem Does This Paper Address?

In real-world applications like autonomous driving and robotics, machine perception systems constantly encounter new, unseen data distributions. Traditional models trained on a fixed dataset struggle with this "distribution shift," leading to a phenomenon called catastrophic forgetting, where they rapidly lose performance on previously learned tasks. Continual Test-Time Adaptation (CTTA) aims to address this by allowing models to adapt during inference to these evolving target domains without access to the original training data. However, existing CTTA methods often rely on implicit mechanisms that lack interpretability and can still suffer from error accumulation. This paper is motivated by the observation that human vision explicitly processes information, and by the finding that in neural networks, strongly activated neurons tend to capture domain-agnostic features (like shapes), while weakly activated neurons capture domain-specific features (like textures and noise). The core problem is how to explicitly leverage this activation sparsity to build more robust and adaptable CTTA models.

Methods

The proposed method, Mixture-of-Activation-Sparsity-Experts (MoASE), is built upon a Mixture-of-Experts (MoE) framework. The key innovations are:

  • Spatial Differentiable Dropout (SDD): Instead of randomly dropping neurons, SDD selectively retains either the top-K% (high activation) or bottom-K% (low activation) of neuron responses within a spatial dimension. This allows for the creation of specialized experts: "domain-agnostic" experts focusing on high activations (shapes) and "domain-specific" experts focusing on low activations (textures/noise).
  • Domain-Aware Router (DAR): This router specifically leverages the low-activation, domain-specific features to guide the allocation of input to experts. This is a novel design choice that prioritizes domain-specific adaptation.
  • Activation Sparsity Gate (ASG): This module adaptively determines the thresholds for SDD within each expert. This allows for more precise feature decomposition by adjusting how much of the activation is considered "high" or "low" based on the input data.
  • Homeostatic-Proximal (HP) Loss: To prevent error accumulation and ensure stable learning within the teacher-student framework commonly used in CTTA, the HP loss is introduced. It encourages the student experts to stay aligned with the teacher experts, promoting consistent updates and mitigating the risk of diverging to suboptimal solutions.

Datasets

The paper evaluates MoASE on several standard benchmarks for CTTA:

  • Image Classification: CIFAR10-C, CIFAR100-C, and ImageNet-C. These datasets are augmented with various corruption types (e.g., Gaussian noise, fog, snow) at different severity levels to simulate distribution shifts.
  • Semantic Segmentation: Cityscapes to ACDC (Adverse Conditions Dataset). ACDC includes images captured under four distinct adverse weather conditions (Fog, Night, Rain, Snow).

Key Insights and Ideas

  • Explicit Decomposition is Key: The paper strongly advocates for explicitly decomposing neural activations based on their magnitude (high vs. low) as a more interpretable and effective strategy for CTTA compared to implicit methods.
  • Low Activations for Domain Specificity: The finding that low-activated neurons are crucial for capturing domain-specific nuances (like textures and noise) is a central insight, leading to the design of the Domain-Aware Router.
  • Adaptive Thresholding Matters: The Activation Sparsity Gate highlights that a fixed threshold for activation sparsity is suboptimal. Dynamically adjusting these thresholds based on input data leads to better feature decomposition and adaptation.
  • Teacher-Student Stability: The Homeostatic-Proximal loss demonstrates the importance of maintaining consistency between teacher and student models in CTTA to prevent error propagation and ensure robust learning.

Key Results

MoASE achieves state-of-the-art performance across multiple CTTA tasks:

  • Classification: MoASE shows significant improvements, exceeding 15.3% in classification accuracy on benchmarks like ImageNet-C compared to previous methods.
  • Segmentation: The method achieves a 5.5% improvement in mean Intersection over Union (mIoU) on the Cityscapes-to-ACDC task, outperforming baselines and demonstrating robustness to adverse weather conditions.
  • Domain Generalization (DG): MoASE also shows strong performance in DG scenarios, reducing average error by 12.4% on unseen target domains.
  • Ablation Studies: The paper demonstrates that each component of MoASE (SDD, DAR, ASG, HP loss) contributes to the overall performance, with the full MoASE model yielding the best results.

Limitations and Future Work

  • Computational Cost: While MoASE aims to improve efficiency, the Mixture-of-Experts architecture inherently adds computational overhead compared to a single monolithic model. The paper doesn't explicitly quantify the inference speedup or slowdown.
  • Hyperparameter Sensitivity: The effectiveness of the ASG and the scaling factor η for thresholds might be sensitive to hyperparameter choices, though the paper suggests a default value.
  • Future Work: The authors suggest exploring more sophisticated routing strategies and investigating the application of MoASE to other domains beyond vision, such as natural language processing. Further research into the interpretability of the domain-specific and domain-agnostic experts could also be valuable.

Summary updated

Abstract

Continual Test-Time Adaptation (CTTA), which aims to adapt the pre-trained model to ever-evolving target domains, emerges as an important task for vision models. As current vision models appear to be heavily biased towards texture, continuously adapting the model from one domain distribution to another can result in serious catastrophic forgetting. Drawing inspiration from the the encoding characteristics of neuron activation in neural networks, we propose the Mixture-of-Activation-Sparsity-Experts (MoASE) for the CTTA task. Given the distinct reaction of neurons with low and high activation to domain-specific and agnostic features, MoASE decomposes the neural activation into high-activation and low-activation components in each expert with a Spatial Differentiable Dropout (SDD). Based on the decomposition, we devise a Domain-Aware Router (DAR) that utilizes domain information to adaptively weight experts that process the post-SDD sparse activations, and the Activation Sparsity Gate (ASG) that adaptively assigns feature selection thresholds of the SDD for different experts for more precise feature decomposition. Finally, we introduce a Homeostatic-Proximal (HP) loss to maintain update consistency between the teacher and student experts to prevent error accumulation. Extensive experiments substantiate that MoASE achieves state-of-the-art performance in both classification and segmentation tasks.
BibTeX
@inproceedings{zhang2026decomposing,
  author = {Rongyu Zhang and Anle Cheng and Y. Luo and Gaole Dai and Huanrui Yang and Jiaming Liu and Ran Xu and Li Du and Dan Wang and Yuan Du},
  title = {{Decomposing the Neurons: Activation Sparsity via Mixture of Experts for Continual Test Time Adaptation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i42.40922},
}
Figure