TL;DR
While test-time adaptation (TTA) has flourished for classification tasks, regression models have largely been left behind because they lack the probability distributions needed for standard entropy-based methods. This paper introduces Significant-subspace Alignment (SSA), a method that enables robust regression TTA by aligning feature distributions within a task-relevant, low-dimensional subspace, significantly outperforming existing adaptation baselines.
The Challenge of Regression TTA
Deep learning models are notoriously fragile when the data they encounter at test time differs from their training data—a phenomenon known as covariate shift. Test-time adaptation (TTA) aims to fix this by adjusting the model on-the-fly using only unlabeled test data.
For classification, TTA is relatively straightforward: methods typically minimize the "entropy" (uncertainty) of the model's categorical predictions. However, regression models output single scalar values (like an age, an angle, or a price), not probability distributions. This fundamental difference renders entropy-based methods useless.
The primary alternative is feature alignment—adjusting the network so that the internal representations of test data match the distribution of the training data. However, the authors discovered that "naive" feature alignment fails for regression. Why? Because regression features tend to be far less diverse than classification features, often collapsing into a tiny subspace of the total available feature dimensions. Trying to align thousands of dimensions when only a few dozen actually matter leads to numerical instability and poor adaptation performance.
Proposed Method: Significant-subspace Alignment (SSA)
To overcome the limitations of naive alignment, the authors propose Significant-subspace Alignment (SSA). SSA adapts a pre-trained regression model to new domains in three distinct steps:
- Subspace Detection: Before adaptation begins, the method uses Principal Component Analysis (PCA) on the source (training) features to identify a low-dimensional "significant subspace." Even if the raw feature vector has 2048 dimensions, the relevant subspace for regression is typically around 100 dimensions.
- Dimension Weighting: Not all dimensions in that extracted subspace are equally important for the final prediction. SSA calculates weights for each dimension based on how much they contribute to the final linear regressor's output.
- Feature Alignment: During test time, the model projects incoming unlabeled test features into this weighted subspace. It then minimizes the Kullback-Leibler (KL) divergence between the source and target feature distributions. To prevent the model from "forgetting" its core training, only the affine parameters (scale and shift) of the model's normalization layers are updated.
Key Insights
- The Regression Subspace Hypothesis: The most striking insight from the paper is that regression models utilize a much smaller fraction of their feature space than classifiers. In a standard ResNet with 2048 dimensions, the "active" subspace for a regression task might be as small as 14 to 76 dimensions.
- The Central Limit Theorem to the Rescue: Projecting high-dimensional features into a lower-dimensional subspace actually makes the resulting feature distribution look more Gaussian. This is a practical side effect of the Central Limit Theorem, making the Gaussian-based KL divergence calculations much more accurate and stable during alignment.
- Task-Aware Alignment: By weighting dimensions based on the final regressor's weights, SSA ensures the model prioritizes fixing the features that actually drive the final prediction, rather than wasting computational "budget" on features the model ignores.
Experimental Results
The authors evaluated SSA across a diverse range of regression tasks, including digit recognition repurposed as regression (SVHN-MNIST), age prediction from faces (UTKFace), head pose estimation (Biwi Kinect), and tabular housing price prediction (California Housing).
SSA consistently outperformed both the non-adapted "Source" models and TTA methods originally designed for classification:
- Accuracy Gains: On the SVHN-to-MNIST task, SSA improved the $R^2$ score from 0.406 to 0.511, while naive alignment methods often diverged or failed entirely.
- Robustness to Corruption: On the UTKFace dataset subjected to heavy image noise, SSA maintained a high $R^2$ (mean 0.731) compared to the source model, whose performance plummeted to a negative score (meaning it performed worse than predicting the mean).
- Stability: Unlike other feature-alignment methods, SSA remained numerically stable even on tabular data (California Housing), where it achieved the best $R^2$ of 0.639. Furthermore, as shown in the error charts, SSA maintains the lowest mean reconstruction error across varying numbers of subspace bases compared to baseline adaptation methods.
Limitations and Future Work
The primary limitation acknowledged by the authors is that SSA assumes covariate shift—meaning the underlying relationship between features and the target value ($p(y|x)$) remains constant, even if the input distribution ($p(x)$) changes. It is not yet designed to handle concept drift, where the fundamental "rules" of the task change (e.g., if housing prices suddenly decouple from square footage due to a market crash). Future work could extend SSA to handle these broader types of distribution shifts and explore its application in multi-task regression settings.
Summary updated