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

301–320 of 476

  • EMNLP · Findings

    Logic Tree: Topology-Aware Backtracking for DeepResearch Agents

    Tianwen Lyu, Zhengke Gui, Peilong Zhao, Ling Zhong, Yiwen Zhang, Lei Liang, Mengshu Sun, Jun Zhou, Qiang Zhang, Huajun Chen

    Abstract

    Autonomous large language model (LLM) agents have shown strong potential for open-ended information-seeking tasks. However, existing agent frameworks primarily rely on sequential execution, making them vulnerable to error accumulation in long-horizon reasoning. Recent plan-and-execute approaches partially alleviate this issue, but their fixed planning strategies still struggle to recover from intermediate failures. We propose Logic Tree, a non-linear agentic reasoning framework formulated as a Directed Acyclic Graph (DAG). Instead of following a fixed plan with sequential execution, Logic Tree models complex task solving as a dynamically evolving and recoverable graph search process. The framework decomposes queries into parallel execution branches and incorporates a two-level self-correction mechanism. Local backtracking performs targeted rollback to repair failed reasoning states, while global replanning revises high-level execution strategies and preserves verified intermediate conclusions through a knowledge sanitation process. Experiments on BrowseComp, GAIA, and XBench show that Logic Tree consistently outperforms both sequential and plan-and-execute baselines. Further ablation studies demonstrate that combining DAG-based parallel execution with dynamic error recovery substantially improves robustness in long-horizon research tasks.

    Abstract source
  • EMNLP · Findings

    Neural Procedural Memory: Empowering LLM Agents with Implicit Activation Steering

    Chengfeng Zhao, Yuqiao Tan, Shizhu He, Yequan Wang, Jun Zhao, Kang Liu

    Abstract

    While Large Language Models (LLMs) excel as static solvers, transforming them into autonomous agents remains challenging. This transition requires continuous environmental interaction, yet current agents lack the necessary persistent procedural memory. Existing approaches predominantly employ Retrieval-Augmented Generation (RAG) to inject explicit textual guidelines into model contexts. However, relying solely on symbolic instructions can introduce a text-action disconnect, frequently failing to activate the internal representations necessary for correct task execution. To address this, the paper introduces Neural Procedural Memory (NPM), a training-free framework that represents agent memory through implicit activation steering rather than explicit instructions. By distilling procedural skills from historical contrastive experiences into steering vectors in the activation space, NPM directly activates the task-relevant neural mechanisms to guide task execution. Evaluations across four agent benchmarks show that NPM performs comparably to baselines using explicit textual instructions. Furthermore, the results show that combining implicit steering with explicit workflows provides complementary advantages, leading to more robust task execution. Representational analyses indicate that these steering vectors encode consistent task logic, forming organized structures within the activation space. These findings suggest that implicit activation steering provides a promising approach for managing agent memory.

    Abstract source
  • EMNLP · Findings

    EffectMem: Effectiveness-Driven Memory Reuse for Long-Horizon LLM Agents

    Jingjing Yin, Lingbo Wang, Dongyan Cao, Yu Hong

    Abstract

    Recent advances in Large Language Models (LLMs) have stimulated increasing interest in LLM-based agents for long-horizon interactive decision-making. As a lightweight alternative to parameter-level optimization, many studies enhance LLM agents through retrievable experience memory. However, existing retrieval strategies primarily optimize for the relevance of historical memories, leaving the applicability conditions and verifiable execution effects of retrieved trajectories insufficiently captured. To mitigate this executability gap between relevance-driven retrieval and executable reuse, we propose Effectiveness-Driven Memory (EffectMem), a framework that reframes trajectory memory as executable guidance whose applicability and effects are checked during interaction. During memory construction, EffectMem structures successful trajectories into positive executable contracts and localizable failures into negative experience guards. At inference, EffectMem retrieves candidate contracts, verifies their applicability to the current state, executes aligned chunks under guard constraints, and invokes discrepancy-guided correction when observed effects deviate from expected postconditions. Experiments on ALFWorld, ScienceWorld, and WebShop demonstrate that EffectMem outperforms competitive baselines and improves the effectiveness of memory-augmented LLM agents.

    Abstract source
  • EMNLP · Findings

    AdaSpec: Adaptive Routing by Ranking for Speculative Agents

    Kangqi Ni, Wenyue Hua, Jinbiao Wei, Tianlong Chen

    Abstract

    Long-horizon LLM agents execute sequences of reasoning, tool-use, and environment-interaction steps, making end-to-end latency a central deployment bottleneck. Speculative agents reduce this latency by leveraging a faster draft agent to propose the action trajectory while a stronger target agent verifies each action to ensure lossless action trajectories. Recent systems adapt how many future actions a preselected draft agent proposes before verification, but leave the drafter itself unchanged across tasks and episodes. Our experiments show that the best drafter varies across tasks and trajectory prefixes, revealing substantial latency headroom from adaptive drafter selection. This motivates the question: which draft agent should speculate for a given task and target agent to achieve low end-to-end latency? We propose AdaSpec, an adaptive routing framework for speculative agents with an objective distinct from standard model routing: selecting the drafter that minimizes realized speculative-execution latency for a target agent, rather than selecting the model that produces the final answer. AdaSpec profiles a pool of candidate draft-agent configurations for each target agent and trains a lightweight, latency-supervised router to rank them by measured speculative latency. The router supports both query-level routing and episode-level rerouting before each draft-and-check segment, while the target agent remains responsible for verifying actions. AdaSpec improves fixed-drafter baselines across multiple datasets and target-agent settings.

    Abstract source
  • EMNLP · Findings

    Beyond Confidence: Test-Time Scaling for Multi-Turn Search Agents via Retrieval Grounding

    Hyunho Kook, Junhyuk So, Tianyu Fu, Haizhong Zheng, Beidi Chen

    Abstract

    Confidence-based voting aggregates parallel LLM rollouts by weighting each with internal signals such as token log probabilities, and has been actively studied for single-turn reasoning. However, modern LLMs increasingly act as multi-turn search agents that retrieve and condition on external documents. In this paper, we show that confidence-based voting transfers poorly to this multi-turn setting, and identify the underlying failure reason as copy inflation: when retrieved documents are appended to an agent’s context, tokens copied from those documents receive systematically inflated log probabilities. This flattens confidence scores within each question and weakens the resulting weighted vote. To address this issue, we propose Retrieval-Grounded Voting (RGV), which scores each rollout by the lexical overlap between its final answer and the documents it retrieved. By computing the signal outside the contaminated context, RGV sidesteps both token log probabilities and additional LLM calls. Across four search-agent benchmarks and five LLMs, RGV consistently outperforms confidence-based voting, with gains of up to +5.4% accuracy and +35% on minority-correct questions, where the correct answer appears in only 1-2 of 8 rollouts.

    Abstract source
  • EMNLP · Findings

    Hallucination as Exploit: Evidence-Carrying Multimodal Agents

    Guijia Zhang, Hao Zheng, Harry Yang

    Abstract

    Multimodal agents increasingly choose tool calls from screenshots, documents, and webpages, where a false perceptual claim can turn hallucination from an answer-quality error into an authorization failure. We formalize this failure as hallucination-to-action conversion (H2AC) and propose evidence-carrying multimodal agents (ECA), in which model text may propose actions but cannot authorize them: constrained DOM/OCR/AX verifiers issue typed certificates for action-critical predicates, and a deterministic gate executes only what the certificates support. Across verifier red-teaming, 7,488 replayed authorization traces, and end-to-end and live-browser evaluations, ECA executes no unsafe action, while GPT-5.4 judge baselines admit 79–99% of unsafe actions under the same threat model; benign actions are occasionally deferred to user confirmation (6.4% on live pages) but never hard-blocked. The guarantee is conditional, extending exactly as far as the verifiers, schemas, and gate implementation that form ECA’s trusted base.

    Abstract source
  • EMNLP · Findings

    Personalizing How Recommendation Agents Reason: Self-Evolving Per-User Skills for Recommendation Agents

    Zhen Tao, Riwei Lai, Chenyun Yu, Weixin Chen, Li Chen, Beibei Kong, Lei Cheng, Chengxiang Zhuo, Zang Li, Qingqiang Sun

    Abstract

    LLM-based recommendation agents personalize what they know through evolving per-user semantic memory, yet how they perform reasoning relies on a universal, static system prompt shared across all users. When a recommendation fails, the agent only updates its memory, but never examines or revises the reasoning that leads to the failure. To close this gap, we propose SAGER (Self-Evolving Agent for Personalized Recommendation), the first framework to equip each user with a dedicated, continuously evolving policy skill. SAGER incorporates three tailored mechanisms for recommendation scenarios: (i) a two-representation skill architecture constrained by a Cognitive Injection Boundary, decoupling a rich evolution substrate from a minimal inference-time injection; (ii) a contrastive differential chain-of-thought engine that diagnoses ranking errors against unchosen near-misses under a refine-not-replace principle; and (iii) skill-augmented listwise reasoning that mitigates the Score-Tie Bottleneck, enabling the slim skill to serve as an active tie-breaker. Evaluated on four public benchmarks, SAGER achieves state-of-the-art accuracy. Furthermore, plugging its policy skill layer into three structurally distinct host agents delivers consistent 9%–12% gains on the H@1 metric. These results indicate that policy skill evolution provides architecture-agnostic improvements that are largely complementary to memory accumulation.

    Abstract source
  • EMNLP · Findings

    DualResearch: Entropy-Gated Dual-Graph Retrieval for Answer Reconstruction in Deep Research Agents

    Jinxin Shi, Zongsheng Cao, Runmin Ma, Yusong Hu, Jie Zhou, Yue Fan, Xin Li, Lei Bai, Liang He, Bo Zhang

    Abstract

    Deep Research Agents (DR-Agents) extend LLMs with multi-step retrieval, tool use, and intermediate computation to solve complex problems. However, their execution logs often contain redundant context, noisy evidence, and brittle dependencies among intermediate decisions. As a result, final answers can be sensitive to irrelevant or weakly verified information. We propose DualResearch, a log-based post-processing framework for answer reconstruction. Given a query and a completed DR-Agent log, DualResearch normalizes the log into event records and constructs two evidence graphs: a breadth semantic graph for declarative evidence and a depth causal graph for procedural provenance. It then retrieves breadth nodes and depth paths, assigns higher weights to retrieval channels with more concentrated retained candidate distributions, and jointly considers relevance and cross-view agreement to select evidence for reconstruction; the concentration measure reflects retrieval confidence rather than factual correctness. Experiments on HLE, GAIA, and GPQA show consistent accuracy improvements over underlying DR-Agents and controlled log-reuse baselines.

    Abstract source
  • EMNLP · Findings

    Skill-as-Pseudocode: Refactoring Skill Libraries to Pseudocode for LLM Agents

    Xinze Li, Yuhang Zang, Yixin Cao, Aixin Sun

    Abstract

    Markdown skill libraries for LLM agents ship as free-form prose, forcing the agent to re-derive both the input schema and the concrete invocation syntax on every retrieval. This produces a "confused → re-retrieve → still confused" loop: the agent issues a partially-correct action, receives uninformative feedback, and re-retrieves the same prose. We propose Skill-as-Pseudocode (SaP), an automatic conversion of markdown skill libraries into typed pseudocode with deterministic quality control. From each cluster of similar procedural passages, SaP extracts a typed contract and filters it through a four-check deterministic verifier (coverage, binding, replacement, risk). Promoted contracts are inlined into a rewritten skill skeleton alongside restored action templates, giving the agent two complementary signals: a typed signature for what a skill does and a concrete template for how to invoke it. On the ALFWorld unseen split (134 games, gpt-4o-mini, three seeds), SaP wins 82/402 paired games versus 47/402 for the Graph-of-Skills (GoS) baseline (pooled McNemar p = 8.2 × 10⁻⁵), at −22.8 ± 6.4% input tokens and −14.5 ± 4.1% LLM calls per game. A bundle-component ablation attributes the gain to the pairing of typed contracts with concrete action templates: the contract alone falls below the prose baseline.

    Abstract source
  • EMNLP · Findings

    STARS: Skill Triage via Activation Risk Scoring for LLM Agents

    Guijia Zhang, Shu Yang, Xilin Gong, Di Wang

    Abstract

    The risk of an agent skill call depends not on the skill alone but on the invocation context: the same file-reading skill is benign when listing logs, yet dangerous when tainted content steers the agent toward secret exfiltration. We formalize invocation-time auditing: intercept a proposed skill call before execution and score its risk from the user request, the candidate skill, and the runtime context. STARS implements this as a three-stage pipeline that fuses a static capability prior with a request-conditioned invocation scorer. The primary configuration, STARS-LLM, uses an LLM judge; STARS-Rules is a deterministic, API-free alternative. On SIA-Bench, a 3,000-record synthetic benchmark with a 180-record human check at Fleiss κ = 0.709, request-conditioned scoring improves high-risk retrieval on held-out indirect prompt injection, where static metadata cannot see the attack. On a frozen 500/100 scoring subset, STARS-LLM raises rules-only HR-AUPRC from 0.297 to 0.728 in-distribution and from 0.504 to 0.757 on held-out IPI. That gain is in ranking: under frozen thresholds, held-out classification accuracy does not improve. SIA-Bench is a ranking stress test, not an estimate of real-world prevalence.

    Abstract source
  • EMNLP · Findings

    Evaluating LLM Agents Beyond Local Edit Validity

    Kunhee Ryu, Chi-Guhn Lee, Keeheon Lee

    Abstract

    Evaluations of sequential large language model (LLM) agents often report local action validity or final success. Delayed constructive tasks additionally require recoverability, meaning each accepted edit must leave the partial artifact completable within the remaining budget. We introduce a measurement protocol across Word Ladder, an alloy composition proxy, and the fitness landscape of the B1 domain of protein G (GB1). We call an episode surface clean when every action is well formed and locally admissible. Across six models, Word Ladder exposes interface failure with 36.1% local validity. Alloy and GB1 episodes are often surface clean, yet only 16.0% and 6.8% of them succeed. Exact enumeration of 625 GB1 variants over budgets from zero to six decomposes failure. Among surface clean episodes, 51.4% cross a recoverability boundary, while 14.1% of the remaining episodes succeed. Bounded composition audits and intervention checks connect bottlenecks to repair classes. These results establish recoverability as a decomposable and auditable evaluation axis that informs interventions for sequential agents.

    Abstract source
  • EMNLP · Findings

    MemGovern: Enhancing Code Agents through Learning from Governed Human Experiences

    Qihao Wang, Ziming Cheng, Shuo Zhang, Fan Liu, Rui Xu, Heng Lian, Kunyi Wang, Xiaomin Yu, Jianghao Yin, Sen Hu, Yue Hu, Shaolei Zhang, Yanbing Liu, Ronghao Chen, Huacan Wang

    Abstract

    While autonomous software engineering (SWE) agents are reshaping programming paradigms, they currently suffer from a “closed-world” limitation: they attempt to fix bugs from scratch or solely using information from the current repository, ignoring the immense historical human experience available on platforms like GitHub. Accessing this open-world experience is hindered by the unstructured and fragmented nature of real-world issue-tracking data. In this paper, we introduce MemGovern, a framework designed to govern and transform raw GitHub data into actionable experiential memory for agents. MemGovern employs experience governance to convert human experience into agent-friendly experience cards and introduces an agentic experience search strategy that enables logic-driven retrieval of human expertise. By producing 135K governed experience cards, MemGovern achieves a significant performance boost, improving resolution rates on the SWE-bench benchmark by 4.65%. As a plug-in approach, MemGovern provides a solution for agent-friendly memory infrastructure.

    Abstract source
  • EMNLP · Findings

    TokenPilot: Cache-Efficient Context Management for LLM Agents

    Buqiang Xu, Zirui Xue, Dianmou Chen, Chenyang Fu, Chiyu Wu, Caiying Huang, Chen Jiang, Jizhan Fang, Xinle Deng, Yijun Chen, Yunzhi Yao, Xuehai Wang, Jin Shang, Huajun Chen, Ningyu Zhang

    Abstract

    As LLM agents are deployed in long-horizon sessions, context accumulation drives up inference costs. Existing approaches utilize text pruning or dynamic memory eviction to minimize token footprints; however, their unconstrained sequence mutations alter layouts, introducing prefix mismatches and cache invalidation. This reveals a critical trade-off between text sparsity and prompt cache continuity. To address this, we present **TokenPilot**, a dual-granularity context management framework. Globally, *Ingestion-Aware Compaction* acts as a framework harness to stabilize prompt prefixes and eliminate open-world environmental noise at the ingestion gate. Locally, *Lifecycle-Aware Eviction* monitors the ongoing residual utility of context segments, enforcing a conservative batch-turn schedule to offload content segments only when task relevance expires. Experiments on ‘PinchBench‘ and ‘Claw-Eval‘ under both isolated and continuous modes demonstrate that TokenPilot reduces costs by **61%** and **56%** in isolated mode, and **61%** and **87%** in continuous mode, while maintaining competitive performance compared to prior systems.

    Abstract source
  • EMNLP · Findings

    EMemBench: Interactive Benchmarking of Episodic Memory for VLM Agents

    Xinze Li, Ziyue Zhu, Siyuan Liu, Yubo Ma, Yuhang Zang, Yixin Cao, Aixin Sun

    Abstract

    We introduce EMemBench, a programmatic benchmark generator for evaluating long-term episodic memory of agents through interactive games. Rather than using a fixed set of questions, EMemBench generates questions from environment-grounded trajectories, covering both text-only and visual game environments. Each template computes verifiable ground truth from underlying game signals, with controlled answerability and balanced coverage over memory skills: single/multi-hop recall, induction, temporal, spatial, logical, and adversarial. We evaluate memory agents with strong LMs/VLMs as backbones, using in-context prompting as baselines. Across 15 text games and multiple visual seeds, results are far from saturated: induction and spatial reasoning are persistent bottlenecks, especially in visual settings. Persistent memory yields clear gains for open backbones on text games, but improvements are less consistent for VLM agents, suggesting that visually grounded episodic memory remains an open challenge. A human study further contextualizes the difficulty and interpretability of EMemBench.

    Abstract source
  • EMNLP · Findings

    CrossAlpha: An Annual-Report Benchmark for Cross-Market Factor Research with LLM Agents

    Qian Wang, Tong Zhongyi, Nuo Chen, Zhaomin Wu, Bingsheng He

    Abstract

    Cross-market factor research studies whether firm-level signals from one or more markets can predict returns in a target market, but existing public benchmarks do not support cross-market disclosure-to-return evaluation. Building such a benchmark is challenging because filings differ across languages and regulatory systems, disclosure-derived similarity can be biased by common reporting components, and cross-market signals must be evaluated under feasible trading-time alignment. We introduce CrossAlpha, a public annual-report benchmark for cross-market factor research. CrossAlpha addresses these challenges through three corresponding components: Disclosure Distillation, which standardises heterogeneous filings into ten-category English business descriptions; Residual Schema Graph Construction, which builds PCA-whitened cross-market firm-pair scores from schema-level disclosures; and Timing-Aligned Evaluation, which pairs the graph with 11 years of daily OHLCV data to construct forward-return labels under feasible cross-market execution protocols. CrossAlpha covers 3,587 firms and about 10,700 firm-year reports from the United States, Japan, Taiwan, South Korea, and Hong Kong, and releases about 19M directed firm-pair scores. In experiments, disclosure-derived cross-market peers outperform domestic text, industry-code, and return-correlation peers in the US-to-Japan setting (ICIR 0.39 versus 0.07–0.18), and cross-market sources beat the domestic text baseline in most target markets. CrossAlpha offers a publicly released, reusable, return-grounded benchmark for cross-market financial NLP.

    Abstract source
  • EMNLP · Findings

    DeALOG: Decentralized Multi-Agents Log-Mediated Reasoning Framework

    Abhijit Chakraborty, Ashish Raj Shekhar, Shiven Agarwal, Vivek Gupta

    Abstract

    Complex multi-hop question answering over text, tables, and images requires integrating heterogeneous evidence with inspectable reasoning. Single-LLM chain-of-thought is opaque, while planner–executor pipelines concentrate faults in a central plan, propagating early errors. We introduce DeALOG, a decentralized, central-planner-free multi-agent framework whose specialized agents, i.e., Table, Context, Visual, Summarizing, and Verification, coordinate only by reading and appending to a shared, typed natural-language log as persistent memory, with a lightweight scheduler rather than a planner. Rather than competing on raw accuracy, DeALOG targets what a central planner forfeits: robustness, since no single plan concentrates errors and evidence stays globally visible, and transparent, since the append-only log yields a provenance-anchored, human-readable reasoning trace. We position decentralized log-mediated coordination as a robustness-and-transparency primitive for multimodal reasoning

    Abstract source
  • EMNLP · Findings

    ProMediConv: Benchmarking Proactive Conversational Agents in Legal Dispute Mediation

    Zesheng Wei, Mengfan Li, Wenhao Liu, Yixin Zhang, Zilei Wang, Yang Deng

    Abstract

    Dispute mediation is essential for maintaining social harmony and resilience, yet developing skilled mediators is costly and time-consuming. Existing LLM-based mediation research remains limited by unrealistic task formulations, low-fidelity datasets, and coarse evaluation metrics that obscure turn-by-turn dynamics. To address these gaps, we introduce ProMediConv, a novel benchmarking framework that models mediation as a proactive, multi-stage, and party-aware dialogue process incorporating 11 mediation strategies and four party behavior pattern (BP) states. Using 972 complete real-world cases, we construct a high-fidelity mediation dataset with utterance-level annotations of strategies and BP states. Furthermore, to better assess agent impact, we propose MAD (Mean Attribute Difference), a fine-grained metric that captures BP shifts throughout the dialogue. Leveraging this framework, we establish a comprehensive benchmark by evaluating diverse models alongside our tailored baseline ProMediAgent. Extensive empirical analyses reveal critical behavioral phenomena and underscore the persistent challenges current models face in dynamic, multi-party mediation. Ultimately, ProMediConv provides a rigorous foundation and a vital quantitative standard for advancing AI-assisted conflict resolution. Our dataset and codebase are accessible at https://github.com/ZsWei66/ProMediConv_repo.

    Abstract source
  • EMNLP · Findings

    EnterpriseBench: Benchmarking LLM Agents on Enterprise-Level Strategic Reasoning and Decision-Making

    Min Yang, Yichen Pan, Jinghua Piao, Dandan Song, Yongshun Gong, Yong Li

    Abstract

    LLM agents are increasingly expected to support enterprise workflows, where tasks often involve missing information, uncertainty, feedback, and long-term trade-offs. However, existing enterprise and financial benchmarks mainly test static capabilities such as information extraction, numerical calculation, domain knowledge, and financial QA, leaving interactive and long-horizon decision-making underexplored. To bridge this gap, we introduce EnterpriseBench, a benchmark that evaluates LLM agents across this spectrum, from static question answering to dynamic decision-making. Specifically, EnterpriseBench reorganizes existing enterprise and financial QA datasets into a unified foundational suite annotated by capability and difficulty, and introduces three professional interactive settings: Consulting, based on management-consulting-style business cases for client problem diagnosis through multi-turn information seeking; the Beer Game, adapted from a classic supply-chain management simulation for inventory control under delayed feedback; and Enterprise Digital Twin, a project-based business simulator for workforce, risk, and project planning. Experiments with nine agent methods under two backbone models show that current agents have not yet achieved stable, comprehensive, and cross-task reliability in enterprise scenarios. These results show that EnterpriseBench provides a practical benchmark for evaluating LLM agents in realistic enterprise strategic reasoning and decision-making. Our codes and benchmark implementation are publicly available at https://github.com/sduyangmin/FirmBench.

    Abstract source
  • EMNLP · Findings

    Can Agents Read the Room? Benchmarking Visual Social Intelligence in Multimodal Simulation

    Shijun Wan, Xuehai Wu, Jiwen Zhang, Siyuan Wang, Zhongyu Wei

    Abstract

    Social interaction depends on both language and visible social signals, such as facial expressions, posture, gaze, and emotional shifts. Yet existing social-agent benchmarks are largely text-based and rarely test whether multimodal agents can use visual cues to guide interaction. We introduce AgentViSS, a benchmark evaluating visual social intelligence in multimodal social simulation. It contains 240 scenarios, 585 role instances, and 2,340 role-task instances, combining aligned textual-visual evidence, structured role profiles, and four role-level tasks: expression task, characteristic task, interaction regulation task, and interaction outcome task. Evaluating seven recent MLLMs under verbalized-vision and direct-vision reveals a clear gap between local role enactment and interaction management: role-specific expression and conflict handling are near saturation, whereas interaction regulation and visually grounded outcome achievement remain substantially more difficult.

    Abstract source
  • EMNLP · Findings

    From Monolithic Prompts to Scaffolded Execution for Memory Agents with Small Language Models

    Seunghan Yang, Jihwan Bang, Sungha Choi, Juntae Lee

    Abstract

    Personal memory agents process sensitive user data, making on-device deployment with small language models (SLMs) attractive. However, existing memory-agent prompts are often monolithic specifications written for high-capacity LLMs, overloading a single inference with many requirements while leaving necessary intermediate operations implicit. This mismatch creates two bottlenecks for SLMs: prompt complexity and logical incompleteness. We introduce CAST (Compiling Agent Specifications into Scaffolded Tasks), a framework that converts a monolithic memory-agent prompt into a scaffolded execution procedure. CAST segments the original prompt into fixed, semantics-preserving main tasks, then synthesizes and places auxiliary scaffolding tasks that produce reusable intermediate artifacts; a trajectory-feedback step then adapts these scaffolds to the target SLM. At inference time, only the target SLM executes the compiled procedure. Across two memory-agent frameworks on LoCoMo and MemoryAgentBench, CAST outperforms monolithic prompting, prompt optimization, and reasoning-based baselines, while offering a stronger quality-latency trade-off than unconstrained reasoning. The results show that adapting memory agents to SLMs requires restructuring execution, not merely rewriting prompts.

    Abstract source