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

1,161–1,180 of 1,560

  • EMNLP · Findings

    SurrogateKV: Representation-Preserving KV Cache Compression for Long-Context LLMs

    Junwon Kim, Junghyun Ryu, Farid Talibli, Jungmin So, Youngjae Kim

    Abstract

    KV cache compression is essential for long-context LLM inference. Most token-level KV compressors reduce cache length by retaining selected token KV entries and evicting the rest. Once evicted, those spans no longer receive attention, even though some may still carry information useful enough to preserve in compact form. We propose SurrogateKV, a training-free, runtime-only method that reframes KV compression as region-level representation allocation. Under the same KV-slot budget, SurrogateKV assigns historical regions to raw KV, surrogate KV, or drop. It does not train a compressor, modify model weights, or introduce a new attention operator. After prefill, SurrogateKV constructs lightweight surrogate entries as ordinary KV pairs, keeping their information available during standard attention decoding. This representation decision is orthogonal to layer- and head-wise budget allocation. We evaluate SurrogateKV-Snap, SurrogateKV-Dynamic, and SurrogateKV-Ada, obtained by applying SurrogateKV to SnapKV, DynamicKV, and Ada-KV, respectively. As representative results, SurrogateKV-Snap raises Needle-in-a-Haystack (NIAH) retrieval accuracy from 87.51 to 98.84 at 128 slots per layer. SurrogateKV-Ada raises the LongBench average score from 40.77 to 41.26 at 512 slots per layer while preserving 98.4% of full-cache performance with only 10.5% of the prefill KV cache. Code is available at https://github.com/kimjunewon/SurrogateKV.

    Abstract source
  • EMNLP · Findings

    DyMT-ESB: Dynamic Multi-Turn Evaluation of Social Bias in User-LLM Interactions

    Rem Hida, Masahiro Kaneko, Daisuke Oba, Danushka Bollegala, Naoaki Okazaki

    Abstract

    Warning: This paper contains examples of stereotypes and social bias. LLMs are increasingly used in interactive settings by the general public, making the evaluation of model behavior in multi-turn conversational scenarios important for safety, including stereotyping-related harms. However, existing multi-turn social bias evaluations often rely on pre-specified or template-based user inputs that do not adapt to model responses and typically assume a fixed dialogue length in advance. In this paper, we study social bias dynamics in response-conditioned multi-turn interactions using a controlled evaluation protocol that generates follow-up user queries from the evolving dialogue history and allows evaluation over variable numbers of turns. Experimental results show that LLMs exhibit social bias even in coherent, response-conditioned multi-turn interactions, revealing late-emerging bias, non-monotonic bias patterns, and bias re-emergence. These results motivate evaluations that extend beyond fixed-turn, pre-scripted protocols. Our findings highlight the importance of analyzing social bias as a turn-level dynamic phenomenon.

    Abstract source
  • EMNLP · Findings

    Discerning Minds or Generic Tutors? Evaluating Instructional Guidance Capabilities in Socratic LLMs

    Ying Liu, Can Li, Ting Zhang, Mei Wang, Qiannan Zhu, Jian Li, Hua Huang

    Abstract

    The conversational capabilities of large language models hold significant promise for enabling scalable and interactive tutoring. Prior work has primarily evaluated general instructional competence while overlooking a critical dimension: the ability to adaptively guide learners based on their evolving cognitive states. This study takes instructional guidance as a core capability and asks whether LLMs can emulate expert tutors who dynamically adjust strategies in response to learners’ needs. We introduce GuideEval, a benchmark grounded in authentic educational dialogues that evaluates pedagogical guidance through a three-phase behavioral framework: (i) Assessment, inferring learner states; (ii) Orchestration, adapting instructional strategies; and (iii) Elicitation, stimulating proper reflections. Empirical results indicate that existing LLMs often fail to provide effective adaptive scaffolding when learners experience confusion or require redirection. Complementing quantitative results, we present a detailed failure case analysis, offering intuitive insights into these limitations. We further propose a behavior-guided finetuning strategy based on behavior-prompted instructional dialogues, substantially enhancing guidance performance. By shifting the focus from isolated content correctness to learner-centered state-aware interaction, this work advocates a more dialogic paradigm for evaluating Socratic LLMs.

    Abstract source
  • EMNLP · Findings

    Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference

    Md Mostafizer Rahman, Md Faizul Ibne Amin, Md. Shahajada Mia, Yutaka Watanobe, Fang Liu

    Abstract

    Large language model (LLM) inference is constrained by the quadratic scaling of self-attention and the linear scaling of the KV cache, increasing latency, energy consumption, and GPU memory demand as context length scales. Existing soft-compression methods either lack query-guided memory selection at inference time, train without answer-targeted supervision, or couple compression tightly to a specific decoder architecture. We propose a Context-to-Answer-Aligned Memory Compression (CMC) framework, which compresses long input contexts into compact Context Memory Embeddings (CMEs) aligned to any frozen decoder’s embedding space, reducing inference costs without modifying decoder weights. CMC introduces a two-tier KV cache that combines question-guided CME selection with a local context window, and trains the compressor with answer-targeted distillation from a frozen LLM. Experiments across nine encoder-decoder combinations and four QA benchmarks show that CMC consistently outperforms the baseline, achieving up to 7.3 EM and 4.0 F1 point gains on SQuAD, while reducing inference time and energy consumption by up to 20% and peak reserved GPU memory by up to 50% at 3,000 generation tokens. Ablation studies confirm that each architectural component and training objective contributes to the performance.

    Abstract source
  • EMNLP · Findings

    Chart-EARL: Improving Chart Reasoning of Vision LLMs via Early Anchoring in Reinforcement Learning

    Gongyao Jiang, Qiong Luo

    Abstract

    Chart reasoning poses a significant challenge for Vision Large Language Models (VLLMs). While Reinforcement Learning (RL) has emerged as a promising solution, existing outcome-based RL methods overlook intermediate errors, whereas process-based approaches remain difficult in verifying abstract logical steps. We therefore analyze chart-reasoning failures to identify an intermediate supervision signal that is both relevant to the task and amenable to objective verification. Our pilot study suggests that early visual-perception errors constitute a prominent source of failure in the chart-reasoning setting. Guided by this insight, we propose Chart-EARL, which constructs verifiable early visual anchors for targeted chart-reasoning supervision. We first build a structured training corpus that explicitly decouples visual perception from logical deduction. Building upon this structure, our approach optimizes the model with rewards for both accurate extraction of descriptive visual features and final-answer correctness. This strategy provides direct and verifiable feedback on early visual grounding while keeping supervision on the final reasoning objective. Experiments show clear performance improvements on complex chart reasoning benchmarks.

    Abstract source
  • EMNLP · Findings

    HarmMetric Eval: Benchmarking Metrics and Judges for LLM Harmfulness Assessment

    Langqi Yang, Yixuan Chen, Kedong Xiu, Tianhang Zheng, Hao Zhou, Wangze Ni, Lei Chen, Zhan Qin, Kui Ren

    Abstract

    Automatic harmfulness metrics and LLM-based judges are central to LLM safety assessment, yet differences in evaluation criteria, methodologies, and output formats may yield inconsistent judgments for the same model response. The lack of systematic research on these evaluators undermines the credibility and consistency of LLM safety assessments. To bridge this gap, we introduce HarmMetric Eval, a benchmark for both overall and fine-grained assessment of harmfulness evaluators. We construct a dataset of representative harmful prompts paired with diverse harmful responses and non-harmful counterparts across multiple categories. We propose a flexible scoring mechanism that rewards metrics for correctly ranking harmful responses above non-harmful ones, making it applicable to nearly all metrics and judges with varying output formats and scoring scales. Using HarmMetric Eval, we find that conventional reference-based metrics such as ROUGE and METEOR can outperform existing LLM-based judges in fine-grained harmfulness evaluation, challenging prevailing assumptions about LLM superiority. Fine-grained analysis reveals that LLM judges tend to overestimate irrelevant and useless responses. Furthermore, we build a new harmfulness judge by incorporating fine-grained criteria into its prompt template and leveraging reference-based metrics to fine-tune its base LLM. The resulting judge demonstrates leading performance on HarmMetric Eval and two external human-labeled datasets.

    Abstract source
  • EMNLP · Findings

    Revising Context, Shifting Simulated Stance: Auditing LLM-Based Stance Simulation in Online Discussions

    Xinnong Zhang, Wanting Shan, Hanjia Lyu, Zhongyu Wei, Jiebo Luo

    Abstract

    Large language models are increasingly used to simulate social media users and infer how individuals may respond to online discussions. However, it remains unclear whether these simulations reflect precise user-specific beliefs or whether they are highly sensitive to semantically independent changes in conversational contexts. In this work, we study counterfactual context revision as a framework for auditing LLM-based stance simulation. Given an original online conversation, we first infer a target user’s stance toward a specific topic. We then apply controlled revision strategies to the conversational context and simulate the user’s stance again under the revised context. We compare text-only revision strategies with a multimodal one that incorporates meme-based context and evaluate two main effectiveness metrics, i.e., average directional stance shift and stance transition rate. The results reveal effective and robust stance transitions in both text-only and multimodal strategies across different polarization-preference mechanisms. Our study contributes an evaluation framework for understanding the context sensitivity of LLM-based stance simulation (https://github.com/STARResearchLab/StanceShift). More broadly, it highlights both the promise and risk of using LLMs as proxies for social media users in social simulation.

    Abstract source
  • EMNLP · Findings

    MedCPEnv: A Reproducible Cost-Aware Simulated Hospital for Benchmarking and Training Medical LLM Agents

    Zixiao Jia, Changjie Hua, Weiqi Zhai, Ruyi Xu, Xue Yang, Han Li, Tianyun Lu, Kailuan Wu, Xiang Zheng, Lin Qu, hu Wei, Bing Zhao, Ruohan Zhang

    Abstract

    Real-world clinical competence demands more than answering medical knowledge questions—it requires proactively gathering incomplete patient information, selecting appropriate examinations, and formulating safe, cost-conscious treatment plans through multi-turn interaction. Existing medical LLM benchmarks rely predominantly on static QA formats, failing to assess interactive information acquisition, tool use, or cost–quality tradeoffs. We propose MedCPEnv, a reproducible, cost-aware simulated hospital environment for evaluating and training medical LLM agents. Built from MIMIC-IV-NOTE discharge notes, MedCPEnv comprises 48,803 curated cases, a 1,000-case benchmark, and a 371,550-entry medical QA knowledge base, exposing four deterministic action types (ASK, EXAM, KNOWLEDGE, FINAL) to eliminate high-variance LLM role-playing artifacts. Evaluating eight frontier models, GPT-5.4 achieves the highest composite score (3.69/5) and diagnostic accuracy (60.3%), yet treatment accuracy remains only 19.4%, identifying treatment plan generation as the primary bottleneck. Substantial inter-model variation in the cost–quality tradeoff further demonstrates that clinical correctness alone is insufficient to characterize agent behavior. GRPO-based Agentic RL on Qwen3-4B shows that medical quality rewards consistently improve tool-use strategies, raising the composite score from 2.97 to 3.14 and diagnostic accuracy from 26.0% to 31.2%, establishing MedCPEnv as both a rigorous evaluation benchmark and a reproducible training environment for medical agent research.

    Abstract source
  • EMNLP · Findings

    Taming the Thinker: Conditional Entropy Shaping for Adaptive LLM Reasoning

    Shuyu Wei, Jian Sun, Delai Qiu, Yining Wang, Shengping Liu, Jerry Liang, Ying Fu, Wei Huang, Jitao Sang

    Abstract

    Entropy-based deep reasoning has emerged as a promising direction for improving the reasoning capabilities of Large Language Models (LLMs), but existing methods often either increase response length indiscriminately or shorten responses at the cost of accuracy. To better balance this trade-off, we introduce Conditional Entropy Shaping (CES), a framework that dynamically controls token-level response entropy, enabling LLMs to produce concise solutions on simple problems while encouraging deeper exploration on hard ones. Built on DAPO, CES uses token-level entropy as an uncertainty signal and applies a conditional bidirectional policy: it penalizes high-entropy "forking point" tokens on correct reasoning paths to improve conciseness, and rewards them on incorrect paths to encourage exploration and error correction. We implement CES on DeepSeek-R1-Distill-Qwen-7B and evaluate it on 12 mathematical benchmarks. CES consistently improves average accuracy while reducing response length relative to DAPO, and supplementary experiments show similar trends on a smaller 1.5B backbone and on out-of-domain benchmarks.

    Abstract source
  • EMNLP · Findings

    You Frame It: How Conceptual Representations Shape LLM Detection and Reasoning about Antisemitism

    Katharina Soemer, Helena Mihaljevic

    Abstract

    LLMs enable the integration of external conceptual resources at inference time, creating new opportunities for detecting ideologically and historically complex phenomena such as antisemitism. We investigate how different forms of conceptual grounding affect antisemitism detection and explanation behavior across four state-of-the-art LLMs. Using two expert-annotated datasets, we compare definitional, fine-grained taxonomic, example-augmented, and large-context representations of antisemitism. We find that fine-grained taxonomic representations substantially improve recall, while simultaneously reducing precision. Surprisingly, supplying substantially larger conceptual resources yields no additional quantitative benefit. Post-Holocaust antisemitism poses the most persistent challenge across models and configurations. Analysis of explanations further reveals systematic limitations including overproduction of conceptual references, reliance on lexical cues, overconfidence, and difficulties with subtle or justificatory forms of antisemitism. Our findings highlight both the potential and the remaining limitations of conceptually grounded LLMs for antisemitism detection and reasoning.

    Abstract source
  • EMNLP · Findings

    Training-Free Policy Violation Detection via Activation-Space Whitening in LLM

    Oren Rachmil, Avishag Shapira, Roy Betser, Omer Hofman, Itay Gershon, Yuval Elovici, Asaf Shabtai, Roman Vainshtein

    Abstract

    As organizations increasingly deploy LLMs in sensitive domains such as legal, financial, and medical settings, ensuring alignment with internal organizational policies has become a priority. Existing content moderation frameworks remain largely confined to the safety domain and lack the robustness to capture nuanced organizational policies. LLM-as-a-judge and fine-tuning approaches, though flexible, introduce significant latency and training cost. To address these limitations, we frame policy violation detection as an out-of-distribution (OOD) problem in the model’s activation space. We propose a training-free method that operates directly on the LLM internal representations, leveraging prior evidence that decision-relevant information is encoded within them. Inspired by whitening techniques, we derive policy-violation scores directly from normalized representations of LLM hidden activations. Our method requires only the policy text and a small number of illustrative samples, making it lightweight and easily deployable. We extensively evaluate our method across multiple LLMs and challenging policy benchmarks. It achieves up to 86.0% F1, outperforming both fine-tuned and LLM-as-a-judge baselines while requiring substantially less computation. Our code is publicly available at: https://github.com/FujitsuResearch/LLM-policy-violation-detection.

    Abstract source
  • EMNLP · Findings

    ASSAY: Reconciling Stability and Validity in Reference-Free Scientific LLM Judges

    Soyeon Hong, Heegyu Kim, Ji Hoon Hong, Jindong Hwang, Juhyeon Ha, Sung Beom Cho, Hyunsouk Cho

    Abstract

    LLM judges have emerged as a key approach to evaluating open-ended scientific outputs that resist automated verification, yet their faithfulness in reference-free settings remains underexplored, particularly for fields such as novel materials synthesis where no ground-truth reference exists. Such judges produce false positives that accept scientifically invalid recipes and false negatives that penalize semantically equivalent ones in unfamiliar notation. We introduce ASSAY, a probe suite built on domain-grounded augmentations of ground-truth synthesis recipes, and reveal that these two failure modes form a systematic Stability–Validity trade-off across thirteen judge models. To resolve this trade-off, we train SynthJudge-8B via DPO on contrastive pairs derived from the same augmentations, improving judgment accuracy from 51.4% to 85.1% while maintaining agreement with domain experts. We release our probe suite and trained model to support faithful automated evaluation in scientific fields beyond materials synthesis at https://github.com/SoyeonHH/ASSAY.

    Abstract source
  • EMNLP · Findings

    PRISM: Multidimensional Safety Risk Detection and Measurement Beyond Superficial Compliance for LLMs

    YIfan Sun, Xiang Zhao, Beining Lin, Feng Huang, You Song

    Abstract

    Existing LLM safety measures operate as black boxes, lacking categorical precision and calibrated severity assessment. We propose **PRISM** (**P**rototypical **R**epresentation for **I**nternal **S**afety **M**apping), a fine-grained two-stage safety auditing framework grounded in internal mechanistic representations. Stage I localizes functional safety zones via spectral analysis and maps internal activations onto concept prototypes for camouflage-resilient categorical risk identification. Stage II decomposes violation severity across orthogonal dimensions through structured CoT reasoning, producing calibrated human-auditable ordinal verdicts. PRISM achieves a new best F1 of 77.60% on the adversarial ToxicChat benchmark and approaches 671B frontier judges within a 2.3% margin on severity calibration, demonstrating that mechanistic grounding and principled task formulation can substitute for scale in fine-grained safety governance.

    Abstract source
  • EMNLP · Findings

    From Detection to Refusal: Safer LLMs via Circuit-Guided Weight Scaling

    Kuan-Lin Chu, Chung-En Sun, Tsui-Wei Weng

    Abstract

    Despite extensive alignment efforts, Large Language Models (LLMs) remain vulnerable to generating unsafe content under adversarial prompting, yet the internal mechanisms by which safety behaviors are implemented remain poorly understood. We study LLM safety from a mechanistic interpretability perspective and characterize a multi-stage *safety circuit* that organizes refusal behavior, consisting of (i) \textbf{Harmful Detection Heads} that respond to harmful inputs, (ii) \textbf{Safety Neurons} that mediate and stabilize safety signals in the residual stream, and (iii) \textbf{Refusal Heads} that translate these signals into safe response generation. Using targeted attention-head and neuron-level interventions, we provide causal evidence consistent with this circuit organization, showing that suppressing upstream Harmful Detection Heads disrupts downstream refusal behavior and that safety neurons mediate this interaction. We validate that this decomposition recurs across multiple LLM architectures and adversarial attack settings, and use simple, architecture-preserving weight scaling as a mechanistic probe to test its functional relevance. Across six LLMs, circuit-guided scaling improves safety rates under attacks by 26.5%, while incurring only a 1.7% accuracy drop across four standard benchmarks. Overall, our results support a circuit-level interpretation of LLM safety and suggest that mechanistic abstractions can reveal stable and transferable patterns underlying aligned behavior.

    Abstract source
  • EMNLP · Findings

    NDD-R1: Reinforcement Learning for Multimodal LLMs to Understand Communication in Non- and Minimally-Speaking Autistic Individuals

    Siddhant Bikram Shah, Kristina T. Johnson

    Abstract

    Over 30% of autistic individuals are non- or minimally-speaking, relying on a complex, idiosyncratic repertoire of multimodal behaviors to communicate. Recognizing these intentional communicative acts in naturalistic environments remains a significant challenge for current multimodal large language models (MLLMs), which often struggle with the inference of subtle nonverbal cues in this domain. We introduce NDD-R1, a multi-stage reasoning framework that adapts a general-purpose MLLM for multi-view communication understanding for this population. Our approach employs a four-stage curriculum alternating between supervised finetuning and reinforcement learning (\text{SFT}_1 \rightarrow \text{GRPO}_1 \rightarrow \text{SFT}_2 \rightarrow \text{GRPO}_2), integrating label-guided distillation, temperature-escalated self-distillation, and difficulty-tiered reward optimization. We evaluate NDD-R1 on an initial dataset collected through the Rapid Online Sample of Communication (ROSCO) protocol, comprising 2,582 caregiver-annotated multi-view videos of 27 non- and minimally-speaking autistic individuals. NDD-R1 outperforms baselines on action and joint classification tasks, achieving competitive function classification performance relative to Gemini, exhibiting strong multi-view scaling and generalization across unseen sessions. Our code is available at https://github.com/SiddhantBikram/NDD-R1.

    Abstract source
  • EMNLP · Findings

    Preserving General Capability in Personality-Aligned LLMs via Orthogonal Gradient Projection

    Yangfu Zhu, Linyue Wei, Nianwen Ning, Pengpeng Zhou, Chenguang Song, Yuandong Wang, Zhenzhou Shao

    Abstract

    Personality alignment tailors Large Language Models (LLMs) for personalized interactions. Most existing studies focus on prompting, post- training, or representation steering to elicit trait expression, but they often compromise the general capabilities like reasoning and truthfulness. In this work, we empirically verified the existence of the Personality Alignment Tax (PAT) that distribution shifts and conflicting objectives during personality updates overwrite pre-trained competencies. To mitigate this tax, we propose a Personality-Orthogonal Gradient Projection (POGP) plug-in that preserves the capability in personality alignment. Specifically, POGP estimates the general-capability subspace from capability reference benchmarks and projects personality gradients onto the orthogonal complement before updating. This isolates and neutralizes conflicting gradients while maintaining the pre-trained reasoning capabilities. Experiments on the BIG5-CHAT dataset with two backbone LLMs demonstrate that POGP achieves a stronger personality plasticity and capability stability trade-off than baselines.

    Abstract source
  • EMNLP · Findings

    Learning to Code by Learning to Verify: Execution-Grounded Co-Evolution of Code Generation and Self-Verification for Reliable Code LLMs

    Juyong Jiang, Chansung Park, Jiasi Shen, Sunghun Kim

    Abstract

    Large language models (LLMs) have made rapid progress in code generation, yet their ability to verify whether a program is correct has not necessarily improved at the same pace. We identify a generation-verification gap in code LLMs, where scaling substantially improves test-passing code generation, while execution-free correctness reasoning improves much more slowly. This gap challenges existing self-rewarding approaches, which often implicitly assume that a stronger generator also serves as a better judge. To bridge this gap, we propose CoVera, an execution-grounded co-evolution framework that jointly trains a code LLM to generate code and to verify code correctness. In generator mode, the model produces candidate programs and receives execution-based rewards from available tests. In verifier mode, the same model reads a problem-program pair, produces a reasoning trace, and predicts a correctness judgment, which is rewarded according to agreement with execution-derived labels. The calibrated verifier is then used as an auxiliary self-verification signal for generation, while the evolving generator continuously supplies increasingly challenging candidates for verifier training. This co-evolution enables an on-policy curriculum for correctness reasoning and grounds self-verification in execution feedback, without requiring exhaustive test suites or golden reference solutions. Extensive experiments across multiple benchmarks and model scales show that CoVera improves both code generation and intrinsic correctness verification, outperforming representative baselines from diverse code-learning paradigms.

    Abstract source
  • EMNLP · Findings

    From Memory to Skills: Evidence-Grounded Governance for Long-Horizon LLM Agents

    Bo Tang, Yang Zhang, Guomian Zhuang, Wenqiang Wei, Gaoyang Zheng, Lindong Xie, Yanchao Tan, Feiyu Xiong, Qingyu Yang, Edward Chung, Zhiyu li

    Abstract

    Existing memory systems for long-horizon LLM agents often retrieve prior traces as passive context rather than converting them into executable capabilities. In this paper, we propose MSCE, a training-free Memory–Skill Co-Evolution framework that organizes agent experience into grounded step traces, reusable procedural policies, and declarative environmental cognition. MSCE crystallizes evidence-backed L2 policies with positive estimated gain into callable skills that retain evidence links, applicability boundaries, decision guidance, verification rules, and reliability estimates. It further introduces reflection-weighted value backfilling, which propagates sparse terminal feedback through dense local self-reflections to produce evidence-calibrated trace values for governing memory and skill evolution. Experiments on EvoAgentBench and LoCoMo show that MSCE achieves the best aggregate performance among the evaluated skill-augmented and memory-driven baselines, with statistically supported aggregate gains, positive cross-domain transfer, and continual improvement as online experience accumulates. Our code is available at https://github.com/MemTensor/MemOS/tree/main/apps/memos-local-plugin.

    Abstract source
  • EMNLP · Findings

    CODEPIVOT: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning with Reduced Reliance on Parallel Corpora

    Shangyu LI, Juyong Jiang, Meibo Ren, Sizhe Zhong, Huiri Tan, Yunhao Gou, Xu Han, Chun Yong Chong, Yun Peng, Jiasi Shen

    Abstract

    Transpilation, or code translation, aims to convert source code from one programming language (PL) to another. Recent large language model (LLM)-based approaches have demonstrated immense potential for code translation. Training-based methods are important because LLMs currently do not effectively adapt to domain-specific settings that suffer from a lack of knowledge without targeted training. However, existing training-based approaches rely on a pairwise transpilation paradigm, making it impractical to support a diverse range of PLs. Furthermore, these methods shape the reinforcement learning (RL) reward linearly in the test-case pass rate, which underweights the earliest partial progress. To address these limitations, we propose CodePivot, a training framework that leverages Python as an intermediate representation (IR), augmented by a novel RL reward mechanism, Aggressive-Partial-Functional reward, to bootstrap the model’s multilingual transpilation ability with reduced reliance on parallel corpora. Experiments involving 10 PLs show that the resulting 7B model, trained on Python-to-Others tasks, consistently improves performance across both general and low-resource PL-related transpilation tasks. It outperforms substantially larger mainstream models with hundreds of billions more parameters, such as DeepSeek-R1 and Qwen3-235B-A22B-Instruct-2507, on Python-to-Others tasks and Others-to-All tasks, respectively, and surpasses its counterpart trained directly on Any-to-Any tasks on general transpilation tasks. Code and data: https://github.com/lishangyu-hkust/CodePivot.

    Abstract source
  • EMNLP · Findings

    How do World Models and Policies Compose in LLM Agents? A Joint Spectral and Behavioral Account

    Ruize Xu, Xiao Yu, Yujin Tang, Chenming Shang, Nikhil Singh

    Abstract

    How do LLM agents come to both understand environments they act in and master tasks set within them? Through controlled experiments combining world-model training (next-state prediction) and policy training (reward maximization), we investigate this question. We dissect the resulting models through their additive parameter updates. Geometrically, we find effective world-model updates are low-rank and share an input-feature subspace with policy updates while writing to nearly orthogonal output directions, whether trained separately or sequentially. However, we find that, in projection interventions, the sequential update induces more robustness than separate policy RL when removing the world model’s leading input directions, suggesting that it has learned alternative input pathways. Behaviorally, we find the sequentially trained agent explores a wider range of states and actions. Based on this, we ask: does policy training preserve world knowledge as well as it could? We probe this with training-free merging built on the geometrically motivated input basis plus an online world-model loss during policy RL, and show both improve over the untreated baseline. Our findings suggest world knowledge and task-directed ability can be learned in geometrically complementary forms, and that future post-training pipelines should consider how best to engineer the interface between them.

    Abstract source