EMNLP papers
Search EMNLP papers by title, author, or track. Open a paper’s abstract to read more.
Explore the EMNLP analysisSearch results
3,941–3,960 of 4,478
- EMNLP · Findings
3D Visual Prompting: Empowering 3D-Aware Visual Generation via In-Context Self-Refinement
Reina Ishikawa, Fumiaki Sato, Ryo Hachiuma, Taiki Sekii, Hideo Saito
Abstract
Recent advances in image and video generation have highlighted the need for intuitive, high-precision manipulation. However, traditional text-based prompts or 2D Visual Prompts (e.g., dragging, 2D trajectories) often suffer from unintuitive prompt engineering or depth ambiguity. To address these limitations, we introduce 3D Visual Prompting, a novel paradigm that significantly improves input intuitiveness for visual manipulation tasks. We develop a framework that integrates intuitive 3D constraints into 2D generative processes. Our approach projects 3D Visual Prompts onto 2D visual planes and leverages Multimodal Large Language Models (MLLMs) to verbalize intent, allowing plug-and-play use of existing 2D models. Furthermore, we incorporate In-Context Self-Refinement (ICSR) to summarize insights from self-correction into a meta-strategy. This enables high-precision 3D control in single-pass inference, eliminating the need for iterative computation. Experimental results demonstrate that our method significantly outperforms traditional 2D Visual Prompting for object translation and rotation. By utilizing pre-trained models without additional parameter tuning, our framework remains highly adaptable to future developments in generative models.
Abstract source - EMNLP · Findings
Control-Data Flow Separation: Stable Prompt Optimization in Multi-Agent LLMs
Wentao Zhang, Syed Shariyar Murtaza, Junaid Ahmad Bhatti, Utkarsh Soni, Yifan Nie, Eugene Wen, Yuntian Deng
Abstract
Prompt optimization can improve multi-agent LLM systems, but the prompts being optimized often serve two entangled roles: generating task-relevant content and specifying execution-critical protocols, such as message routing, output formatting, and termination signals, on which the underlying code relies. As a result, a prompt edit intended to improve content generation can inadvertently corrupt the protocol and cause the entire agent pipeline to fail. Our key observation is that these two roles have different representations: execution protocols are typically structured, while task-relevant content is usually expressed in unstructured language. Based on this, we propose control-data flow separation, where execution-critical control is represented as typed, validated program objects, while task-relevant language remains the optimizable data flow for agent communication. This design allows optimizers to improve multi-agent behavior without exposing the routing or formatting interface to prompt drift. Across synthetic reasoning, collaborative review generation, and insurance rating workflows, our framework empirically achieves 100% eventual protocol validity while consistently improving task performance.
Abstract source - EMNLP · Findings
Toward Autonomous Long-Horizon Engineering for ML Research
Guoxin Chen, Jie Chen, Lei Chen, Zhao Jiale, Fanzhe Meng, Xin Zhao, Ruihua Song, Cheng Chen, Ji-Rong Wen, Kai Jia
Abstract
Agentic systems increasingly automate pieces of AI research. Yet turning underspecified research objectives into runnable, experimentally validated ML systems remains a central bottleneck. We study this operational setting as long-horizon ML research engineering: converting a research specification into a runnable ML system through repeated implementation, experimentation, and refinement. The central challenge is to sustain cumulative project progress across heterogeneous stages under delayed, confounded feedback. We introduce AiScientist, a multi-agent system built around thin control over thick state: a lightweight hierarchical research team coordinates through a File-as-Bus workspace that preserves decision-relevant artifacts across roles and invocations. On PaperBench, AiScientist improves over the strongest matched baselines by 9.92 and 11.15 points with Gemini-3-Flash and GLM-5, respectively. On MLE-Bench Lite, it reaches 81.82 Any Medal% under both backbones, improving over the strongest matched baselines by 4.55 and 16.67 points, and exceeding a Codex/GPT-5.5 xhigh frontier harness reference by 13.64 Any Medal points. Ablations and process analyses show that durable project state is central to later-round refinement: removing File-as-Bus lowers PaperBench score by 6.41 points and MLE-Bench Lite Any Medal% by 31.82 points. These results suggest that long-horizon AI research is not only a problem of stronger local reasoning, but a systems problem of maintaining cumulative, inspectable project progress.
Abstract source - EMNLP · Findings
Knowledge Acquisition During Pre-training? Large Language Models Learn Better With Auxiliary Views
Joseph Lee, Yidi Huang, Dokyoon Kim, Shu Yang, Li Shen
Abstract
Gaps remain in our understanding of how large language models (LLMs) acquire knowledge during pre-training. We posit that auxiliary views, reformulations of knowledge across different contexts, are causally helpful for learning. We design controlled experiments to isolate this effect. First, we confirm that repetition is necessary for acquisition and clarify that paraphrasing helps only at smaller batch sizes. Second, holding the token budget fixed, reallocating tokens from document repetition to auxiliary views improves learning, even for factual recall, which is counterintuitive. Third, the effectiveness of auxiliary views is not contingent on the strength of the teacher model that generates them. Fourth, we identify forms of knowledge, contextual and foundational, that aid learning in the presence of prior knowledge gaps. Finally, we examine how these effects manifest mechanistically via layer-wise biases and compression. Together, our findings suggest that auxiliary representations of knowledge, which arise naturally in large pre-training corpora, are a key factor in the success of pre-training and offer a plausible explanation for why data diversity matters.
Abstract source - EMNLP · Findings
Discovery, Articulation and Analysis of Communication Framings
Rakshitha Rao Ailneni, Sanda M. Harabagiu
Abstract
In social media discourse, the framing of a topic dictates the way opinions are formed. This paper presents two multi-agent frameworks: one for discovering what issues are framed in a topic, and another articulating interpretations of these issues. This enables an analysis of a topic’s discourse that reveals what frame issues are dominant while also providing insights about which issues have more possible interpretations. Experiments across four different topics show promising results for discovering and analyzing framings, allowing new comprehension of controversial topics.
Abstract source - EMNLP · Findings
The Interplay of Harness Design and Post-training in LLM Agents
Kyungmin Kim, Youngbin Choi, Seoyeon Lee, Suhyeon Jun, Dongwoo Kim, Sangdon Park
Abstract
Tool-integrated LLM agents are often wrapped within a *harness*: the scaffolding that determines which tools are exposed, how they are described, and what auxiliary information accompanies each per-step observation. While agents are routinely post-trained, this scaffolding is typically treated as a *fixed* engineering detail, with design effort limited to the training-free regime. Moreover, existing post-training algorithms assume a static environment, even though tool environments and tasks often shift upon deployment. To address this gap, we extend \texttt{ALFWorld} (i) to treat the harness as a controllable design dimension and (ii) to support evaluation under task and tool environment shifts. Building on this, we systematically analyze how the harness design influences post-training in both in-distribution and out-of-distribution (OOD) settings. We empirically show that *harness-aware post-training* not only improves in-distribution performance but also enables agents to robustly adapt to OOD settings. Under a harness with minimal design effort, post-training suffers a drastic performance drop under stronger tool environment shifts, further highlighting the importance of harness-aware post-training under such shifts.
Abstract source - EMNLP · Findings
MetaCLASS: Metacognitive Coaching for Learning with Adaptive Self-regulation Support
Naiming Liu, Richard Baraniuk, Shashank Sonkar
Abstract
Large language models can generate fluent explanations, but effective tutoring requires supporting the learner’s thought process, not just delivering content. Metacognitive tutoring targets this gap by prompting planning, monitoring, debugging, and evaluation, and, crucially, deciding when to be active versus minimally present, based on learner signals and trajectory. We introduce MetaCLASS, a learning-science grounded framework that formulates metacognitive tutoring as move selection over 11 interpretable actions aligned to self-regulated learning (SRL) processes. MetaCLASS uses a two-phase procedure that first plans a pedagogical trajectory conditioned on learner profiles (calibration, help-seeking) and then generates natural dialogue consistent with that plan. This process yields 1,015 conversations spanning 7,711 turns, each annotated with turn-level metacognitive labels and supported by comprehensive validation analyses. We benchmark nine open-source LLMs on predicting the next coach move given a question and dialogue context. The best model achieves only 43.2% accuracy in coach move prediction, and models exhibit compulsive intervention bias: in turns where effective metacognitive tutoring requires silence (41.7% of cases), models predict "no intervention” only 6.6% of the time, while severely over-predicting high-intervention moves. These results show that traditional content-based tutoring ability does not translate to metacognitive tutoring competence, positioning MetaCLASS as a testbed for developing tutors that promote SRL.
Abstract source - EMNLP · Findings
Revisiting Complete Reasoning Traces for Post-Training
Jaehui Hwang, Sangdoo Yun, Byeongho Heo, Dongyoon Han
Abstract
Large language models (LLMs) are often post-trained on pre-collected reasoning trajectories to improve their reasoning capability. Such trajectories tend to be long due to complex, interwoven paths, which often include detours on the path toward the answer. However, it has been underexplored whether LLMs indeed benefit from learning complete trajectories in post-training, such as supervised fine-tuning (SFT). Starting from our pilot study, we find that full trajectories provide only limited benefit, while partial trajectories are effective even under heavy truncation. We analyze redundancy in reasoning trajectories through attention-based analyses and controlled token-removal studies, both of which show that intermediate tokens contribute minimally to final reasoning quality. This suggests that avoiding redundant information may allow LLMs to internally infer coherent alternatives by inferring missing steps from their internal knowledge, given known trajectory endpoints. Furthermore, we show that training LLMs using endpoints leads to consistent changes in reasoning behavior, and that it also benefits post-training methods based on reinforcement learning or on-policy distillation, highlighting the need to revisit complete reasoning traces. Code is available at https://github.com/naver-ai/revisiting-trace.
Abstract source - EMNLP · Findings
Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training
Qiusi Zhan, Nian Lyu, Stephanie Ding, Arnav Mehta, Xander Davies, Daniel Kang
Abstract
Developers can build LLM agents by adapting third-party models through benign post-training. We study a supply-chain threat in which an attacker supplies a model with a backdoor: hidden behavior that produces malicious outputs when a particular input pattern appears. Focusing on software-engineering agents, we ask whether such backdoors survive the developer’s supervised fine-tuning (SFT) and subsequent task-level reinforcement learning (RL). We observe that benign SFT substantially reduces attack success, but subsequent RL often preserves the residual behavior and sometimes even increases attack success. Our analysis of backdoor erosion during SFT identifies two factors that may favor survival: initial backdoor strength and gradient compatibility with benign training. These factors motivate PersistBD, which refines an already-backdoored model before release to improve its persistency through the benign post-training process. On Qwen2.5-Coder-7B, PersistBD raises attack success from 20% to 74% after SFT and from 20% to 76% after SFT-RL, while maintaining comparable benign task performance. Together, our results show that backdoors can remain active through benign post-training and that adversaries can deliberately increase their persistence. This highlights a supply-chain risk for AI developers and motivates stronger techniques for detecting and mitigating inherited backdoors when adapting third-party models into agents. Our code is available at https://github.com/uiuc-kang-lab/PersistBD.
Abstract source - EMNLP · Findings
Inside Sentence Embeddings: Leveraging Token Representations for Machine Translation Evaluation and Word Alignment
Mana Makinae, Takumi Goto, Yusuke Sakai, Hidetaka Kamigaito, Taro Watanabe
Abstract
Contextualized token-level embeddings from encoders, e.g., mBERT, are used for several cross-lingual tasks, e.g., machine translation (MT) evaluation and alignment tasks, but fine-tuning is required for the specific task settings. In contrast, multilingual sentence embeddings are trained under sentence-level objectives on parallel data, but their token-level representations remain unclear whether they carry cross-lingual semantics, although not explicitly trained with token-level objectives. In this paper, we investigate token representations extracted from multilingual sentence embedding models for MT evaluation and word alignment. Experimental results and analysis show that sentence embedding models can provide useful token-level representations for direct similarity-based tasks. Although the observed advantage is not consistent across all settings, the results indicate that multilingual sentence-level training may support token-level semantic similarity without explicit token-level training.
Abstract source - EMNLP · Findings
The Bottleneck Is Retrieval, Not Reading: Diagnosing Evidence-Based Generation with RAG for Long Context Question Answering
Debopriyo Banerjee, Owais Aijaz, Ahmer Tabassum, Zhuohan Xie, Preslav Nakov, Veselin Stoyanov
Abstract
Retrieval-augmented generation (RAG) is the dominant paradigm for grounding large language models in external corpora, but its similarity-driven, chunked pipeline has structural blind spots: it cannot anticipate which passages a question requires and discards document-level context that resolves cross-passage references. We introduce evidence-based generation (EBG), requiring models to return an answer with line-level citations, and a joint Ans+Evid metric that scores correctness and grounding simultaneously. We reformulate two corpora into evidence-grounded multi-document QA benchmarks—MultiHop-RAG and QASPER-MP, a multi-paper adaptation of QASPER with realistic short paper cues—and pair them with a controlled synthetic two-hop haystack and an evidence-augmented NoLiMa spanning 10K–1M characters. Across eight frontier proprietary and three open-weight LLMs, EBG isolates two RAG limitations that long-context models avoid: similarity retrieval surfaces any relevant chunk far more reliably than all required chunks for multi-fact queries, and chunking destroys document meta-information needed to resolve identity-bearing queries. EBG also exposes grounding failures invisible to answer-only evaluation, including incomplete citations in two-needle settings and a widening gap between Ans and Ans+Evid when context contradicts parametric knowledge. Data and code are available at https://github.com/debobanerjee/LC-EBG.
Abstract source - EMNLP · Findings
STRESS-FG: Diagnosing Visual Grounding in Zero-Shot Fine-Grained Recognition
Ishtiaque Ahmed Khan, A. Lynn Abbott
Abstract
Zero-shot fine-grained recognition is a key test of visual grounding in vision-language models (VLMs), but current evaluations may conflate attribute grounding with reliance on class-label knowledge. We introduce STRESS-FG, a diagnostic benchmark spanning five fine-grained domains that systematically varies the relationship between class names and visual descriptions. The benchmark includes label-only, description-only, cue-conflict, and synthetic-label settings, as well as negated-attribute, multi-image, reference-conditioned, and part-based grounding tasks. Evaluating up to thirteen VLMs shows that label-only prompts are often surprisingly strong, indicating substantial familiarity with class-label priors. Synthetic labels can facilitate stronger attribute grounding evaluation, while familiar but incorrect class labels can suppress grounding capabilities under cue conflict. We further find that negation, multi-image matching, and reference-conditioned selection remain challenging, and part-based analyses show only partial reliance on the correct localized evidence. Finally, our binary question format reveals that models often struggle to reject fine-grained distractors, a weakness hidden by traditional Multiple Choice Question evaluations. These results suggest that standard fine-grained benchmarks may overestimate grounded visual understanding and should more explicitly separate label priors from attribute-based recognition. Code and dataset are available at: https://github.com/Ishtiaque-khan97/Stress-FG.
Abstract source - EMNLP · Findings
Multi-Label Delegation Target Identification in Japanese Law
Tsuyoshi Fujita, Yuya Sawada, Yusuke Sakai, Taro Watanabe
Abstract
Legal systems often employ legislative drafting practices in which higher-level laws delegate detailed regulations to lower-level laws. In particular, when a single provision delegates authority to multiple lower-level laws, readers must cross-reference many related provisions scattered across the entire bodies of law, imposing a substantial cognitive burden. Reflecting this real-world problem, this work proposes a novel multi-label delegation target identification task to identify all the delegated provisions corresponding to an input provision, with the focus on Japanese law. We construct pipeline systems combining a candidate retriever and a candidate classifier, using language models with diverse architectures. Experimental results show that adopting a cross-encoder-based binary classifier as a candidate classifier improves performance at finer granularities, establishing a solid baseline for the task. Furthermore, our comprehensive analyses reveal the remaining challenges in achieving sufficient performance on instances with many delegated provisions and identify typical error types, providing a foundation for future improvement.
Abstract source - EMNLP · Findings
PV-Decoding: Progressive Verification Decoding with Decode Gating for Diffusion Language Models
Renxi Liu, Yiming Li, Shengyin Sun, Chen Chen, Xian Wang, Shuai Yang, Chen xi, Wenbo Gao, Xiaoguang Li, Hui-Ling Zhen, Xianzhi Yu, Weizhe Lin, Xiaosong Li, Yaoyuan Wang
Abstract
Discrete diffusion language models (dLLMs) offer an attractive alternative to autoregressive generation by updating multiple tokens in parallel, but their inference efficiency is still limited by the cost of safely committing tentative predictions. In particular, speculative decoding for dLLMs is challenging because speculative tokens within the same diffusion block may depend on one another, making aggressive acceptance prone to error propagation and strict verification computationally expensive. We present PV-Decoding, a confidence-driven speculative decoding framework with progressive verification for block diffusion inference. PV-Decoding partitions masked positions into directly decoded tokens, speculative tokens, and unresolved tokens using two confidence thresholds, and then verifies speculative tokens with progressively stronger policies, including single-batch, dual-batch, and multi-batch verification. This design exposes a practical accuracy–efficiency trade-off: weaker verification minimizes overhead, whereas stronger verification improves acceptance precision and robustness. Experiments on three diffusion language models across GSM8K, MBPP, and HumanEval show that PV-Decoding reduces sequential model forward passes (MFPs) by 8%–37% relative to confidence-based decoding, while keeping the largest observed accuracy drop to 1.3%. On Dream-7B-Instruct/GSM8K, PV-Decoding (1-batch) and PV-Decoding (2-batch) improve throughput by 7.0%–13.6% under the same hardware budget, whereas PV-Decoding (multi-batch) is slower under the current runtime. These results suggest that confidence-guided speculation with structured verification is a practical path toward efficient and reliable dLLM inference.
Abstract source - EMNLP · Findings
Accelerate Speculative Decoding with Sparse Computation in Verification
Jikai Wang, Jianchao Tan, Yuxuan Hu, Jiayu Qin, Yerui Sun, Yuchen Xie, Xunliang Cai, Juntao Li, Min Zhang
Abstract
Speculative decoding accelerates autoregressive language model inference by verifying multiple draft tokens in parallel. However, the verification stage often becomes the dominant computational bottleneck, especially for long-context inputs and mixture-of-experts (MoE) models. Existing sparsification methods are designed primarily for token-by-token autoregressive decoding to remove substantial computational redundancy in LLMs. This work systematically adopts different sparse methods on the verification stage of the speculative decoding and identifies structured redundancy across multiple dimensions. Based on these observations, we propose a sparse verification framework that jointly sparsifies attention, FFN, and MoE components during the verification stage to reduce the dominant computation cost. The framework further incorporates an inter-draft token and inter-layer retrieval reuse strategy to further reduce redundant computation without introducing additional training. Extensive experiments across summarization, question answering, and mathematical reasoning datasets demonstrate that the proposed methods achieve favorable efficiency-accuracy trade-offs and can be translated into practical latency reduction with optimized sparse kernels.
Abstract source - EMNLP · Findings
Causally Redundant Reasoning: A Dual-Disruption Test Framework for Measuring Shortcut Tendencies in Chain-of-Thought
Jiwoo Kim, Jongwuk Lee
Abstract
A chain-of-thought (CoT) rationale can be coherent and answer-consistent while remaining causally unused. We call this phenomenon shortcut reasoning: the model appears to reason through CoT, but its answer does not depend on the expressed trace. We formalize shortcut reasoning as causal redundancy and propose a dual-disruption framework for measuring shortcut tendencies in CoT by testing two complementary aspects of causal explanation: necessity and sufficiency. We operationalize them as two behavioral signals: whether the answer changes under CoT disruption, and whether the answer can be recovered from the CoT after masking the original input. We instantiate this framework with CORD (Causal Redundancy of Reasoning via Disruption), an instance-level score that combines both signals. The two axes reduce complementary ambiguities in single-axis tests: answer preservation under CoT disruption can reflect shortcut use or redundant truthful reasoning, while early answer recovery can reflect shortcut use or a compact truthful rationale. Across 6 models and 2 datasets, CORD reveals a training-paradigm effect: R1-Distill models exhibit roughly twice the shortcut tendency of non-distilled models, while the two axes capture related but distinct signals. Together, these results motivate joint tests of necessity and sufficiency for detecting shortcut tendencies that can remain hidden behind correct answers.
Abstract source - EMNLP · Findings
MAS-Bai: Linguistically Informed Adaptive Multi-Agent Translation for Bowen-Script Bai
Jingting Zheng, Hong Ren, Yuehan Cui, Shaolin Zhu, Deyi Xiong
Abstract
Large Language Models (LLMs) remain unreliable for extremely low-resource languages whose writing systems conflict with high-resource pretraining priors. We study Bai-Chinese translation in the Bowen script, where Chinese characters are frequently borrowed phonetically rather than semantically, causing severe literal-translation hallucinations. We propose MAS-Bai, a linguistically informed adaptive multi-agent framework for Bowen-script Bai-Chinese translation. MAS-Bai routes each input through either a lightweight retrieval-translation path or a deeper philological path with etymological and syntactic agents, and uses cycle-consistency with a lightweight reverse translator as an inference-time reliability signal. We construct a 6,536-sentence Bai-Chinese corpus and evaluate on a 1,536-sentence test set. MAS-Bai achieves 16.23 BLEU and 62.15 COMET, improving over Standard RAG by 8.11 BLEU and 6.85 COMET. Forward LoRA, expert ablations and controlled routing experiments distinguish the roles of supervised adaptation, Bai-specific expertise and conditional routing. The largest gains occur on Bowen phonetic loans and divergent Bai word order, while human evaluation and reverse-verifier analyses support the automatic results.
Abstract source - EMNLP · Findings
Aligning LLMs for Crystal Material Design: Test-Time Reinforcement Learning and Model Merging
Pengyu Wang, Yang Han, Xin Chen, Kai Yu, Tong Zhu, Lu Chen, Bo Chen
Abstract
Conditional crystal generation requires Large Language Models (LLMs) to produce Crystal Strings with discrete and continuous variables while satisfying composition, symmetry, and property constraints. Desired regions are often sparse in supervised data, while retraining for each objective preference is costly. We present a verifier-grounded framework combining label-free Test-Time Reinforcement Learning (TTRL) and Model Merging (MM). TTRL performs one batch-level, partially transductive adaptation per property using composition, symmetry, and learned band-gap rewards, without target reference structures. Property-specific experts are interpolated to navigate bounded symmetry–band-gap trade-offs without retraining intermediate policies. On MP-20, TTRL improves symmetry control, band-gap accuracy, and compositional fidelity over High-Precision SFT and Standard RL, and is competitive with diffusion and preference-aligned baselines. In a held-out high-band-gap region, TTRL generalizes to test prompts unseen during adaptation, reducing the mean squared error between surrogate-predicted and target band gaps by 52% relative to standard reinforcement learning under best-of-ten sampling. An independent band-gap predictor shows consistent gains, while density functional theory calculations further assess selected candidates. Similar gains with Qwen3.5-9B provide cross-backbone evidence. Model Merging recovers competitive two-objective trade-offs from two endpoint experts without additional RL, enabling efficient adaptation and preference control for structured scientific generation.
Abstract source - EMNLP · Findings
Diagnosing Knowledge Conflict in Multimodal Long-Chain Reasoning
Jing Tang, Kun Wang, Haolang Lu, Hongjin Chen, KaiTao Chen, Zhongxiang Sun, Qiankun Li, Lingjuan Lyu, Guoshun Nan, Zhigang Zeng
Abstract
Multimodal large language models in long chain-of-thought reasoning often fail when different knowledge sources provide conflicting signals. We formalize these failures under a unified notion of knowledge conflict, distinguishing input-level objective conflict from process-level effective conflict. Through probing internal representations, we reveal that: **(I) Linear Separability**: different conflict types are explicitly encoded as linearly separable features rather than entangled; **(II) Depth Localization**: conflict signals concentrate in mid-to-late layers, indicating a distinct processing stage for conflict encoding; **(III) Hierarchical Consistency**: aggregating noisy token-level signals along trajectories robustly recovers input-level conflict types; and **(IV) Directional Asymmetry**: reinforcing the model’s implicit source preference under conflict is far easier than enforcing the opposite source. Our findings provide a mechanism-level view of multimodal reasoning under knowledge conflict and enable principled diagnosis and control of long-CoT failures. Code is available at [anonymous link](https://anonymous.4open.science/r/Diagnosing-Knowledge-Conflict-C78D/).
Abstract source - EMNLP · Findings
Before the First Token: Jailbreak Detection with Attention Probes
Pedro Faustini, Annabelle McIver, Mark Dras
Abstract
Large language models (LLMs) are deployed with safety guardrails, yet jailbreak attacks and malicious prompts keep bypassing them. Re-aligning an LLM each time a new attack appears is more expensive than crafting attacks, so jailbreak detection is increasingly framed as a pre-processing step: a cheap detector filters out a malicious prompt before it reaches the LLM. This need is reinforced by multilingual attacks, where simply translating a prompt to another language can bypass the guardrails. Our goal is to find whether internal representations of a frozen LLM already separate malicious from benign prompts, and whether such a signal is resilient against translation. We study two types of detectors that require no fine-tuning of the LLM: a logistic-regression classifier over whole-sentence embeddings, and a probe-based detector that trains one logistic-regression probe per attention head on the attention activations of the last input token. They need at most a single forward pass. Our experiments show that both match or outperform strong sentence-embedding detectors and off-the-shelf baselines, specially under translation. The probes degrade more gracefully on higher-resource languages and remain competitive on lower-resource ones. Our results indicate that a frozen LLM linearly encodes whether an incoming prompt is malicious in a small set of mid-to-late layers. Per-head attention probes thus offer a defence that can be cheaply retrained as new attacks emerge, without touching the underlying model.
Abstract source