Abstract
Multimodal Large Language Models (MLLMs) are increasingly integrated into complex workflows, yet they remain vulnerable to cross-modal safety threats where harmful content is triggered by specific combinations of text and imagery. Traditional safety interventions, such as supervised fine-tuning, are computationally expensive and often degrade the model's general utility. We present AutoSteer, a modular, inference-time framework designed to automatically identify and block harmful outputs without retraining. By utilizing a novel Safe Awareness Score (SAS) to pinpoint safety-critical internal layers and employing an adaptive "steering" mechanism, AutoSteer significantly reduces safety risks while preserving the model's core reasoning capabilities. Our evaluation on state-of-the-art models like LLaVA-OV shows a reduction in Attack Success Rate (ASR) from 60.0% to 4.2%.
1. Introduction
As Multimodal Large Language Models (MLLMs) evolve to process increasingly sophisticated visual and textual inputs, the surface area for potential misuse expands. Standard safety protocols often struggle with "cross-modal" jailbreaks—scenarios where a model might refuse a toxic text prompt but succumb to harmful instructions embedded within an image.
Current mitigation strategies generally fall into two categories: expensive fine-tuning, which risks "catastrophic forgetting" of general knowledge, or external content filters, which act as blunt instruments that often block benign content. There is a critical need for a safety mechanism that is both adaptive—intervening only when a genuine threat is detected—and interpretable, operating on the model's internal logic rather than treating it as an opaque black box. AutoSteer addresses these needs by acting as an intelligent, internal "safety brake."
2. The AutoSteer Framework
AutoSteer is a three-part system designed to monitor and manipulate the latent space of an MLLM during the inference process.
2.1 Safe Awareness Score (SAS)
Not all layers in a deep neural network contribute equally to safety. AutoSteer introduces the Safe Awareness Score (SAS), a metric used to automatically identify the specific internal layers that most consistently distinguish between safe and toxic concepts. By performing contrastive activation analysis, SAS identifies the "sweet spot" in the model’s architecture where the internal representation of safety is most distinct, allowing for highly targeted interventions.
2.2 Safety Prober
Once the optimal layer is identified via SAS, a lightweight Multi-Layer Perceptron (MLP) known as the Safety Prober is trained to monitor activations at that layer. During inference, the prober analyzes the model's internal state in real-time to estimate the probability that the current input-output sequence will result in a safety violation.
2.3 Refusal Head and Latent Space Manipulation
If the Safety Prober detects a risk exceeding a predefined threshold, it triggers the Refusal Head. This module employs Latent Space Manipulation to "steer" the model’s output embeddings. Rather than allowing the model to proceed with a harmful generation, the Refusal Head shifts the internal mathematical representation to force a standardized refusal (e.g., "I am sorry, but I cannot assist with that request"). This process requires zero fine-tuning of the underlying MLLM parameters.
3. Experimental Setup
3.1 Datasets and Benchmarks
The researchers evaluated AutoSteer using a diverse suite of benchmarks:
- VLSafe: A dataset of 3,000 entries used for training the refusal head and prober.
- ToViLaG+: A modified version of the Toxic Visual-Language Generation benchmark, specifically designed to test underrepresented scenarios like toxic images paired with neutral text.
- MMMU & RealWorldQA: These benchmarks were used to assess "General Capability," ensuring that safety interventions did not degrade the model's performance on non-safety-related reasoning tasks.
- VLSafe Examine: A subset of 500 entries used for rigorous final safety evaluation.
3.2 Models
The framework was tested on two state-of-the-art MLLMs: LLaVA-OV and Chameleon.
4. Key Insights and Results
4.1 Safety Effectiveness
AutoSteer demonstrated a dramatic reduction in safety risks. On the VLSafe benchmark, the Attack Success Rate (ASR) for LLaVA-OV dropped from 60.0% to 4.2%. The system proved robust against textual, visual, and combined cross-modal threats, consistently outperforming baseline steering techniques that lack adaptive triggering.
4.2 Utility Preservation
A common drawback of safety steering is "topic drift," where a model's performance on benign queries suffers because the safety mechanism is always active. Because AutoSteer uses an adaptive trigger, it only intervenes when necessary. On the RealWorldQA benchmark, the model maintained an accuracy of 61.8%, matching the performance of the original, un-steered model.
4.3 Cross-Modal Generalization
One of the most significant findings was that a prober trained primarily on text-based toxicity could often generalize to detect toxic images. This suggests that at certain intermediate depths, MLLMs develop "modality-agnostic" internal representations of safety violations, allowing a single safety mechanism to cover multiple input types.
5. Discussion and Limitations
While AutoSteer represents a significant advancement in MLLM safety, several challenges remain:
- Non-Monotonic Control: Increasing the steering intensity (denoted as $\epsilon$) does not always result in a safer model. Excessive intensity can corrupt the model's output or lead to "struggling" behavior, where the model attempts to refuse but inadvertently describes the harmful content.
- Data Dependency: The effectiveness of the Safety Prober is inherently tied to the diversity of its training data. It may still be vulnerable to highly novel or "out-of-distribution" adversarial attacks.
- Model Calibration: The relationship between internal activations and safety varies between architectures, meaning each model (e.g., LLaVA vs. Chameleon) requires specific calibration to find the optimal SAS layers.
6. Conclusion
AutoSteer provides a scalable, interpretable, and efficient method for securing MLLMs at inference time. By focusing on internal latent representations rather than external filters or expensive retraining, it offers a path toward safer AI that does not sacrifice intelligence for security. Future work will focus on extending this framework to multi-turn conversations and enhancing robustness against evolving jailbreak strategies.
Summary updated