跳到正文
数字商店
原文
Rohan Paul· @rohanpaul_ai · X·· 14 天前AI 评分64
AI 导读

哈佛大学等机构的研究发现,编码智能体处理的 token 中 94.8% 是对缓存上下文的重复读取,导致其估算能耗比仅基于输出的估算高出约 25 倍。研究人员记录了一名工程师使用 Claude Code 10 周、共 42 个会话、约 10 亿个 token 的数据,发现每生成 1 个 token 约需读取 260 个缓存 token,且单个会话上下文增长 5.3 倍。

正文 · 原文

New Harvard paper finds that 94.8% of a coding agent's tokens were re-reads of cached context, i.e. 94.8% of the text the AI processed was earlier conversation it was re-reading, not new work.

And that re-reading raises its estimated energy use about 25 times, from roughly 10 to 250 kilowatt-hours over 10 weeks.

Energy estimates for LLMs usually price single request-and-response calls. Agents re-read a growing context on every call and hand work to subagents, which those estimates can miss.

The authors logged 10 weeks of real Claude Code use by 1 engineer, about 1 billion tokens across 42 sessions. They built an energy estimator that charges cached tokens for attention reads but not full reprocessing.

About 260 cached tokens were read per generated token, and context grew 5.3× over a session. The cache-aware estimate came to about 250 kWh, against about 10 kWh from the output-based EcoLogits estimator.

If you track agent cost or emissions, count cached reads and subagent calls, and start new tasks in fresh sessions when possible.

来源:Rohan Paul · x.com