NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Subspace Alignment for Vision-Language Model Test-time Adaptation

Zhichen Zeng, Wenxuan Bao, Xiao Lin, Ruizhong Qiu, Tianxin Wei, Xuying Ning, Yuchen Yan, Chen Luo, Monica Xiao Cheng, Jingrui He, Hanghang Tong · DOI

Abstract

Vision-language models (VLMs), despite their extraordinary zero-shot capabilities, are vulnerable to distribution shifts. Test-time adaptation (TTA) emerges as a predominant strategy to adapt VLMs to unlabeled test data on the fly. However, existing TTA methods heavily rely on zero-shot predictions as pseudo-labels for self-training, which can be unreliable under distribution shifts and misguide adaptation due to two fundamental limitations. First (Modality Gap), distribution shifts induce gaps between visual and textual modalities, making cross-modal relations inaccurate. Second (Visual Nuisance), visual embeddings encode rich but task-irrelevant noise that often overwhelms task-specific semantics under distribution shifts. To address these limitations, we propose SubTTA, which aligns the semantic subspaces of both modalities to enhance zero-shot predictions to better guide the TTA process. To bridge the modality gap, SubTTA extracts the principal subspaces of both modalities and aligns the visual manifold to the textual semantic anchor by minimizing their chordal distance. To eliminate visual nuisance, SubTTA projects the aligned visual features onto the task-specific textual subspace, which filters out task-irrelevant noise by constraining visual embeddings within the valid semantic span, and standard TTA is further performed on the purified space to refine the decision boundaries. Extensive experiments on various benchmarks and VLM architectures demonstrate the effectiveness of SubTTA, yielding an average improvement of 2.24% over state-of-the-art TTA methods.

Introduction

Vision-Language Models (VLMs) like CLIP have revolutionized computer vision by enabling robust zero-shot classification through the alignment of visual and textual representations. By mapping images and text descriptions into a shared embedding space, these models can identify novel objects without explicit retraining. However, this impressive capability is often fragile. When faced with "distribution shifts"—unseen variations such as heavy fog, motion blur, or digital corruptions—the alignment between modalities breaks down, and performance drops significantly.

Test-Time Adaptation (TTA) has emerged as a promising solution, allowing models to adapt to unlabeled test data during inference. Most TTA strategies rely on self-training, where the model uses its own zero-shot predictions as "pseudo-labels" to update its parameters. However, if the initial predictions are inaccurate due to the shift, the model enters a cycle of "negative adaptation," essentially learning from its own mistakes.

The Core Challenges: Modality Gap and Visual Nuisance

The researchers identify two fundamental reasons why standard TTA fails for VLMs under distribution shifts:

  1. Modality Gap: Distribution shifts cause visual features to "drift" away from their corresponding textual anchors. In the embedding space, the cluster of image features no longer aligns geometrically with the cluster of text features, making similarity-based classification unreliable.
  2. Visual Nuisance: Image embeddings are inherently noisy, containing task-irrelevant information like background colors, lighting, or textures. Under distribution shift, this "nuisance" can become the dominant signal, overwhelming the task-specific semantic information (e.g., the features that distinguish a "dog" from a "bird").
Figure 1: Conceptual illustration of the Modality Gap and Visual Nuisance challenges in VLMs under distribution shift.

SubTTA: A Subspace Alignment Framework

To overcome these hurdles, the authors propose SubTTA, a framework that "purifies" the feature space before standard adaptation begins. Rather than aligning individual data points, SubTTA focuses on the subspaces occupied by the visual and textual modalities.

1. Geometric Alignment

SubTTA treats the textual and visual manifolds as subspaces. By performing eigendecomposition, it identifies the principal directions of each manifold. To bridge the modality gap, it minimizes the chordal distance between these subspaces. Unlike traditional alignment methods that might force a rigid one-to-one mapping between principal components, chordal distance provides a flexible "global" alignment. This allows the model to correct the overall drift of the visual manifold toward the stable textual "semantic anchor" provided by the class prompts.

2. Semantic Projection

To address visual nuisance, SubTTA employs a projection step. It projects the now-aligned visual features onto the task-specific textual subspace. Because the textual subspace is constructed solely from class-related prompts (e.g., "a photo of a dog"), it defines a "valid semantic span." Any visual information that does not fall within this span—such as background noise or corruption artifacts—is filtered out. This projection acts as a hard filter, ensuring that only task-relevant features remain.

3. Standard TTA Refinement

With the features purified and the modalities aligned, SubTTA then applies standard TTA techniques (such as entropy minimization or cluster-based refinement). Because the starting point is now a "clean" space with high-quality pseudo-labels, the adaptation process becomes significantly more stable and effective.

Figure 4: The SubTTA pipeline, showing the transition from raw space through geometric alignment and semantic projection to standard TTA.

Experimental Evaluation

The effectiveness of SubTTA was tested on three major robustness benchmarks: ImageNet-C, CIFAR-10-C, and CIFAR-100-C, focusing on the most severe corruption levels (Level 5). The researchers evaluated the method across multiple CLIP architectures, including ViT-B-16, ViT-B-32, and ViT-L-14.

Key Results

  • State-of-the-Art Performance: SubTTA achieved an average accuracy improvement of 2.24% over existing state-of-the-art TTA methods.
  • Robustness on ImageNet-C: On the challenging ImageNet-C dataset, SubTTA reached 32.15% accuracy, outperforming the next best method (BATCLIP) by 2.09%.
  • Stability Across Corruptions: Unlike many baseline methods that suffered from "negative adaptation" on specific types of noise, SubTTA consistently improved performance across all 15 corruption types.
  • Diagnostic Insights: The authors used "principal angles" between subspaces as a diagnostic tool, finding that correct predictions were strongly correlated with smaller angles, confirming that geometric alignment is a key driver of performance.

Conclusion and Future Work

SubTTA demonstrates that for Vision-Language Models, fixing the underlying structure of the feature space is often more critical than the specific learning objective used for adaptation. By leveraging the stability of the textual modality as a semantic anchor, SubTTA provides a robust way to handle distribution shifts.

While highly effective, the method currently relies on batch-level statistics and requires white-box access to model gradients. Future research could explore more efficient approximations for the eigendecomposition process and extend these subspace alignment principles to other multimodal domains, such as video or audio-visual models.

Summary updated

BibTeX
@misc{zeng2026subspace,
  author = {Zhichen Zeng and Wenxuan Bao and Xiao Lin and Ruizhong Qiu and Tianxin Wei and Xuying Ning and Yuchen Yan and Chen Luo and Monica Xiao Cheng and Jingrui He and Hanghang Tong},
  title = {{Subspace Alignment for Vision-Language Model Test-time Adaptation}},
  year = {2026},
  eprint = {2601.08139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.08139},
}
Figure