Evaluating Test-Time Adaptation For Facial Expression Recognition Under Natural Cross-Dataset Distribution Shifts

John Turnbull, Shivam Grover, Amin Jalali, Ali EtemadarXiv 2026

TL;DR

This paper presents the first comprehensive evaluation of Test-Time Adaptation (TTA) methods for Facial Expression Recognition (FER) under real-world, natural distribution shifts. By benchmarking eight state-of-the-art TTA algorithms across cross-dataset scenarios, the authors demonstrate that TTA can boost accuracy by up to 11.34%, but its success depends heavily on the direction of the domain shift and target label noise.

What Problem Does This Paper Address?

Facial Expression Recognition (FER) models often perform remarkably well on standard benchmarks but degrade significantly when deployed in the real world. This drop in performance is caused by "natural distribution shifts"—unavoidable variations in real-world data stemming from differing demographics, lighting conditions, image resolutions, and subjective annotation standards across datasets.

While Test-Time Adaptation (TTA) has emerged as a promising way to adapt models on-the-fly during inference without needing the original training data, existing TTA research predominantly focuses on synthetic corruptions (like artificial blur or pixel noise). This paper addresses the lack of evaluation on realistic, cross-dataset natural shifts, providing a much-needed benchmark for practical FER deployment.

Methods

The authors evaluate eight prominent TTA methods, categorizing them into four primary strategies:

  1. Entropy Minimization: TENT, EATA, and SAR (which reduce prediction uncertainty by updating LayerNorm parameters).
  2. Feature Alignment: SHOT (which freezes the classifier and adapts the feature encoder using pseudo-labels).
  3. Prototype Adjustment: T3A (a parameter-free approach that dynamically adjusts class centroids based on high-confidence target features).
  4. Continual Adaptation: NOTE, CoTTA, and RoTTA (which utilize memory buffers or teacher-student frameworks to handle long-term data streams).

To ground their analysis, the authors use Maximum Mean Discrepancy (MMD) with a Gaussian RBF kernel to calculate a normalized cross-dataset similarity score ($S \in (0, 1]$), quantifying the exact "domain distance" between the source and target datasets.

Datasets

The study utilizes three widely used, distinct FER datasets to simulate cross-dataset deployment:

  • AffectNet: A massive, globally sourced dataset with high label noise (only 60.7% annotator agreement).
  • RAF-DB: A dataset sourced from Flickr with cleaner labels but a narrower demographic focus (~77% Caucasian).
  • FERPlus: An extension of FER2013 containing standardized $48\times48$ grayscale faces with crowdsourced label distributions.

Key Insights and Ideas

  • The Direction of Noise Matters: TTA is not a one-size-fits-all solution. Entropy minimization methods (TENT, SAR) thrive when adapting from a noisy source dataset to a clean target dataset because they successfully sharpen decision boundaries. However, when adapting from clean to noisy data, they reinforce incorrect predictions and degrade performance.
  • SHOT Rescues Noisy Targets: When the target dataset is highly challenging and noisy (e.g., transferring to AffectNet), feature alignment via SHOT delivers massive accuracy boosts where entropy-based methods fail.
  • T3A Excels Across Large Gaps: Prototype adjustment (T3A) performs best when the dataset similarity score ($S$) is low (i.e., a large domain gap). Conversely, if the datasets are already well-aligned, T3A can inadvertently reduce performance.
  • Continual Adaptation Overfits: Complex continual adaptation methods like CoTTA struggle in these scenarios, as their accumulated updates tend to overfit to noisy target batches over time.

Key Results

The baseline transferability of the models closely mirrors the t-SNE feature projections and calculated similarity scores, as shown below:

Fig. 1. t-SNE projection of features from a ViT-B/16 model pretrained on ImageNet trained on FER datasets.
  • Top Performance Gains: SHOT achieved the highest single improvement, boosting FERPlus $\rightarrow$ AffectNet accuracy by 11.34% (from 41.83% to 53.17%) and RAF-DB $\rightarrow$ AffectNet by 6.99%.
  • Large Gap Success: T3A improved AffectNet $\rightarrow$ FERPlus by 7.54%, exploiting the scenario where dataset similarity was at its lowest ($S=0.9011$).
  • Efficiency Wins: T3A proved to be the most computationally efficient method, adding virtually zero latency (126.8 ms vs. 124.6 ms baseline) and minimal memory overhead, making it ideal for resource-constrained edge deployments.

The full breakdown of top-1 accuracy across all twelve cross-dataset scenarios highlights how different TTA strategies dominate depending on the source-target pair:

Table 2. Top-1 Accuracy (%) of various TTA methods under different FER cross-dataset scenarios.

Limitations and Future Work

The primary limitation identified is the inherent instability of current TTA methods; a strategy that excels in one direction of a domain shift can completely tank accuracy in the opposite direction. The authors suggest that future TTA frameworks must include mechanisms to dynamically estimate both target-domain noise and dataset similarity at test-time. This would allow systems to intelligently select the optimal adaptation strategy on the fly.

Summary updated

BibTeX
@misc{turnbull2026evaluating,
  author = {John Turnbull and Shivam Grover and Amin Jalali and Ali Etemad},
  title = {{Evaluating Test-Time Adaptation For Facial Expression Recognition Under Natural Cross-Dataset Distribution Shifts}},
  year = {2026},
  eprint = {2603.19994},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.19994},
}
Figure