Zubnet AI学习Wiki › Test-Time Compute
基础

Test-Time Compute

Inference-Time Compute, Chain of Thought, Thinking Tokens
在推理时(模型生成响应时)使用额外计算来改善答案质量。不是立即生成答案,模型“想”得更久 — 生成推理 token、探索多种方法、或验证自己的输出。测试时更多计算产出更好的答案,尤其对复杂推理任务。

为什么重要

测试时计算是最新的 scaling 范式。第一个时代 scale 训练算力(更大模型、更多数据)。当前时代也 scale 推理算力(每问题更多思考)。o1 和带 extended thinking 的 Claude 这样的模型显示,让模型推理 30 秒常常超过 2 秒内回答的模型,即便快模型技术上更大。这改变经济学:质量成为你愿意为每个查询花多少的函数。

Deep Dive

The simplest form of test-time compute is chain-of-thought: the model generates reasoning steps before the final answer. More sophisticated approaches include: tree-of-thought (exploring multiple reasoning paths and selecting the best), self-consistency (generating multiple answers and voting), and iterative refinement (the model critiques and revises its own output). Each approach uses more tokens (= more compute = more cost) but produces better results.

Extended Thinking

Models like o1 (OpenAI) and Claude with extended thinking generate internal reasoning tokens that the user doesn't see. These "thinking tokens" let the model decompose complex problems, check its work, consider edge cases, and revise its approach — all before producing the visible response. The cost is higher (you pay for thinking tokens) and latency is longer, but accuracy on math, coding, and reasoning tasks improves dramatically.

Scaling Laws for Inference

Research suggests that test-time compute follows its own scaling laws: doubling inference compute (thinking time) produces predictable improvements in accuracy, analogous to how doubling training compute improves pre-training loss. This means you can choose your quality-cost trade-off per query: simple questions get fast, cheap answers; complex questions get longer, more expensive reasoning. This dynamic allocation is more efficient than using the same compute for every query.

相关概念

← 所有术语
← Tencent Text-to-Speech →