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

41–60 of 276

  • EMNLP · Main

    CoRRSafe: Improving LRM Safety via Co-optimized Fine-Grained Reasoning and Response Alignment

    Yangxiao Song, Bing Xu, Bufan Xu, Muyun Yang, Conghui Zhu, Huanqin Wu, Bojie Hu, Hongjiao Guan, Wenpeng Lu

    Abstract

    Large reasoning models (LRMs) with explicit Chain-of-Thought (CoT) face significant safety risks, where unsafe content may appear in intermediate reasoning even when the final response is safe. Existing safety alignment methods often ignore the safety of the reasoning and frequently suffer from over-alignment issues. To address these, we propose CoRRSafe (Co-optimized Reasoning and Response Safe), a two-stage framework designed to comprehensively enhance LRM safety while balancing safety and over-refusal. The method begins with a response cold-start stage using filtered high-quality data for initial alignment on responses. Then we implement a GRPO-based training strategy with fine-grained rewards to jointly evaluate segmented reasoning steps and final answers. This approach effectively guides the model to autonomously learn safe reasoning and response behaviors. Experiments on multiple LRMs show that CoRRSafe achieves state of the art performance in reasoning safety and achieves the best trade-off between safety and false refusal. On DeepSeek-Distill-R1-8B, it raises the Reasoning Safety Rate from 16.86% to 89.31% and reduces the Attack Success Rate from 78.74% to 4.06%, with only a 16.56% increase in false refusal. Further analysis confirms that co-optimizing reasoning and response is essential, as optimizing either alone fails to overcome safety performance ceilings.

    Abstract source
  • EMNLP · Main

    Diagnose, Then Refine: A Closed-Loop TTS System with AudioLLM-guided Correction

    Zeyang Song, Tianchi Liu, Tianrui Wang, Chenglin Xu, Steven Y. Guo, Haizhou Li

    Abstract

    Current TTS systems typically rely on open-loop, single-pass generation and can produce sporadic local prosodic defects, such as misplaced stress, unnatural pauses, or flattened intonation, that utterance-level metrics often fail to expose. We present LoopTTS, a judge-guided Filter-Judge-Refiner framework for recovering low-quality TTS outputs diagnosed by an AudioLLM. Given an initial utterance from a base TTS model, an AudioLLM Judge identifies salient prosodic issues and generates structured refine instructions; a Refiner, our fine-grained instruction-following TTS model, then performs guided expressive re-synthesis conditioned on the initial utterance, target text, and instruction. To train the Refiner, we construct Refiner-DB, a 42K-example AudioLLM-annotated dataset with word-level prosodic weak supervision. Human evaluation on diagnosed low-quality utterances shows that LoopTTS can detect perceptually salient errors and correct them with the Refiner, outperforming raw generated audio and practical open-loop re-generation baselines in recovery quality. The Refiner also demonstrates stronger instruction-following ability for stress and pause control in targeted prosody modification. LoopTTS is available at https://github.com/Pooookeman/LoopTTS.

    Abstract source
  • EMNLP · Main

    FOCAL: Fine-Grained Optimal-Transport-Driven Contrastive Alignment of Language and ECGs with Waveform Enhancement

    Haitao Li, Che Liu, Zhengyao Ding, Ziyi Liu, Wenqi Shao, Zhengxing Huang

    Abstract

    Electrocardiograms (ECGs) are essential non-invasive tools for diagnosing cardiovascular diseases. While recent multimodal ECG-Report contrastive learning methods have shown promise for zero-shot ECG interpretation, they predominantly rely on global representations, failing to capture the fine-grained relationship between localized waveform patches and specific pathological tags. This limitation is further exacerbated by the fact that nearly 55% of standard clinical reports (e.g., in MIMIC-ECG) lack explicit waveform descriptions. In this paper, we propose FOCAL, a novel framework that achieves precise, fine-grained alignment between localized ECG segments and individual report tags via Optimal Transport. Furthermore, because fine-grained alignment at the tag level exacerbates the false negative problem among reports sharing common diagnoses, we introduce a semantic similarity matrix to guide the contrastive objective and correct misalignments. To address the scarcity of detailed waveform text, we introduce a coarse-to-fine enrichment pipeline that leverages Large Language Models (LLMs) to recover missing semantics, utilizing a coarse model verification step to rigorously filter out hallucinations. Extensive experiments across six datasets demonstrate that FOCAL establishes new state-of-the-art performance in zero-shot prediction and linear probing.

    Abstract source
  • EMNLP · Main

    LLM Fine-tuning with an Unconstrained Fine-tuned Teacher

    Jianhao Zhang, Ou Wu, Yi Du

    Abstract

    Fine-tuning large language models (LLMs) on a single target task requires balancing task adaptation with retention of prior capabilities. Existing teachers mainly guide preservation or transfer, but do not identify which target-task samples should be emphasized when fine-tuning must retain prior capabilities. We propose the **U**nconstrained **F**ine-tuned **T**eacher (**UFT**), shifting the teacher role from ”knowledge transfer” to ”value discovery”. UFT is obtained by unconstrained fine-tuning on the target task and then compared with the source model to identify high-value samples. These samples are upweighted during student fine-tuning and receive value-weighted UFT-guided distillation, allowing the student to prioritize task-critical signals while preserving prior capabilities. Experiments on Magicoder and MetaMathQA show that UFT improves the trade-off between target-task performance and prior-capability retention, while converging faster and more stably. By turning teacher behavior into sample-value discovery, UFT establishes a new teacher role for data-efficient fine-tuning.

    Abstract source
  • EMNLP · Main

    Bridging Text and Structure via Latent Query Refinement for Knowledge Graph Completion

    Chunmiao Yu, Zikang Wang, Tianyi Luo, Jiaojiao Wang, Zhidong Cao

    Abstract

    Knowledge graph completion(KGC) aims to infer missing facts from observed relational triples, which demands jointly modeling textual semantics and relational structure. Existing structure-based methods capture graph topology but often struggle with sparse entities and long-tail relations, while text-based methods exploit entity and relation descriptions but weakly model relational neighborhoods. In this paper, we propose LQ-KGC, a latent-query refinement framework that enables iterative interaction between semantic inference and structural reasoning for KGC. Instead of treating all missing triples as latent variables, LQ-KGC constructs a restricted set of semantically plausible latent queries and alternates between two refinement steps: the language model predicts latent tail distributions from textual descriptions, while the graph model incorporates high-confidence pseudo tails as pseudo edges for relation-aware message passing. Meanwhile, structure-aware graph predictions are distilled back into the language model to refine semantic representations. Experiments on WN18RR and FB15k-237 demonstrate that LQ-KGC consistently improves over text-based and graph-based baselines, with additional analyses highlighting the effectiveness of pseudo-edge augmentation and latent-query construction.

    Abstract source
  • EMNLP · Main

    Can Humans Dream of Electric Sheep? Human-Written Samples for Fine-Grained Vision-and-Language Hallucination Benchmarking

    Timothee Mickus, Claudio Savelli, Eduardo Calò, Emilio Raimond, Stella Frank, Hengyu Luo, Flavio Giobergia, Vincent Segonne, Chuyuan Li, Aman Sinha, Lorenzo Vaiani, Jörg Tiedemann, Raúl Vázquez

    Abstract

    In an age of rapid model turnover, how do we make hallucination evaluation more perennial? We explore whether human-written hallucination samples could take the place of model-generated hallucinations, in order to make benchmarking detection independent of particular models. To this end, we construct SHEEP, a dataset of 1,600 human-written samples, spanning four languages (Chinese, English, French, Italian), and 18,400 samples from five vision-and-language models, all annotated for hallucinations using a fine-grained span-level labeling scheme. We find that human-written samples result in higher agreement and allow greater control of dataset contents, while remaining distributionally similar to samples derived from vision-and-language samples and providing a reasonable portrayal of detection capabilities — suggesting that human data is a viable substitute for model-based hallucination benchmarks.

    Abstract source
  • EMNLP · Main

    In-Place Feedback: Reliable Refinement for Multi-Turn Expert-LLM Collaboration

    Youngbin Choi, Minjong Lee, Saemi Moon, Seunghyuk Cho, Chaehyeon Chung, MoonJeong Park, Dongwoo Kim

    Abstract

    LLM-generated drafts often contain subtle factual or logical errors, yet prior work shows that models struggle to reliably integrate multi-turn feedback aimed at fixing them. We propose *in-place feedback*, an interaction paradigm in which the user directly edits the model’s previous response and the model continues generation from the edited context. In-place feedback consistently outperforms standard multi-turn feedback across five reasoning-intensive benchmarks while requiring fewer tokens, and our fine-grained analysis shows that it applies corrections more reliably and propagates them to subsequent reasoning. A user study with domain experts refining LLM-generated summaries corroborates these findings: participants report higher final-output satisfaction and substantially lower fatigue with in-place feedback, and a mixed strategy combining in-place and multi-turn feedback improves every dimension we measure. These results suggest that editing errors in place is a more reliable way to incorporate expert corrections than multi-turn feedback, while combining the two acts complementarily to form a more effective collaboration than either mechanism alone.

    Abstract source
  • EMNLP · Main

    COPILOT: Controlling Fine-grained Provider Preference in LLM Recommendations

    Xiaoyu Zhang, Yimin Ding, Qingshuang Bao, Chenhao Lin, Chao Shen, Bo Yang, Yang Liu

    Abstract

    Large language models (LLMs) increasingly serve as recommendation engines, yet existing preference control work primarily focuses on coarse-grained objectives such as safety, helpfulness, or writing style, while overlooking fine-grained provider preferences, i.e., user preferences over specific brands, platforms, or services. Such preferences are often multi-intent, context-dependent, and dynamically changing, making them difficult to control with prompting, fine-tuning, or activation steering methods. In this paper, we present COPILOT, a plug-and-play, training-free framework. It first decomposes each prompt into sub-tasks with corresponding user-specific provider preference configurations. Then it uses a diffusion language model to draft sub-task responses with hard preference constraints injected at the initial mask, which are finally completed into fluent answers by the target LLM. Experiments across code and text domains on three target LLMs show that COPILOT effectively improves provider preference satisfaction by up to 58.9% over the strongest baselines while reducing irrelevant provider mentions by up to 87.8% to ensure the recommendation quality. This work aims to lay a foundation for LLM recommendations that balance personalized experience with real-world application values.

    Abstract source
  • EMNLP · Main

    TRACE-GRPO: Teacher-Refined Advantage Credit Estimation for Long-Horizon Agentic RL

    Yuchen Liu, Tianchu Yao, Deshu Chen, Yinghao Zhang, Xigui Li, Zehui Ling, Xin Guo, Yuan Cheng, Chao Qu, Lintao Ma, Yuan Qi

    Abstract

    Group-Relative Policy Optimization (GRPO) is widely used to post-train LLM agents, but its trajectory-level advantage is ill-suited to long-horizon credit assignment. Reward-homogeneous rollout groups yield zero advantage; otherwise, one scalar uniformly scales every token, obscuring which decisions determine the outcome. We propose **TRACE-GRPO** (**T**eacher-**R**efined **A**dvantage **C**redit **E**stimation for GRPO), which converts teacher-LLM feedback into hierarchical credit. Teacher scores provide a sample-level fallback for zero-variance groups, reweight trajectory advantage at the turn level, and redistribute turn credit at the token level using the policy’s log-probability shift under a teacher critique. This yields dense training-time credit without token-level annotations or learned critics. We also introduce **CAPA** (Critique-Aware Paged Attention), which reuses trajectory KV caches and reduces the isolated critique-conditioned forward from roughly 2\times a vanilla GRPO step to approximately 5% of a training step. On ALFWorld and ScienceWorld with Qwen2.5-7B-Instruct, TRACE-GRPO achieves 96.3% and 73.4% success, respectively, outperforming strong agent RL baselines. Ablations show cumulative gains from the three credit levels, and comparison with supervised fine-tuning on teacher-generated successes confirms that critique-guided policy optimization provides benefits beyond imitation. Code is available at [https://github.com/Lau-Jonathan/TRACE-GRPO](https://github.com/Lau-Jonathan/TRACE-GRPO).

    Abstract source
  • EMNLP · Main

    GSR-LoRA:Group-Sparse Routing-aware Low-Rank Adapter Compression for Multi-Task Mixture-of-Experts Fine-Tuning

    Weimin Cheng, Chengyu Zhao, Xuanjing Huang, Yatian Shen

    Abstract

    In multi-task mixture-of-experts parameter-efficient fine-tuning, fixed-rank Low-Rank Adaptation (LoRA) adapters often struggle to accommodate the heterogeneous representation requirements across different tasks and network layers. Existing methods mainly focus on task-level expert selection, layer-wise rank allocation, or post-training parameter compression, making it difficult to jointly characterize low-rank capacity differences across tasks, layers, and modules within a unified framework. To address this issue, we propose Group-Sparse Routing-aware Low-Rank Adaptation (GSR-LoRA), a routing-aware structured rank compression method for multi-task parameter-efficient fine-tuning (PEFT). Specifically, we model low-rank components as selectable rank groups and use a task-dependent router to allocate rank capacity across tasks. Furthermore, we introduce a Group Lasso structured sparsity constraint to suppress redundant rank groups during training, forming a prunable adapter structure. During compression, we select rank groups by jointly considering parameter importance and routing usage signals, and map the router to the compressed rank space to obtain compact LoRA adapters that remain consistent with task routing. Experiments on GLUE show that GSR-LoRA reduces the average adapter rank from 16 to 5.5, removing 65.6% of rank components with only a 0.1-point performance degradation. These results demonstrate its ability to learn compact task-adaptive LoRA adapters while preserving multi-task performance. The code is available at https://github.com/HNLP93/GSR-LoRA

    Abstract source
  • EMNLP · Main

    GENIE: A Fine-Grained Measure for Novelty

    Ramya Namuduri, Manya Wadhwa, Anshun Asher Zheng, Greg Durrett, Junyi Jessy Li

    Abstract

    Large Language Models have consistently demonstrated a lack of creativity and diversity across tasks. Prior work has focused on addressing \textit{whether} models are capable of generating creative outputs. Here, we aim to consider \textit{novelty} and investigate what makes model-generated content novel or not novel in a task-specific manner. We propose a fine-grained evaluation metric \textbf{GENIE} to measure the novelty of responses along task-specific \textit{features} with respect to a population of responses. We show that unlike \textbf{GENIE}, holistic metrics struggle to capture the high-dimensionality of novelty and do not provide insight on which properties they target. Finally, we use \textbf{GENIE} to measure the effectiveness of mitigation methods that address creativity to better understand where these methods can improve novelty.

    Abstract source
  • EMNLP · Main

    DECENT: Distribution-aware Prototypical Calibration with Fine-grained Voting for VLM Misclassification Detection

    Yijun Gong, Bohan Yang, Zhi Zhang, Yupeng Qin, Wenpeng Xing, Changting Lin, Meng Han, Ziyue Qiao, Xiao Luo

    Abstract

    This paper studies the problem of misclassification detection for vision-language models (VLMs), which aims to identify samples wrongly assigned by the pre-trained VLM. Previous works usually focus on exploring the latent space and measuring pairwise similarity scores for confidence estimation. However, these similarity scores can be biased for boundary points with different fine-grained features. To address this issue, this paper proposes an approach named Distribution-aware Prototypical Calibration with Fine-grained Voting (DECENT). The core idea of DECENT is to utilize probabilistic distributions to characterize both the semantics of the test image and its corresponding class prototype. Specifically, we first conduct clustering within each class in the latent space to construct a distribution of fine grained prototypes. More importantly, multiple augmented views of the test image are considered as samples from its underlying semantic distribution. Then, we measure the distribution distance between the image’s underlying semantic distribution and its neighboring fine grained prototype distributions, which is aggregated via fine-grained voting into a distributional score. This score can be fused with the VLM’s semantic alignment score to significantly enhance misclassification detection sensitivity, or to improve overall classification robustness. Extensive experiments on benchmark datasets validate the dual effectiveness of the proposed DECENT.

    Abstract source
  • EMNLP · Main

    The Illusion of Expertise: Narrow Finetuning Induces Persistent Domain Priors in Vision-Language Models

    Qinglin Zeng, Jusheng Zhang, Jiangqi Huang, Ningyuan Liu, Luozhang Xu, Wenhao Wang, Keze Wang

    Abstract

    Narrow-domain finetuning makes vision-language models (VLMs) sound like domain experts while quietly making them less attentive to the image. We attribute this gap to a persistent domain prior: an input-agnostic shift in hidden state, installed by narrow finetuning, that biases the model toward domain-style outputs regardless of visual evidence. To test the claim we introduce ActDiff, a white-box diagnostic that isolates the finetuning trace by differencing base and finetuned hidden states under progressively degraded images. The trace is compact and persists under blank and Gaussian-noise inputs; the finetuned model is correspondingly less, not more, disrupted when the image is destroyed (gap 0.323 ± 0.036 nats on BIOMED, generic eval). Subtracting the trace at inference recovers 54% of the MMStar accuracy collapse on BIOMED, with a peak-and-collapse dose response that random and wrong-domain controls do not produce. A single first-moment regulariser added at training time shrinks the trace 34x and improves generic NLL. The prior thus has a clean diagnostic, a causal handle at inference, and a one-line mitigation at training.

    Abstract source
  • EMNLP · Main

    Towards Understanding Pause Token Fine-Tuning Dynamics: A Mode Retention Perspective

    Jaehyeon Kim, Suhwan Kim, Nakyung Lee, Yeongoon Kim, Jimin Seo, Giho Lee, Jungwoo Lee

    Abstract

    Pause-token methods improve LLM reasoning by inserting special tokens into sequences. Prior work explains these gains through computational expressivity. However, there is relatively little investigation into the training dynamics of pause tokens. We explore how pause tokens reshape the training dynamics of fine-tuning. Two controlled pilots expose distinct asymmetries. On a synthetic continual-learning task, masked pauses overwrite a previously-learned distribution roughly 4× less at matched final adaptation (H1, \textbf{mode retention}); on a synthetic math-reasoning probe, the boundary-adjacent token comes to encode substantially more downstream-step information (H2, \textbf{non-myopic compression}). We formalize a training rule consistent with both — Masked Boundary Pause (MBP), pause tokens placed at reasoning-step boundaries with their loss masked. Across 1B-8B Qwen and Llama models, MBP consistently improves reasoning, achieving gains of up to 6 points on math and 2.5 points on code, while preserving general language understanding abilities. We further demonstrate that the gains from this mode-preserving strategy extend to GRPO. These results recast pause tokens as a training-dynamics intervention on the retention–adaptation trade-off, rather than merely an inference-time computation device.

    Abstract source
  • EMNLP · Main

    Rethinking Diffusion Large Language Models via Time-aware Weighting and Block-oriented Refinements

    Zheyong Xie, Shengrui Li, Li Zhong, Kaiyan Zhao, Fangcheng Shi, Jiakang Wang, Huayi Jin, Zhaokai Luo, Fei Zhao, Haifeng Liu, Jieying Ye, Chonggang Lu, Wenxuan Huang, Yue Liu, Zijie Meng, Shaosheng Cao

    Abstract

    Diffusion Large Language Models (DLLMs) have recently emerged as a parallel alternative to autoregressive models, offering bidirectional context modeling and parallel decoding. However, developing highly performant DLLMs is hindered by lifecycle challenges, including suboptimal timestep weighting in pre-training, train-inference distribution gaps in post-training, and underutilized caching during inference. To address these obstacles, we introduce ReDLLM, a 30B-parameter Mixture-of-Experts DLLM. It incorporates a time-aware weighting strategy during continual pre-training that scales gradients according to denoising difficulty. Furthermore, we propose two block-oriented refinements: a terminal-block treatment to narrow the train-inference gap, and a block-aware inference pipeline featuring inline block prefill and block-level scheduling to maximize KV-cache reuse and parallelization. Extensive evaluations demonstrate that ReDLLM surpasses existing DLLMs at the same active-parameter scale, achieves generation quality competitive with 100B DLLMs, and attains the highest inference throughput among evaluated models.

    Abstract source
  • EMNLP · Main

    From Instance Selection to Fixed-Pool Data Recipe Search for Supervised Fine-Tuning

    Haodong Wu, Jiahao Zhang, Lijie Hu, Yongqi Zhang

    Abstract

    Supervised fine-tuning (SFT) data selection is commonly formulated as instance ranking: score each example and retain a top-k subset. However, effective SFT training subsets are often produced through ordered curation recipes, where filtering, mixing, and deduplication operators jointly shape the final data distribution. We formulate this problem as fixed-pool data recipe search: given a raw instruction pool and a library of grounded operators, the goal is to discover an executable recipe that constructs a high-quality selected subset under a limited budget of full SFT evaluations, without generating, rewriting, or augmenting training samples. We introduce AutoSelection, a two-layer solver that decouples fixed-pool materialization based on cached task-, data-, and model-side signals from expensive full evaluation, using warmup probes, realized subset states, local recipe edits, Gaussian-process-assisted ranking, and stagnation-triggered reseeding. Experiments on a 90K instruction pool show that AutoSelection achieves the strongest in-distribution reasoning average across three base models, outperforming full-data training, random recipe search, random top-k, and single-operator selectors. Additional held-out reasoning, instruction-following, graph-reasoning, search-stability, structural-ablation, and 1.5B-to-7B transfer results further show that recipe structure matters beyond individual selection operators. Code is available at https://github.com/w253/AutoSelection.

    Abstract source
  • EMNLP · Main

    TIDE: Tree-Induced Fine-Grained Diagnostic Evaluation from Model Behaviors

    Jiayi Chen, Hui Li, Yujiong Shen, Qiyuan Peng, Yanxin Li, Chenhao Huang, Shaofan Liu, Guoqiang Zhang, Junjie Ye, Shihan Dou, Ming Zhang, Maxm Pan, Tao Gui, Qi Zhang, Xuanjing Huang

    Abstract

    Benchmark performance is the dominant standard for comparing large language models (LLMs), typically summarized by a single aggregate score, such as accuracy, pass rate, or rubric score. This aggregate score provides limited information about a model’s underlying capabilities, yet understanding these capabilities is crucial for model development and evaluation. To this end, we propose Tree-Induced Diagnostic Evaluation (TIDE), which recasts diagnostic evaluation as behavior-driven decision-tree induction to perform fine-grained capability diagnosis. TIDE recursively builds a hierarchical capability tree from benchmark samples and model scores: at each node, an LLM judge proposes candidate splits and performs sample-to-group classification, and behavior-based information gain selects among them. We apply TIDE to five models across four benchmarks to demonstrate its effectiveness, and find fine-grained capability contrasts invisible at the aggregate level: Claude Opus 4.6 achieves 100% on microeconomic market reasoning where GPT-5.4 scores 83.3%, but trails GPT-5.4 on contract law reasoning with 77.8% versus 88.9%. We hope TIDE can be extended to past and future benchmarks so that the rich behavioral signal in evaluation results is fully leveraged for understanding model capabilities.

    Abstract source
  • EMNLP · Main

    REFINE: LLM Refinement over Budgeted Text-Attributed Graphs for Personalized Medical Concept Representation

    Mohsen Nayebi Kerdabadi, Arya Hadizadeh Moghaddam, Dongjie Wang, Zijun Yao

    Abstract

    Learning rich medical concept representations is essential for EHR prediction. Text-attributed knowledge graphs (TKGs) provide a natural foundation by organizing heterogeneous medical relations together with textual semantics. However, most existing encoders process concepts uniformly across patients, despite the fact that a code’s meaning and predictive value depend on patient-specific clinical context and trajectory. Learning patient-personalized concept representations from TKGs introduces two key challenges: (1) deciding how much KG context to incorporate for each observed code, and (2) aligning semantic information with the patient-specific relational structure. We propose REFINE, a KG-aware budgeted LLM graph refinement framework for patient-personalized medical concept encoding. Starting from a global TKG, REFINE constructs patient-specific temporal graphs. A sequential reinforcement learning policy selects a personalized KG expansion budget for each observed code. The resulting patient graph is processed by a heterogeneous GNN to capture relation-aware structural dependencies, while a frozen LLM uses graph-aware soft prompts to semantically refine concept representations. Experiments on MIMIC-III and MIMIC-IV show that REFINE consistently improves diverse EHR backbones, outperforms strong baselines, and demonstrates robust gains across component ablation, KG selection, and data insufficiency.

    Abstract source
  • EMNLP · Main

    SkillAttack: Automated Red Teaming of Agent Skills through Attack Path Refinement

    Zenghao Duan, Yuxin Tian, Zhiyi Yin, Liang Pang, Jingcheng Deng, Wenbin Duan, Yuyao Ge, Zihao Wei, Shicheng Xu, Xueqi Cheng

    Abstract

    LLM-based agent systems increasingly rely on open-registry skills, which are difficult to vet and expose agents to greater attack risks. These attacks mainly take two forms. Malicious injection attacks embed explicit harmful instructions into skills and are readily caught by auditing. Direct vulnerability attacks target latent flaws in non-malicious skills; however, directly crafted attack prompts often lead to unstable or unverified outcomes. We introduce **SkillAttack**, an automated red-teaming framework that systematically explores executable attack paths from latent vulnerabilities without modifying skill files. Evaluated across 11 target LLMs, SkillAttack substantially outperforms baselines, showing that well-intended skills can pose serious risks in realistic agent interactions. Our evaluation also yields trajectory-level attack traces with verified risk labels, providing a foundation for defense. We also release **SkillRiskBench**, a benchmark for skill risk analysis, and train a lightweight pre-execution risk guard that predicts risky invocations from the user request and skill file. The guard outperforms frontier LLM judges and existing safety guard models, highlighting the value of trajectory-grounded supervision for proactive skill defense. Code is available at https://github.com/Zhow01/SkillAttack.

    Abstract source
  • EMNLP · Main

    DataShield: Uncovering Risky Fine-Tuning Data Across LLMs Through Consensus Subspace Alignment

    Zefeng Wu, Weiwei Qi, Jielong Chen, Tianhang Zheng, Di Hong, Chaochao Lu, Liang He, Zhan Qin, Kui Ren

    Abstract

    Fine-tuning large language models (LLMs) on domain-specific datasets has become a standard paradigm for adapting LLMs to specialized applications. However, recent work has shown that even fine-tuning on benign task-specific data can substantially weaken the safety capabilities of LLMs. While existing efforts have made progress in identifying data responsible for safety degradation, they usually rely on a single mean vector computed over a specific model with its tokenizer to represent the safety direction, which limits both the effectiveness and transferability of their risk assessment measures. To address these limitations, we propose DataShield, a data assessment framework that identifies risky fine-tuning samples and response segments through consensus subspace alignment over joint safety-critical semantic spaces derived from multiple safety-aligned LLMs.Within these spaces, DataShield extracts consensus safe and unsafe subspaces using semantic spectral decomposition over safe and unsafe data representations. The risk of a data sample or segment is then estimated by measuring its relative alignment with the unsafe and safe subspaces, enabling both sample-level filtering and fine-grained segment-level masking. Compared with state-of-the-art filtering and masking baselines, DataShield reduces ASR by 14.6% with sample filtering and 32.3% with segment masking, while preserving downstream utility and avoiding target-model-specific risk computation.

    Abstract source