Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
arXiv AI · 2026/7/31 04:00:00

Fewer Clarifications, Better Code: Benchmarking Cross-Session Personalized Ambiguity Adaptation in Coding Assistants

AI 中文解读
核心亮点:AI编程助手终于学会“记性”了——它能记住你过去的偏好,不用每次反复追问就能猜中你的心思,直接写出你想要的代码。 通俗解读:以前用AI辅助写代码,如果你指令说得不够清楚,它就像个没头脑的新手,一遍遍问你“这里到底什么意思?”,非常烦人。这篇研究让AI拥有了“跨会话记忆”:它会记住同一个用户在不同任务里反复出现的表达习惯和偏好。比如你之前把“列表整理”说成“把东西摆好”,下次再这么说,它就能直接理解并执行,不再追问细节。为了让AI学会这种能力,研究人员设计了专门的测试集,模拟六种常见歧义,验证AI能否凭借历史记忆直接给出正确结果,结果显示AI的完成效率和首次成功率都明显提升。 实际影响:以后用AI写代码会顺畅得多,不用再像教新手一样反复解释需求。对于日常依赖编程工具的程序员来说,能省下大量沟通时间;而这项技术思路未来也可能用在更广泛的AI助手场景,让AI在帮你写文档、查资料甚至安排日程时,都更“懂你”一点。
arXiv:2607.26611v1 Announce Type: new Abstract: AI-assisted coding increasingly translates informal user intent into executable software, yet coding requests often contain ambiguities that recur in user-specific ways across tasks and sessions. Existing disambiguation methods typically address each ambiguous request in isolation within the current coding session, often through eliciting additional clarification. However, whether resolved session history from the same user can serve as memory for resolving recurring personalized ambiguity in a newly opened session remains underexplored. We formulate personalized ambiguity adaptation as a new task: given a user's previously resolved coding sessions and a new ambiguous request, an assistant should identify the recurring ambiguity pattern, produce the intended executable solution, and minimize clarification. To benchmark this task, we introduce CAPA, which characterizes personalized coding ambiguity through six mechanisms and injects these mechanisms into unambiguous executable tasks using a controlled three-stage generation pipeline. CAPA contains 600 coding sessions across 60 balanced user--ambiguity cells, including 300 held-out evaluation sessions. We evaluate 12 recent LLMs under no-history and same-user-history conditions using executable success, first-turn success, and turns-to-completion. Our analyses examine task difficulty, user identity, and memory-based history use, and we further propose same-user history gating as a lightweight inference-time method. CAPA provides a foundation for developing long-term coding assistants that better align generated code with user intent while reducing repeated clarification.
分享
阅读原文