Decision Model vs LLM: When to Use Which, and When Gradient-Boosted Trees Still Win
The choice has three options, not two. Use trees or rules for numeric tables, a decision model for messy input with a fixed list of outcomes, and a chat LLM when the answer must be written text.
Use a classical classifier or plain rules when your data is numeric tables and you have labelled outcomes. Use a decision model when the input is unstructured text, images or agent state, but the answer must be one option from a fixed list with a confidence you can act on. Use a chat LLM when the output has to be open-ended text or the steps change from case to case. Whichever you pick, test its accuracy and its calibration on your own data before it makes real decisions.
Many "decision model vs LLM" comparisons treat the question as a two-way contest between an LLM and XGBoost on tabular data. That framing misses the case that many teams now face: support tickets, documents or an agent's next tool call, where the input is language but the output is a choice from a short list. A newer kind of model is built for exactly that case.
The three options take different inputs and return different outputs
A chat LLM takes text, and often images, and returns generated text. You can ask it to pick a category, but it answers by writing tokens, so you have to parse the reply and you do not get a probability for each option by default. Anthropic's guide to building agents separates "predefined code paths" from agents that "dynamically direct their own processes and tool usage." It warns that agentic systems "often trade latency and cost for better task performance."
A decision model reads the same kind of messy input as an LLM. It returns one option from a list that you supply, with a probability for each option. TypeSafe describes its Jev model as "unstructured state in, typed probabilistic decisions out." Its API accepts up to 255 named choices and returns the chosen option, a confidence from 0 to 1 and a probability for every choice. Because the model returns typed values instead of free text, its answer is always one of the options on your list.
A classical classifier or rule set takes structured features, such as amounts, dates, counts and codes. It returns a class or a score. Gradient-boosted trees like LightGBM and logistic regression fall in this group, along with hand-written rules. The ML Pills newsletter puts the rules case simply: "If you can clearly write down the logic in a flowchart, simple rules are often your best bet."
So "decision model" in this article does not mean a tree model. It means a model that reads like an LLM and answers like a classifier.
Gradient-boosted trees still win on purely numeric tabular data
The strongest evidence in this debate favours trees on tables. In a credit-risk study published in October 2025, AlMarri and colleagues tested three open LLMs as zero-shot classifiers on about 396,000 LendingClub loans. LightGBM reached a ROC-AUC of 0.73. The best LLM, Gemma-2-9B, reached 0.67, and the others scored 0.65 and 0.61.
The same study found a deeper problem. In LightGBM, a higher interest rate went with a higher predicted chance of full repayment on this data. The authors report that "all three LLMs display the opposite trend." A model that gets the direction of a key feature backwards is hard to defend to a credit committee. The authors call for baseline comparisons with interpretable models and for human oversight.
LLMs do win in a narrower case. The TabLens paper, revised in October 2026, ran 91 datasets and found that zero-shot LLM inference matched the accuracy of up to about 16 labelled examples. That held only below a complexity threshold, and the authors write that "above the threshold, the advantage disappears." On datasets with free-text columns, zero-shot LLMs did better than a 16-shot TabPFN model.
The practical rule follows from both papers. If your rows are mostly numbers and you have thousands of labels, start with gradient-boosted trees. If you have almost no labels, or the useful signal sits in free-text fields, an LLM or a decision model can be the better start.
A decision model fits unstructured input with a fixed set of outcomes
The middle case looks like this. A refund request arrives as an email. Your policy allows four actions: approve, reject, ask for a receipt or send to a human. The input is language, so trees need someone to engineer features first. The output is a fixed choice, so a chat LLM adds text that you do not need and a cost per output token that you do not want.
A decision model reads the email and the policy together and returns a probability for each of the four actions. Your code then acts on the top option only when its probability clears a threshold. The same shape covers ticket routing, claims triage and an agent's choice of which tool to call next.
The Lamarr Institute's guide makes a related point. For a topic classification task with labelled data, it calls a non-generative encoder model "a more efficient and suitable choice." In a separate example on correcting speech transcripts, it adds that "LLMs do not provide a fixed output format." Decision models extend the encoder idea to longer context and to images.
Six questions about the task point to rules, a decision model or a chat LLM
The table below sets out which answer to each question points to which option. If most of your answers fall in one column, start there.
| Question | Rules or trees | Decision model | Chat LLM |
|---|---|---|---|
| What is the input? | Purely numeric tables: trees or rules win here | Text, images, policy or agent state | Text or mixed content |
| Do you have labelled outcomes? | Thousands or more | A few thousand, or none yet with a list of options | Few or none |
| What shape is the output? | A class or a score | One option from a fixed list, with probabilities | Free text or open actions |
| What volume and latency? | Very high volume, milliseconds | High volume, under a second | Low to moderate volume |
| Do you need calibration and audit? | Yes, and the tools are mature | Yes, if the vendor returns probabilities you can test | Hard to calibrate without extra work |
| Does the task change from case to case? | No | The options stay fixed, while the input varies | Yes |
Calibration means that a 90% answer is right about 90% of the time
A confidence score is only useful if it matches reality. The scikit-learn documentation defines a well-calibrated classifier this way: among cases given a probability near 0.8, about 80% should turn out positive. The same rule applies to a decision model's top option. If it says 90%, it should be right about nine times in ten.
You can check calibration yourself with a held-out set of labelled cases. The steps are short:
- Run the model on a few thousand labelled cases that it has not seen.
- Sort the predictions into about ten bins by the confidence of the chosen option.
- In each bin, compare the average confidence with the share of answers that were correct.
- Plot the result with
CalibrationDisplay.from_estimatororcalibration_curvein scikit-learn, and look for bins that sit far from the diagonal. - Compute the expected calibration error by averaging the gap in each bin, weighted by the number of cases in that bin.
If the curve is off, you can fit a calibrator on separate data. Scikit-learn offers sigmoid, which is Platt scaling, and isotonic. Its documentation warns that isotonic "is more prone to overfitting, especially on small datasets," and needs more than about 1,000 samples. A 2026 study of nine credit portfolios by Mustafa Cavus adds a further warning. When a model is already well calibrated, an extra calibration step can make calibration error worse.
Calibration is the basis for deferral. You set a threshold for each action, and the system acts alone only above it. Everything below goes to a human, a larger model or a request for more information. TypeSafe's documentation advises that "different actions within the same system should use different thresholds depending on the consequences of getting it wrong." A refund under $20 can take a lower bar than a credit limit increase.
Credit and insurance decisions face EU audit rules from December 2027
The EU AI Act lists credit scoring of individuals as a high-risk use in Annex III, point 5(b). It expressly excludes "AI systems used for the purpose of detecting financial fraud." Point 5(c) adds risk assessment and pricing for life and health insurance. According to the implementation timeline at artificialintelligenceact.eu, updated on August 31, 2026, these obligations apply from December 2, 2027.
Two articles matter most for model choice. Article 15(3) requires that "the levels of accuracy and the relevant accuracy metrics" be declared in the instructions of use. Article 14(4)(d) requires that a human overseer can decide not to use the system and can disregard or override its output. A model with tested, calibrated probabilities and a deferral threshold makes both duties easier to meet. Refund decisions and general claims triage are not on the Annex III list, but the same evidence helps with internal audits.
Three hybrid patterns combine the options
Many production systems use more than one option. The right combination depends on where the hard part of the task sits.
- Put a decision model in front of an LLM agent when most turns are routine choices. The decision model takes the turns where it is confident and passes the rest, unchanged, to the LLM. Redgate's Simple Talk describes the same idea for data pipelines, with classical ML handling most scoring and low-confidence cases sent to an LLM.
- Use an LLM to extract features for a classifier when the input is text but the decision rests on a few facts, such as an amount, a date or a product code. The trees then make an auditable decision on clean fields.
- Use an LLM to label data when you have no labels yet. Its labels let you train and calibrate a cheaper model, and the LLM can keep handling the odd cases while human reviewers check a sample of its labels.
Maven Analytics suggests a fourth role for churn models, where an LLM turns SHAP values into a plain-language explanation. The credit study above shows why such explanations should be treated as summaries for readers, not as the model's real reasoning.
A like-for-like benchmark of all three options has not been published
No source cited here compares a frontier LLM call, a fine-tuned decision model and a gradient-boosted baseline on the same public dataset for accuracy, calibration error, median latency and cost per 1,000 decisions. Vendor figures exist, but each vendor measures on its own tasks and hardware.
You can run the test yourself on public data. BANKING77 from PolyAI has 13,083 banking queries labelled with 77 intents, split into 10,003 training and 3,080 test examples, under a CC BY 4.0 licence. Train a gradient-boosted model on text features, prompt an LLM with the intent list, and send the same list to a decision model. For agent tool choice, the MIT-licensed tau2-bench from Sierra Research includes a set of 114 retail tasks. Record accuracy, expected calibration error, median latency and cost for each option on the same test split.
Prices at list rates show why cost often decides the question at volume. Assume that each decision sends 1,500 input tokens and an LLM writes 20 output tokens. Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens, which comes to $3.20 per 1,000 decisions. Claude Haiku 5.5, for prompts up to 100,000 tokens, and OpenAI's gpt-6-luna both list $0.10 and $0.50, or $0.16 per 1,000. Jev bills only input at $0.042 per million tokens, or about $0.06 per 1,000. Redgate's author estimates classical ML at $5 to $20 per million rows, which is half a cent to two cents per 1,000.
Parsec, a small language model lab, sells a decision model called TOD that sits in front of an existing assistant. It ranks the next action from a list of allowed actions and passes turns where it is unsure to the parent LLM. According to Parsec's TOD page, it costs $0.30 per 1,000 decisions regardless of context length, with parent-model costs billed separately. Parsec's own tau2-bench results show TOD solving slightly fewer retail tasks than the parent model alone, and TOD scored below its untrained base model on the public JevBench test. These are Parsec's own results, not independent ones.
Each option fails in a predictable way
Every approach has a known weakness, and each one can be tested before launch.
- Trees and rules fail when the useful signal is in free text that nobody has turned into features, or when the rules grow too large for a person to read.
- Decision models fail when the right answer is not on the list, and they are newer, so fewer independent results exist for them.
- Chat LLMs fail on calibration and consistency. Abigail Haddad describes an LLM step as "opaque and likely non-deterministic," and the credit study shows they can get key features backwards.
Published comparisons also carry a bias of their own. Carlos Huertas showed in 2024 that the tree baselines used in some LLM-versus-trees papers were weak. With better settings for small samples, his method improved LightGBM by 290%, and trees became competitive once more than eight examples were available. Treat any reported LLM win on tabular data as a claim to retest against a well-tuned gradient-boosted model on your own data.
Sources
- Anthropic, Building effective agents: https://www.anthropic.com/engineering/building-effective-agents
- AlMarri et al., Interpreting LLMs as Credit Risk Classifiers: https://arxiv.org/html/2510.25701v1
- Grushina et al., TabLens: https://arxiv.org/abs/2605.24417
- Huertas, Gradient Boosting Trees and Large Language Models for Tabular Data Few-Shot Learning: https://arxiv.org/abs/2411.04324
- Cavus, Trustworthy Calibration or Vulnerability?: https://arxiv.org/abs/2603.11750
- scikit-learn, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- Lamarr Institute, LLM or Not: https://lamarr-institute.org/blog/ai-business-llm-or-not/
- ML Pills, When to use rules, ML or LLMs: https://mlpills.substack.com/p/rw-7-when-to-use-rules-ml-or-llms
- Redgate Simple Talk, When, and when not, to use LLMs in your data pipeline: https://www.red-gate.com/simple-talk/ai/when-and-when-not-to-use-llms-in-your-data-pipeline/
- The Present of Coding, Should I just throw it into an LLM?: https://presentofcoding.substack.com/p/processing-text-data-should-i-just
- Maven Analytics, Will LLMs replace traditional machine learning?: https://mavenanalytics.io/blog/will-llms-replace-traditional-machine-learning
- TypeSafe, Introducing System One models and Jev: https://typesafe.ai/blog/introducing-system-one-models-and-jev
- TypeSafe, Models: https://docs.typesafe.ai/models.md
- TypeSafe, API reference: https://docs.typesafe.ai/api
- TypeSafe, Confidence: https://docs.typesafe.ai/confidence.md
- EU AI Act, Annex III: https://artificialintelligenceact.eu/annex/3/
- EU AI Act, Article 14: https://artificialintelligenceact.eu/article/14/
- EU AI Act, Article 15: https://artificialintelligenceact.eu/article/15/
- EU AI Act, Implementation timeline: https://artificialintelligenceact.eu/implementation-timeline/
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- PolyAI, BANKING77 dataset: https://huggingface.co/datasets/PolyAI/banking77
- Sierra Research, tau2-bench: https://github.com/sierra-research/tau2-bench
- Parsec, TOD: https://parseclab.ai/tod/