Decision Models Are Available on Hugging Face.
Decision models are a young AI model class for structured choices. They take input context, evaluate named questions, and return probabilities over predefined answer options instead of generating text. This article explains why LLMs can be awkward for tasks like support routing, how decision models differ from traditional and zero-shot classification, and how primitives such as Choice and Score represent answers. TypeSafe AI's Jev is presented as an example, while Hugging Face is working toward a common interface for decision models.
Key Takeaways
- Decision models are designed for structured AI choices: they take input context, evaluate predefined questions, and return probabilities over known answer options instead of generating text.
- They address limitations of using LLMs for decision-making, such as invalid JSON, schema violations, unexpected labels, and the computational overhead of constrained text decoding.
- Unlike traditional classifiers, decision models can ask multiple named questions about the same input and return different answer types through a consistent interface, rather than being limited to fixed classification labels.
- The three core decision primitives are Choice for categorical probabilities, Score for ordered scales using expected value, and Noul for probabilistic yes/no outcomes.
- Hugging Face is working toward a common interface for this emerging model class, while TypeSafe AI’s Jev is introduced as one example of a decision-focused model.
This article is for developers and product teams who need AI to make structured choices, such as routing a customer support message. Decision models take a piece of input context, evaluate predefined questions, and return probabilities over known answer options instead of generating text. TypeSafe AI introduced Jev as one example, describing it as a System One model, while Hugging Face is working on a common interface for this young model class.
Why Text Generation Can Be a Poor Fit for Structured Choices
LLMs are strong at generating text: answering questions, writing code, and reasoning through problems. But a support system that receives "I was charged twice for my subscription. I need a refund today." may not need a paragraph. It needs three decisions: which team should handle the request, how urgent it is, and whether the customer is asking for a refund.
A common approach is to ask an LLM to return a JSON object with those fields. That works, but has limits. Models are not guaranteed to follow the requested schema. They can produce invalid JSON, add unexpected keys, or choose an answer outside the allowed list.
Constrained decoding can help. Libraries such as Outlines and XGrammar can enforce grammars or JSON schemas by restricting which tokens may be generated at each step. Still, this adds computational overhead. Also, autoregressive decoding generates a full response token by token even when the application only needs to select among predefined answers.
How Decision Models Differ From Classification and Zero-Shot Models
A decision model uses a state and questions. The state is the information being evaluated. It may be a string, a structured JSON object, or other modalities for supported omni-modal models. The questions are named checks, and each answer type is a primitive.
Traditional classification is close, but less flexible. If a classifier routes support requests into Billing, Technical support, and Sales, those classes are built into the model's classification head. A classification head typically produces one logit per class, and softmax converts those logits into a probability distribution over fixed labels. If a new department such as Legal appears, the model does not automatically gain that output class. The team may need to modify the head, collect data, and retrain or adapt the model.
Zero-shot classification partly solves that by supplying candidate labels at inference time. The categories can change from one request to another. One implementation uses a model trained for natural language inference, or NLI, where each candidate label becomes a hypothesis and the model measures how strongly the input entails it.
Decision models extend this pattern. They are not only assigning input to one category. They can ask several named questions about the same state and return different answer types. The advantage is not that they invented runtime-defined labels or probabilistic classification. The advantage is that they organize those capabilities into a consistent interface, potentially backed by architectures and training procedures optimized specifically for decisions.
The term "decision model" is favored over "system one models" because it describes the model's computational role rather than a theory of cognition. The naming discussion included a poll on Twitter.
Choice, Score, and Noul: The Three Decision Primitives
Choice is the closest primitive to traditional classification. For the support request, the question might be: which department should handle it? The options are Billing, Technical support, and Sales. The model assigns a logit to each option. For logits z_1 through z_K, where K is the number of choices, softmax produces probabilities p_i = exp(z_i / T) / sum_j exp(z_j). In the example, Billing is chosen with probability 0.998. The probabilities sum to one, and the model selects the option with the largest probability.
Score handles ordered scales. The question might be: how urgent is this request? The levels are 0: Low urgency, 1: Medium urgency, and 2: High urgency. The model returns a probability distribution, then the primitive computes the expected value of the level index. With probabilities 0.01, 0.26, and 0.72, the score is E[X] = 0(0.01)+1(0.26)+2(0.72)=1.7. That does not mean a fictional urgency level exists between medium and high. It means the distribution's expected value is 1.7.
Noul answers a yes/no question probabilistically. The name comes from Bernoulli. For the question "Is the customer requesting a refund?", the model can return a probability that the statement is true. It is a Bernoulli outcome, where probability p is assigned to Yes and 1-p to No. If it assigns 0.92 to Yes and 0.08 to No, it is not sampling a random answer. It returns the probability parameter, leaving the application to decide what to do.
The interface also returns confidence for Choice and Score. Confidence summarizes how concentrated the model's belief is. For K options, confidence is calculated from the largest probability relative to a uniform baseline: (p_max - 1/K) / (1 - 1/K). A uniform distribution has confidence 0, while a distribution concentrated entirely on one option has confidence 1. The larger the winning probability relative to a uniform distribution, the higher the confidence.
In the three-choice example, Billing is shown with probability 0.80, and confidence is calculated as (3(0.99)-1)/2 = 0.98. The note says the winning probability is 0.99 but the reported confidence is 0.98, because confidence normalizes the largest probability relative to the number of available options. In contrast, the ordered Score example had confidence 0.558.
A Common Interface for Hugging Face and Inference Engines
Decision models are a young and fast-moving space. Different models make decisions differently under the hood: heads that score the whole schema jointly, separate readouts on top of LLM backbones, edge-sized variants, and multimodal variants. That variety is useful, but if each model exposes a different interface, every tool needs model-specific adaptations.
Hugging Face's goal is a common interface without forcing a common implementation. A decision model can work however it likes internally, as long as it accepts the same state and questions and returns the same typed decisions. With that contract, inference engines such as llama.cpp can serve decision models through the same API, the Hub can package and surface them consistently, and training tools can target shared primitives instead of individual architectures.
Transformers now supports DecisionPipeline, AutoModelForDecision, and DecisionConfig. These follow the general structure of Transformers pipeline and model classes, tailored for decision models. Developers can also inspect the configuration and the model. Transformers also supports the /v1/systemone endpoint. A local server can be started using the serving dependencies.
Using a compatible version of Transformers, a decision request can be sent to the server, and the response contains three named answers with typed results and probabilities. Transformers constructs decision prompts and evaluates answer label logits. The APIs also work with compatible autoregressive language models.
For application builders, the value is not a new chat format. It is a way to turn model output into a machine-readable decision layer: named answers, probabilities, confidence, and a schema that the surrounding system can trust.
Meta description: Decision models let AI return probabilities for structured choices. Learn how Jev, TypeSafe AI, and Hugging Face support this pattern without text generation.
Tags: decision models, Jev, TypeSafe AI, Hugging Face, structured AI outputs
Featured image: Abstract friendly illustration of a probability dial above a customer message card, no real people, no logos, no text.

Comments (0)