Text as Partial Constraint: Core–Residual Alignment for Robust Vision–Language Learning

Chengzhen Yu, SiYuan Ma, Yang Liu, Canran XiaoNeurIPS 2026

TL;DR

When humans caption an image, we leave most of the scene unsaid—yet standard vision–language models like CLIP treat every single caption as a complete, ground-truth specification of the image. Text as Partial Constraint (TPC) fixes this mismatch by aligning images only to the shared semantic core across multiple captions while actively ignoring view-specific "unsaid" details. The result is a drop-in vision encoder that is dramatically more robust to paraphrases and adversarial attacks, calibrated in its confidence, and far less prone to hallucinations when plugged into large vision–language models (LVLMs).

What Problem Does This Paper Address?

Picture a golden retriever chasing a tennis ball in a park. One person captions it "A dog running in the park." Another writes "A golden retriever on a sunny day with a ball." Both are right, and both are incomplete.

Modern vision–language models (VLMs)—the dual-encoder backbones behind open-vocabulary recognition, cross-modal search, and multimodal assistants like LLaVA—learn by pulling paired image and text embeddings together. The catch? Standard contrastive training treats each individual caption as a complete target. Because captions omit details and phrase things differently, the image embedding gets yanked toward idiosyncratic, view-specific details.

Figure 1: TPC extracts the semantic core, sup- presses residual commitment, and produces cali- brated, robust vision–language alignment.

In a preliminary diagnostic study on frozen CLIP embeddings, the authors show why this hurts: when an image's captions disagree with each other, retrieval rankings swing wildly depending on which valid phrasing you use. Worse, when an image embedding accidentally aligns with those leftover, caption-specific details—what the authors call residual leakage—the model makes high-confidence errors and feeds downstream hallucinations in LVLMs.

Methods

Instead of treating a caption as the whole truth, Text as Partial Constraint (TPC) treats it as a partial constraint on what the image contains. During training, TPC uses $K$ different captions per image to separate shared meaning from idiosyncratic noise, while ensuring you only need one text query at test time.

Figure 3: Overview of TPC. TPC treats captions as partial constraints: it distills a multi-view consen- sus core, learns a single-view core predictor, decomposes each caption into core and unsaid residual components, and performs uncertainty-aware alignment that suppresses residual over-commitment.

Here is how the pieces fit together:

  1. Multi-View Consensus Core & Disagreement: Given $K$ normalized text embeddings for an image, TPC averages and re-normalizes them to find the consensus core ($c_i$)—the stable semantic intersection. It also measures how much the individual captions scatter around that core, yielding an instance-level uncertainty score ($u_i$).
  2. Single-View Core Filter (New for Inference): You don't have five captions when a user types a search query at deployment. So TPC trains a lightweight linear layer ($\psi_\theta$) to predict that multi-view consensus core from a single text embedding, supervised via a squared agreement loss.
  3. Suppressing the "Unsaid" Residual: Once the filter predicts the core direction from a caption, anything perpendicular (orthogonal) to it in embedding space is the unsaid residual—view-specific phrasing or detail. A non-commitment regularizer explicitly penalizes the dot product between the image embedding and this residual, preventing over-commitment.
  4. Uncertainty-Aware Contrastive Alignment: Standard InfoNCE contrastive loss aligns images to consensus cores, but with a twist: the softmax temperature scales dynamically with caption disagreement ($\tau_i = \tau_0(1 + \gamma u_i)$). When captions scatter widely (weak language constraint), the loss softens its updates; when captions tightly agree, alignment sharpens. At test time, single-query residual energy similarly calibrates prediction confidence.

Datasets

TPC is evaluated across existing, standard benchmarks (no new datasets are introduced, though a Web-SingleCap split is briefly noted in mechanistic plots; full pretraining/fine-tuning dataset recipes are deferred to Appendix B.4, which is outside the main text):

  • Multi-Caption Retrieval & Sensitivity: MS-COCO and Flickr30K.
  • Zero-Shot Recognition & Adversarial Robustness (Avg-14): ImageNet-1K plus 13 transfer benchmarks spanning natural, fine-grained, texture, remote sensing, medical, and sketch/rendition shifts.
  • LVLM Hallucination & VQA: POPE (Random, Popular, Adversarial splits) for object hallucination, alongside GQA, ScienceQA, VizWiz, and OK-VQA.

Key Insights and Ideas

  • Standard fine-tuning makes over-commitment worse: Measuring alignment between image embeddings and orthogonal caption residuals shows that standard CLIP fine-tuning actually increases residual leakage (from ~0.049 to ~0.071), whereas TPC pushes it down (~0.040).
  • Robustness has a clean geometric link to residuals: Using Distributional Robust Optimization (DRO) theory, the authors prove that worst-case similarity under caption variation depends directly on maximizing core alignment while shrinking projection onto the residual subspace.
  • Better vision encoders fix LVLM hallucinations at the root: Many hallucination fixes happen at decoding time or in the projector. Swapping in TPC's vision encoder outperforms both decoding tricks and adversarial vision encoders—showing that curbing over-commitment in the base embedding space gives LLMs a cleaner perceptual foundation.
  • Residual energy knows what the query left unsaid: At inference time, the gap between a raw query embedding and its predicted core acts as a reliable abstention signal, letting systems flag underspecified queries before making confident mistakes.

Key Results

  • Zero-Shot & Adversarial Robustness: Under AutoAttack ($\epsilon_{\text{adv}} = 2/255$), TPC achieves 81.42% clean / 64.05% robust Top-1 accuracy on ImageNet (vs. 74.90% / 0.00% for standard CLIP, and beating the strongest robust baseline Adv-W2S by +5.58% / +5.75%). Across the 14-dataset suite (Avg-14), TPC hits 76.19% clean / 52.03% robust (+7.44% / +3.65% over Adv-W2S).
  • LVLM Transfer (LLaVA-1.5-7B): As a drop-in vision encoder, TPC reaches 85.16 average POPE F1 (reducing object hallucination over regular LLaVA's 79.10 and Adv-W2S's 83.80) and 59.57% on OK-VQA (+6.17% over regular LLaVA, and surpassing LVLM-side Patch-Aligned Training at 58.3%).
  • Calibration: In selective risk–coverage tests, TPC lowers the Area Under the Risk-Coverage Curve (AURC) from CLIP's 0.177 down to 0.154, with robustness gains saturating neatly around $K \approx 4\text{--}5$ caption views.

Limitations and Future Work

While the main text does not feature a standalone limitations section, an apparent practical constraint is TPC's reliance on multi-view captions ($K \approx 4\text{--}5$) during training, whereas raw web-scraped datasets typically only provide a single noisy caption per image. Acknowledging this direction, the authors note that future work will focus on scaling view acquisition automatically via caption generation or retrieval, as well as extending partial-constraint alignment to multimodal prompting and selective, safety-aware deployment.

Summary updated

Abstract

Vision--language alignment powers open-vocabulary recognition, retrieval, and LVLM grounding, yet natural captions are often underspecified, making similarity brittle and overly confident under paraphrase and omitted details. We aim to learn representations whose matching is stable across caption views and whose confidence reflects how strongly text constrains an image. We propose Text as Partial Constraint (TPC), a core--residual alignment framework that treats multi-view captions as incomplete supervision: it distills a consensus semantic core as the alignment target, learns a single-view core predictor for standard inference with one query, and explicitly discourages vision--language similarity from depending on the orthogonal ``unsaid'' residual. An uncertainty-aware contrastive objective further softens alignment when caption views disagree, reducing overconfident updates under weak language constraints. Across zero-shot recognition and adversarial robustness, TPC achieves 81.42/64.05 Top-1 clean/robust accuracy on ImageNet and 76.19/52.03 on an Avg-14 transfer suite, while improving LVLM transfer with 85.16 POPE F1 and 59.57 OKVQA accuracy under an LLaVA-1.5-7B stack. These results suggest that modeling text as a partial constraint is a practical and principled route to more reliable vision--language representations under underspecified language supervision.
BibTeX
@inproceedings{yu2026text,
  author = {Chengzhen Yu and SiYuan Ma and Yang Liu and Canran Xiao},
  title = {{Text as Partial Constraint: Core–Residual Alignment for Robust Vision–Language Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xc5RAI0YCe},
}
Figure