Decision Models in Hugging Face: Structured Decisions Without Text Generation

Large language models are optimized for open-ended text generation, but many applications only need a decision: which team should handle a ticket, how urgent it is, or whether a customer wants a refund. Asking an LLM to return JSON is common but fragile, since the model is not guaranteed to follow the schema, constrained decoding adds overhead, and autoregressive generation is unnecessary when the answers are already known. Decision models are an alternative interface: given a state, named questions, and allowed answers, they return a structured decision with probabilities instead of generating text. TypeSafe AI introduced Jev as a System One model, and the community converged on the term decision model to describe the model’s computational role.

Decision models build on familiar ideas. Traditional classifiers produce probabilities but fix their labels in a classification head; adding a department means modifying the head and retraining. Zero-shot classification, such as facebook/bart-large-mnli, accepts candidate labels at inference time using natural-language inference. Decision models extend this by accepting several named questions of different types on the same state, including ordered scoring and binary questions. The article’s comparison table lists multiple typed questions and native primitives as the main differentiators.

The decision model interface has two components: state and questions. State is the information the model evaluates and may be a string, a structured JSON object, or other modalities for omni-modal models. Questions use three primitives. Choice selects one of several alternatives and returns a probability distribution via softmax. Score evaluates an ordered scale and returns the expectation of the level index; probabilities of 0.10, 0.26, and 0.72 over levels 0, 1, and 2 produce a score of 1.7, not a fictional level halfway between medium and high. Noul answers a binary question probabilistically, returning the Bernoulli parameter p rather than sampling a yes/no answer.

Choice and Score also return a confidence field. Confidence is defined as (p_max – 1/K) / (1 – 1/K), where K is the number of options. A uniform distribution gives confidence 0, while a distribution concentrated on one option gives confidence 1. In the article’s example, a winning probability of 0.99 over three options produces a confidence of 0.98, because confidence normalizes relative to the number of choices.

Hugging Face has integrated decision models into the Transformers ecosystem with DecisionPipeline, AutoModelForDecision, and DecisionConfig. The pipeline can be loaded with pipeline(“decision”, model=”autotrust/GEV-26B-Decide”), and Transformers serves the /v1/systemone endpoint. A curl example shows a request with three questions returning typed answers and probabilities. Compatible autoregressive language models also work through this API: Transformers constructs the decision prompts, evaluates answer label logits in a batched forward pass, and applies softmax without generating response text. llama.cpp supports decision models through the same /v1/systemone API using GGUF models such as ggml-org/Kev-4B-GGUF. The Hugging Face Hub has a dedicated decision-model tag, and the ecosystem includes encoder-based models such as ModernBERT as well as larger generative backbones.

Training decision models is possible with Transformers tooling. A toy example fine-tunes JEV-9B using the Trainer API, where model.decision_config.prepare_inputs turns a decision request into model inputs, and a choice question is trained with cross-entropy loss over the options. First-class training support is also coming to TRL via an open pull request, and Unsloth provides a recipe for turning generative LLMs into decision models with LoRA and a decision-scoring head. Decision models are interesting not because classification is new, but because they make decisions and probabilities first-class outputs for software, with a typed interface, non-generative scoring, and the possibility of specialized training for reliable, calibrated decisions.

Decision Models in Hugging Face

View Original