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

Tomer Tunguz 博客(VC 分析)·2026-08-17 08:00·1天前
AI 导读

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

Tomer Tunguz 博客(VC 分析)
48AI 编辑部评分,满分 100

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

2026-08-17 08:00· 1天前
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.

Two-part diagram. Top: standard inference, three colored users send queries into one shared gray frozen model with a lock icon, which answers all three from the same unchanged weights, one batched copy. Bottom: test-time training, three colored lanes each starting from the same gray base checkpoint, where a query arrives, hits the shared base model, then a highlighted gradient-step burst where the weights visibly shift, producing a differently colored updated model per user, then an answer drawn from that user's own updated weights.

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.


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

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

  3. In-Place Test-Time Training ↩︎

来源:Tomer Tunguz 博客(VC 分析)· tomtunguz.com