Immuno-VLM: Immunizing Large Vision-Language Models via Generative Semantic Antibodies for Open-World Trustworthiness

Xiang Fang, Wanlong Fang, Wei Ji

Large Vision-Language Models (LVLMs) like CLIP have achieved unprecedented success in zero-shot recognition by aligning visual features with broad semantic concepts. However, this semantic abstraction creates a critical vulnerability in open-world deployment: the "Hubris of Semantics." When faced with unknown anomalies, these models often force-fit them into known categories with high confidence due to a lack of explicit negative knowledge.

To address this, researchers have introduced Immuno-VLM, a bio-inspired framework that adapts the biological principle of Immunological Negative Selection to high-dimensional latent spaces. By leveraging Large Language Models (LLMs) to actively hallucinate "Semantic Antibodies," Immuno-VLM creates a rigorous boundary around known categories, achieving state-of-the-art performance in open-world trustworthiness.

The Open-World Trustworthiness Paradox

Because LVLMs are trained to maximize the similarity between images and text in a dense semantic space, they inherently lack "negative knowledge." If a standard VLM encounters an object it hasn't been trained on—such as a robotic dog—it rarely outputs "I don't know." Instead, it maps the anomaly to the nearest known category (e.g., "Golden Retriever") with near-certainty.

This phenomenon creates the Open-World Trustworthiness Paradox: the very semantic abstraction that makes these models incredibly flexible also makes them perilously fragile in safety-critical deployments like autonomous driving or medical diagnostics. Traditional Out-of-Distribution (OOD) detection methods fail here because the "open space" in high-dimensional latent vectors (often 512D or higher) is simply too vast to bound using simple statistical tricks or random noise.

Immuno-VLM: A Bio-Inspired Defense Mechanism

To solve this, the authors look to the biological immune system, specifically the process of Thymic Negative Selection. In the human body, the thymus generates random T-cells and destroys those that react to "Self," leaving only those equipped to detect "Non-Self." Immuno-VLM translates this biological process into a three-phase computational pipeline:

1. Antigen Profiling

To define "Self," the framework uses Text-Regularized Von Mises-Fisher (vMF) Estimation. This mathematical approach reconciles the gap between visual features and text embeddings, creating a stable, well-defined "prototype" for each known class on the hypersphere.

2. Semantic Antibody Generation

Instead of generating random noise—which is mathematically ineffective in high dimensions—the researchers use an LLM (such as GPT-4) as a "Computational Thymus." The LLM "hallucinates" two types of textual antibodies:

  • Hard Semantic Negatives: Look-alikes and near-misses (e.g., generating "wolf" or "husky" for the class "dog").
  • Contextual Anomalies: Impossible or surreal scenarios (e.g., "dog made of clouds" or "dog melting in lava").

3. Vaccination

A lightweight Rejection Adapter is trained using a Push-Pull Loss. This loss function "pulls" visual features toward their correct class prototypes while simultaneously "pushing" them away from the generated semantic antibodies. This carves out a "sterile moat" around known concepts.

During inference, the model utilizes a Differential Immunity Score (DIS), which measures the competition between "Self-Affinity" and "Non-Self-Reactivity." This is combined with Extreme Value Theory (EVT) to establish adaptive, per-class thresholding.

Key Insights and Innovations

  • Breaking the Curse of Dimensionality: The paper provides a mathematical proof (Theorem 3.5) demonstrating that random negative sampling is doomed in high-dimensional spaces because almost all random vectors are orthogonal to the data. By sampling the semantic manifold via LLM text generation, Immuno-VLM targets the specific regions that actually matter for decision boundaries.
  • LLMs as Negative Generators: While most research utilizes LLMs to explain what things are, this paper flips the paradigm by using them to imagine what things are not. The "imagination" of the language generator directly bounds the safety of the vision system.
  • Modality Gap Correction: Through Geodesic Antigen Alignment, the authors acknowledge and correct the misalignment between visual and textual centroids in CLIP, providing a Riemannian optimization strategy to fix it.

Experimental Results

Evaluated on ImageNet-1K (In-Distribution) and four challenging OOD benchmarks (ImageNet-O, iNaturalist, Texture, and OpenOOD), Immuno-VLM established a new state-of-the-art:

  • Massive OOD Gains: On the adversarial ImageNet-O dataset, Immuno-VLM achieved an 83.4% AUROC, a significant leap from the 70.1% achieved by standard Energy Scores.
  • Enhanced Safety: The False Positive Rate (FPR95) on ImageNet-O dropped to 28.5%, effectively halving the risk of deployment failure compared to standard baselines (61.3%).
  • No "Catastrophic Forgetting": Unlike many OOD methods that degrade original accuracy, Immuno-VLM actually improved In-Distribution accuracy on ImageNet-1K (from 78.2% to 78.5%). The "vaccination" process forces the model to learn tighter, more discriminative clusters.
  • High Efficiency: The Rejection Adapter is remarkably lightweight (0.5M parameters) and adds less than 0.5% latency overhead, making it highly viable for real-time applications.

Limitations and Future Directions

While highly effective, Immuno-VLM's "immune repertoire" is inherently dependent on the underlying LLM's ability to generate diverse and relevant "near-OOD" descriptions. Furthermore, the authors note a risk of Manifold Collapse: if the "repulsion" force (the margin) is set too high, the model may distort semantic meanings to satisfy the boundary constraints.

Looking forward, the authors suggest extending this immunological framework to video-language models. They also propose exploring "active" antibodies that could be updated online, allowing the model's immune system to adapt dynamically as it encounters novel real-world anomalies.

Summary updated

BibTeX
@inproceedings{fang2026immuno,
  author = {Xiang Fang and Wanlong Fang and Wei Ji},
  title = {{Immuno-VLM: Immunizing Large Vision-Language Models via Generative Semantic Antibodies for Open-World Trustworthiness}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ZeZi4SerW0},
}
Figure