Lune

ICCV2023Top-tier venue

CAFA: Class-Aware Feature Alignment for Test-Time Adaptation

Sanghun Jung, Jungsoo Lee, Nanhee Kim, Amirreza Shaban, Byron Boots, Jaegul Choo

Abstract

Despite recent advancements in deep learning, deep neural networks continue to suffer from performance degradation when applied to new data that differs from training data. Test-time adaptation (TTA) aims to address this challenge by adapting a model to unlabeled data at test time. TTA can be applied to pretrained networks without modifying their training procedures, enabling them to utilize a well-formed source distribution for adaptation. One possible approach is to align the representation space of test samples to the source distribution (i.e., feature alignment). However, performing feature alignment in TTA is especially challenging in that access to labeled source data is restricted during adaptation. That is, a model does not have a chance to learn test data in a class-discriminative manner, which was feasible in other adaptation tasks (e.g., unsupervised domain adaptation) via supervised losses on the source data. Based on this observation, we propose a simple yet effective feature alignment loss, termed as Class-Aware Feature Alignment (CAFA), which simultaneously 1) encourages a model to learn target representations in a class-discriminative manner and 2) effectively mitigates the distribution shifts at test time. Our method does not require any hyper-parameters or additional losses, which are required in previous approaches. We conduct extensive experiments on 6 different datasets and show our proposed method consistently outperforms existing baselines.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Lifelong Test-Time Adaptation via Online Learning in Tracked Low-Dimensional Subspace cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Lifelong Test-Time Adaptation via Online Learning in Tracked Low-Dimensional Subspace cites Towards Open-Set Test-Time Adaptation Utilizing the Wisdom of Crowds in Entropy Minimization
  • Lifelong Test-Time Adaptation via Online Learning in Tracked Low-Dimensional Subspace cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Monitoring Risks in Test-Time Adaptation cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Monitoring Risks in Test-Time Adaptation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Monitoring Risks in Test-Time Adaptation cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation cites Moment Matching for Multi-Source Domain Adaptation
  • Towards Open-Set Test-Time Adaptation Utilizing the Wisdom of Crowds in Entropy Minimization cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Towards Open-Set Test-Time Adaptation Utilizing the Wisdom of Crowds in Entropy Minimization cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Tent: Fully Test-Time Adaptation by Entropy Minimization cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Adapting In-Domain Few-Shot Segmentation to New Domains Without Source Domain Retraining cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Adapting In-Domain Few-Shot Segmentation to New Domains Without Source Domain Retraining cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Adapting In-Domain Few-Shot Segmentation to New Domains Without Source Domain Retraining cites Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Towards Open-Set Test-Time Adaptation Utilizing the Wisdom of Crowds in Entropy MinimizationJungsoo Lee, Debasmit Das, Jaegul Choo, Sungha ChoiICCV 2023 · 48 citations
  2. Decomposed Prompt Decision Transformer for Efficient Unseen Task GeneralizationHongling Zheng, Li Shen, Yong Luo, Tongliang Liu et al.NeurIPS 2024 · 13 citations
  3. Monitoring Risks in Test-Time AdaptationMona Schirmer, Metod Jazbec, Christian Andersson Naesseth, Eric T. NalisnickNeurIPS 2025 · 10 citations
  4. Lifelong Test-Time Adaptation via Online Learning in Tracked Low-Dimensional SubspaceDexin Duan, Rui Xu, Peilin Liu, Fei WenNeurIPS 2025 · 7 citations
  5. Adapting In-Domain Few-Shot Segmentation to New Domains Without Source Domain RetrainingQi Fan, Kaiqi Liu, Nian Liu, Hisham Cholakkal et al.ICCV 2025 · 4 citations

Builds on16

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Moment Matching for Multi-Source Domain AdaptationXingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang et al.ICCV 2019 · 2,239 citations
  3. Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
  4. Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
  5. Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations

Related papers

  1. What, How, and When Should Object Detectors Update in Continually Changing Test Domains?Jayeon Yoo, Dongkwan Lee, Inseop Chung, Donghyun Kim et al.CVPR 2024 · 10 citations
  2. Test-time Correlation AlignmentLinjing You, Jiabao Lu, Xiayuan HuangICML 2025
  3. Test-time Adaptation for Regression by Subspace AlignmentKazuki Adachi, Shin'ya Yamaguchi, Atsutoshi Kumagai, Tomoki HamagamiICLR 2025
  4. Adaptive Energy Alignment for Accelerating Test-Time AdaptationWonjeong Choi, Do-Yeon Kim, Jungwuk Park, Jungmoon Lee et al.ICLR 2025
  5. Neural Collapse in Test-Time AdaptationXiao Chen, Zhongjing Du, Jiazhen Huang, Jiang Xu et al.CVPR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines