Skip to content

EMNLP papers

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

Explore the EMNLP analysis

Search results

221–240 of 421

  • EMNLP · Findings

    A Survey of Quantized Graph Representation Learning: Connecting Graph Structures with Large Language Models

    Qika Lin, Zhen Peng, Kaize Shi, Kai He, Yiming Xu, Jian Zhang, Erik Cambria, Mengling Feng

    Abstract

    Recent years have witnessed rapid advances in graph representation learning, with the continuous embedding approach emerging as the dominant paradigm. However, such methods encounter issues regarding parameter efficiency, interpretability, and robustness. Thus, Quantized Graph Representation (QGR) learning has recently gained increasing interest, which represents the graph structure with discrete codes instead of conventional continuous embeddings. Given its analogous representation form to natural language, QGR also possesses the capability to seamlessly integrate graph structures with large language models (LLMs). As this emerging paradigm is still in its infancy yet holds significant promise, we undertake this thorough survey to promote its rapid future prosperity. We first present the background of the general quantization methods and their merits. Moreover, we provide an in-depth demonstration of current QGR studies from the perspectives of quantized strategies, training objectives, distinctive designs, knowledge graph quantization, and applications. We further explore the strategies for code dependence learning and integration with LLMs. At last, we give discussions and conclude future directions, aiming to provide a comprehensive picture of QGR and inspire future research.

    Abstract source
  • EMNLP · Findings

    Detecting Hallucinations for Large Language Model-Based Knowledge Graph Reasoning

    Xinyan Zhu, Yaoqi Liu, Yue Gao, Huadong Ma, Cheng Yang, Chuan Shi

    Abstract

    Knowledge graph (KG) reasoning infers new knowledge from existing facts and is widely applied in question answering, recommendation, and decision support. With the rapid development of large language models (LLMs), LLM-based KG reasoning frameworks have become increasingly popular by leveraging retrieved KG information. However, hallucinations in LLMs remain a critical issue. Even when relevant KG knowledge is incorporated, models may still generate incorrect outputs, leading to misinformation and unreliable decisions. Existing hallucination detection methods either focus on LLM internal states or verify consistency with retrieved contexts, but both overlook the structural information in KGs, resulting in suboptimal performance. To address this gap, we propose LUCID, the first halLUcination deteCtIon method for LLM-based knowleDge graph reasoning frameworks. LUCID extracts node and edge features from attention scores and semantic similarities, and integrates them with KG structure using a graph neural network (GNN). Moreover, we also construct manually annotated benchmark datasets for evaluation. Experiments on nine datasets show that LUCID achieves state-of-the-art performance compared to 15 baselines. The code and data are available at: https://github.com/BUPT-GAMMA/LUCID.

    Abstract source
  • EMNLP · Findings

    Dynamic Alignment Compensation for Hallucination Mitigation in Large Vision-Language Models

    Kairong Yu, Zixin Zhu, Le Yu, Hongwei Wang

    Abstract

    Large Vision-Language Models (LVLMs) remain prone to hallucinations, producing responses that are irrelevant or inconsistent with the multimodal input. Existing mitigation methods mainly rely on external supervision, output calibration, or attention regulation, leaving the internal representation dynamics of autoregressive generation underexplored. We identify an inference-time failure mode in which cross-modal representations degrade across decoder layers and drift across generation steps, destabilizing token prediction and increasing hallucination risk. We propose Dynamic Alignment Compensation (DAC), a training-free inference-time method that detects representation divergence and selectively applies lightweight residual compensation. DAC combines Layer-wise Semantic Compensation to mitigate inter-layer degradation with Sequential Semantic Correction to constrain temporal drift. Experiments on nine hallucination-focused and general-purpose multimodal benchmarks across multiple LVLM backbones show that DAC consistently reduces hallucinations while maintaining strong overall performance.

    Abstract source
  • EMNLP · Findings

    The Impostors Method as a Statistical Test for Authorship Verification With Large Language Models as Sampling Source for Hard Negatives

    Klara M. Gutekunst, Yaron Winter, Martin Potthast

    Abstract

    Authorship verification asks whether two given texts were written by the same author. Since supervised verification methods often generalize poorly across domains, the unsupervised Impostors Method, inspired by police lineups, reduces verification to in-domain authorship attribution. Using one text as a query, it hides the other among a sample of hard negatives and measures how reliably a style similarity function retrieves it at the top rank. Although widely applied in practice, the Impostors Method still suffers when no in-domain impostor documents are available. Resorting instead to sampling from open-domain collections provides much less control over confounding stylistic variables such as genre or register. Moreover, its statistical foundations remain largely unexplored compared with those of police lineups. In this paper, we recast the Impostors Method as a statistical hypothesis test, enabling a principled assessment of evidential strength without training a decision threshold. We further investigate large language models (LLMs) as a controllable source for generating in-domain impostor documents.

    Abstract source
  • EMNLP · Findings

    Text-Anchored Semantic Perturbations for Transferable Jailbreak Attacks on Multimodal Large Language Models

    Wenyun Li, Guiping Cao, Xiangyuan Lan, Zheng Zhang

    Abstract

    Multimodal Large Language Models (MLLMs) have achieved remarkable progress in vision-language interaction, yet their safety alignment remains vulnerable to jailbreak attacks. A key challenge is that safety behavior learned in the textual space does not reliably transfer to fused cross-modal representations, leaving multimodal inputs exploitable through latent semantic cues. We propose __Text-Anchored Semantic Perturbation Attack__ (TA-SPA), a black-box jailbreak framework that optimizes transferable perturbations in a text-anchored semantic space. TA-SPA integrates __Text-Anchored Semantic Factorization__ (TASF), which disentangles cross-modal semantic factors from modality-specific residuals, with __Semantic-Preserving Augmentation__ (SPA), which diversifies harmful target anchors while preserving semantic consistency. Extensive experiments show that TA-SPA consistently outperforms prior jailbreak attacks, transfers to commercial MLLMs, and remains effective under representative defenses, underscoring the need for representation-level safety alignment beyond input-level filtering.

    Abstract source
  • EMNLP · Findings

    How does Multilingual Finetuning of Instruction-Tuned Large Language Models Affect Languages in Layer-Wise Hidden Representations?

    Hyemi Jo, Hyopil Shin

    Abstract

    Contemporary large language models (LLMs) exhibit multilingual capabilities but remain predominantly English-centric, resulting in a persistent performance gap across languages. While some approaches to multilingual training are grounded in the implicit pivot language hypothesis to improve interpretability, it remains underexplored how the languages represented in each layer are affected during training, particularly in practical, cost-efficient instruction-tuning scenarios. In this study, we investigate how instruction tuning with Low-Rank Adaptation (LoRA) in a target language affects the layer-wise language representation of instruction-tuned LLMs, with the aim of assessing the relevance of the implicit pivot language hypothesis as a theoretical grounding for multilingual finetuning. We find that target-language instruction tuning shifts models’ internal language representation in a non-uniform manner across layers and sublayers: middle layers shift further toward English, while early and final layers primarily serve the mapping between the target language and the dominant intermediate language. Our findings empirically support the implicit pivot language hypothesis in the context of instruction tuning, demonstrating that layer-wise parameter variation broadly corresponds to the hypothesized functional roles of layers in multilingual processing. Our code is available at: https://github.com/hyemijo/layer_interpretability

    Abstract source
  • EMNLP · Findings

    MMPCBench: Benchmarking Multimodal Large Language Models on Proactive Critique of Flawed Inputs

    Jinzhe Li, Gengxu Li, Jinnan Li, Yuan Wu, Yi Chang

    Abstract

    As Multimodal Large Language Models (MLLMs) evolve into sophisticated interactive assistants, their reliability depends not only on following instructions but also on validating them. We define Proactive Critique as the model’s autonomous ability to identify, analyze and fix faulty user inputs without extra prompts. However, evaluations mainly test models under ideal circumstances or simple refusal behaviors, largely ignoring active error processing. To fill this gap, we propose MMPCBench, a comprehensive framework for evaluating MLLMs’ proactive critique competence. It features a fine-grained taxonomy of 4 primary error types spanning 12 subcategories, ranging from cross-modal contradictions to missing visual premises. We adopt a hierarchical evaluation protocol to measure models’ error detection, diagnosis and resolution performance, and apply alignment-aware metrics to assess the coherence between internal reasoning and final responses. Tests on 14 mainstream MLLMs show obvious weaknesses in proactive critique, especially in dealing with subtle visual anomalies. Notably, we identify a pervasive "consistency gap": reasoning models can often correctly identify and analyze errors during internal reasoning yet suppress these valid insights in final outputs to prioritize response compliance.

    Abstract source
  • EMNLP · Findings

    ReTrace: Visual Backtracking for Efficient Multimodal Large Language Models

    Guangzong Si, Dong Wang, Yifan Yu, Miao Liu, Panwang Pan, Wentao Zhu

    Abstract

    Multimodal Large Language Models (MLLMs) encode images into dense visual token sequences, creating substantial attention and KV-cache overhead. Existing visual token compression methods reduce this cost by pruning low-saliency tokens in shallow layers, but this practice couples temporary computational deactivation with irreversible information deletion. We show that this coupling breaks an intrinsic inference pattern in MLLMs. Through layer-wise attention analysis, we identify Visual Backtracking: visual pivots remain spatially stable, yet in middle layers they actively retrieve context from tokens that appeared unimportant earlier. Thus, early low-saliency tokens can be inactive for computation while still being useful for later reasoning. Motivated by this finding, we propose ReTrace, a backtracking-aware compression framework that introduces a dormant token state. ReTrace caches non-pivot tokens outside expensive layer-wise computation, restores them during the backtracking window, and prunes only after their information has been absorbed. Experiments on Qwen2.5-VL and InternVL3 demonstrate nearly 90% reductions in FLOPs and KV cache, a 2.83 prefilling speedup, and strong performance retention across complex vision-language benchmarks.

    Abstract source
  • EMNLP · Findings

    SQD: Sub-Query Decomposition for Reliable Jailbreak Evaluation in Large Language Models

    Junjie Yang, Fenghua Weng, Yue Xu, Wenjie Wang

    Abstract

    Existing jailbreak classifiers for large language models (LLMs) often fail to distinguish truly harmful responses from benign paraphrases, resulting in high error rates. We reframe jailbreak detection as a strict instruction-following verification task rather than holistic semantic matching. To achieve this, we propose Sub-Query Decomposition (SQD), a framework that breaks complex adversarial prompts into atomic, actionable sub-intents. SQD transforms opaque safety assessment into a parameterizable adjudication protocol, allowing practitioners to quantitatively adjust safety boundaries via explicit mathematical aggregation rules for highly interpretable evaluation. To operationalize SQD at scale, we introduce three foundational pillars: (1) Efficient Deployment via distilled lightweight models, featuring SQD-Phi-4 for single-pass end-to-end verification and SQD-Decomposer, optimized with an entropy-aware loss to mathematically prevent the omission of rare constraints; (2) Evaluation Foundation through SQD-Bench, a rigorously human-annotated dataset; and (3) LLM-independent Judge via E(mbedding)-TFIDF to eliminate inference-time reasoning bias. Extensive experiments demonstrate that our unified framework provides a transparent, low-cost, and policy-aligned standard for reliable jailbreak evaluation.

    Abstract source
  • EMNLP · Findings

    Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models

    Kaituo Zhang, Zhimeng Jiang, Na Zou

    Abstract

    Recent breakthroughs in Large Language Models (LLMs) have revealed remarkable generative capabilities and emerging self-regulatory mechanisms, including self-correction and self-rewarding. However, current detoxification techniques rarely exploit these built-in abilities; instead, they rely on external modules, labor-intensive data annotation, or human intervention –factors that hinder scalability and consistency. In this paper, we introduce a fully self-reflective detoxification framework that harnesses the inherent capacities of LLMs to detect, correct toxic content, and refine LLMs without external modules and data annotation. Specifically, we propose a Toxic Signal Detector—an internal self-identification mechanism, coupled with a systematic intervention process to transform toxic text into its non-toxic counterpart. This iterative procedure yields a contrastive detoxification dataset used to fine-tune the model, enhancing its ability for safe and coherent text generation. Experiments on benchmark datasets such as DetoxLLM and ParaDetox show that our method achieves better detoxification performance than state-of-the-art methods while preserving semantic fidelity. By obviating the need for human intervention or external components, this paper reveals the intrinsic self-detoxification ability of LLMs, offering a consistent and effective approach for mitigating harmful content generation. Ultimately, our findings underscore the potential for self-regulated language models and more responsible text generation systems. Code: https://github.com/KaituoZhang/SRD Warning: this paper may contain offensive content.

    Abstract source
  • EMNLP · Findings

    Entropy-KL Divergence-based Token Masking: A Novel Approach for Selective Fine-tuning of Large Language Models

    Qi Liu, Mingdi Sun, Yongyi He, Zhi Zheng, Tong Xu, Yi Zheng, Zhefeng Wang, Enhong Chen

    Abstract

    Supervised fine-tuning (SFT) followed by reinforcement learning (RL) has become a standard post-training paradigm for large language models. This paradigm provides a cold-start for RL exploration, avoiding the inefficiency of pure RL where on-policy sampling yields insufficient positive samples. However, in practice, existing approaches often use a small amount of data for SFT initialization compared to the RL phase, which can cause the model to fit the limited samples and shift away from its pre-trained distribution. This distribution shift impedes the model’s ability to effectively explore during subsequent RL training. To address this challenge, we propose that in low-data regimes, SFT should prioritize activating task-relevant capabilities rather than memorizing specific content. Along this line, we propose EKSFT (Entropy-KL Selective Fine-Tuning), which selectively masks tokens that exhibit either high entropy or high KL divergence from a reference model. By excluding these high-uncertainty, distribution-shifting tokens from imitation, EKSFT injects task-specific knowledge while preserving the integrity of the model’s pre-trained distribution. Empirical evaluations on mathematical reasoning benchmarks demonstrate that EKSFT consistently outperforms standard SFT. Further RL fine-tuning from the EKSFT model yields consistently better post-RL performance, indicating improved exploration for the RL stage. Our codes and datasets are available at https://github.com/MINE-USTC/EKSFT.

    Abstract source
  • EMNLP · Findings

    Speech-XL: Towards Long-Form Speech Understanding in Large Speech Language Models

    Haoqin Sun, Chenyang Lyu, Shiwan Zhao, Xuanfan Ni, Xiangyu Kong, Longyue Wang, Weihua Luo, Yong Qin

    Abstract

    Despite the growing success of Large Speech Language Models (LSLMs) in processing short-term acoustic signals, their extension to long-form audio understanding is severely bottlenecked. This limitation stems from the limited context length and the exorbitant memory footprints required for long-form inference. In this work, we propose Speech-XL, a new model that capitalizes on the intrinsic key-value (KV) sparsification capacity of Large Language Models (LLMs) to achieve high-ratio speech input compression. Specifically, we introduce a novel special token, the Speech Summarization Token (SST), for each speech interval to encapsulate the intra-interval speech information into its associated KV pairs. The SST module is trained via instruction fine-tuning, employing a curriculum learning strategy where the SST learns to compress information in a progressive manner—advancing from low-ratio (simple) to high-ratio (challenging) compression. Despite using substantially less training data than large-scale audio foundation models, Speech-XL achieves competitive compression quality under the same backbone, maintaining a small gap to its uncompressed counterpart while substantially reducing long-form inference cost. By addressing the long-standing bottlenecks in long-form audio modeling, our approach offers a novel perspective on the condensation of extensive acoustic sequences.

    Abstract source
  • EMNLP · Findings

    Addressing the Reasoning Gap: Mechanistic Circuit-Based Knowledge Editing in Large Language Models

    Tianyi Zhao, Yinhan He, Wendy Zheng, Chen Chen

    Abstract

    Deploying Large Language Models (LLMs) in real-world dynamic environments raises the challenge of updating their pre-trained knowledge. While existing knowledge editing methods can reliably patch isolated facts, they frequently suffer from a reasoning gap, where the model recalls the edited fact but fails to utilize it in multi-step reasoning chains. Our analysis shows that multi-hop reasoning relies on sparse circuitry beyond direct factual recall, with functionally differentiated components contributing to intermediate processing and final-answer prediction. To bridge this gap, we introduce MCircKE (Mechanistic Circuit-based Knowledge Editing), a mechanistically grounded framework that enables a map-and-adapt editing procedure. MCircKE first identifies the causal circuits responsible for a specific reasoning task, capturing both the storage of the fact and the routing of its logical consequences. It then surgically update parameters exclusively within this mapped circuit. Extensive experiments on the MQuAKE-series benchmarks demonstrate the effectiveness of the proposed method for multi-hop reasoning in knowledge editing.

    Abstract source
  • EMNLP · Findings

    APeB: Benchmarking Personalization Ability of Large Language Model Agents

    Garry Yang, Zizhe Chen, Xinru Chen, Yongqiang Chen, Jianxiang Wang, Deyu Zou, Linyi Ding, Jialiang Wu, Yunzhong He, Yu Gong, James Cheng, Huaixiao Tou

    Abstract

    LLM-powered agents struggle with personalization when users issue raw, underspecified queries. In this setting, agents must infer latent intent, extract preferences from noisy interaction histories, and select among competing alternatives. Existing benchmarks rarely test this capability, as they often rely on user-refined queries or simplified histories. We introduce personalized product search (PPS), a testbed for agentic personalization under raw queries and diverse histories. We construct **A**gent **Pe**rsonalized **B**enchmark (**APeB**) from action logs, pairing underspecified intents with rich histories and user-viewed candidate items. Evaluating state-of-the-art LLMs with multi-step agent workflows, we find that models handle explicit queries well but struggle with early-stage queries requiring intent and preference discovery. Rubric analysis attributes this gap mainly to ineffective history use. A simple history-aware query-refinement pipeline, VQRA, yields consistent gains, highlighting the need for dedicated history-utilization modules in personalized agents.

    Abstract source
  • EMNLP · Findings

    Analyzing Bias in False Refusal Behavior of Large Language Models for Hate Speech Detoxification

    Shuzhou Yuan, Kyuri Im, Michael Färber

    Abstract

    While large language models (LLMs) have increasingly been applied to hate speech detoxification, the prompts often trigger safety alerts, causing LLMs to refuse the task. In this study, we systematically investigate false refusal behavior in hate speech detoxification and analyze the contextual and linguistic biases that trigger such refusals. We evaluate nine LLMs on both English and multilingual datasets, our results show that LLMs disproportionately refuse inputs with higher semantic toxicity and those targeting specific groups, particularly nationality, religion, and political ideology. Although multilingual datasets exhibit lower overall false refusal rates than English datasets, models still display systematic, language-dependent biases toward certain targets. Based on these findings, we propose a simple cross-translation strategy, translating English hate speech into Chinese for detoxification and back, which substantially reduces false refusals while preserving the original content, providing an effective and lightweight mitigation approach.

    Abstract source
  • EMNLP · Findings

    Back on Track: Aligning Rewards and States for Reasoning in Diffusion Large Language Models

    Yawen Shao, Jie Xiao, Kai Zhu, Yu Liu, Hongchen Luo, Xueyang Fu, Yang Cao, Wei Zhai, Zheng-Jun Zha

    Abstract

    Reinforcement learning (RL) holds immense promise for enhancing the reasoning capabilities of diffusion large language models (dLLMs). However, progress is fundamentally constrained by a dual misalignment between authentic generation trajectory and the gradient update process: (i) Process-reward misalignment. Sparse, terminal rewards are indiscriminately assigned to all intermediate steps of the generation process, failing to provide discriminative credit assignment. (ii) State-trajectory misalignment. Policy updates are often diverted toward artificial, out-of-trajectory states, squandering gradients on less informative samples. To address these limitations, we introduce Process Aligned Policy Optimization (PAPO), a novel framework that holistically aligns the RL update with the dLLM’s generative trajectory via Step-Aware Process Rewards (SPR) that transform sparse terminal rewards into dense, step-wise credit, and Entropy-Guided Historical Re-enactment (EHR) that replays authentic trajectories at high-uncertainty steps. Extensive experiments on four benchmarks demonstrate that PAPO significantly outperforms baselines, achieving gains of 4.5% on GSM8K, 4.8% on MATH500, 42.2% on Countdown and 16.1% on Sudoku.

    Abstract source
  • EMNLP · Findings

    Hierarchical Alignment: Block-Level LoRA-DPO for Preference Tuning in Large Language Models

    Yishen Chen, Qi Dong, Yukun Zhang

    Abstract

    Preference tuning typically distributes adapter updates across every Transformer layer. We study how the placement of a fixed LoRA budget affects Direct Preference Optimization (DPO). Hierarchical Alignment partitions decoder depth into Local, Intermediate, and Global regions and restricts LoRA updates to a chosen contiguous block. Across Qwen and Llama models, three-seed sliding-window sweeps reveal broad low-loss basins around intermediate depth. Under exact trainable-parameter matching, Middle achieves lower held-out DPO loss than an all-depth allocation on Qwen2.5-7B and Llama-3.1-8B. Generation-level evidence is more variable. LLM judges and a blinded human study leave Selected versus All unresolved on Qwen; on Llama, two pairwise judges favor All while the human interval includes zero. Trained-adapter interventions show that learned depth components affect the optimization objective; removing the Llama Selected window also lowers generation quality. Across Qwen2.5 at 3B, 7B, and 14B, Middle versus All remains unresolved under Qwen3-Max; at 3B and 14B, both improve over Base. In our implementation, Middle also uses less peak memory and takes shorter steps than a parameter-matched all-depth allocation. Together, the results support intermediate depth as a practical starting point for fixed-budget preference tuning, though the best window and its behavioral value still need per-setting validation.

    Abstract source
  • EMNLP · Findings

    DynHD: Hallucination Detection for Diffusion Large Language Models via Denoising Dynamics Deviation Learning

    Yanyu Qian, Yue Tan, Yixin Liu, Wang Yu, Shirui Pan

    Abstract

    Diffusion large language models (D-LLMs) have emerged as a promising alternative to auto-regressive models due to their iterative refinement capabilities. However, hallucinations remain a critical issue that hinders their reliability. To detect hallucination responses from model outputs, token-level uncertainty (e.g., entropy) has been widely used as an effective signal to indicate potential factual errors. Nevertheless, the fixed-length generation paradigm of D-LLMs implies that tokens contribute unevenly to hallucination detection, with only a small subset providing meaningful signals. Moreover, the evolution trend of uncertainty throughout the diffusion process can also provide important signals, highlighting the necessity of modeling its denoising dynamics for hallucination detection. In this paper, we propose DynHD that bridge these gaps from both spatial (token sequence) and temporal (denoising dynamics) perspectives. To address the information density imbalance across tokens, we propose a semantic-aware evidence construction module that extracts hallucination-indicative signals by filtering out non-informative tokens and emphasizing semantically meaningful ones. To model denoising dynamics for hallucination detection, we introduce a reference evidence generator that learns the expected evolution trajectory of uncertainty evidence, along with a deviation-based hallucination detector that makes predictions by measuring the discrepancy between the observed and reference trajectories. Extensive experiments demonstrate that DynHD consistently outperforms state-of-the-art baselines while achieving higher efficiency across multiple benchmarks and backbone models.

    Abstract source
  • EMNLP · Findings

    Gradient-Free Test-Time Adaptation for Few-Shot Online Clustering with Large Language Models

    Avyav Kumar Singh, Helen Yannakoudakis

    Abstract

    We study few-shot online clustering (FSOC), where an unlabelled stream must be assigned to a dynamically growing cluster inventory using only a few labelled support examples for currently observed classes. We propose a two-component test-time gradient-free framework. First, we adapt Wasserstein Generative Flow Networks (wGFN) as an amortised LLM-based policy for in-distribution assignment and out-of-distribution (OOD) rejection. Unlike prior work that trains separate policies for each evaluation class set, we show that a single policy trained on a few classes generalises to novel support classes at test time without parameter updates and further replace fixed rejection thresholds with a Dirichlet evidence model over candidate class assignments. Second, rejected OOD examples enter an oracle-mediated cluster-formation stage. Under shuffled stream orderings, this stage can create noisy provisional support sets that corrupt later assignments. To address this, we introduce a von Mises–Fisher Dirichlet Process Mixture Model warm start to provide oracle-independent cluster structure over unit-normalised text embeddings before oracle-mediated formation. This improves clustering quality, in some settings by \sim 2\times, even with small LLMs (<1B parameters). To our knowledge, this is the first FSOC framework to couple amortised LLM-based assignment with Bayesian non-parametric warm-starting, enabling growing cluster inventories without data augmentation, novel-class parameter updates or predefined cluster counts.

    Abstract source
  • EMNLP · Findings

    Attributing and Exploiting Safety Vectors through Global Optimization in Large Language Models

    Fengheng Chu, Jiahao Chen, Yuhong Wang, Jun Wang, Zhihui Fu, Shouling Ji, Lu Dong, Songze Li

    Abstract

    While Large Language Models (LLMs) are aligned to mitigate risks, their safety guardrails remain fragile against jailbreak attacks. This reveals limited understanding of components governing safety. Existing methods rely on local, greedy attribution that assumes independent component contributions. However, they overlook the cooperative interactions between different components in LLMs, such as attention heads, which jointly contribute to safety mechanisms. We propose Global Optimization for Safety Vector Extraction (GOSV), a framework that identifies safety-critical attention heads through global optimization over all heads simultaneously. We employ two complementary activation repatching strategies: Harmful Patching and Zero Ablation. These strategies identify two spatially distinct sets of safety vectors with consistently low overlap, termed Malicious Injection Vectors and Safety Suppression Vectors, demonstrating that aligned LLMs maintain separate functional pathways for safety purposes. Through systematic analyses, we find that complete safety breakdown occurs when approximately 30% of total heads are repatched across all models. Building on these insights, we develop a novel inference-time white-box jailbreak attack and a complementary detection-based defense, both grounded in the identified safety vectors. The attack achieves superior performance, while the defense yields strong detection across diverse attack types, providing robust evidence for the effectiveness of the proposed GOSV framework in LLM safety interpretability.

    Abstract source