> Markdown version of [/videos/100667-decision-models-for-developers-who-use-llms?t=173](https://www.wearedevelopers.com/videos/100667-decision-models-for-developers-who-use-llms?t=173). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Decision models for developers who use LLMs Are you burning budget on general LLMs just to route tickets and pick agent tools? Replace 80% of your backlog with specialized decision models for higher accuracy and millisecond latency. - **Speakers:** [Anurag Bhandari](https://www.wearedevelopers.com/@anurag-bhandari) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 31:21 - **URL:** https://www.wearedevelopers.com/videos/100667-decision-models-for-developers-who-use-llms - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/a20eeadea78faf66c11b33f8458cfe81/thumbnails/thumbnail.jpg?time=30000ms ## Summary Many AI features ask a model to make a decision—such as routing support tickets, selecting agent tools, or flagging policy violations—rather than generate prose. Sending these tasks to general-purpose LLMs incurs unnecessary latency, higher costs, and parsing overhead to prevent hallucinations. Anurag Bhandari (CTO at antelligent) introduces discriminative decision models as a faster, cost-effective alternative that returns a single answer from a predefined set alongside a confidence score. To determine when a decision model fits, Anurag applies a three-question test: does the request repeat, is the output structured, and is the set of possible answers finite? When all three are true—which covers 70% to 80% of typical AI product backlogs—developers can choose among encoder-only architectures like ModernBERT and Laya, hosted decision models like Jev, or task-specific small language models (SLMs) like antelligent's Fern. While BERT-family encoders excel at pure classification, full encoder-decoder SLMs like Fern are required when tasks demand extracting parameters for function calling. In a live benchmark using the Banking77 dataset, fine-tuned ModernBERT and Fern models outperformed Claude Haiku in accuracy (93% and 90% vs. 86%) while slashing P50 latency from over a second to milliseconds. By using confidence scores to route low-confidence edge cases to an LLM fallback, teams achieve high blended accuracy at a fraction of the cost—and can rapidly retrain open models on misclassified logs in seconds. **Keywords:** discriminative decision models, small language models, llm cost optimization, intent classification, agent tool calling, confidence score routing, llm fallback pattern, modernbert, claude haiku benchmark, banking77 dataset, encoder-only models, fine-tuning decision models, function calling arguments, structured json output, customer support ticket routing, ai model latency reduction ## Chapters 1. **Replacing generative LLMs with efficient decision models** (00:23) — Most production AI features require structured decisions like classification, tool calling, or boolean checks rather than open-ended text generation. 1. **Comparing LLM text parsing with decision model outputs** (02:53) — General-purpose LLMs require costly prompt engineering and regex parsing to avoid hallucinations, whereas fine-tuned decision models return single labels with confidence scores. 1. **Applying the three-question test to select models** (08:02) — Evaluating whether requests repeat, outputs are structured, and answer sets are finite determines if a feature suits a decision model or requires a generative LLM. 1. **Exploring encoder-only, hosted, and task-specific architectures** (12:09) — Comparing BERT encoder-only models, hosted Jev, open-source Laya, and task-specific Fern models highlights how confidence scores enable reliable LLM fallback routing. 1. **Benchmarking latency, accuracy, and cost on banking data** (16:24) — Testing Claude Haiku, ModernBERT, and Fern on the Banking77 dataset demonstrates that smaller decision models deliver faster response times and lower costs per call. 1. **Retraining models on misclassified requests and argument extraction** (25:11) — Fine-tuning ModernBERT fixes misclassified intents in seconds, though extracting arguments for tool calls still requires models with a decoder layer. 1. **Implementing decision models using production logs and evaluations** (28:09) — Transitioning to decision models involves collecting real request logs, holding out a test dataset for evaluation, and choosing decoder-equipped models for complex domain tasks. ## Related Moments - [Evaluating AI models using an LLM as a judge](https://www.wearedevelopers.com/videos/100508-legacy-as-a-launchpad-how-yahoo-mail-is-undergoing-a-product-and-engineering-transformation) (from "Legacy as a Launchpad: How Yahoo Mail is Undergoing a Product and Engineering Transformation") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/25bcd90e13f6ef7ab217ed7620dee0d2/thumbnails/thumbnail.jpg?time=179363ms - [Navigating model decision fatigue and cost-performance trade-offs](https://www.wearedevelopers.com/videos/100506-lean-intelligence-lessons-from-github-copilot-data-science-efforts) (from "Lean Intelligence: Lessons from GitHub Copilot Data Science Efforts") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/a117e9f1d6f74f192b4e67ea6fc2652c/thumbnails/thumbnail.jpg?time=234051ms - [Evaluating model performance and accuracy using LLM judges](https://www.wearedevelopers.com/videos/100447-from-model-selection-to-smart-routing-how-to-use-the-right-llm-for-every-task) (from "From Model Selection to Smart Routing: How to Use the Right LLM for Every Task") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/8ca7fddf3be15833540b66bafdec7394/thumbnails/thumbnail.jpg?time=269365ms - [Deciding if large language models are actually necessary](https://www.wearedevelopers.com/videos/1156-lessons-learned-building-a-genai-powered-app) (from "Lessons Learned Building a GenAI Powered App") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/926f6cea5e16156cb21f6863c88e5348/thumbnails/thumbnail.jpg?time=248645ms - [Introducing LLMs as judges for automated testing](https://www.wearedevelopers.com/videos/100300-testing-ai-agents-automated-evaluation-for-chatbots-rag-systems) (from "Testing AI Agents: Automated Evaluation for Chatbots & RAG Systems") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/91c4879735a42c98febca1e5eac1aa76/thumbnails/thumbnail.jpg?time=115910ms - [Evaluating advanced artificial intelligence platforms for daily recruitment](https://www.wearedevelopers.com/videos/1301-recruiting-in-2025-will-ai-help-or-take-over) (from "Recruiting in 2025: Will AI Help or Take Over?") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/ed974c1b4120a4d4addb5da2050e3dc5/thumbnails/thumbnail.jpg?time=23085ms ## Related Articles - [What Are Large Language Models?](https://www.wearedevelopers.com/magazine/304-what-are-large-language-models) - [ I Gave a Video Editor More Autonomy Than a Trading Bot. On Purpose.](https://www.wearedevelopers.com/magazine/773-i-gave-a-video-editor-more-autonomy-than-a-trading-bot-on-purpose) - [MLops – Deploying, Maintaining And Evolving Machine Learning Models in Production](https://www.wearedevelopers.com/magazine/115-mlops-deploying-maintaining-and-evolving-machine-learning-models-in-production) - [The Best Large Language Models on The Market](https://www.wearedevelopers.com/magazine/319-the-best-large-language-models-on-the-market) ## Related Jobs - [AI Scientist - Model Training & Architecture](https://www.wearedevelopers.com/jobs/ext/4678924-ai-scientist-model-training-architecture) at **BWI GmbH** - [Senior AI Scientist - Model Training & Architecture](https://www.wearedevelopers.com/jobs/ext/4713481-senior-ai-scientist-model-training-architecture) at **BWI GmbH** - [Senior Data & AI Architect](https://www.wearedevelopers.com/jobs/48602-senior-data-ai-architect) at **reeeliance IM GmbH** - [Lead Engineer, Google Cloud](https://www.wearedevelopers.com/jobs/ext/4747258-lead-engineer-google-cloud) at **PwC** - [Senior Data Scientist - AI Tooling](https://www.wearedevelopers.com/jobs/ext/4690678-senior-data-scientist-ai-tooling) at **Intercom** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub**