Skip to content

ICLR papers

Search ICLR papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICLR analysis

Search results

1,821–1,840 of 1,912

  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Prototype-Based Selective Prediction for Multimodal Instruction Models

    Eduardo Soares, Emilio Vital Brazil, Plamen Angelov, Victor Shirasuna, Renato Cerqueira

    Abstract

    Selective prediction is critical for instruction-tuned multimodal models, yet common confidence heuristics often fail under heterogeneous inputs and offer limited interpretability. We show that prototype-based selective prediction provides a lightweight and transparent reliability mechanism, enabling principled abstention via distance- and margin-based confidence without retraining foundation models, and consistently outperforming maximum softmax probability and embedding-based baselines on CLINC150 and MedVQA. On MedVQA, well-separated prototype geometry and nearest-prototype explanations reveal clinically meaningful semantic ambiguity, supporting reliable and interpretable abstention decisions.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Prototype-Based Selective Prediction for Multimodal Instruction Models

    Eduardo Soares, Emilio Vital Brazil, Plamen Angelov, Victor Shirasuna, Renato Cerqueira

    Abstract

    Selective prediction is critical for instruction-tuned multimodal models, yet common confidence heuristics often fail under heterogeneous inputs and offer limited interpretability. We show that prototype-based selective prediction provides a lightweight and transparent reliability mechanism, enabling principled abstention via distance- and margin-based confidence without retraining foundation models, and consistently outperforming maximum softmax probability and embedding-based baselines on CLINC150 and MedVQA. On MedVQA, well-separated prototype geometry and nearest-prototype explanations reveal clinically meaningful semantic ambiguity, supporting reliable and interpretable abstention decisions.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models

    Ziyuan Chen, Yujin Jeong, Tobias Braun, Anna Rohrbach

    Abstract

    As text-to-image diffusion models become increasingly deployed in real-world applications, concerns about backdoor attacks have gained significant attention. Prior work on text-based backdoor attacks has largely focused on diffusion models conditioned on a single lightweight text encoder. However, more recent diffusion models that incorporate multiple large-scale text encoders remain underexplored in this context. Given the substantially increased number of trainable parameters introduced by multiple text encoders, an important question is whether backdoor attacks can remain both efficient and effective in such settings. In this work, we study Stable Diffusion 3, which uses three distinct text encoders and has not yet been systematically analyzed for text-encoder-based backdoor vulnerabilities. To understand the role of text encoders in backdoor attacks, we define four categories of attack targets and identify the minimal sets of encoders required to achieve effective performance for each attack objective. Based on this, we further propose Multi-Encoder Lightweight aTtacks (MELT), which trains only low-rank adapters while keeping the pretrained text encoder weight frozen. We demonstrate that tuning fewer than 0.2% of the total encoder parameters is sufficient for successful backdoor attacks on Stable Diffusion 3, revealing previously underexplored vulnerabilities in practical attack scenarios in multi-encoder settings.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Visual Disentangled Diffusion Autoencoders: Scalable Counterfactual Generation for Foundation Models

    Sidney Bender, Marco Morik

    Abstract

    Foundation models, despite their robust zero-shot capabilities, remain vulnerable to spurious correlations and ``Clever Hans'' strategies. Existing mitigation methods often rely on unavailable group labels or computationally expensive gradient-based adversarial optimization. To address these limitations, we propose Visual Disentangled Diffusion Autoencoders (DiDAE), a novel framework integrating frozen foundation models with disentangled dictionary learning for efficient, gradient-free counterfactual generation directly for the foundation model. DiDAE first edits foundation model embeddings in interpretable disentangled directions of the disentangled dictionary and then decodes them via a diffusion autoencoder. This allows the generation of multiple diverse, disentangled counterfactuals for each factual, much faster than existing baselines, which generate single entangled counterfactuals. When paired with Counterfactual Knowledge Distillation, DiDAE–CFKD achieves state-of-the-art performance in mitigating shortcut learning, improving downstream performance on unbalanced datasets.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Post-hoc Stochastic Concept Bottleneck Models

    Wiktor Hoffmann, Sonia Laguna, Moritz Vandenhirtz, Emanuele Palumbo, Julia E Vogt

    Abstract

    Concept Bottleneck Models (CBMs) are interpretable models that predict the target variable through high-level human-understandable concepts, allowing users to intervene on mispredicted concepts to adjust the final output. While recent work has shown that modeling dependencies between concepts can improve CBM performance, especially under interventions, such approaches typically require retraining the entire model, which may be infeasible when access to the original data or compute is limited. In this paper, we introduce Post-hoc Stochastic Concept Bottleneck Models (PSCBMs), a lightweight method that augments any pre-trained CBM with a multivariate normal distribution over concepts by adding only a small covariance-prediction module, without retraining the backbone model. We propose two training strategies and show on real-world data that PSCBMs consistently match or improve both concept and target accuracy over standard CBMs at test time. Furthermore, we show that due to the modeling of concept dependencies, PSCBMs perform much better than CBMs under interventions, while remaining far more efficient than retraining a similar stochastic model from scratch.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Watermarking Discrete Diffusion Language Models

    Avi Bagchi, Akhil Bhimaraju, Moulik Choraria, Daniel Alabi, Lav R Varshney

    Abstract

    Watermarking has emerged as a promising technique to track AI-generated content and differentiate it from authentic human creations. While prior work extensively studies watermarking for autoregressive large language models (LLMs) and image diffusion models, it remains comparatively underexplored for discrete diffusion language models (DDLMs), which are becoming popular due to their high inference throughput. In this paper, we introduce one of the first watermarking methods for DDLMs. Our approach applies the Gumbel-max sampling trick at every diffusion step and seeds the randomness by sequence position to enable reliable detection. We empirically demonstrate reliable detectability on LLaDA, a state-of-the-art DDLM. We also analytically prove that the watermark preserves the marginal token distribution at each diffusion step, with a false detection probability that decays exponentially in the sequence length. A key practical advantage is that our method realizes desired watermarking properties with no expensive hyperparameter tuning, making it straightforward to deploy and scale across models and benchmarks.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    SafeGuide: Adaptive Inference-Time Safety Control for Diffusion Models

    Tong Zhou, Juyang Bai, Xiaolin Xu, Shaolei Ren

    Abstract

    Ensuring safety in text-to-image diffusion models is a prerequisite for their responsible deployment, yet current inference-time interventions rely on static guidance schedules that apply fixed correction strengths across all inputs. We demonstrate that this approach is systematically limited because it assumes semantic risk is stationary. In practice, unsafe semantics emerge in highly non-uniform, prompt-dependent, and phase-specific patterns along the diffusion trajectory. Consequently, static methods inevitably face a dilemma: they either overshoot on benign prompts, degrading image fidelity through unnecessary intervention, or undershoot on malicious prompts, failing to suppress unsafe content. To address this, we introduce SafeGuide, an adaptive control framework that learns to adjust safety guidance dynamically based on prompt semantics and the generation phase. SafeGuide parameterizes the safety intervention as a bell-shaped guidance schedule, using risk-aware reinforcement learning to optimize a policy network that decides the timing and strength of the intervention. Experiments show that SafeGuide effectively decouples safety from quality, outperforming existing inference guidance-based safety methods. This work establishes adaptive safety control as a principled alternative to static guidance, showing that diffusion models can achieve robust safety guarantees without sacrificing generation quality.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Representational de-collapse: Interactions between supervised finetuning and in-context learning in language models

    Abrar Elidrisi, Andrew Saxe, Jin Hwa Lee, Basile Confavreux

    Abstract

    Supervised fine-tuning (SFT) is a widely-used method for safety alignment of Language Models (LLMs), ensuring models learn to refuse answering potentially harmful queries or correcting unethical biases. Yet, it has been shown that SFT is brittle and often easily circumvented. One particular susceptibility comes from in-context learning (ICL): models learn from in-context demonstrations to overwrite previously acquired safety guardrails. In this work, we introduce a simple task enabling us to precisely control and study the progressive overwriting of knowledge acquired from SFT via ICL. We demonstrate that our task shows ICL overwriting of SFT and analyze its dynamics throughout the context. Next, we show that the overwriting behavior scales with model size. Finally, we analyze the hidden representation during the overwriting of SFT by ICL. In line with previous work, we find that SFT collapses representations along task labels. However, we show that ICL can reverse this collapse and recover rich representations, akin to the pre-SFT model state. Overall, our work proposes a controlled setup to investigate the interaction between ICL and SFT in LLMs, especially in the context of safety.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    When One Modality Rules Them All: Backdoor Modality Collapse in Multimodal Diffusion Models

    Qitong Wang, Haoran Dai, Haotian Zhang, Christopher Rasmussen, Binghui Wang

    Abstract

    While diffusion models have revolutionized visual content generation, their rapid adoption has underscored the critical need to investigate vulnerabilities, e.g., to backdoor attacks. In multimodal diffusion models, it is natural to expect that attacking multiple modalities simultaneously (e.g., text and image) would yield complementary effects and strengthen the overall backdoor. In this paper, we challenge this assumption by investigating the phenomenon of \textit{Backdoor Modality Collapse}, a scenario where the backdoor mechanism degenerates to rely predominantly on a subset of modalities, rendering others redundant. To rigorously quantify this behavior, we introduce two novel metrics: Trigger Modality Attribution (TMA) and Cross-Trigger Interaction (CTI). Through extensive experiments across diverse training configurations in multimodal conditional diffusion, we consistently observe a "winner-takes-all" dynamic in backdoor behavior. Our results reveal that (1) attacks often collapse into subset-modality dominance, and (2) cross-modal interaction is negligible or even negative, contradicting the intuition of synergistic vulnerability. These findings highlight a critical blind spot in current assessments, suggesting that high attack success rates often mask a fundamental reliance on a subset of modalities. This establishes a principled foundation for mechanistic analysis and future defense development.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    VisualScratchpad: Inference-time Visual Concepts Analysis in Vision Language Models

    Hyesu Lim, Jinho Choi, Taekyung Kim, Byeongho Heo, Jaegul Choo, Dongyoon Han

    Abstract

    High-performing vision language models still produce incorrect answers, yet their failure modes are often difficult to explain. To make model internals more accessible and enable systematic debugging, we introduce VisualScratchpad, an interactive interface for visual concept analysis during inference. We apply sparse autoencoders to the vision encoder and link the resulting visual concepts to text tokens via text-to-image attention, allowing us to examine which visual concepts are both captured by the vision encoder and utilized by the language model. VisualScratchpad also provides a token-latent heatmap view that suggests a sufficient set of latents for effective concept ablation in causal analysis. Through case studies, we reveal three underexplored failure modes: limited cross-modal alignment, misleading visual concepts, and unused hidden cues.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Instruction Following by Principled Attention Boosting of Large Language Models

    Vitoria Guardieiro, Avishree Khare, Adam Stein, Eric Wong

    Abstract

    Large language models' behavior is often shaped by instructions such as system prompts, refusal boundaries, privacy constraints, and tool-use rules that must hold at inference time. Yet in practice these constraints can be violated under long contexts or when user-provided context conflicts with them, creating reliability and safety risks. This motivates inference-time interventions that strengthen instruction influence without retraining. One such intervention is attention steering, which biases attention toward instruction tokens. In this work, we present a theoretical formalization of instruction following as rule-based competition between instruction rules and context-derived rules, with attention mediating which rules dominate, unifying existing attention-steering methods. We prove that boosting attention to instruction tokens tilts this competition, making it harder for context to override instruction-following. However, excessive boosting can suppress task-relevant context that should be incorporated alongside the instruction. Guided by this theory, we propose Instruction Attention Boosting (InstABoost), a simple intervention that applies a constant additive bias to instruction-key attention logits across all layers and heads. We evaluate InstABoost against prompting, latent steering, and prior attention methods across 15 steering tasks. InstABoost matches or outperforms all baselines while avoiding the fluency collapse of latent methods and the instruction over-focus of prior attention methods, achieving a stronger steering–quality tradeoff.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Sycophantic Anchors: Localizing and Quantifying User Agreement in Reasoning Models

    Jacek Duszenko

    Abstract

    Reasoning models frequently agree with incorrect user suggestions - a behavior known as sycophancy. However, it is unclear where in the reasoning trace this agreement originates and how strong the commitment is. To localize and quantify this behavior, we introduce sycophantic anchors - sentences that causally lock models into user agreement. Analyzing over 10,000 counterfactual rollouts on a distilled reasoning model, we show that anchors can be reliably detected and quantified mid-inference. Linear probes distinguish sycophantic anchors with 84.6\% balanced accuracy, while activation-based regressors predict the magnitude of the commitment ($R^2 = 0.74$). We further observe asymmetry where sycophantic anchors are significantly more distinguishable than correct reasoning anchors, and find that sycophancy builds gradually during reasoning, revealing a potential window for intervention. These results offer sentence-level mechanisms for localizing model misalignment mid-inference.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Privacy Collapse: Benign Fine-Tuning Can Break Contextual Privacy in Language Models

    Anmol Goel, Cornelius Emde, Sangdoo Yun, Seong Joon Oh, Martin Gubri

    Abstract

    We identify a novel phenomenon in language models: benign fine-tuning of frontier models can lead to privacy collapse. We find that diverse, subtle patterns in training data can degrade contextual privacy, including optimisation for helpfulness, exposure to user information, emotional and subjective dialogue, and debugging code printing internal variables, among others. Fine-tuned models lose their ability to reason about contextual privacy norms, share information inappropriately with tools, and violate memory boundaries across contexts. Privacy collapse is a ``silent failure'' because models maintain high performance on standard safety and utility benchmarks whilst exhibiting severe privacy vulnerabilities. Our experiments show evidence of privacy collapse across six models (closed and open weight), five fine-tuning datasets (real-world and controlled data), and two task categories (agentic and memory-based). Our mechanistic analysis reveals that privacy representations are uniquely fragile to fine-tuning, compared to task-relevant features which are preserved. Our results reveal a critical gap in current safety evaluations, in particular for the deployment of specialised agents.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Efficient Test-Time Scaling of Multi-Step Reasoning by Probing Internal States of Large Language Models

    Jingwei Ni, Ekaterina Fadeeva, Tianyi Wu, Mubashara Akhtar, Jiaheng Zhang, Elliott Ash, Markus Leippold, Timothy Baldwin, See-Kiong Ng, Artem Shelmanov, Mrinmaya Sachan

    Abstract

    LLMs can solve complex tasks by generating long, multi-step reasoning chains. Test-time scaling (TTS) can further improve LLM performance by sampling multiple variants of intermediate reasoning steps, verifying their correctness, and strategically choosing the best steps for continuation. However, existing verification approaches, such as Process Reward Models (PRMs), are computationally expensive, limited to specific domains, and require large-scale human or model-generated annotations. We propose a lightweight alternative for step-level reasoning verification based on probing the internal states of LLMs. We train a transformer-based probe that uses the internal states of the frozen LLM to estimate the credibility of its reasoning steps during generation. Annotation can be generated either by another larger LLM (e.g., DeepSeek-R1) or in a self-supervised manner by the original model itself. The probes are both effective and lightweight, containing fewer than 10M parameters. Across multiple domains, including mathematics, planning, and general knowledge question answering, our probes match or even exceed the performance of PRMs that are up to 810× larger. Our findings suggest that the internal states of LLMs encode their confidence in reasoning processes and can serve as reliable signals for reasoning step verification, offering a promising direction towards scalable and generalizable TTS and introspective LLMs.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Bootstrapping-based Regularisation for Reducing Individual Prediction Instability in Clinical Risk Prediction Models

    Sara Matijevic, Christopher Yau

    Abstract

    Clinical prediction models are increasingly used to support patient care, yet many deep learning–based approaches remain unstable, as their predictions can vary substantially when trained on different samples from the same population. Such instability undermines reliability and limits clinical adoption. In this study, we propose a novel bootstrapping-based regularisation framework that embeds the bootstrapping process directly into the training of deep neural networks. This approach constrains prediction variability across resampled datasets, producing a single model with inherent stability properties. We evaluated models constructed using the proposed regularisation approach against conventional and ensemble models using simulated data and three clinical datasets: GUSTO-I, Framingham, and SUPPORT. Across all datasets, our model exhibited improved prediction stability, with lower mean absolute differences (e.g., 0.019 vs. 0.059 in GUSTO-I; 0.057 vs. 0.088 in Framingham) and markedly fewer significantly deviating predictions. Importantly, discriminative performance and feature importance consistency were maintained, with high SHAP correlations between models (e.g., 0.894 for GUSTO-I; 0.965 for Framingham). While ensemble models achieved greater stability, we show that this came at the expense of interpretability as each constituent model used predictors in different way. By regularising predictions to align with bootstrapped distributions, our approach allows prediction models to be developed that achieve greater robustness and reproducibility without sacrificing interpretability. This method provides a practical route toward more reliable and clinically trustworthy deep learning models, particularly valuable in data-limited healthcare settings.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Enhancing Trust in Large Language Models via Uncertainty-Calibrated Fine-tuning

    Ranganath Krishnan, Piyush Khanna, Omesh Tickoo

    Abstract

    Large language models (LLMs) have achieved remarkable success in natural language generation, yet they remain prone to hallucinations and often exhibit miscalibrated overconfidence, even when producing incorrect outputs. Reliable uncertainty estimation is a key requirement for deploying LLMs safely, as it enables users and downstream systems to assess confidence, detect hallucinations, and identify out-of-domain prompts. In this work, we propose an uncertainty-calibrated fine-tuning approach that improves the reliability of LLMs in open-ended, free-form generation settings. Our method introduces a novel uncertainty-aware causal language modeling loss, grounded in decision-theoretic principles, that explicitly encourages well-calibrated uncertainty estimates. We conduct extensive empirical evaluations across multiple free-form question-answering datasets and model architectures, demonstrating that our approach consistently yields better uncertainty calibration compared to standard fine-tuning. Furthermore, the experimental results show that the proposed method substantially enhances the model’s ability to detect hallucinations and identify out-of-domain prompts.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Learn to be Unlearned: Optimizing Language Models for Unlearning via Clustered Gradient Routing

    Vincent Hanke, Jing Xu, Martin Pawelczyk, Michael Backes, Adam Dziedzic, Franziska Boenisch

    Abstract

    A main challenge for machine unlearning in Large Language Models (LLMs) is parameter entanglement: information about specific training examples is spread across many parameters, and parameters usually encode information on different samples. Therefore, unlearning often hurts general performance on samples that should be retained. We propose a simple training mechanism that reduces the entanglement of information from different training samples in the models' parameters by combining unsupervised semantic clustering with gradient routing. First, we cluster the training data into semantic groups. Then, we split the LLM’s parameters into disjoint blocks and train a small cluster-conditioned router that decides which block should receive the main gradient update for each cluster. The forward pass stays unchanged and uses all parameters, but the backward pass becomes sparse using per-block gradient masking. This encourages different data clusters to mainly update different parameter blocks. For unlearning a sample, we freeze the router and apply existing unlearning only to the block that contains information on that sample. This leads to more targeted updates and smaller degradation on unrelated retain samples. On TOFU and MUSE, our approach consistently improves post-unlearning model utility compared to existing unlearning baselines, while keeping forgetting performance and the final privacy risk for the unlearned data on a comparable level. Overall, our work contributes towards a more privacy-friendly deployment of LLMs.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Memorization Dynamics in Knowledge Distillation for Language Models

    Jaydeep Borkar, Karan Chadha, Niloofar Mireshghallah, Yuchen Zhang, Irina-Elena Veliche, David Smith, Zheng Xu, Diego Garcia-Olano

    Abstract

    Knowledge Distillation (KD) is increasingly adopted to transfer capabilities from large language models to smaller ones, offering significant improvements in efficiency and utility while often surpassing standard fine-tuning. Beyond performance, KD is also explored as a privacy-preserving mechanism to mitigate the risk of training data leakage. While training data memorization has been extensively studied in standard pre-training and fine-tuning settings, its dynamics in a knowledge distillation setup remain poorly understood. In this work, we study memorization across the KD pipeline using three large language model (LLM) families (Pythia, OLMo-2, Qwen-3) and three datasets (FineWeb, Wikitext, Nemotron-CC-v2). We find: (1) distilled models memorize significantly less training data than standard fine-tuning (reducing memorization by more than 50\%); (2) some examples are inherently easier to memorize and account for a large fraction of memorization during distillation (over ~95\%); (3) student memorization is predictable prior to distillation using features based on zlib entropy, KL divergence, and perplexity; and (4) while soft and hard distillation have similar overall memorization rates, hard distillation poses a greater risk: it inherits $2.7\times$ more teacher-specific examples than soft distillation. Overall, we demonstrate that distillation can provide both improved generalization and reduced memorization risks compared to standard fine-tuning.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Neural Chameleons: Language Models Can Learn to Hide Their Thoughts from Unseen Activation Monitors

    Max McGuinness, Alex Serrano, Luke Bailey, Scott Emmons

    Abstract

    Activation monitoring, which probes a model’s internal states using lightweight classifiers, is an emerging tool for AI safety. However, its worst-case robustness under a misalignment threat model---where a model might learn to actively conceal its internal states---remains untested. We ask: could a model learn to evade previously unseen activation monitors? We demonstrate that fine-tuning can create Neural Chameleons: models capable of zero-shot evading activation monitors. Specifically, we fine-tune an LLM to evade monitors for benign concepts (e.g., HTML) when conditioned on a trigger phrase "You are being probed for {concept}". This learned mechanism generalizes zero-shot: substituting the concept with a safety-relevant term like 'deception' causes the model to successfully evade previously unseen safety monitors---even those trained post hoc on the model's frozen weights. We validate this across diverse model families (Llama, Gemma, Qwen), finding that evasion is highly selective to the triggered concept and incurs minimal capability degradation. Mechanistically, we show the model achieves evasion by shifting activations into a low-dimensional subspace that avoids probe decision boundaries. Our work provides a proof-of-concept for this failure mode of activation monitoring under misalignment threat models.

    Abstract source
  • ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities

    Patching LLMs Like Software: A Lightweight Method for Improving Safety Policies in Large Language Models

    Huzaifa Arif, Pin-Yu Chen, Keerthiram Murugesan, Alex Gittens, Payel Das, Ching-Yun Ko

    Abstract

    We propose \textit{safety policy patching}, a lightweight and modular approach for addressing safety vulnerabilities in large language models (LLMs) between major releases. Major version updates are costly, infrequent, and difficult to tailor to customer needs, leaving deployed models with known safety gaps. Our method enables rapid remediation by prepending a compact, learnable prefix to an existing model's inputs.This patch introduces very few additional parameters---e.g., $0.003\%$ for LLaMA-2---yet reliably steers model behavior toward that of a safer reference model. Across three critical domains---toxicity mitigation, bias reduction, and harmfulness refusal---policy patches achieve safety improvements comparable to stronger safety-aligned models (e.g., future major releases) while preserving fluency. Overall, we show that LLMs can be ``patched'' much like software, providing vendors and practitioners a practical mechanism for distributing scalable, efficient, and composable safety updates between major model releases.

    Abstract source