Test-Time Adaptation by Causal Trimming

Yingnan Liu, Rui Qiao, Mong Li Lee, W. Hsu
10/1/2025
2 citations

No official code found. Best implementation: NancyQuris/TACT (12 stars).

Abstract

Test-time adaptation aims to improve model robustness under distribution shifts by adapting models with access to unlabeled target samples. A primary cause of performance degradation under such shifts is the model's reliance on features that lack a direct causal relationship with the prediction target.

Show full abstract

We introduce Test-time Adaptation by Causal Trimming (TACT), a method that identifies and removes non-causal components from representations for test distributions. TACT applies data augmentations that preserve causal features while varying non-causal ones. By analyzing the changes in the representations using Principal Component Analysis, TACT identifies the highest variance directions associated with non-causal features. It trims the representations by removing their projections on the identified directions, and uses the trimmed representations for the predictions. During adaptation, TACT continuously tracks and refines these directions to get a better estimate of non-causal features. We theoretically analyze the effectiveness of this approach and empirically validate TACT on real-world out-of-distribution benchmarks. TACT consistently outperforms state-of-the-art methods by a significant margin.

View on arXivView PDF

Code Implementations(1)

NancyQuris/TACTCommunity25%

Official implementation of NeurIPS 2025 paper "Test-Time Adaptation by Causal Trimming"

120

Similar Papers

Cite this paper

@article{liu2025testtime,
  title  = {Test-Time Adaptation by Causal Trimming},
  author = {Yingnan Liu and Rui Qiao and Mong Li Lee and W. Hsu},
  year   = {2025},
  eprint = {2510.11133},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2510.11133},
  url    = {https://doi.org/10.48550/arXiv.2510.11133},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.11133.svg)](https://codeofpaper.com/paper/2510.11133)

Discussion