Decision Models: A New Paradigm for Fast, Token-Free Decision-Making
This article explains decision models, which output a probability distribution over candidate options in a single forward pass without generating tokens. It covers why autoregressive generation struggles with latency and calibration in agent decision-making, the scoring-head architecture, parallel evaluation of many options, post-training on open-source base models, evaluation methods that combine public and private benchmarks, and deployment practices such as confidence gating and latency optimization.
I. From Token-by-Token Generation to One-Shot Judgment: A Paradigm Shift in Decision Models
For the past few years, the dominant way to interact with large language models has been autoregressive generation. The model produces tokens one at a time, and those tokens are assembled into a text answer. This approach works well for open-ended question answering, writing, and code generation. In high-frequency decision-making scenarios for AI agents, however, it exposes two structural problems.
The first problem is latency. Suppose an agent must choose among ten candidate actions. An autoregressive model either generates a justification for each option and then compares them, or it produces one long analysis. Either way, latency grows linearly with output length. It often reaches hundreds of milliseconds or even several seconds. That is too slow for real-time scheduling, online recommendation, and automated operations, where response time is critical.
The second problem is calibration. An answer generated token by token is free-form natural language, so extracting a reliable probability for each option from that text is very difficult. Temperature sampling, prompt wording, and option ordering all affect the result. As a consequence, the confidence a model expresses often diverges sharply from its actual accuracy. In engineering terms, this is a calibration error that is too large.
The decision model is a new paradigm built to address these two problems. Its core idea fits in one sentence: don’t write, just judge. The model takes a description of the current state and a set of candidate options as input. In a single forward pass, it outputs a probability distribution over the options directly, and the process generates no tokens. Because it skips autoregressive decoding, the most time-consuming step, decision latency can drop from seconds to the range of hundreds of milliseconds. The probabilities are computed and normalized inside the model, so they are naturally suited to confidence calibration.
II. Core Technical Mechanisms of Decision Models
1. A single-pass scoring architecture
Unlike traditional generative models, a decision model typically concatenates the state, the question, and the options into a structured input. It then adds a scoring head on top of the model, or uses the hidden state at specific positions, to map each option to a scalar score. A Softmax function normalizes these scores into a probability distribution. Inference requires only one forward pass. The compute cost depends on the input length and not on the output length, which is the main reason for its low latency.
2. Parallel evaluation of multiple options
In engineering practice, a decision model must evaluate dozens or even hundreds of options in a single request. A common approach is to encode the options and feed them into the model in a batch. Another approach is shared-prefix encoding. The state and question are encoded only once, and each option reuses the attention cache of that prefix. This reduces the cost of evaluating N options from N full inference passes to roughly one inference pass plus N lightweight scoring operations. As a result, evaluating over a hundred options for one question at millisecond-level latency becomes practical.
3. Training on an open-source base model
Training a decision model from scratch is not realistic for most teams because of the cost. The widely accepted approach is to choose an open-source base model with a suitable parameter count and apply post-training. This turns general language ability into specialized capability for understanding states and judging options. The process has three steps:
- Data construction: Rewrite multiple-choice, ranking, and preference-comparison data into a unified “state, question, options, correct label” format, and add domain-specific private data.
- Supervised fine-tuning: Train the scoring head with a cross-entropy loss so that the probability of the correct option is maximized.
- Calibration optimization: Apply calibration techniques such as temperature scaling and isotonic regression to align output probabilities with empirical accuracy, which reduces calibration error to a very low level.
4. The value of a full model family
A notable trend is that decision models are often released as a family that spans a range of sizes, from under one billion parameters to several hundred billion. Small models suit edge devices and extremely high-frequency workloads. Large flagship models handle complex decision tasks. Developers can choose a model based on the Pareto frontier of latency budget and accuracy requirements. This fits production environments better than a single-size lineup.
III. How to Evaluate Decision Models Rigorously
A new paradigm needs rigorous evaluation before people can trust it. The evaluation system for decision models typically has several layers.
1. A dual-track system of public benchmarks and private test sets
Public benchmarks are transparent and reproducible. However, they carry a risk of benchmark gaming, because training data may already include the benchmark questions. For this reason, authoritative leaderboards often maintain a large set of unpublished private questions. A model that performs well on the public leaderboard must also pass blind testing on the private set. A model with strong generalization shows only a small gap between its public and private scores. A model with high public scores and a large drop in blind testing most likely has data contamination or overfitting.
2. Independent, offline blind testing
A more rigorous approach is for an independent third party to run the evaluation on its own hardware in a fully offline environment. Some questions are sealed permanently, which prevents targeted optimization. This kind of hosted blind testing is becoming an industry standard for evaluating high-risk AI capabilities, and its design principles are worth adopting in any model evaluation system.
3. Three core metrics
- Accuracy and composite score: These measure decision quality. They are usually aggregated across dozens of benchmarks that cover different skills.
- Median latency: This measures engineering usability. Report P50 together with P95 so that the long tail is not hidden by the average.
- Expected calibration error (ECE): This measures how trustworthy the probabilities are. A lower ECE means the model is better at knowing when it does not know, which matters a great deal for downstream risk decisions.
In practice, teams should also track cross-domain transfer performance. Performance on questions from domains the model has never seen is the best indicator of whether its decision ability has been internalized, rather than memorized for specific question types.
IV. Deployment and Application Practices
1. Typical call pattern
The calling interface for a decision model is usually very simple. The following sample code illustrates the pattern:
import torchdef decide(model, tokenizer, state, question, options):# Build the structured inputprompt = format_input(state=state, question=question, options=options)inputs = tokenizer(prompt, return_tensors="pt").to(model.device)with torch.no_grad():logits = model(**inputs).decision_logits # Scoring head outputprobs = torch.softmax(logits, dim=-1)best_idx = int(probs.argmax())return {"choice": options[best_idx],"confidence": float(probs[best_idx]),"distribution": probs.tolist(),}
2. Confidence gating and human-in-the-loop review
A decision model outputs probabilities rather than final verdicts, which gives engineers a natural way to control risk. A practical design sets a confidence threshold. Decisions above the threshold run automatically. Decisions below it fall back to manual review or to a heavier reasoning model. This two-layer design, with fast thinking as the default and slow thinking as the backup, balances efficiency and reliability.
3. Supporting infrastructure
Running a decision model in production typically requires several general-purpose cloud infrastructure capabilities:
- Container platforms for elastic scaling, to handle traffic that rises and falls with demand.
- Message queues for asynchronous decision tasks, to smooth out traffic peaks.
- Object storage for decision logs and probability distribution snapshots, to support audits.
- Logging and monitoring systems to track latency distribution and calibration drift.
Taking Baidu AI Cloud as an example, its general-purpose container, storage, and observability product categories cover these needs. Developers can implement equivalent setups on any platform that provides similar capabilities.
4. Latency optimization
If the default latency does not meet requirements, consider the following options:
- Batch multiple decision requests together.
- Reuse the KV cache for shared prefixes.
- Use quantized inference, such as INT8 or FP8, to increase throughput at an acceptable accuracy loss.
- Distill a small model from a flagship model, and deploy the smaller version closer to the business workload.
V. Outlook
The rise of decision models reflects a finer division of labor in AI systems. Generative models handle thinking through problems and explaining them clearly. Decision models handle choosing accurately and responding quickly. Ongoing investment in the open-source ecosystem points to three directions. First, mixed orchestration of decision models and generative models will become a standard part of agent architectures. Second, anti-gaming mechanisms such as private blind testing and offline evaluation will see wider adoption, which should help the industry build a more trustworthy evaluation culture. Third, calibration and uncertainty quantification will become core metrics of model capability rather than optional extras. For developers, now is a good time to learn this paradigm and pilot low-latency automated decision-making in their own business.
