Compositional by Design: Background-Invariant Representations via Linear Additivity in VLMs

Youssef Zaazou, Mark ThomasCompLearn @ ICML 2026

TL;DR

Researchers have discovered that Vision-Language Models (VLMs) like CLIP represent images as a simple linear sum of foreground and background components. By exploiting this "linear additivity," they developed Background-invariant Anchor Pre-training (BAP), a method that strips away background bias to achieve over 90% accuracy on challenging "worst-group" benchmarks—even when the training data is 100% biased.

What Problem Does This Paper Address?

Current VLMs are notorious for taking "statistical shortcuts." Instead of learning that a "waterbird" is a specific type of bird, a model might simply learn that "bird + water = waterbird." This leads to spurious correlations: if the model sees a landbird on water, it misclassifies it because it has "entangled" the object with its context.

This isn't just a problem for birdwatchers; it’s a major safety risk. In medical imaging, a model might learn to identify a disease based on the specific type of scanner used (the background) rather than the pathology itself. Most existing fixes require "minority group" data (e.g., examples of landbirds on water) to unlearn these biases, but in the real world, these rare examples are often unavailable.

Methods

The authors introduce a two-stage pre-training method called Background-invariant Anchor Pre-training (BAP). It relies on a surprising property of VLM embedding spaces: Linear Additivity. Essentially, the vector for a full scene is approximately the vector for the foreground plus the vector for the background ($z \approx v_{fg} + v_{bg}$).

  1. Phase 1: Anchor Extraction: Using a frozen "teacher" VLM, they take a single foreground object (like a specific bird) and digitally paste it onto dozens of random backgrounds. By averaging the resulting embeddings, the random background noise cancels itself out (thanks to the Law of Large Numbers), leaving a "clean" anchor vector that represents only the foreground object.
  2. Phase 2: Robust Alignment: They train a "student" model to map any image containing that object—regardless of the background—directly to that clean anchor vector. This creates a representational bottleneck that forces the model to ignore the background entirely.

What makes this novel is that it is unsupervised regarding the background and relies entirely on synthetic compositions, meaning it doesn't need a perfectly curated real-world dataset to work.

Datasets

The study utilizes a mix of synthetic and real-world datasets:

  • Waterbirds: The standard benchmark for background bias (birds on land vs. water).
  • MS-COCO: Used to create a custom Gender Classification dataset (men in construction sites vs. women in kitchens) to test for demographic bias.
  • Places365: Provided the diverse backgrounds for synthetic training.
  • CUB-200-2011: Provided the foreground bird species.
  • CounterAnimal & NICO++: Real-world datasets used to test "sim-to-real" transfer, featuring animals and vehicles in atypical environments (e.g., a car on grass).

Key Insights and Ideas

  • VLMs as "Bags of Features": The paper confirms that VLMs behave more like "bag-of-words" models than complex contextual transformers. They see a scene as a collection of independent parts rather than a holistic unit.
  • Linear Additivity is a Tool: While this linear nature usually causes the bias, BAP turns it into a solution. If the bias is additive, it can be mathematically "averaged out."
  • Super-class Robustness: BAP doesn't just work for the specific objects it was trained on. Training it on a few types of vehicles makes the model robust for all vehicles (e.g., learning "car" helps it classify "truck" correctly), suggesting it modifies the model's fundamental inductive bias.
  • The Many-to-One Bottleneck: By forcing many different "object + background" combinations to map to one "object-only" vector, the model is effectively "blinded" to the background.

Key Results

  • State-of-the-Art Performance: On the Waterbirds benchmark with 100% spurious correlation (zero minority examples in training), BAP achieved over 90% Worst-Group Accuracy (WGA). For context, standard models often drop to 20-30% accuracy in these settings.
  • Sim-to-Real Transfer: Even though BAP is trained on "cut-and-paste" synthetic images, the robustness transfers perfectly to natural, unedited photos in the CounterAnimal and NICO++ datasets.
  • High Practicality: The method is surprisingly "frugal." It achieves near-peak robustness using as few as 50 segmented foreground items and is resilient to messy, coarse segmentation masks like simple bounding boxes.

Limitations and Future Work

  • Scene Recognition Collapse: Because BAP explicitly teaches the model to ignore backgrounds, the resulting model becomes terrible at scene recognition. You can't use a BAP-trained model to tell the difference between a "forest" and a "beach" if there isn't a specific object to focus on.
  • Spatially Separable Bias Only: BAP works because backgrounds are physically separate from objects. It would likely fail on biases that are part of the object itself (like a specific color or texture on a person's face).
  • Fine-tuning Constraints: The authors found that if you fine-tune the model after BAP on a biased dataset, it quickly "re-learns" the bad habits. They recommend using the BAP model as a fixed feature extractor to preserve its robustness.

Summary updated

BibTeX
@inproceedings{zaazou2026compositional,
  author = {Youssef Zaazou and Mark Thomas},
  title = {{Compositional by Design: Background-Invariant Representations via Linear Additivity in VLMs}},
  booktitle = {CompLearn @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=BG8YVqIjiP},
}
Figure