Abstract
Pre-trained vision-language models (VLMs), such as CLIP, have exhibited remarkable performance across various downstream tasks by aligning text and images in a unified embedding space. However, due to the imbalanced distribution of pre-trained datasets, CLIP suffers from the bias problem in real-world applications. Existing debiasing methods struggle to obtain sufficient image samples for minority groups and incur high costs for group labeling. To address the limitations, we propose a Text-Only Debiasing framework called TOD, leveraging a text-as-image training paradigm to mitigate visual biases. Specifically, this approach repurposes the text encoder to function as an image encoder, thereby eliminating the need for image data. Simultaneously, it utilizes a large language model (LLM) to generate a balanced text dataset, which is then used for prompt tuning. However, we observed that the model overfits to the text modality because label names, serving as supervision signals, appear explicitly in the texts. To address this issue, we further introduce a Multi-Target Prediction (MTP) task that motivates the model to focus on complex contexts and distinguish between target and biased information. Extensive experiments on the Waterbirds and CelebA datasets show that our method significantly improves group robustness, achieving state-of-the-art results among image-free methods and even competitive performance compared to image-supervised methods. Furthermore, the proposed method can be adapted to challenging scenarios with multiple or unknown bias attributes, demonstrating its strong generalization and robustness.
Introduction
Vision-Language Models (VLMs) like CLIP have revolutionized how we bridge the gap between pixels and prose. However, these models are notorious for inheriting "spurious correlations" from their training data—for example, consistently associating "waterbirds" with "water backgrounds." When a waterbird appears on land, the model often fails because it has learned to rely on the background rather than the object itself.
Traditionally, fixing this requires massive, carefully curated image datasets with manual "group labels" (e.g., "bird on land" vs. "bird on water"), which are expensive and difficult to collect. In this work, researchers propose TOD (Text-Only Debiasing), a framework that eliminates the need for image data by using Large Language Models (LLMs) to generate balanced text descriptions for training. By introducing a "Multi-Target Prediction" task, TOD prevents the model from overfitting to text, achieving state-of-the-art group robustness that rivals methods using actual images.
The Challenge of Group Robustness
The core issue is group robustness. Standard models perform well on average but fail on "minority groups" where common correlations don't hold (like a blonde man in a dataset where most blonde people are women). Existing solutions usually fall into two camps:
- Image-Supervised: Effective, but require thousands of manually labeled images for every possible bias.
- Image-Free: Cheaper, but historically much less accurate because they struggle to bridge the gap between abstract text concepts and messy visual data.
A specific hurdle in text-only training is modal overfitting. Because text descriptions often contain the class label explicitly (e.g., "a bird on the water"), the model learns to "cheat" by just looking for that word, failing to learn the deeper contextual features needed to recognize an actual image of a bird.
The TOD Framework
The TOD framework operates in two main stages, repurposing the text encoder as a "virtual" image encoder to bridge the gap between modalities.
1. Balanced Text Generation
Instead of hunting for rare images, TOD uses GPT-4 to generate short descriptions for target attributes (e.g., "landbird") and bias attributes (e.g., "waterscape") separately. These are then "composed" by simple concatenation (e.g., "A bright orange flame robin" + "on a sunlit mountain path"). This creates a perfectly balanced dataset where every target class appears with every bias attribute equally, essentially "Photoshoping" in the embedding space.
2. Multi-Target Prediction (MTP)
To solve the "cheating" problem, TOD forces the model to predict both the target class and the bias attribute simultaneously. This makes the training task harder and compels the model to distinguish between the foreground object and the background context. This added difficulty prevents the model from ignoring the "visual" context of the text, leading to better generalization when the model is finally shown real images.
3. Ranking Loss
Instead of standard cross-entropy, TOD uses a ranking loss to optimize learnable prompts. This helps the model better handle the distribution of cosine similarities in CLIP’s embedding space, steering the model's attention toward relevant features.
Experimental Results
TOD was evaluated on two classic bias benchmarks: Waterbirds (forest vs. water backgrounds) and CelebA (hair color and gender biases).
As shown in the table above, TOD sets a new high-water mark for image-free debiasing:
- Waterbirds: Achieved 87.8% Worst-Group Accuracy (WG), a massive jump from previous image-free methods (68.8%) and nearly matching top-tier image-supervised methods (88.2%).
- CelebA: Reached 85.3% WG, outperforming all other image-free competitors.
- Robustness Gap: TOD reduced the "Gap" (the difference between average and worst-group performance) to just 1.0% on Waterbirds, indicating the model is nearly as good at identifying birds in "wrong" environments as it is in "right" ones.
Generalization to Unknown Biases
TOD also demonstrates strong performance in challenging scenarios involving multiple or unknown bias attributes. Even when the specific bias is unknown during training and a random auxiliary attribute is used for prediction, TOD still significantly improves robustness over zero-shot CLIP. This suggests that the MTP task successfully encourages the model to learn more robust, context-aware representations regardless of the specific bias type.
Conclusion
TOD demonstrates that high-quality debiasing of vision-language models is possible without a single training image. By leveraging the generative power of LLMs and a multi-target training objective, TOD bridges the gap between text-only training and visual group robustness. Future work may expand this "text-as-image" paradigm beyond simple classification to more complex tasks like object detection or image-text retrieval.
Summary updated