Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Decision models in Hugging Face

Hugging Face introduces decision models: instead of generating text, the model takes a state plus questions with predefined answer options and returns a probability distribution over them directly. The post shows a decision pipeline in transformers with a…

Published Read the original
Decision models in Hugging Face

Why it matters

For routing, triage and classification in applications, it could be a cheaper and more reliable alternative to asking an LLM for JSON.

What happened

1 min read

Hugging Face introduces decision models: instead of generating text, the model takes a state plus questions with predefined answer options and returns a probability distribution over them directly. The post shows a decision pipeline in transformers with a model from autotrust, and contrasts the approach with traditional and zero-shot classification through typed questions such as choice and score.

inscraper analysis

Our analysis

The main benefit is avoiding autoregressive decoding and the risk of invalid output, while exposing probabilities for thresholding. What is new is not the idea, since zero-shot classification also takes labels at inference time, but the unified interface. The available text gives no accuracy or latency comparison against an LLM, so the example model's quality needs your own testing. Worth trying for teams with high volumes of simple decisions.

More in Research