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

241–260 of 387

  • EMNLP · Findings

    BASS: Budget-Aware Structured Search for Text-to-SQL Generation

    Bin Zheng, Zheng Chen, Kefan Chen, Lulu Cui, Hao Tang, Zijun Xu, Chen Anlong

    Abstract

    Text-to-SQL generation remains challenging for small and medium-sized language models, which must produce queries that are structurally valid, schema-grounded, and semantically faithful under limited inference budgets. Naive test-time scaling strategies, such as repeated sampling or unconstrained search, often spend budget on invalid, redundant, or semantically weak candidates. We present BASS, a Budget-Aware Structured Search framework for Text-to-SQL generation. BASS searches over deterministic SQL semantic units produced by rule-based Structural Boundary Detection, with lightweight admissibility filtering to reject malformed units. It scores completed candidates using an execution-gated rubric verifier: non-executable SQL receives zero reward, while executable SQL is assigned a continuous semantic score based on schema grounding, intent matching, predicate correctness, aggregation and ordering, and join/compositional structure. To improve budget usage, BASS introduces stagnation-aware branch suppression and exhaustion-aware early stopping, reallocating computation away from saturated search regions. Experiments on Spider and BIRD show strong zero-shot performance across Qwen2.5-Coder backbones. Controlled analyses further show that BASS uses fixed maximum rollout budgets adaptively, achieves better quality–cost behavior than naive repeated sampling, and benefits from semantic verification and stagnation-aware budget control.

    Abstract source
  • EMNLP · Findings

    SENSESHIFT: Continuous Sentiment-Controlled Text generation via Encoder-based Mask Infilling

    Shahed Masoudian, Markus Frohmann, Emmanouil Karystinaios, Navid Rekabsaz, Markus Schedl

    Abstract

    Recent controllable text generation (CTG) for sentiment control has largely focused on decoder-based large language models, making causal attention the dominant paradigm. While effective for fluent generation, these models still struggle to satisfy complex constraints and follow fine-grained sentiment signals specified by users. Existing sentiment-aware CTG methods typically simplify the problem by treating sentiment either as a coarse categorical label (e.g., positive or negative) or as a single fine-grained control signal applied to an entire document. Consequently, more challenging settings such as sentence-level sentiment control within long-form text remain underexplored. To address these limitations, we introduce SenseShift, an encoder-based framework for fine-grained sentence-level CTG. Unlike standard decoder architectures, SenseShift leverages bidirectional attention, quantized sentiment signals, and iterative mask infilling to generate local sentences conditioned on target sentiment intensity. Empirical evaluations on story and review generation demonstrate that SenseShift achieves stronger sentiment controllability while maintaining text quality and robustness to out-of-domain generation compared to larger decoder-based baselines.

    Abstract source
  • EMNLP · Findings

    CounterMem: Counterfactual Evaluation of Non-Parametric Memory Use in Retrieval-Augmented Generation

    Mikhail Baklanov, Oren Barkan, Noam Koenigstein

    Abstract

    Retrieval-augmented generation (RAG) is usually evaluated from one observed trace: the query, the retrieved context, and the generated answer. Such evaluations can tell us whether the answer is consistent with the retrieved context, but not whether the system would still give the same answer if that context were removed, updated, or contradicted. We introduce COUNTERMEM, an evaluation protocol for RAG systems that are expected to answer from retrieved evidence: it keeps the RAG configuration fixed, changes only the retrieved context, regenerates the answer, and records whether the answer changes in the expected direction. Across RAGBench, ExpertQA, and DelucionQA, COUNTERMEM complements observed-trace faithfulness by exposing failures it is not designed to see. Configurations that look equivalent under RAGAS faithfulness behave very differently once their evidence is removed, updated, or contradicted, and among RAGChecker-approved answers more than half silently miss coherent contradictions and over a third ignore coherent updates. The failures persist across generator and judge families, the behavioral detectors agree with blind human annotators as closely as the annotators agree with each other, and row-level intervention traces localize failures to retrieval, reranking, or generation. Artifact (protocol, prompts, detectors, scripts, audit traces): https://github.com/DeltaLabTLV/CounterMem.

    Abstract source
  • EMNLP · Findings

    HyperSU: Corpus-Driven Semantic-Unit Hypergraph for Retrieval-Augmented Generation

    Jiate Liu, Liuyi Chen, Zhengyi Yang, Chuan He, Mingchen Ju, Bocheng Han, Ruyi Liu, Xu Zhou

    Abstract

    Recent Hypergraph-based retrieval-augmented generation (HyperRAG) methods use hyperedges to connect multiple entities simultaneously, enabling more efficient multi-entity evidence organization than pairwise graph structures. However, existing HyperRAG methods often rely on LLM-generated summaries to construct hyperedges, which can introduce hallucinations while also incurring high indexing costs. In addition, during retrieval, existing methods typically rely on either one-hop neighbor expansion or PageRank diffusion. The former may miss useful multi-hop evidence, while the latter can suffer from uncontrolled propagation over excessive hub nodes, leading to semantic drift and noisy reasoning chains. To address these challenges, we propose HyperSU, a novel hypergraph-based RAG framework featuring semantic-unit hyperedges and clue-guided bidirectional retrieval. During construction, HyperSU formulates hyperedge construction as an entity-aware minimum-description-length (MDL) optimization problem, inducing source-grounded semantic-unit hyperedges that balance sentence-level semantic coherence and entity compactness. It then constructs a hypergraph by modeling each semantic unit as a hyperedge over its co-mentioned entities. During retrieval, HyperSU performs clue-guided bidirectional expansion over the semantic-unit hypergraph, enabling both multi-hop evidence discovery and evidence-anchored noise reduction. Experiments show that HyperSU consistently improves answer accuracy over standard, graph-based, and hypergraph-based RAG baselines, raising average accuracy on GraphRAG-Bench by 5.5 points over the strongest baseline (68.7 vs. 63.2), with larger gains on reasoning-intensive tasks, where the relative improvement reaches 14.1%. Our code is available at https://github.com/RAIDSLab/HyperSU.

    Abstract source
  • EMNLP · Findings

    Don’t Lose Entities from Retrieval to Generation: Dual Entity Recovery RAG for multi-hop QA

    Heechang Lee, Dongyoung Lim

    Abstract

    Retrieval-augmented multi-hop question answering (QA) decomposes a query into sub-questions and decomposes the corpus into smaller retrieval units such as sentences. Both forms of decomposition improve the pipeline, but we show that both share the same vulnerability, the loss of entity information, and that this loss breaks the pipeline at two separate points. The first point is retrieval, where a sub-question loses the entity resolved at the previous hop, leaving the retriever with nothing to match against. The second point is harder to see, because retrieval still appears to succeed. Once a passage is split into sentences, an isolated sentence loses the context that grounds its pronouns, so even with the correct sentence in hand the LLM cannot tell which entity the sentence is about. We isolate this second point as a distinct failure mode that we call lost-in-generation, and a retrieval-controlled experiment shows that it degrades answers even when the gold evidence is fixed in the context. We then propose Dual Entity Recovery RAG (DER-RAG), which keeps the grounding entity explicit from retrieval through to generation with two lightweight components, a two-way query decomposition that carries the resolved entity across sub-questions and a subject entity prefix attached to each sentence at generation time. DER-RAG needs no graph construction, no corpus modification, and no fine-tuning, yet on three multi-hop QA benchmarks it matches or exceeds strong baselines, including graph-based methods that depend on costly offline structures.

    Abstract source
  • EMNLP · Findings

    PDOS: Widening the Safety Overton Window Through Persona-Driven Generation

    Kritesh Rauniyar, Mark Dras, Usman Naseem

    Abstract

    Safety in large language models is often framed as requiring a single correct response, even in safety-sensitive contexts where multiple perspectives may exist. Existing approaches largely ignore Overton pluralism (inclusion of multiple reasonable viewpoints for a single query) and reduce complex context to monolithic judgments that fail to capture the range of reasonable viewpoints. Moreover, existing frameworks are not grounded in safety settings, which limits their ability to capture the diversity of perspectives required in safety-critical situations. Existing safety datasets do not provide Overton-style annotations, limiting their ability to represent multiple harm perspectives within the same safety-critical situation. To address this, we construct **SOS**, the safety-focused Overton dataset of 1,770 real-world safety situations annotated across 14 harm taxonomy. We further propose **PDOS**, a lightweight, training-free framework that retrieves personas from a synthetic pool and integrates their perspectives to generate unified Overton safety responses. PDOS achieves the highest average NLI coverage of 0.4226 among several baselines, and outperforms the strongest baseline by 13.3%. Our findings show that Overton-based safety pluralism requires adaptable, context-aware approaches, providing insights into how these methods can better capture diverse perspectives.

    Abstract source
  • EMNLP · Findings

    GUI Agents for Continual Game Generation

    Yixu Huang, Bo Li, Li Na, Zhe Wang, Kaijie Chen, Haonan Ge, Qingyi Si, Yuanzhe Shen, Ruihan Yang, Guangjing Wang, Hongcheng Guo

    Abstract

    Generating a game is not the same as making one playable. Existing code-generation approaches often translate a prompt directly into an artifact, leaving interaction-level failures undetected. We argue that game generation requires a player and study two roles for graphical user interface (GUI) agents. First, we introduce PlaytestArena, an evaluation environment containing 200 browser-based game-generation tasks across eight genres, each paired with rubrics of expected in-play behaviors. An independent GUI judge loads and plays each build to adjudicate these rubrics. Second, we propose Play2Code, in which a game agent and a rubric-blind GUI playtester iteratively generate, play, and refine games through shared memory. The playtester provides gameplay traces and actionable feedback, while a separate GPT-5.5 judge assigns final benchmark scores. Across three frontier backbones, Play2Code achieves a 66.8% rubric pass rate, outperforming single-pass and agentic-coding baselines by 37.1 and 14.6 points, respectively. Its scores also improve monotonically across refinement rounds. Further analysis shows that GUI-agent feedback is more traceable than human reports yet exhibits similarly idiosyncratic priorities. These results establish GUI playtesting as an evaluation and refinement signal for interactive code generation. Our project website is available at https://continual-game-generation.vercel.app/.

    Abstract source
  • EMNLP · Findings

    DIAG: Diagnostic Iterative Alignment and Generation for Data-Efficient Mathematical Preference Distillation

    Guhan Chen, Songtao Tian, Bohan Li, Hejin Wang, Ye-Xin Xie, Zixiong Yu

    Abstract

    Iterative preference optimization is essential for aligning Large Language Models on mathematical reasoning tasks, yet its efficiency is often throttled by signal scarcity: as the model improves, static problem sets become increasingly mismatched to the model’s evolving competence, producing rollouts that are either too easy or too hard and therefore non-informative, which leads to a scarcity of valid preference pairs. We propose DIAG, a Diagnostic Iterative Alignment and Generation framework that adaptively reshapes the practice distribution to increase informative supervision and focus training near the student’s current competence boundary. DIAG consists of two phases: (1) diagnosing valid preference-pair yield to calibrate the exploration-exploitation trade-off and allocate topic quotas via an Empirical Bayes shrinkage estimator, thereby prioritizing high-yield concepts; and (2) generating targeted practice, where a teacher synthesizes variants from the student’s failure traces. We further provide a theoretical view interpreting DIAG as a teacher-mediated approximation to KL-regularized reweighting of the practice distribution toward the student’s competence boundary, where valid preference-pair yield is maximized. Experiments show that DIAG boosts yield across iterations and delivers stronger reasoning performance under an iso-effective training budget, demonstrating that it can distill more informative preference supervision for mathematical reasoning.

    Abstract source
  • EMNLP · Findings

    Improving Speech Generation via Multi-Neighbor Token Prediction for Neural Codec Language Models

    Wenrui Liu, Qian Chen, Wen Wang, Yuxuan Wang, Haoxiang Wu, Guanrou Yang, Rui-Chen Zheng, Weiqin Li, Guo Tao, Xiangang Li, Zemin Liu

    Abstract

    Inspired by Large Language Models (LLMs), codec-based TTS systems have achieved remarkable success in high-fidelity speech generation by directly adopting the standard Cross-Entropy (CE) objective to predict sequences of discrete speech tokens from neural audio codecs. However, this practice overlooks the geometric structure of codec token spaces: tokens that are close in the codec codebook embedding space often correspond to acoustically similar speech realizations and can serve as perceptually plausible alternatives. We term this observation the Neighboring Token Phenomenon. The one-hot CE objective is agnostic to such structure, as it penalizes all non-target tokens equally, including these close neighbors, creating a mismatch between the structured codec latent space and the learning objective. In this paper, we quantitatively analyze the neighboring token phenomenon in both reconstruction and generation settings. To address the mismatch, we propose Multi-Neighbor Cross-Entropy (MNCE) loss function, which generalizes the one-hot target of CE loss into a positive set containing the ground-truth token and its nearest neighbors, encouraging the model to treat neighbor predictions as partially correct. As a result, even when the model misses the exact target token, it is more likely to predict a close neighbor rather than an unrelated token, reducing perceptually harmful errors in synthesized speech. Experiments demonstrate that MNCE is effective and generalizable across diverse codec-based TTS systems, improving quality and robustness. Moreover, scaling training to 20,000 hours further validates the scalability of our approach.

    Abstract source
  • EMNLP · Findings

    RelayS2S: Dual-Path Speculative Generation for Real-Time Dialogue

    Long Mai, Junli Liang

    Abstract

    Real-time spoken dialogue systems face a fundamental tension between latency and response quality. End-to-end speech-to-speech (S2S) models respond immediately and naturally handle turn-taking, backchanneling, and interruption, but produce semantically weaker outputs. Cascaded pipelines (ASR ➔ LLM) deliver stronger responses at the cost of latency that grows with model size. We present RelayS2S, a hybrid architecture that runs two paths in parallel upon turn detection. The fast path—a duplex S2S model—speculatively drafts a short response prefix that is streamed immediately to TTS for low-latency response onset, while continuing to monitor live audio events. The slow path—a cascaded ASR ➔ LLM pipeline—generates a higher-quality continuation conditioned on the committed prefix, producing an uninterrupted utterance. A lightweight learned verifier gates the handoff, committing the prefix when appropriate or falling back gracefully to the cascaded pipeline. With GPT-4.1 as the back-end, RelayS2S substantially reduces response latency while preserving nearly all of the cascaded pipeline’s textual quality. On synthetic voice dialogues, it achieves a P90 first-chunk latency of 81 ms, excluding TTS and network latency, compared with 1,006 ms for the cascaded baseline. On real voice dialogues, RelayS2S reduces average first-chunk latency by 479 ms while retaining 99% of the cascaded pipeline’s textual quality. These benefits become larger as the slow-path model scales. Because the prefix handoff requires no architectural modification to either component, RelayS2S serves as a lightweight, drop-in addition to existing cascaded pipelines. Our code is publicly available at https://github.com/mailong25/relays2s.

    Abstract source
  • EMNLP · Findings

    UniData: Universal Multimodal Instruction Generation Pipeline

    Jiaqi Tang, Yi-Feng Wu, Yuting Zhang, Hao LU, Bowen Fu, Qing-Guo Chen, Xiaogang Xu, Yuwei Hu, Shiyin Lu, Wei Wei, Lei Zhang, Zhao Xu, Weihua Luo, Qifeng Chen, Ying-Cong Chen

    Abstract

    Multimodal Large Language Models (MLLMs) are increasingly being applied in a wider range of real-world scenarios. However, due to the substantial labor cost, creating high-quality multimodal instruction datasets for MLLMs remains a significant challenge. Although some methods propose to generate instruction data, they often face limitations in modality support and struggle with generating multi-round instructions. To address these problems, we introduce UniData, a universal instruction generation pipeline, to transform simple user requirements into multi-round, multimodal instructions. Specifically, UniData first expands user requirements into multiple diverse events. Using these events, UniData then integrates an any-to-any large model for multimodal instruction generation. Finally, UniData enhances data quality by correcting irrelevant and redundant inference flow, leveraging correlations between instruction rounds. To train this pipeline, we also build UniDataset, a dataset comprising 20,000 entries across nine modalities for improved multimodal generation. Our experiments demonstrate that UniData achieves SOTA performance in data quality and can also enhance the understanding and generation capabilities of other multimodal models.

    Abstract source
  • EMNLP · Findings

    When Evidence Shapes Collaboration: Knowledge-Conditioned Topology Generation for Multi-Agent Systems

    Yangxiao Jiang, Jiarun Fan, Mingcong Xu, Yanxi Guo, Jiwen Feng, Shanqing Xu, Mengchen Qian, Wei Chen, Xiaojin Zhang

    Abstract

    Multi-Agent Systems (MAS) have recently moved from static workflows toward dynamically generated collaboration topologies. However, existing topology generation methods rely primarily on the parametric knowledge of large language models, with external search or retrieval used only as a reactive tool rather than an explicit determinant of collaboration structure. This leads to structure–knowledge misalignment, where systems exhibit redundant interactions or insufficient verification in knowledge-intensive tasks.We propose K-GAT (Knowledge-Guided Agent Topology Generator), a neuro-symbolic framework that formulates collaboration topology design as a knowledge-conditioned structure learning problem, integrating external evidence directly into autoregressive graph generation. Extensive experiments on knowledge-intensive benchmarks demonstrate K-GAT’s efficiency and effectiveness. Notably, on the expert-level GPQA dataset, K-GAT outperforms the LLM-Debate baseline by a substantial margin of +15.7% in accuracy, while consuming less than half the computational tokens.

    Abstract source
  • EMNLP · Findings

    CompCQR: Compositional Query Generation for Training-Free Conversational Search

    Yunah Jang, Kang-il Lee, Joongbo Shin, Kyomin Jung

    Abstract

    Multi-turn interactions with LLMs are becoming increasingly common in information-seeking scenarios. However, user queries are often ambiguous and context-dependent, making them ill-suited for direct use as retriever queries. Conversational query reformulation (CQR) addresses this issue by rewriting the current utterance into a stand-alone query grounded in the dialogue history. Recent LLM-based CQR approaches achieve strong performance; however, their repeated LLM invocations and misalignment with downstream retrievers remain challenges. In this work, we begin from the observation that retrievers are highly sensitive to content ordering: simply reordering the same content can lead to changes in retrieval coverage and performance. Based on this, we propose a novel training-free method that generates a very large number of queries with minimal LLM usage by compositionally combining a small set of atomic components. We further apply LLM reasoning to construct a high-quality document set that balances precision and recall while capturing the user’s core intent. Our framework generalizes across both open- and closed-source LLMs as well as dense and sparse retrievers. It achieves strong performance on four widely used conversational benchmarks, with up to 22.5% relative MRR improvement over the previous state-of-the-art baseline with far fewer LLM calls.

    Abstract source
  • EMNLP · Findings

    Observation-Aware Stabilization of Reinforcement Learning for Retrieval-Augmented Generation

    Naixin Zhang, Tong Lin

    Abstract

    Reinforcement learning (RL) for retrieval-augmented language models enables policies to interleave generated reasoning with retrieved observations. However, in Search-R1-style PPO, training may become unstable after the model has already reached strong validation performance. This paper studies late-stage collapse as a training-stability problem in search-based RL. Four metrics are proposed to quantify validation drawdown (VDD), advantage-tail expansion (ATE), actor update stress (AUS), and observation-to-actor contamination in generalized advantage estimation (GAE), denoted as OAGC. The analysis further shows how observation tokens can influence actor updates through value targets, value-model learning, and GAE. To address this issue, Observation-aware Stabilization (OAS) combines observation residual decay, old-value anchoring, and boundary smoothing. On three benchmark datasets (NQ, TriviaQA, and HotpotQA), OAS improves Search-R1 PPO under multiple retrieval budgets. In the main Top-3 setting, our method improves the exact match (EM) measure from 31.8/49.6/18.7 to 37.6/56.8/23.9 and reduces OAGC from 0.331 to 0.088, with lower search-budget saturation and no increase in the no-search rate.

    Abstract source
  • EMNLP · Findings

    From Final Artifacts to Trajectories: Retrospective Process Supervision for Evidence-Grounded Long-Form Generation

    Junjie Huang, Jiarui Qin, di Yin, Weiwen Liu, Yong Yu, Xing Sun, Weinan Zhang

    Abstract

    Trajectory data is getting more vital for training large language models for boosting the agentic abilities. Unlike the verifiable domains such as coding or mathematics, scaling trajectory data for open-ended tasks are much more difficult because these tasks lack singular ground truth and are costly to annotate or verify. In this paper, we propose RetroGen, a self-improving framework of retrospective process supervision. Our key observation is that although expert trajectories are scarce, high-quality final artifacts such as literature reviews, analyst reports and legal judgments, are abundant in pre-training data and can be viewed as compressed traces of the evidence-seeking processes that produced them. RetroGen reconstructs candidate latent trajectories from expert artifacts, verifies them against both the artifact and supporting evidence, and trains models on their own successful reconstruction data, without requiring trajectory data from stronger models. Experiments show that RetroGen improves grounding, faithful synthesis, and long-form evidence-seeking agent tasks.

    Abstract source
  • EMNLP · Findings

    CAGE: Coherence-Aware Graph Encoding for Retrieval-Augmented Generation

    Tong Qi, Jingyu Wu, Youbing Yin, Spencer Hong, Daben Liu, Erin Babinsky

    Abstract

    Traditional Retrieval-Augmented Generation (RAG) systems score each passage independently against the query, assembling context sets that may be individually relevant yet collectively incoherent. We introduce Coherence-Aware Graph Encoding (CAGE), a reranking framework that models "between-chunk coherence" across four dimensions: Intra-Domain Relevance, Noise Resistance, Informational Bonding, and Factual Consistency. Our pipeline transforms retrieved passages into directed heterogeneous entity graphs, amplifies factual anchors via min-out-degree reweighting, encodes structural patterns through a Relational Graph Convolutional Network, and fuses inter-chunk coherence with query relevance for final ranking. Evaluated across four multi-hop benchmarks, CAGE matches or outperforms strong baselines including monoT5 in Recall@5 on bridge-dominated datasets and consistently improves downstream Exact Match, demonstrating that structurally coherent context yields more precise answers even when retrieval recall is comparable or lower.

    Abstract source
  • EMNLP · Findings

    Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation

    Tran Ta Quang Minh, Cuong Dang, Tuc Nguyen, Khanh-Tung Tran, Minh Huynh Nguyen, Chau Nguyen To Trinh, Kien Le, Do Xuan Long, Jiahao Zhang, Fali Wang, Hoang D. Nguyen, Thanh Le, Suhang Wang

    Abstract

    Retrieval-Augmented Generation (RAG) enhances large language models by grounding outputs in external knowledge, improving factuality and reducing hallucinations. At the same time, the retrieval-augmented pipeline introduces new robustness and security risks, including corpus poisoning, backdoor attacks, privacy leakage, and fairness violations. Despite rapid progress in this area, existing surveys remain limited in their treatment of attacker objectives, threat models, and stage-specific defenses across the full RAG pipeline. This survey presents a unified and pipeline-aware overview of RAG robustness. We formalize threat models over the corpus, retriever, and generator, and organize attacks into three main objectives: accuracy, privacy, and fairness. We further review defenses from a pipeline-aware perspective, covering the retrieval, rerank, generation, and traceback stages. In addition, we summarize robustness benchmarks and explainability methods for more deeply evaluating and explaining RAG robustness. Finally, we highlight open challenges and future directions for building trustworthy RAG systems. To continuously track developments in this rapidly evolving field, we will also actively update a public repository at https://github.com/coutMinh/A-Survey-on-RAG-Robustness.

    Abstract source
  • EMNLP · Findings

    Reflecting What Matters: Same-Surgery References for Postoperative Clinical Note Generation

    Seungmi Yu, Somin Song, Hyeryun Park, Jinwook Choi

    Abstract

    Generating the first postoperative outpatient note requires selecting which information from heterogeneous clinical records should be reflected in the final note, rather than merely summarizing all inputs. We evaluate this task on an original 170-case set of de-identified clinical cases collected at Seoul National University Hospital (SNUH), involving two surgical divisions and five physicians. We then extend the evaluation to 1,329 cases across 10 surgery groups within the same institution to examine whether the main trends persist at a larger scale. We introduce physician- and surgery-specific same-surgery references: structured reflection maps that capture how information is selected and rewritten in prior same-surgery cases. Experiments show that these references become most effective when carried into the merge stage, suggesting that the main bottleneck is deciding what to reflect across records. We further show that cross-patient references can induce unsupported transfer from prior cases. To analyze this trade-off, we use a human-validated two-source FactScore that checks each generated fact against both the source records and the physician-written note. A lightweight grounding constraint reduces hallucination while maintaining or improving alignment with physician-written notes across divisions and LLMs.

    Abstract source
  • EMNLP · Findings

    A Pre-Generation Epistemic Routing Axis in Language Models

    Steve Bakos, Heidar Davoudi, Aijun An

    Abstract

    When answering factual questions, language models may respond correctly, hallucinate, or abstain. We investigate whether this epistemic disposition is encoded in hidden states before any answer token is generated. Using a balanced Wikipedia QA corpus with pre/post article-date splits and rollout-consensus labels, we analyze prompt-only MLP activations from four instruction-tuned 7–9B models. PCA reveals a dominant pre-generation epistemic routing axis that orders outcomes as ABSTAIN, HALLUCINATION, and CORRECT. We then apply activation steering as a bounded causal stress test. Dense residual-write edits can shift many hallucinations toward abstention or correctness, while sparse MLP-intermediate edits localize the steering signal. These results frame the axis as a steering audit: it identifies where fixed edits improve factual behavior and where correct loss or broken outputs call for conditional controllers.

    Abstract source
  • EMNLP · Findings

    DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents

    Rupam Patir, Keyan Guo, Suvadra Barua, Jiawei Guo, Abhijeet Pathak, Dinesh Gudimetla, Hongxin Hu, Haipeng Cai

    Abstract

    Large language models (LLMs) and LLM-based coding agents are now used to generate code from natural-language specifications, yet ensuring such code is both functionally correct and secure remains a challenge. We present DualGauge, the first fully automated framework for jointly evaluating correctness and security of specification-only code generation, supported by DualGauge-Bench, a language-agnostic benchmark of 307 coding tasks each paired with functional and security tests derived from the same specification. Evaluating 10 representative LLMs across Python, C++, and JavaScript, we find that functional correctness substantially overestimates reliable code generation: even the strongest model remains below 15% joint security-functionality success in every language. Common model-side factors—scale, extended thinking, quantization, instruction tuning, and code specialization—do not reliably improve joint performance, suggesting secure-and-correct code generation does not simply emerge from stronger coding capability. Evaluation of 3 leading agentic coding systems (Codex, OpenHands, and Claude Code) shows that iterative scaffolding provides no advantage over direct (LLM-based) generation on specification-only tasks. A qualitative audit reveals failures concentrate at the output contract boundary and in guards that exist but are insufficient—patterns that only joint benchmarking reliably exposes.

    Abstract source