Abstract
Standard deep learning models for image classification operate as "black boxes," utilizing abstract numerical features that lack human interpretability. This research introduces a novel vision-language architecture that replaces these uninterpretable features with a "language bottleneck." By forcing the model to describe an image in natural language before arriving at a classification, the system provides a transparent window into its decision-making process. Experimental results on ImageNet demonstrate that this approach achieves competitive accuracy while maintaining human-readable intermediate representations.
Introduction
In contemporary computer vision, models typically identify objects by extracting thousands of high-dimensional numerical vectors. While highly effective, these features are unintelligible to humans. In contrast, human reasoning is inherently linguistic; we identify a "dog" by noting specific attributes like fur, four legs, and a wagging tail. This paper explores the feasibility of bridging the gap between high-performance computer vision and natural language interpretability by implanting a language bottleneck into the classification pipeline.
Methodology
The proposed system is built upon the BLIP (Bootstrapping Language-Image Pre-training) framework. The architecture transitions from visual input to a categorical label through three distinct stages:
- Visual Feature Extractor: A visual transformer (ViT) processes the input image into a set of embedding vectors.
- The Language Bottleneck: Instead of passing visual embeddings directly to a classifier, they are fed into a language model decoder. To maintain differentiability for end-to-end training via backpropagation, the authors utilize "soft prompts" and a matrix-multiplication approach with word embeddings, rather than discrete token sampling.
- The Classifier: A linear layer takes the pooled word embeddings from the bottleneck and predicts the final ImageNet category.
Enhancing Readability and Diversity
To ensure the bottleneck produces useful and coherent text, three specific technical constraints were introduced:
- Token Similarity Loss: This penalty prevents the model from repeating the same word excessively, encouraging a more diverse descriptive vocabulary.
- LLM Loss: By utilizing a pre-trained language model, this loss encourages the bottleneck to generate grammatically likely sequences, improving human readability.
- No-Repetition Sampling: During the inference phase, this technique prevents the model from entering repetitive loops, ensuring clearer output.
Experimental Setup and Datasets
The model's performance and robustness were evaluated using two primary benchmarks:
- ImageNet: The standard large-scale dataset for object recognition.
- ImageNet-C: A variant containing common image corruptions (e.g., Gaussian noise, blur, and shot noise) designed to test the model's stability under adverse conditions.
Key Results
The research demonstrates that language can serve as a functional intermediate representation for complex reasoning tasks without a catastrophic loss in performance.
- Classification Accuracy: The proposed method achieved a top-1 accuracy of 68.9% on ImageNet when utilizing the token similarity loss. This is a significant improvement over a baseline that used standard BLIP-generated captions, which only reached 42.8% accuracy. This suggests that the model learns to prioritize descriptive words that are specifically salient for classification.
- Robustness: The language bottleneck provided stable performance across various image corruptions in the ImageNet-C suite, outperforming traditional baselines in maintaining accuracy despite input noise.
- Supervision Efficiency: Notably, the model learns to generate these descriptive keywords using only class labels as supervision, eliminating the need for expensive, human-annotated captions for every training image.
Discussion: The Interpretability-Accuracy Trade-off
A central finding of this work is the tension between machine optimality and human interpretability. Without specific constraints like the LLM loss, the model often generates repetitive or "gibberish" strings that, while highly effective for the final linear classifier, are useless to a human observer. Even with readability constraints, the output often resembles a collection of descriptive keywords rather than fluid, narrative sentences. This highlights a fundamental challenge: what a machine finds most "informative" for a task does not always align with natural human language.
Limitations and Future Work
While promising, the current approach is primarily tested on ImageNet, which focuses on single-object classification. Extending this bottleneck to complex scenes with multiple interacting objects remains a significant challenge. Future research directions include refining the saliency of the generated words and utilizing the language bottleneck to investigate "out-of-distribution" samples—observing how the model attempts to describe objects or concepts it has never encountered during training.
Summary updated