arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.29062cs.CL
收藏

HyperHarness:从用户历史中学习生成个性化智能体控制代码

HyperHarness: Learning to Generate Personalized Agent Harnesses from User Histories

University of Notre Dame(圣母大学);UC Santa Barbara(加州大学圣巴巴拉分校);Microsoft(微软公司)

Zhaoxuan Tan, Jiachen Zhao, Jingbo Yang, Zheyuan Liu, Chuhan Wang, Pei Zhou, Mengting Wan, Meng Jiang

AI总结:

HyperHarness是从用户历史生成个性化智能体控制代码的框架,在多基准与模型上优于基线,降低答案时间令牌,摊销适应成本。

摘要:

个性化大语言模型(LLM)智能体依赖于智能体控制代码(agent harness,即周边记忆与控制代码)来连接用户历史与下游决策。现有方法通常采用两种方案:一是在所有用户间使用单一共享记忆工作流,部署高效但无法针对不同用户历史调整证据检索与解释方式;二是针对每个用户优化控制代码,可定制用户行为,但部署时需进行代价高昂的重复候选评估,且原始日志中存在稀疏、有噪声的监督信号。为解决该权衡问题,本文提出HyperHarness框架,该框架学习一个共享的历史到控制代码生成器,可直接从用户历史合成可执行的、用户特定的检索与答案引导代码。给定用户的允许历史,HyperHarness提示一个构造LLM编写个性化检索与引导函数,同时训练用户的下游任务分数监督共享生成器的迭代优化,无需参考控制代码或更新回答模型。部署时,冻结的生成器仅从历史中单次生成每个未见用户的控制代码,消除了每个用户的任务分数搜索。在三个基准(PersonaMemv3、Mem-PAL和MemoryCD)和三个回答模型(Qwen3.5-9B、Qwen3.8-27B和GPT-5.6-Luna)上,HyperHarness在9个设置中的7个取得最高综合分数,剩余2个排名第二,较最强基线提升最多5.95分,且与长上下文提示相比,匹配的答案时间令牌减少90.32%。分析表明,该优化可针对每个执行器定制上下文分配,可迁移到未见用户集群,并摊销适应成本。

英文摘要:

Personalized LLM agents rely on an agent harness, the surrounding memory and control code, to connect user history with downstream decisions. Existing methods typically employ either a single shared memory workflow across all users, which is efficient to deploy but cannot adapt how evidence is retrieved and interpreted across diverse histories, or per-user harness optimization, which customizes behavior for each user but requires costly repeated candidate evaluation at deployment and suffers from sparse, noisy supervision in raw logs. To address this trade-off, we present HyperHarness, a framework that learns a shared history-to-harness generator to synthesize executable, user-specific retrieval and answer-guidance code directly from user histories. Given a user's permitted history, HyperHarness prompts a construction LLM to write personalized retrieval and guidance functions, while downstream task scores across training users supervise iterative refinements to the shared generator without reference harnesses or answering-model updates. At deployment, the frozen generator constructs a harness for each unseen user in a single pass from history alone, eliminating per-user task-scored search. Across three benchmarks (PersonaMemv3, Mem-PAL, and MemoryCD) and three answering models (Qwen3.5-9B, Qwen3.8-27B, and GPT-5.6-Luna), HyperHarness achieves the highest aggregate score in seven of nine settings and ranks second in the remaining two, improving over the strongest baselines by up to 5.95 points while cutting matched answer-time tokens by 90.32% over long-context prompting. Analyses show that optimization tailors context allocation to each executor, transfers to unseen user clusters, and amortizes adaptation costs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑