Files
myWiki/concepts/attention-drifting.md

36 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "注意力偏移 (Attention Drifting)"
created: 2026-07-04
updated: 2026-07-04
type: concept
tags: [agent, attention, context, cognitive-load, interface]
sources: ["https://nokv.io/blog/agents-want-filesystems"]
---
# 注意力偏移 (Attention Drifting)
当 Agent 的上下文窗口被塞进过多 schema、临时查询结果、无关日志和中间失败尝试时模型容易被早期错误线索带偏或在多轮调用后忘记最初的问题。
## 成因
Agent 在执行任务时不仅读取数据,还在**不断维护一张临时的任务地图**。当接口迫使 Agent 先理解复杂 schema、猜 join 路径、拼 blob_ref、回忆对应关系时token 被花在「维持工作记忆」而非「做出判断」上。
## 与 token efficiency 的关系
Attention drifting 是 [[token-efficiency|Token 效率]] 问题的上层表征:
- 低效接口 → 更多上下文垃圾 → 注意力稀释
- 清晰接口(如文件系统形态) → 每一步看到更少但更相关的信息 → 注意力集中
## 缓解策略
- [[progressive-disclosure|渐进式披露]]:逐步披露信息,不预加载全部
- [[pushdown-in-agent-interface|下推]]:过滤/排序/limit 一次完成,减少回灌
- [[agent-workspace-filesystem|文件系统接口]]:路径稳定句柄,按需搜索
## 参考
- [[agents-want-filesystems-nokv-2026|新智元报道]]
- [[progressive-disclosure|渐进式披露]]
- [[token-efficiency|Token 效率]]
- [[agent-interface-design|Agent 接口设计]]