# 当模型持续学习：测试时训练如何改变 AI 的记忆与成本

- 来源：Tomer Tunguz 博客（VC 分析）
- 发布时间：2026-08-17 08:00
- AIHOT 分数：48
- AIHOT 链接：https://aihot.virxact.com/items/cmsxj97e9016aroz080y9zfto
- 原文链接：https://www.tomtunguz.com/test-time-training-impact

## AI 摘要

测试时训练（Test-time training）让模型在使用中持续更新权重，而非训练结束后冻结。相比标准 Transformer，其内存需求从随上下文线性增长变为恒定，斯坦福研究显示推理速度最高可提升 2.7 倍，且 In-Place TTT 无需重训即可将 4B 模型提升至 128k 上下文性能。但代价是每个用户需独立模型副本，服务成本转向算力与芯片，更适合编码助手等个性化场景。

## 正文

Every model you’ve ever used froze the day its training ended. The answers are the same even if you have used it every day.

What if a model kept learning as you use it?

A GPS learns a persistent shortcut around daily traffic on northbound Highway 101, not just a one-time reroute. Test-time training does that to a model as it works.1 As you use the AI, the model changes its weights, changes how it thinks about its memories, to answer you better.

The changes are more profound than finding an off-ramp to an access road past a highway junction chokepoint.

Memory requirements plummet. A standard transformer keeps a KV-cache, a running record of every earlier token, so its memory grows linearly with context, every additional token adds to the running record. Test-time training folds that history into a fixed-size set of weights instead of a growing cache, so memory stays flat no matter how long the conversation runs.

The model provider now has to serve a separate model to each person. Once a model updates on your prompt, it is no longer the model that answered your neighbor’s, so a single checkpoint serving millions of users becomes millions of slightly different models, each shaped by the person using it. That divergence is the provider’s problem to solve: a GPU provider needs a copy in flight per user instead of one shared copy for everyone, which means more compute, more chips, to serve the same number of people.

It’s much faster. Stanford research on small models indicates it can be up to 2.7 times faster, because a test-time trained model’s inference latency stays constant no matter how long the context runs, the way a standard transformer’s does not.2 In-Place TTT also ships drop-in, lifting a 4b model to competitive 128k-context performance with no retraining.3

Here is the tension. Standard AI is limited by memory, test-time AI is limited by compute & chips, so a provider picks based on whether it’s serving long context or serving many people.

That cost is only worth paying where personalization earns its keep. A coding agent that learns your codebase’s conventions, the resilient persistent bugs, ultimately should provide some form of lock-in via memory, so the per-user cost pays for itself. A one-off customer support question doesn’t need any of that. A shared, frozen, potentially fine-tuned model answers it just as well & costs the provider far less to serve.

Test-time training will be a key part of the discourse throughout the end of 2026 & beyond. It has the potential to change the current economics of AI.

Sun et al., Learning to (Learn at Test Time): RNNs with Expressive Hidden States ↩︎

End-to-End Test-Time Training for Long Context ↩︎

In-Place Test-Time Training ↩︎
