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 208

  • EMNLP · Main

    Quantifying and Mitigating Korean Jamo-Level Typographical Vulnerabilities in Large Language Models

    Seojin Lee, Hwanhee Lee

    Abstract

    Korean introduces an additional typographical perturbation level not captured by ordinary character-level edit models: because syllable blocks are internally composed of sub-character units called jamo, keyboard-level errors can occur \textit{within} a syllable, either producing a valid but semantically altered character or exposing raw jamo on the surface. Both outcomes disrupt sub-word tokenization and are not reliably corrected by existing grammatical error correction pipelines, leaving LLMs directly exposed to corrupted inputs. To quantify this vulnerability, we apply five jamo-level perturbation types to the KMMLU benchmark and evaluate four language models, finding that accuracy declines monotonically with perturbation intensity and that parameter scaling does not confer robustness against intra-syllabic noise. We further show that typo-corrupted inputs induce a distinct shift in internal representations that is not reducible to ordinary answer incorrectness, and that a simple linear probe trained on these representations detects unseen perturbation types with high AUROC. Motivated by this signal, we propose \textbf{Typo-Aware Chain-of-Thought (TACoT)}, which routes inputs to chain-of-thought inference only when the probe detects a likely typo, recovering a substantial portion of the CoT accuracy gain at a fraction of the inference cost.

    Abstract source
  • EMNLP · Main

    PRO-Step: Step-level Process Reward Optimization for Retrieval-Augmented Generation

    MinKeon Kim, Namjun Lee, Jaekwang Kim

    Abstract

    Retrieval-Augmented Generation enhances Large Language Models by grounding responses in external knowledge, but multi-hop reasoning remains vulnerable to error propagation, where early retrieval failures confound subsequent steps. Standard outcome-based optimization only rewards the final answer, leaving intermediate retrieval and reasoning errors undetected. While existing process-based methods introduce step-level signals, they still score each step against the final answer, rewarding spurious successes where flawed retrieval coincidentally produces the correct answer. Step-level supervision in RAG requires evaluating both logical validity and evidential grounding at each step. We introduce PRO-STEP: we train a generative PRM that evaluates both dimensions, employ PRM-guided value tree search to construct preference pairs contrasting valid steps against flawed ones, and optimize the policy via step-level Direct Preference Optimization. Experiments on single- and multi-hop QA datasets demonstrate that PRO-STEP mitigates error propagation and outperforms existing outcome- and process-based RAG baselines.

    Abstract source
  • EMNLP · Main

    PubMedCausal: A Span-Level Annotated Corpus for Causal Relation Extraction in Biomedical Text

    Ifeoluwa Oluwatosin Kunle-John, Paul Josiah, Oluwatosin Agbaakin, Peter Olusegun Aina, Ikenna Odezuligbo, Sydney Anuyah

    Abstract

    Causal relation extraction (CRE) is central to biomedical text mining, but current resources often conflate causal relations with broader associations, restrict annotation to sentence-level examples, or focus mainly on explicit causal cues. This limits their usefulness for evaluating whether models can recover causal claims as they are actually expressed in biomedical text. We introduce PubMedCausal, a span-level annotated corpus for biomedical CRE built from PubMed abstracts. The corpus contains 30,000 paragraph-level rows, including 3,945 causal rows and 6,491 adjudicated cause–effect pairs. Each causal relation is annotated with full-text cause and effect spans, causality type, and sententiality, enabling evaluation of both causal detection and full-span causal extraction. We benchmark discriminative encoders and open-source generative models across detection and extraction settings. For causal detection, biomedical encoders are strongest, with PubMedBERT reaching an F_1 score of 0.7391. For span-level extraction, the best generative baseline is DeepSeek-R1-32B with few-shot prompting, reaching a Cosine Pair F_1 of 0.6765. We further test transfer learning by evaluating PubMedCausal-trained encoders on external causal relation datasets, showing that the resource supports cross-dataset evaluation beyond its original biomedical setting. Our results show that biomedical CRE remains difficult under class imbalance, long causal spans, implicit causality, inter-sentential relations, and prompt sensitivity. PubMedCausal provides a high-quality benchmark for studying causal detection, full-span extraction, and the limits of current language models in biomedical causal reasoning.

    Abstract source
  • EMNLP · Main

    Multi-Level Implicit Discourse Relation Classification via Sequence-Level Reinforcement Learning

    Wei Liu, Xiaoyu Shen, Xiyan Fu

    Abstract

    Implicit Discourse Relation Classification (IDRC) identifies discourse relations between text spans when connectives are absent. The task is typically evaluated on the Penn Discourse Treebank (PDTB), where discourse senses are organized in a hierarchical structure. Recent unified models predict discourse labels level by level under teacher forcing, which leads to exposure bias and cascading errors across the hierarchy. Moreover, token-level training objectives fail to assess the correctness of the entire label sequence. We reformulate multi-level IDRC as hierarchical label sequence generation and optimize the full label sequence using sequence-level reinforcement learning. By sampling and ranking complete label sequences, the proposed framework directly optimizes global sequence correctness rather than isolated token-level decisions. Experiments on PDTB 2.0 and 3.0 demonstrate consistent improvements over strong baselines. Further analysis shows that fine-to-coarse decoding outperforms the conventional coarse-to-fine strategy, highlighting the importance of decoding order in hierarchical discourse modeling.

    Abstract source
  • EMNLP · Main

    Improving Argument Saliency Coverage in Small LLMs for Long Legal Opinion Summarization via Sequence-Level Distillation

    Mohamed Elaraby, Ahmed Elhady, Diane Litman

    Abstract

    We show that sequence-level distillation from a capable long-context teacher model is a simple, annotation-free, and data-efficient strategy for improving argument saliency coverage in long legal opinion summarization, where small LLMs often struggle to retain the most salient argumentative content. Across student model sizes, distillation consistently surpasses tuning on expert-written summaries. We further demonstrate that most gains are achieved with as few as 10 training summaries, highlighting the strong data efficiency of teacher-generated supervision. Finally, we find that summary distillation is sufficient for improvements: reasoning-chain distillation remains competitive with summary-only distillation, but provides marginal benefit when combined with summary supervision.

    Abstract source
  • EMNLP · Main

    LogicInception: Discourse-Level Indirect Prompt Injection via Causal Chain Construction

    Mingshuai Liu, Yijie Peng, Chen Dongxian, Mingfeng Li, Xin Li

    Abstract

    Existing indirect prompt injection (IPI) attacks commonly face a stealth-effectiveness tradeoff: features that make payloads effective can also make them detectable because attack intent is localized in a single payload. LogicInception moves IPI to discourse-level inference: attack logic is decomposed into register-matched declarative fragments distributed across tool outputs and linked by fabricated causal dependencies that the agent reconstructs through reasoning. To our knowledge, it is the first IPI framework to demonstrate successful unauthorized tool execution with no directive instruction anywhere in the injected content. No fragment contains a command or exploits instruction-following; the attack emerges from the agent’s own inference. We observe an empirical capability-safety amplification pattern: discourse-level amplification correlates with task capability across the evaluated models. On 1,139 scenarios with 5 defenses, LogicInception achieves 42.9-48.8% ASR at 88% per-fragment stealth, while all baselines remain below 8% composite success. The three prompt-level defenses reduce baseline ASR by up to 72% but reduce LogicInception by less than 7%; we trace this asymmetry to three architectural factors that motivate discourse-level rather than content-level countermeasures. This defense asymmetry is larger for higher-utility models in our evaluation, suggesting a tension between reasoning capability and safety.

    Abstract source
  • EMNLP · Main

    A Comparative Analysis of LLM Memorization at Statistical and Internal Levels: Cross-Model Commonalities and Model-Specific Signatures

    Bowen Chen, Namgi Han, Yusuke Miyao

    Abstract

    Memorization is a fundamental component of intelligence for both humans and LLMs. However, while LLM performance scales rapidly, our understanding of memorization lags behind. Due to limited access to the pre-training data of LLMs, most previous studies focus on a single model series, leading to isolated observations across series and making it unclear which findings are general and which are model-specific. In this study, we collect multiple model series (Pythia, OpenLLaMA, StarCoder, OLMo1/2/3) and analyze their shared or unique memorization behavior at both the statistical and internal levels, connecting individual observations while showing new findings. At the statistical level, we reveal that the memorization rate scales log-linearly with model size, and memorized sequences can be further compressed. Further analysis demonstrated a shared frequency and domain distribution pattern for memorized sequences. However, different models also show individual features under the above observations. At the internal level, we find that LLMs can remove certain injected perturbations, while memorized sequences are more sensitive. By decoding the middle layers and ablating attention heads, we reveal the general decoding process and the important heads that are shared for memorization. However, the distribution of those important heads differs across families, showing a unique family-level feature. By bridging various experiments and revealing new findings, this study paves the way for a universal and fundamental understanding of memorization in LLMs.

    Abstract source
  • EMNLP · Main

    GLARE: Repository-Level Code Optimization Agents for Heterogeneous CPU-GPU Systems

    Junfeng Gong, Cheng Liu, Junying Chen, Xiaowei Li, Huawei Li

    Abstract

    Recent LLM-based GPU code generation methods have shown promising results on CUDA and Triton kernels, but they typically operate on pre-isolated operators. Such a pre-isolated setting falls short in real-world CPU-GPU heterogeneous optimization, where the target computation is embedded in a larger repository and must be discovered, contextualized, selectively offloaded, and integrated. Such optimization requires repository-level context—including data structure definitions, caller patterns, build configurations, and profiling signals—that is largely absent from operator-level tasks and benchmarks. In this work, we propose GLARE, a profiling-guided framework for repository-level CPU-GPU heterogeneous optimization. GLARE anchors repository context in dynamic profiling signals, builds a multi-granular code dependency graph, extracts hotspot-centered active subgraphs, and uses an agentic loop to decide CPU-GPU partitioning and refine heterogeneous patches with execution feedback. On a GPU-acceleration subset of GSO with 63 tasks, GLARE improves OPT@1 from 74.6% to 87.3% over the strongest baseline under GPT-5.2, and achieves an 11.6% average end-to-end speedup. Ablation studies confirm that profiling-guided context construction is the primary driver of these gains.

    Abstract source
  • EMNLP · Main

    The Flaw of Averages: Measuring Benchmark-Level Distributional Robustness

    Arda Uzunoglu, Tianjian Li, Daniel Khashabi

    Abstract

    Benchmarks are central to measuring progress in language models, but aggregate scores can obscure substantial variation across subdomains, making models appear broadly competent despite concentrated strengths and weaknesses. We study this issue as benchmark-level distributional robustness: whether aggregate scores faithfully reflect performance across benchmark subdomains. We operationalize this notion with benchmark harmony, an entropy-based measure of how uniformly model performance is distributed across subdomains. Measuring harmony on 19 language model benchmarks across five model families, we find substantial variation in benchmark-level distributional robustness. Low-harmony benchmarks are more likely to yield aggregate scores that overstate broad competence, whereas high-harmony benchmarks provide more representative summaries of model capability. Rebalancing benchmarks by pruning overrepresented subdomains to increase harmony substantially shifts aggregate scores for low-harmony benchmarks, but leaves high-harmony benchmarks comparatively stable. For example, while BoolQ remains comparatively stable as harmony increases, PubMedQA, which evaluates performance in a medically consequential domain, exhibits substantial, often statistically significant, shifts in aggregate accuracy. Together, these findings show that aggregate scores can misrepresent broad competence when performance is unevenly distributed. We therefore recommend reporting benchmark harmony alongside aggregate accuracy as a diagnostic of benchmark representativeness when interpreting claims about broad model competence.

    Abstract source
  • EMNLP · Main

    Efficient Token-Level Policy Optimization for Masked Diffusion Models via Velocity Alignment

    Chenxing Wei, Jiazhen Kang, Hong Wang, Jianqing Zhang, Hao Jiang, Xuxiaolong, Ningyuan Sun, Ying He, Fei Yu, Yao Shu, Bo Jiang

    Abstract

    Reinforcement Learning with Verifiable Rewards (RLVR) successfully aligns autoregressive models in rigorous domains like mathematical reasoning and code generation. However, applying RLVR to Diffusion Large Language Models (dLLMs) is hindered by intractable sequence-level likelihoods, forcing existing methods to rely on unstable, high-variance approximations. We propose Sequence Likelihood-Free Policy Optimization (LFPO), an efficient framework that circumvents this bottleneck by formulating policy alignment as discrete velocity alignment. Inspired by continuous flow matching, LFPO eschews trajectory-level estimation and directly optimizes denoising logits via contrastive token-level updates, providing a stable, low-variance surrogate. Furthermore, predicting terminal solutions from intermediate states implicitly straightens the generation trajectory, enabling high-quality sampling with significantly fewer denoising iterations. Extensive experiments on reasoning and coding benchmarks demonstrate that LFPO matches or exceeds the accuracy of likelihood-based baselines while substantially accelerating inference.

    Abstract source
  • EMNLP · Main

    Beyond Codebook Uniformity: Triplet-Level Metrics and Triplet-Driven Semantic IDs for Generative Retrieval

    Xiang Tan, Dongliang Liao, Junwu Du, Haijun Wu, Run He, Shuquan Man, Ziqian Zeng, Huiping Zhuang

    Abstract

    Generative retrieval replaces item IDs with *Semantic IDs* (SIDs) decoded autoregressively by a sequence model. Playing the role of tokenizer, the codebook largely determines the quality of generative retrieval. Existing codebook metrics, however, only characterize the global uniformity of code usage and do not reveal whether an individual SID correctly represents its item or separates it from others. We address this problem with two metrics and a matching training objective. We build a query-centered triplet dataset q, a, p, n from large-scale user behavior, and based on which we define **Overlap**, a prefix-based distance between two SIDs, and **Pairwise Overlap Ranking (POR)**, the fraction of triplets where a codebook places the positive closer to the anchor than the hard negative. Both metrics correlate strongly with downstream Hit Rate in generative retrieval. We then introduce the **Differentiable Soft Overlap Loss (DSOL)** to make these two metrics differentiable during codebook learning and optimize them directly. On a public e-commerce benchmark (ESCI-us) and a large-scale industrial video search dataset, DSOL improves HR and POR over standard SID baselines.

    Abstract source
  • EMNLP · Main

    Beyond Case-Level Similarity: Multi-Defendant Legal Case Retrieval via Individual-Aware Reasoning

    Yi Yang, Ruize Ma, Yi Feng, Chuanyi Li, Vincent Ng

    Abstract

    Legal Case Retrieval (LCR) aims to identify cases that are legally similar to a given query case. Existing research has largely recast LCR as the task of modeling the textual similarity between the query case and a historical case. While this approach can handle single-defendant cases fairly easily, such surface-level matching proves insufficient for multi-defendant cases, which typically requires modeling and aligning defendants’ roles and judgment outcomes in different cases. To address the challenges associated with Multi-defendant LCR (Multi-LCR), we (1) present Multi-ELAM and Multi-LeCaRDv2, two multi-defendant datasets we create by enriching widely used benchmarks with defendant-level annotations, and (2) introduce a novel role- and judgment-aware framework for Multi-LCR. Experimental results show that our approach outperforms state-of-the-art baselines, highlighting its effectiveness for Multi-LCR.

    Abstract source
  • EMNLP · Main

    DITING: Evaluating Sentence-Level Cultural Meaning in Web Novel Translation

    Enze Zhang, Jiaying Wang, Mengxi Xiao, Jifei Liu, Zhiwei Hu, Ziyan Kuang, Rui Dong, Youzhong Dong, Mohsinul Kabir, Victor Gutierrez Basulto, Min Peng, Qianqian Xie, Sophia Ananiadou

    Abstract

    Large language models are increasingly regarded as strong translators, yet it remains unclear what their success establishes beyond overall translation quality. This question is especially consequential in Chinese web novel translation, where sentence-level cultural meaning shapes tone, characterization, and reader experience. Existing evaluation provides only indirect evidence, as benchmarks emphasize overall quality and available metrics do not explicitly assess the cultural and pragmatic phenomena underlying reader experience. We introduce DITING (a mythological creature known for discerning truth), the first comprehensive evaluation framework for this problem, supported by an expert-annotated benchmark of over 18K Chinese-English sentence pairs, a reasoning-driven multi-agent evaluator, AgentEval, and a 1,440-pair meta-evaluation benchmark, MetricAlign. AgentEval achieves the strongest correlation with human judgments among eight representative automatic metrics. Applying DITING to 14 translation systems shows that current progress is selective rather than general: frontier LLMs lead overall, but their gains concentrate in a subset of dimensions, while zero-pronoun resolution remains the clearest bottleneck. Overall, our results show that aggregate rankings substantially overstate how broadly sentence-level cultural meaning has been solved in web novel translation. All the code and data in https://github.com/whunextgen/DITING.

    Abstract source
  • EMNLP · Main

    When Does Reasoning Age? Survival Analysis of Step-Level Error Hazard in LLM Chains

    Raj Firke, Rajeswari Kannan

    Abstract

    We apply survival analysis to study how the probability of reasoning error evolves across steps in LLM chain-of-thought inference. Analyzing 18,969 chains across five benchmarks and seven models (3B–70B) under greedy decoding, we discover a near-universal aging effect—the conditional probability of reasoning error increasing with step depth—as measured by the Weibull shape parameter \rho > 1 (indicating increasing hazard) in 34 of 35 dataset–model cells (binomial p = 10^{-9}), with task-dependent magnitude ranging from \bar{\rho} = 1.35 (multi-domain QA) to \bar{\rho} = 2.36 (logical deduction). This finding is robust to informative censoring (IPCW adjustment: 34/35 cells retain \rho > 1) and unobserved problem-level heterogeneity (shared frailty \theta \approx 0: 34/35 cells retain \rho > 1). Compositional fan-in—the number of prior-step outputs consumed per step—shows a large but statistically suggestive rank correlation with aging magnitude (Spearman \rho_s = 0.90, exact permutation p = 0.083, N = 5). We show that a survivorship bias masks these dynamics when raw error rates are used instead of the conditional hazard function. Held-out verification experiments confirm that late-weighted allocation (motivated by the aging finding) catches 94% of errors vs. 23% uniform on the strongest-aging task at budget K{=}1, while hazard-proportional allocation outperforms both baselines on moderately aging tasks (GSM8K, MathQA) at all budget levels. Our framework requires no training and provides actionable diagnostics for verification allocation.

    Abstract source
  • EMNLP · Main

    Learning to Retrieve: Dual-Level Long-Term Memory for Text-to-SQL Agents

    Yibo Wang, Nikki Lijing Kuang, Philip S. Yu, Zhewei Yao, Yuxiong He

    Abstract

    Interactive text-to-SQL agents solve database tasks through multi-turn interactions involving schema exploration, query execution, feedback interpretation, and decision revision. Long-term memory helps agents reuse past experiences, but existing retrieval methods remain limited. Static methods use fixed similarity heuristics, whereas dynamic methods often learn from sparse terminal outcomes and retrieve at a single decision horizon. This is insufficient when memory usefulness changes across interaction stages, since memories useful for initial planning may differ from those needed for local, state-conditioned execution. We propose MERIT, a dynamic multi-horizon memory retrieval framework. MERIT maintains episode-level memory for global strategic guidance and turn-level memory for local decision support. Both levels use learned retrieval policies optimized with reinforcement learning. To train turn-level retrieval despite limited intermediate supervision, MERIT uses a lightweight Process Reward Model to provide dense proxy rewards for local memory selection. On BIRD-Interact, MERIT achieves higher success rates and fewer interaction turns than no-memory, static-retrieval, and dynamic-retrieval baselines. Transfer results on Spider2-Snow further show that the learned policies transfer without degradation, staying above all memory baselines without benchmark-specific tuning. These results suggest that multi-horizon retrieval improves experience reuse in interactive text-to-SQL agents. Our code is available at https://github.com/YiboWANG214/MERIT.

    Abstract source
  • EMNLP · Main

    Can Scientific Claims Be Removed from Large Language Models? A Systematic Evaluation of Claim-Level Unlearning

    Snigdha Paul, Manasi Patwardhan, Arman Cohan

    Abstract

    Language models (LMs) are trained on static scientific corpora, whereas scientific knowledge continuously evolves through correction and revision. Scientific claims encoded within these models may later become retracted, disproven, or updated by subsequent research, creating the risk of disseminating outdated information in scientific workflows. This creates a need for LMs to forget obsolete scientific claims. Machine unlearning offers a promising solution by enabling knowledge removal while maintaining overall model utility. Existing studies primarily investigate instance-level forgetting; however, scientific claims introduce additional challenges because they are interconnected, and continually evolving. To address this gap, we introduce the task of Scientific Claim Unlearning and present a new benchmark, SciUnlearn. We show that current unlearning approaches are unable to effectively eliminate claim-level knowledge and often achieve only superficial suppression, highlighting the need for specialized methods designed for structured knowledge removal.

    Abstract source
  • EMNLP · Main

    Knowledge Boundaries Are Not Defined by Prompts : Improving the Reachability of Knowledge through Question-Level Probing

    Wang Bin, Yilu Zhong, Shuping Chen, Hui LI

    Abstract

    Safe and reliable large language models should abstain when a question falls beyond their knowledge boundary. Existing abstention methods often use prompt-level uncertainty signals, such as semantic entropy or sampling consistency, as proxies for this boundary, treating instability under the current prompt as evidence that the question is unanswerable. We argue that this prompt-level view is overly conservative: the same underlying question can exhibit different stability under different formulations, and high uncertainty under one prompt may indicate that the answer has not been stably reached rather than that the model lacks the relevant knowledge. We propose a test-time question-level probing framework that uses existing prompt-level uncertainty signals rather than introducing a new uncertainty metric. When the original prompt is unstable, the framework probes semantically equivalent reformulations and accepts an answer only when multiple stable views provide consistent low-entropy evidence. This observable behavior serves as an operational proxy for question-level answerability under a fixed model, sampling configuration, and reformulation set. The method requires no target-model training or parameter updates and is compatible with semantic entropy and its variants. Experiments show that question-level probing recovers prompt-sensitive answers incorrectly rejected by prompt-level methods and improves the risk-coverage trade-off with controlled error rates. The code is available at https://github.com/Narwhal-Lab/Narwhal-codegen-safety-hub/tree/main/KnowledgeBoundariesAreNotDefinedByPrompts.

    Abstract source
  • EMNLP · Main

    Enhancing Repository-Level Code Completion with Reinforcement Learning in Real-World Scenarios

    Zhenlong Dai, Zhuoluo Zhao, Xiu Tang, Sai Wu, Chang Yao, Zhipeng Gao, Jingyuan Chen

    Abstract

    The rapid development of large language models (LLMs) for code, which closely aligns with the practical needs of real-world software development, has sparked growing attention in repository-level code completion. However, existing Code LLMs present challenges in focusing on suitable contexts from the repository and in deeply reasoning about cross-file dependencies. To address these challenges, we propose a novel reinforcement learning framework for repository-level code completion. To better understand both in-file and cross-file contexts, we employ identifier-driven intent recognition to capture completion intent, thereby improving the model’s performance in real-world scenarios. To enhance cross-file reasoning, we propose a reward-driven completion learning to effectively reward in complex repository completion scenarios. To guide LLMs in completing code that aligns with intended functionality and repository context, we introduce a selective-exploration strategy that directs the model to focus on low-confidence, high-reward tokens, promoting the exploration of valuable, underexplored completion patterns. Experimental results show that our approach significantly improves the performance of Code LLMs.

    Abstract source
  • EMNLP · Main

    When Tokenizers Fail: Byte-Level Chunking for Zero-Shot Transfer to Low-Resource Languages

    Sanjeev Kumar, Atsuki Yamaguchi, Nikolaos Aletras

    Abstract

    Subword tokenization hinders low-resource language processing by imposing frequency patterns from dominant languages onto script-sharing variants. Byte-level models bypass this issue by processing raw UTF-8 characters, yet they create a granularity mismatch for word-level tasks in non-Latin scripts. Hierarchical byte-level architectures address this mismatch by grouping bytes into word-aligned chunks. However, these architectures require massive training data and suffer from representational misalignment when paired with frozen subword-based language models. In this paper, we propose an adapted hierarchical network framework that bridges this modality gap without extensive training. Our method initializes byte embeddings directly from the subword representations of a frozen base model. We apply a chunk alignment loss to project dynamically grouped byte chunks toward precomputed subword targets, and interleave lightweight part-of-speech (POS) supervision to guide boundary detection. Experiments across six languages demonstrate that our tokenizer-free approach improves performance for word-level morphological tasks, yielding up to a 13.3% improvement on POS tagging.

    Abstract source
  • EMNLP · Main

    Steering Language Models Before They Speak: Logit-Level Interventions

    Hyeseon An, Shinwoo Park, Hyundong Jin, Yo-Sub Han

    Abstract

    Controllable generation requires language models to realize output characteristics such as reading level, politeness, and toxicity. Existing steering methods are often indirect, require access to internal activations, or depend on auxiliary trained models. We propose SWAI, a training-free inference-time method that addresses these limitations by steering directly in logit space using corpus-derived token statistics. SWAI computes z-normalized one-vs-rest log-odds scores from labeled corpora and biases high-scoring tokens only within the model’s top-K candidate set, allowing control to favor target-characteristic tokens while preserving contextually plausible choices. Across readability, politeness, and toxicity control, SWAI consistently improves over prompt-based and prior logit-level baselines without modifying model parameters, accessing internal layers, or training an auxiliary model. Selectivity and lookup-table ablations show that the gains come from target-specific statistical scores rather than generic logit perturbation. These results indicate that effective steering does not require learned controllers when the logit intervention is guided by target-specific statistics under high-probability candidates.

    Abstract source