All Glossary Terms

Test-time scaling

Test-time scaling is the practice of increasing computational expenditure during inference to improve model performance without modifying the underlying model weights.

What it is

Instead of returning the first generated token, the system performs a search or generates multiple intermediate steps to verify outputs before completion. This often involves generating various candidate solutions and selecting the best one via a verifier or using a process like best-of-n sampling. In production, this can increase the total token count and inference duration by 10x or 100x compared to standard single-pass generation. The approach effectively treats compute as a flexible resource to trade for higher accuracy at runtime.

Why it matters

Ignoring this technique forces you to rely solely on the model's inherent zero-shot capabilities, which often plateau on complex tasks. By implementing test-time scaling, you can solve harder problems with smaller, faster base models instead of forcing large models to handle everything. However, it shifts your primary constraints from pure request throughput to total latency and cost per successful task. Miscalculating these variables will lead to timeouts, budget overruns, and cascading failures in high-concurrency systems.

In practice

You implement this by wrapping your model calls in orchestration logic that manages branching, retries, or multiple parallel requests to evaluate different candidate outputs. You might expose parameters like 'search_depth' or 'sampling_budget' in your API layer to control how much compute is spent per request. In your dashboard, you will observe a direct correlation between the 'success rate at k' and the total inference cost per user task.

The tradeoff

The primary tradeoff is between latency and accuracy, where more thorough verification significantly improves reliability while linearly increasing your per-request operational cost and response time.