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

4,261–4,280 of 4,478

  • EMNLP · Co-located · REALM

    Flight to Mediocrity: Why LLM Agent Selectors Under-Hire Experts When Quality Claims Are Unverified

    Soham Wasmatkar

    Abstract

    AI systems increasingly let one model choose another: an orchestrator routing a task to a sub-agent, or an agent picking a tool from a registry, by self-described ability. What happens when that self-report cannot be checked? In MATCHMARKET, a client hires one of three candidates whose true competence is hidden (2, 5, or 8 of 10), earning the competence of its hire. Candidates are themselves language models, inflating claims under an audit-and-fine incentive. Selectors rarely fall for the loudest liar, picking the inflator only 8–15% of the time. They fail by fleeing to mediocrity: 75–89% of their mistaken hires land on a safe, moderate candidate, not on the liar. A trivial yardstick makes the cost concrete: believing the highest claim earns 6.72 of a possible 8.0, and no selector we test significantly beats it. The best merely matches it, while the weakest fall significantly below (pooled 5.99, paired p = .002; random scores 5.0). A verified record recovers much of the loss, but only for selectors near chance without it, widening rather than closing cross-model gaps. Every outcome is scored arithmetically, no LLM judge. Unverified capability advertisement behaves like a market for lemons whose cost falls on the honest, capable provider.

    Abstract source
  • EMNLP · Co-located · REALM

    Translating the Translator: Decomposing the Cost of English-Forced Inter-Agent Communication

    Kushagra Agrawal, Yuming Feng, Man-Fai Leung

    Abstract

    Multi-agent LLM architectures, such as LangChain and AutoGen, largely assume English as the lingua franca for internal inter-agent communication, even when the end-user task is non-English. We fill this gap by evaluating a two-agent extraction-answer core, with an additional back-translation agent in the English-forced condition, across four typologically diverse languages (Hindi, Chinese, Spanish, Arabic; n=300 per language) using the Aya-23-8B model. We compare a native-language pipeline to an English-forced one (which incorporates a final back-translation step from English to the user’s language). We discover a statistically significant English-Forcing Tax (surviving a strict Bonferroni correction) that isolates the cost of English routing from general multi-agent orchestration overhead. Forcing inter-agent communication through English reduces Exact Match accuracy by 13.0 percentage points (Spanish) up to 30.6 percentage points (Hindi) compared to native-language multi-agent execution. Using chrF scores as a diagnostic measure of English-reference lexical overlap, we find that lower overlap is strongly associated with pipeline failure, consistent with translation loss being an important contributor to the observed performance drop. These findings suggest a compelling case for native-language routing in agent frameworks when the source and target languages are typologically distant, reducing a compounding translation tax.

    Abstract source
  • EMNLP · Co-located · REALM

    Be Careful Who You Trust: Coordination Dynamics under Corrupted Communication in LLM Multi-Agent Games

    Xuanyi Liu, Niall Dalton, Hairi Amin, Xiyuan Yin, Lydia Lim

    Abstract

    Large language models are increasingly used as interacting agents, but it remains unclear how robust their coordination is when public communication is unreliable. We study this question in iterated N-player Stag Hunt games played by homogeneous LLM groups under controlled programmatic action inversion, which changes both the public transcript and the actions used for execution. Across an experimental grid spanning group sizes, coordination thresholds, corruption levels, and seven LLMs, we observe three main patterns. First, honest agents’ pre-flip Stag choices decline as corruption increases, but the sharp fall in public success is primarily mechanical. In the focal N=5,M=3 setting, pre-flip success remains 78% at 80% corruption, while public success falls to 12%. Second, honest choices are associated with the public history available at decision time, particularly under high corruption. Third, three threshold-style public-report benchmarks yield similar action-match rates to the LLM agents, showing substantial descriptive agreement between LLM decisions and these benchmarks. Overall, our results show that original choices, public actions, and executed outcomes must be separated when evaluating multi-agent robustness, as corrupted communication can severely and predictably degrade mutually beneficial cooperation.

    Abstract source
  • EMNLP · Co-located · REALM

    Generation and Verification: Human-Agent Collaboration for Safety-Critical Automotive Software Engineering

    Elizaveta Zinovyeva, Aiham Taleb, Nikita Kozodoi, Daniel Schleicher, Amir Mahdi Namazi, Martin Kraus, Levent Kent, Brian Jensen

    Abstract

    Research on coding agents mainly focuses on generation quality. Yet, safety-critical automotive software makes two additional demands. It prioritizes verification, since every change is reviewed, traced to a requirement, and checked against industry standards such as MISRA and AUTOSAR before it can be committed. It is also a narrow domain, written against layered architectures, embedded resource constraints, and organization-specific interface conventions that are scarce in the data general-purpose LLMs are trained on. We present a coding assistant for automotive C/C++ that addresses both demands. First, it exposes three tools to the user over the Model Context Protocol (generate, edit, and verify), allowing developers to run verify on any code on demand rather than relying on the agent to check its own output. Second, rather than using a general-purpose model, we customize the underlying LLM for the automotive domain through prompt engineering and fine-tuning. We construct a dataset from automotive production code of AUMOVIO, where each function is paired with the requirement texts and Unified Modeling Language (UML) behavior it must satisfy. In a two-week pilot on active production projects, developers report verify as the most-used tool and confirm using it on their own code and not only on generated output. Comparing model customization strategies, 75% prefer the faster prompt-engineered configuration. MISRA- and AUTOSAR-inspired pattern checkers indicate that prompt engineering achieves a lower number of violations on C, while fine-tuning shows better conformance with architecture patterns for C++.

    Abstract source
  • EMNLP · Co-located · REALM

    AIDG: A Formal Decomposition of Information Extraction and Containment Asymmetries in Multi-Turn LLM Dialogue

    Adib Sakhawat, Fardeen Sadab, Rakin Shahriar

    Abstract

    Multi-turn LLM evaluation is typically reported as a single win-rate scalar, conflating distinct capabilities. We introduce AIDG (Adversarial Information Deduction Game), formalizing multi-turn adversarial dialogue as a two-player partially observable stochastic game (POSG) and decomposing performance along Seeker (extraction) and Holder (containment) roles. The decomposition isolates three failure modes: cooperative-prior leakage, constraint–reasoning interference, and inefficient hypothesis-space traversal. Across 439 games over six frontier LLMs, defensive performance is tightly clustered (σ = 1.9 ELO) while offensive performance varies substantially (σ = 53.3 ELO); confirmation framing increases extraction odds 7.75× over uninformed deduction (p < 0.00001); and constraint violations account for 41.3% of deductive failures, uncorrelated with scale (ρ = 0.0). We position the containment-over-extraction gap not as a surprising finding but as a measurable consequence of locally-resolvable defensive decisions versus globally-coupled offensive planning, and use the decomposition to attribute the gap per model. All design choices, including turn-decay weighting and the Bradley–Terry rating model, are derived from explicit assumptions.

    Abstract source
  • EMNLP · Co-located · REALM

    AgenticLOCI: A Multi-Agent Memory Framework for Conversational AI with Longitudinal Personalization

    Jonas Schewior, Deniz Bilgin, Gonzalo Haefner, Andreas Wendemuth

    Abstract

    Long-term conversational AI requires two distinct capabilities: remembering what was discussed and adapting to how a user’s preferences evolve over time. We argue these operate on different timescales and require separate but interoperable architectures. AgenticLOCI is a five-agent framework built on this premise: session retrieval fuses a short-term semantic ranker with a long-term keyword scorer via rank fusion, while personalization is maintained through a versioned deliberation-state memory that accumulates decision-episode snapshots across interactions. We evaluate on three benchmarks using Qwen 2.5-7B-Instruct. On LoCoMo, the AgenticLOCI Backbone achieves F1 = 0.342 versus BM25 = 0.285 while consuming 7.3\times fewer input tokens per item. On LongMemEval-S, item-level analysis confirms that the two retrieval layers solve architecturally distinct sub-problems; at 7B scale the keyword layer leads, a reversal expected to resolve at larger model sizes where LLM ranking is more reliable. On PersonaMem, all configurations perform within a narrow band, establishing that memory benefit is conditional on context-budget pressure. The longitudinal personalization layer is evaluated on a synthetic mobility benchmark with known user trajectories, keeping 97.6% of stable preference fields unchanged and making warranted updates with 58.3% precision against an ablation baseline. We demonstrate the full framework as a personalized urban mobility assistant for Magdeburg.

    Abstract source
  • EMNLP · Co-located · REALM

    When Failures Propagate: Causal Failure Attribution in Agentic Retrieval-Augmented Generation

    Lauren Pothuru

    Abstract

    Agentic retrieval-augmented generation (RAG) interleaves retrieval, reasoning, and answer generation across multiple hops. A retrieval error at hop 1 can surface only as a wrong answer at hop 3, while later retrieval can also repair the trajectory. This paper introduces AgenticRAG-FP, an interventional benchmark for causal failure attribution in agentic RAG. The benchmark injects a certified fault at a specified hop, re-executes the downstream trajectory, and evaluates diagnosers against the known intervention site. Its central question is whether a post-hoc trace still identifies the injected hop after the suffix changes. In the dense Claude Haiku 4.5 structural sweep on three-hop MuSiQue questions, coverage-based diagnosis is 0.91 at hop 1 and 0.00 at hops 2 and 3 (n=43, 36, 21 failed trajectories), but it predicts hop 1 in 96% of failures, an earliest-hop rule; at hops 2 and 3, an LLM judge and frozen-hop repair localize only 0.25 to 0.48 of failures. In larger content-corruption runs, depth-2 exact-hop accuracy is 0.00 for coverage, 0.49 for an LLM judge, 0.59 for frozen-hop repair, and 0.14 for suffix regeneration (n=51); the judge and frozen-hop repair do not significantly differ (exact McNemar p=0.33).

    Abstract source
  • EMNLP · Co-located · REALM

    What Agent Benchmarks Don’t Tell You: Recoverability and Credit Assignment in Agentic Retrieval Evaluation

    Sai Krishna Rallabandi, Parag Pravin Dakle, Preethi Raghavan

    Abstract

    Agent quality on long-horizon tasks is usually reported as a single number: the aggregate gain of a tool-using agent over a non-agentic baseline on a benchmark. We argue that this number is not a property of the agent. It is jointly determined by a property of the benchmark and by which sub-component of the agent happens to be load-bearing, and reporting it alone makes agent quality look benchmark-dependent and irreproducible. We propose a four-stage evaluation protocol that separates the two. Stage 1 characterizes the benchmark before any outcome is observed, using an LLM-free diagnostic we call recoverability: whether evidence missed on the first retrieval is still reachable from what the system has already seen, and if so whether it is reachable by reformulation or only by structural navigation. Stage 2 assigns credit with an ablation ladder — one-shot RAG, a choice-free fixed-iterative loop, and a full agent — that localizes any measured gain to iteration or to open-ended agency. Stages 3 and 4 add the validity checks and cost accounting that change verdicts in practice. Applying the protocol to about 6,000 logged agent episodes over eight corpora and three reader families, we find that the headline agent gain ranges from −0.21 to +0.30 (each corpus in its native metric) purely as a function of the recoverability regime, and that on reformulation-recoverable corpora the choice-free loop recovers 65–96% of the gain normally credited to agency under the two stronger readers (and most of it under the open reader). Agency earns its cost only on the longest-horizon, navigation-recoverable corpus, where iteration saturates by round 2 and leaves a residual (+0.15 under the open reader at full N) that no round budget closes under any reader.

    Abstract source
  • EMNLP · Co-located · REALM

    When the API Speaks the Wrong Language: Revisiting Post-Training for Multilingual Tool Use

    Siddharth Chauhan, Thomas Butler, Abhishek Singhania, Pankaj Kumar Porwal, Honey Gupta

    Abstract

    The reliability of Large Language Models (LLMs) for API calling degrades in multilingual settings. A common failure occurs when a model selects the correct tool but generates argument values in an inconsistent language, which we term Argument Language Mismatch (ALM). Although semantically correct, such outputs are operationally invalid and not captured by standard API-calling metrics. We revisit post-training strategies for mitigating ALM and find that, in our benchmark, supervised fine-tuning (SFT) provides a strong baseline, substantially improving argument language consistency and end-to-end function call accuracy. Under consistent model selection, SFT achieves performance comparable to, and sometimes exceeding, more complex reinforcement learning (RL) approaches. We further examine whether RL with structured, argument-aware rewards offers additional benefits. While methods such as Group Relative Policy Optimization (GRPO) can improve language consistency and better preserve general reasoning ability, these gains are incremental and most pronounced in generalization and multi-objective trade-offs. Overall, our results suggest that much of the performance in multilingual API grounding can be achieved through careful supervised training, with RL providing fundamental improvements.

    Abstract source
  • EMNLP · Co-located · REALM

    MCPAgentBench: A Real-world Task Benchmark for Evaluating LLM Agent MCP Tool Use

    Zixiang Liu, Wenrui Liu, Elsie Dai, Wenhan Yu, Lei Yu, Tong Yang, Yinjun Han, Hong Gao

    Abstract

    Large Language Models (LLMs) are increasingly serving as autonomous agents, and their utilization of external tools via the Model Context Protocol (MCP) is considered a future trend. Current MCP evaluation sets suffer from issues such as reliance on external MCP services and a lack of difficulty awareness. To address these limitations, we propose MCPAgentBench, a benchmark based on real-world MCP definitions designed to evaluate the tool-use capabilities of agents. We construct a dataset containing authentic tasks and simulated MCP tools. The evaluation employs a dynamic sandbox environment that presents agents with candidate tool lists containing distractors, thereby testing their tool selection and discrimination abilities. Furthermore, we introduce comprehensive metrics to measure both task completion rates and execution efficiency. Experiments conducted on state-of-the-art LLMs reveal significant performance differences in handling complex, multi-step tool invocations. All code is open-source at https://github.com/Brunestuder/MCPAgentBench.

    Abstract source
  • EMNLP · Co-located · REALM

    What Drives Recovery in Agentic Text-to-Cypher? LAST-CQ: An LLM Agent Self-Refinement Framework

    Ioannis Prokopiou, Athanasios Aidinis, Panagiotis-Christos Kyrmpatsos, Pantelis Vikatos

    Abstract

    Agentic pipelines for structured-query generation are rapidly expanding, but it is unclear which part of the loop produces the gain. We use LAST-CQ—a five-agent, training-free, execution-grounded Text-to-Cypher framework—as an instrumented testbed, running three counterfactuals over 2,471 live-database queries and six backbones spanning three vendor scale tiers. Removing correction is worth between 3.1% aggregate execution-BLEU against the single-pass system and 12.3% against a no-refinement counterfactual (up to 80.7% for the weakest backbone). Replacing schema-grounded, LLM-synthesised feedback with raw database error strings costs almost nothing (20.9% vs. 19.9% naive exact match; <0.2% end-to-end; equivalent within ±0.075 set-F1 by two one-sided tests). Spending the same call budget on parallel sampling degrades quality by 10–11%. What works is detecting failure and routing it to a retry, not the feedback sophistication or number of samples. LAST-CQ itself recovers 91.7% of queries that fail under single-pass generation, while a query that succeeds first time still costs exactly one LLM call. We also show that n-gram overlap on serialised results is not a bound in either direction: it over-scores against set equivalence on 65.9% of results while under-scoring against judged semantics. Finally, we calibrate our LLM judge against blind human labels and find it optimistic by 9 points.

    Abstract source
  • EMNLP · Co-located · REALM

    Bayesian Belief Layer for Controllable Opinion Dynamics in LLM Agents

    Hafsa Akbar, Daniel Platnick, Marjan Alirezaie, Hossein Rahnama, Alex Pentland

    Abstract

    LLM agents in social simulation revise their opinions implicitly, in context: how open an agent is to persuasion can neither be specified nor verified, and collective outcomes inherit the model’s training prior. We introduce Bayesian Chronicle Agents (BCA), a minimal belief layer separating what an agent believes from how it speaks. Each stance is a probability, updated by one Bayesian step per utterance heard. A single prior-strength parameter \kappa encodes stubbornness, modeled after its role in Friedkin–Johnsen (FJ) opinion dynamics. We then sweep this parameter to yield three canonical regimes of opinion dynamics on demand (consensus, persistent disagreement, committed-minority influence), with persistent disagreement matching the FJ closed-form fixed points at R^2 = 0.93–0.99. We further show that prescribed \kappa remains recoverable after the language round-trip, with perfect rank-order recovery across all four models. Explicit belief also makes simulation auditable: the layer surfaces systematic per-model stance biases that end-to-end simulation would silently absorb.

    Abstract source
  • EMNLP · Co-located · REALM

    Failing Agents Leave Traces: Telemetry Signatures for Multi-Tier Agent Evaluation

    Muthaheera Yasmeena Belgur Shamiullah

    Abstract

    Agent evaluation today depends on per-trace LLM-judge inference or human review, too expensive to run on every trace; production systems fall back to sampling a fraction. We find that failing agents leave a detectable behavioral signature in standard observability telemetry: disproportionate effort relative to outcome. We formalize four behavioral failure signatures from agent telemetry, validated on 4,671 traces spanning five agent domains: Compensatory Effort (17–159% more effort on each domain’s primary signal, all five domains, p<0.006, the dominant signature every- where tested); Output Inflation (+38% larger patches on SWE-rebench; direction and reliability vary by domain); Unfocused Orchestra- tion (+5.98–12.3% higher token entropy, four of five domains); and Correlation Decoupling (effort-signal correlations shift structurally between pass and fail traces, p<0.001, three domains). A simple threshold check over these signals, with no judge, no label, and no model call, already catches 52.9–61.5% of failures. Across three human-labeled benchmarks, judges miss 6.5–18.1% of confirmed failures on the two directly comparable ones, and a trained telemetry classifier (AUROC 0.821) recovers 61.5–75.4% of each judge’s misses; combining judge and classifier cuts the miss rate from 18.1% to 4.4%, a 4.1× reduction against the weakest of the eight judges tested (GPT-4o-mini); stronger judges start with fewer misses, so the reduction is correspondingly smaller.

    Abstract source
  • EMNLP · Co-located · REALM

    Environment Steering: Using Data Flow Control to Improve Agent Utility and Safety

    Charlie Summers, Prajwal Raghunath, Aaditya Pai, Mayur Kulkarni, Zhuo Zhang, Oliver Kennedy, Eugene Wu

    Abstract

    LLM agents can make unsafe tool calls even when instructed to behave safely. Existing defenses constrain agents before execution, modify tool inputs/outputs, or rely on LLM judges; these approaches may depend on model behavior or block unsafe actions without helping the agent recover. We argue that the execution environment should instead enforce safety as the agent runs and steer it toward safe alternatives when violations occur—we call this \textbf{Environment Steering}. We implement this by modeling the agent and harness execution state as database tables, track the record-level data flows, and check these data flows against declarative policies during runtime. When violations are detected, policy- and context-specific feedback steers the agent toward safe trajectories. On AgentDyn, this enables the agent to improve task success rate over no-defense while achieving 0% attack success rate.

    Abstract source
  • EMNLP · Co-located · REALM

    When Critics Go Stale: Benchmarking Safety Guardrail Degradation Under Environment Drift

    Fatemeh Taheri Dezaki, Lakshman Kolasani, Ankita Bhaumik, Siddartha Sathyamoorthy Rao, Ayush Jain

    Abstract

    LLM-based critics are widely deployed as safety guardrails for agentic systems, yet their reliability under realistic operating conditions remains underexplored. We demonstrate that critics calibrated against a fixed system snapshot degrade as tools are added and application domains expand, with no external signal indicating weakened detection capability. We formalize this problem along controlled axes and introduce DRIFT (Detecting Reliability Issues From Tool-scaling), a benchmark for measuring critic robustness under environment change. Building on SafeToolBench’s multi-domain tool ecosystem, we construct verified cross-app composition scenarios, both violating and compliant, where policy violations emerge only from data flow across application boundaries, and evaluate 9 models across 6 provider families on a two-dimensional scaling matrix separating intra-app noise from cross-app noise. We find that (1) all 9 models degrade under cross-app scaling, with UPR increases ranging from +0.083 to +0.296, (2) tool scaling shifts critics toward reduced discriminability, missed violations rise while false blocks simultaneously fall, and (3) cross-app noise consistently dominates intra-app noise, with cross-app deltas positive for all nine models (sign test p = 0.004) while intra-app deltas are directionless (4 of 9 positive, p = 1.0). DRIFT provides a controlled methodology for measuring critic robustness as tool ecosystems evolve, and our results argue for monitoring UPR and FBR jointly rather than aggregate accuracy alone.

    Abstract source
  • EMNLP · Co-located · REALM

    Are LLM Shopping Agents Behaviorally Distinguishable from Human Shoppers? A Session-Level Study

    Arka Dutta, Virinchi Roy Surabhi, Jiayue Tong, Dihan Dai, Olcay Boz, Amila Weerasinghe

    Abstract

    Large language models can now operate a web browser and carry out multi-step shopping tasks. Does such an agent leave a behavioral signature in a session that separates it from a person, even when it drives a real browser and presents an ordinary client fingerprint? We study the question at the session level. We first show that weak per-action evidence aggregates into a session-level distinction whose error decays exponentially in the number of actions. We then define six families of behavioral signals, each grounded in a documented difference between goal-directed automation and human browsing, and combine them in a classifier we call HABITS (Human–Agent Behavioral Invariants from Traffic at Session-level). Labeled agent sessions are scarce, so we describe a simulation methodology for driving language models through shopping tasks and instantiate it on public data with realism-controlled planner agents. We evaluate on five public benchmarks spanning e-commerce clickstreams, web-task demonstrations, and mouse dynamics, reimplementing prior methods on the identical corpus. Against agents that imitate human timing, timing-only classifiers fall to 0.35 recall at a 1% false-positive rate and to 0.01 -0.02 when timing is fully matched, while HABITS reaches 0.96 on the clickstream corpus. Paired tests separate HABITS from every restricted-view baseline, and equivalence tests show that strong classifiers given the same features are interchangeable, which places the contribution in the behavioral view rather than the estimator. A check against real agent trajectories supports the structural assumption our simulator relies on and finds one realism parameter set too favorably.

    Abstract source
  • EMNLP · Co-located · REALM

    Do Tool Schemas Fully Specify Argument Binding?

    Jai Kumar Sharma, Peeyush Tapadiya

    Abstract

    Tool schemas constrain the structure of a call but need not determine how request evidence becomes argument values. We formalize this layer as a field-level binding contract over presence, evidence, ordered operations, parameters, and validation, and state an identifiability boundary: no schema-only estimator can guarantee recovery of policy distinctions absent from its input. We audit all 1,311 filtered requests in pinned Berkeley Function-Calling Leaderboard (BFCL) V4 Live Simple and Multiple with five open checkpoints and the official abstract-syntax-tree (AST) checker. A partial structural diagnostic and AST acceptance are non-nested: 1,470 of 6,555 calls pass only the diagnostic and 50 pass only AST. A stratified AI-only audit finds coarse concern detection far more consistent across two isolated passes than fine attribution. A pre-specified test of a deterministic schema-derived operation-label encoding gives 67.70% AST acceptance versus 68.27% under the same guidance without field tags (-0.56 points; 95% task-cluster CI -1.17 to +0.05; 186 fixes, 223 breaks). Value-only turnover is nearly balanced; the net imbalance sits in key-set changes. The point estimate reverses sign on one post-hoc out-of-panel checkpoint; thus no improvement is established on the fixed panel, and independently authored contracts remain untested.

    Abstract source
  • EMNLP · Co-located · REALM

    CaseInterviewBench: Evaluating Agentic AI’s Purpose-Reflective Autonomy to Uncover What the User Really Needs

    Shin-nosuke Ishikawa, Masato Todo, Atsushi Yoshino, Hirotsugu Ohba

    Abstract

    Agentic autonomy is essential for large language models (LLMs) to function as agentic AI systems, yet existing benchmarks often emphasize operational aspects, or HOW an agent behaves, such as tool use. The ability to reconsider the user’s underlying purpose, or WHY the agent acts, remains underexplored. We define this capability as "purpose-reflective autonomy" and introduce CaseInterviewBench, an interactive, interview-style benchmark inspired by consultant recruitment. The benchmark contains 104 predefined scenarios, each with public background context, an initial request, hidden facts, and ground-truth problem formulations and resolutions. The target LLM asks questions to uncover hidden facts, then identifies the actual problem and proposes a resolution, enabling us to observe how it infers, revises, and refines its understanding of the scenario’s underlying purpose in a structured setting. We evaluate hidden-fact disclosure, final problem formulation, and resolution using rule-based metrics and LLM-as-a-judge assessments. Across several frontier and open-weight models, we found substantial room for improvement. We also observed severe violations in which some models fabricated facilitator responses during the benchmark flow, potentially creating serious risks in agentic execution.

    Abstract source
  • EMNLP · Co-located · REALM

    Causal Episodic Memory for Feedback-Driven Agent Repair

    Khang Nhat Hoang Vo, Tam Minh, Anh Trac Duc Dinh, Thuyen Vinh Ha Bui, Tho Quan

    Abstract

    LLM agents that repair failures often discard successful corrections, forcing later episodes to rediscover similar solutions. We study whether finalized repair outcomes can improve subsequent Text-to-SQL episodes without parameter updates. We introduce MERIT, a training-free agent that maintains an online dual-polarity memory of oracle-verified corrections and observed unsuccessful directions. Under oracle-assisted benchmark feedback, only memories from earlier finalized episodes are eligible for retrieval. A deterministic classifier assigns a coarse failure type, which conditions a hybrid lexical-dense retriever before the frozen model generates each revision. Using Qwen2.5-7B-Instruct with identical initial predictions and repair budgets, MERIT improves execution accuracy over stateless iterative repair from 66.34% to 69.79% on Spider and from 47.35% to 48.44% on BIRD. Paired analyses provide clear evidence for the Spider gain but weaker evidence on BIRD. MERIT is not reliably separated from untyped dynamic retrieval on either benchmark, while Reflexion-style memory reaches 51.24% on BIRD at substantially higher inference cost. Ablations show that negative memory contributes modestly, the value of type conditioning and lexical-dense ranking is dataset dependent, and schema-local experience provides the most consistent benefit. These results clarify when causal cross-query memory improves repair and when broader memory representations remain preferable. Our implementation is available here: https://github.com/nhatkhangcs/merit

    Abstract source
  • EMNLP · Co-located · REALM

    Contract Before Code: Failure-Compiled Contracts for Long-Horizon Coding Agents

    Jiangnan YU, Kisson Songqi Lin

    Abstract

    Long-horizon coding agents can make many edits before testing a task-wide assumption about an API, authentication mode, environment, or persistent state. A late verifier then exposes that the implementation rests on a false premise. We call the missing step contract acquisition and propose Contract Before Code (CBC), harness-level middleware that compiles historical failures into executable preflight gates. CBC normalizes trajectories, extracts recurring failure signatures, and compiles contracts containing an applicability condition, a probe template, and a planning consequence. At inference time, it retrieves applicable contracts and runs instantiated probes before broad implementation work. Among 1,421 parsed failed SWE-Marathon trajectories, weak labels identify candidate rates of 2.6% overall and 17.5% on stripe-clone; these are not root-cause prevalence estimates. A 120-trajectory human audit reports 76.3% contract precision and 71.4% executable-probe synthesis. Across four service/API-clone tasks and 32 runs per method, CBC achieves 31.3% success (95% CI 18.0–48.6), an observed 21.9-percentage-point increase over vanilla, with 55.6% fewer pre-verification edits at 1.11× normalized token cost. The small end-to-end study supports preliminary within-family benefits; broader transfer and the stability of these gains remain unestablished.

    Abstract source