-
Notifications
You must be signed in to change notification settings - Fork 130
when a small model is enough
A small model is enough when the input is English, the decision can be written as yes/no questions, the answers are read from the text rather than computed, and speed, cost or privacy matter more than the last few points of accuracy. It is not enough when the decision depends on applying a complex rule, doing arithmetic or date math, reading another language, or producing anything other than yes/no or one option from a list. Most real systems have both kinds of decision, and the useful answer is to split them: the small model reads, code computes, and a large model or a person takes what is left.
The trap is choosing one model for a whole application. The same product has "is this email a newsletter?", which a 1B model reads well, and "is this claim within the policy limits?", which it does not. Deciding per question is what makes a small model usable.
This page is the checklist, then one section per question on it, with the measurements behind each answer, and what to do when the answer is "sometimes".
| Question | Small model is fine | Use a large model, or code |
|---|---|---|
| What language is the text? | English | anything else |
| What shape is the answer? | yes/no, or one yes/no per option | free text, a list, a summary |
| Is the answer read or computed? | read from the text | sums, dates, counts, comparisons |
| Is it a hard written rule? | the rule is simple and in the question | many conditions, points, exceptions |
| What does a wrong answer cost? | a correction, a review | money, safety, a person's rights, alone |
| Does it need to be local or fast? | yes | no constraint |
One row in the right column is not a verdict against the small model. It usually means that part of the decision belongs somewhere else.
jevos reads English only. If your texts arrive in several languages, you can translate first, which adds a step, a cost and possibly a third party; keep the questions in English; or use a multilingual model. We have no measurements of jevos on other languages, and would not guess at them. The options are laid out on using an English-only LLM with other languages.
The yes/no shape fits more often than it seems. A label from a list becomes one question per
label; a level such as low, medium or high becomes "is it at least medium?" and "is it high?". jevos answers
noul, choice and score questions, the last two as one yes/no question per option or level;
scores are early (the most probable level is right 54% of the time on 2,350 held-out questions,
within one level 82%) and weak where the level is a sum of points. If the output has to be text, a summary, a reply, an extracted list, a small
yes/no model is the wrong tool, and a generative model is the right one.
This is the most important row. On 999 questions written after the model was finished:
- read from the text: stated facts 0.954, tone 0.938, intent 0.859, negation 0.858, not stated 0.847;
- computed: numbers against thresholds 0.654, dates 0.598, arithmetic 0.584.
The computed kinds also carry a lean toward yes, 152 wrong yeses against 91 wrong noes in total. The fix we recommend is a different split rather than a bigger model: extract the dates and amounts, and compare them in code, as shown on small LLMs and arithmetic in yes/no questions. A question such as "Does the customer say the parcel arrived late?" is a reading question; "Was the parcel late?" may need a subtraction.
Rules sit in between. On the 999-question set, applying a rule was right 0.721 of the time. On 2,000 yes/no questions about three business policies none of the models was tuned on, jevos was right 0.810 of the time and the hosted Jev 0.927, with the widest gap on additive point scores. A rule with one condition written into the question works; a policy with points, exceptions and cut-offs belongs in code, with the model answering only the factual questions the code needs. The method is on LLM policy decisions: put the rule in the question.
A small model's mistakes are acceptable where they are cheap to correct: a ticket in the wrong queue, a tag a person removes. Where a wrong yes pays out money, blocks a user or affects a person's rights, the model can still be the first reader, but not the only decider. Use a threshold above 0.5 for acting on yes, send the middle band to a person, and log what was decided. Human in the loop AI with a review band covers the pattern; a larger model does not remove the need for it either.
If they do, the small model is often the only option, and the job becomes shaping the questions so it can answer them. On the reference laptop, an Intel Core Ultra 7 255H with 16 threads, jevos answered a short request in 26 ms and a 190-token one in 112 ms; the hosted Jev took 344 and 345 ms from Europe on the same requests, network included. There is no per-token cost, and the text stays on the machine. If none of these constraints applies, a hosted large model is a reasonable default for the hard questions, and the trade-off is on local vs hosted LLM decisions.
Then use both. Ask the small model first; act when the probability is confidently high or low;
send the middle band to a large model or a person. Because jevos speaks the same wire format as
TypeSafe's Jev for yes/no, choice and score questions, the escalation can be the same request sent to a different
base URL. How to size the band and what it saves is on
a model cascade: small model first, large model on doubt.
Measure the split on your own labelled cases, split by kind of question, before trusting it.
When should I use a small language model? For English yes/no decisions read from the text, especially where latency, cost or privacy rule out a hosted API.
When is a small model not enough? When the decision needs arithmetic, dates, a complex rule, another language, or a generated answer.
Is a bigger model always more accurate? On our 2,000 policy questions the hosted Jev was ahead, 0.927 against 0.810. We have not compared the two on pure reading questions, so measure on yours.
Can I mix small and large models? Yes. A cascade that escalates only the uncertain middle keeps most calls local.
How do I know for my own data? Label a hundred or so real cases by kind of question and measure. Building a yes/no test set explains how.
See also: small language models explained, how to write yes/no questions an LLM answers well and jevos vs Jev vs Laya.
- Accuracy by kind of question and error direction: our 999-question set,
jevos-q4_k_m. - The 2,000-question policy comparison and latency on the two requests: our measurements, reported in the jev README.
- Supported question types and the score accuracy: the README.
From the notes of jev, a small model whose README lists what it cannot do next to what it can.
- Ask a local LLM a yes/no question and get P(yes)
- Zero-shot text classification with yes/no questions
- LLM policy decisions: put the rule in the question
- LLM as a judge on a CPU
- Why a small LLM says yes when the answer is no
- Small LLMs and arithmetic in yes/no questions
- Our held-out benchmark said 0.855, new questions said 0.757
- jevos vs Jev vs Laya for yes/no decisions
- An open-source alternative to Jev for yes/no decisions
- jevos vs the OpenAI API for yes/no classification
- jevos vs Ollama for yes/no decisions
- jevos vs bart-large-mnli for zero-shot classification
- A yes/no LLM vs a fine-tuned BERT classifier
- jevos vs SetFit: zero-shot vs few-shot classification
- jevos vs Llama Guard for content safety checks
- jev serve vs llama.cpp server for classification
- jevos vs LM Studio: a decision server, not a chat app
- Local vs hosted LLM decisions: latency, cost, privacy
- A yes/no LLM vs a business rules engine
- LLM decisions vs keyword rules and regex
- The fastest AI model for yes/no decisions
- What makes a local LLM fast on a CPU
- Why one forward pass beats generating an answer
- Prefill vs decode: where LLM latency comes from
- Why LLM latency grows with the length of the text
- Why a hosted LLM API cannot answer in 50 ms
- Many questions about one text: why the extra ones are cheap
- CPU or GPU for a small LLM
- Latency budgets: where a 200 ms model fits
- Measuring LLM latency: median, p90 and warm-up
- Q4_K_M vs Q8_0: speed and size for a small model
- Throughput vs latency for a decision server
- What P(yes) means, and what it does not
- LLM calibration explained with yes/no answers
- Expected calibration error (ECE), explained
- Temperature scaling for LLM probabilities
- Platt scaling for a yes/no model
- Reading a reliability diagram
- How to choose a threshold for P(yes)
- Thresholds when a wrong yes costs more than a wrong no
- Human in the loop AI with a review band
- Precision and recall at a P(yes) threshold
- Base rates: why a 0.9 yes can still be wrong often
- Combining yes/no answers with AND, OR and NOT
- Logits, log-odds and P(yes)
- LLM confidence scores: probabilities vs self-reports
- How to write yes/no questions an LLM answers well
- Negation in yes/no questions for an LLM
- One condition per question: splitting compound questions
- Ask whether the text says it at all
- Scores as yes/no thresholds: is it at least high?
- Sending JSON as the text: designing the state
- Why wording changes an LLM's answer, and how to test it
- Mainly about: questions for messages with several topics
- Yes/no questions about tone and emotion
- Asking about intent: what does the writer want?
- Yes/no questions about long documents
- Using an English-only LLM with other languages
- Content moderation with a local LLM
- A Discord moderation bot with a local LLM
- Spam detection with yes/no questions
- Review moderation with a local LLM
- Email triage with a local LLM
- Support ticket routing with yes/no questions
- Urgency detection in customer messages
- Sentiment analysis with yes/no questions
- Intent detection with a local LLM
- Lead qualification with yes/no questions
- Fraud case triage with a local LLM
- Phishing email screening with a local LLM
- Log and alert triage with a local LLM
- Checking text for personal data with yes/no questions
- Prompt injection screening with a small model
- Document classification with a local LLM
- Product categorization with yes/no questions
- Contract clause detection with a local LLM
- Refund request triage with a local LLM
- Detecting cancellation intent in customer messages
- RAG evaluation with yes/no questions
- RAG faithfulness check with a local LLM
- Hallucination detection with a local LLM
- LLM regression tests in CI with yes/no checks
- Rubric design for an LLM judge
- Pairwise comparison with a yes/no judge
- LLM judge bias and how to control it
- Evaluation metrics for yes/no classifiers
- Building a yes/no test set for your own data
- Accuracy by kind of question: why one number hides failures
- Generating test questions with answers computed by code
- Benchmark contamination and truly held-out tests
- An LLM router with yes/no questions
- A model cascade: small model first, large model on doubt
- Semantic routing vs yes/no questions
- Gating AI agent tool calls with yes/no checks
- AI agent guardrails with yes/no questions
- Stop conditions for AI agents
- Logging LLM decisions for audit
- Reducing LLM cost with local yes/no decisions
- Replacing chat LLM calls with yes/no questions
- Structured output vs a probability
- A Python client for local LLM decisions
- Calling a local LLM decision server from JavaScript
- Local LLM yes/no decisions in n8n
- A Slack bot that uses local LLM decisions
- Home Assistant automations with local LLM decisions
- A LangChain tool for local yes/no decisions
- Batch decisions from files with jev decide
- Running LLM yes/no checks in GitHub Actions
- Securing a local LLM server with an API key
- curl examples for a local LLM decision API
- Self-hosted AI for decisions
- A private LLM for text classification
- On-premise LLM for business decisions
- GDPR and automated decision-making with an LLM
- Offline AI for decisions: no network needed
- Edge AI decisions on a CPU
- Run an LLM locally without a GPU
- Small language models explained
- When a small model is enough, and when it is not
- An LLM on a laptop: what it can do in real time
- What is GGUF, for someone deploying a classifier
- GGUF quantization types explained: Q4_K_M, Q8_0 and others
- GGUF vs safetensors
- llama.cpp vs Ollama for a classification service
- llama-cpp-python vs calling llama.cpp through ctypes
- llama.cpp on Windows without compiling
- Running llama.cpp CPU only
- Using llama.cpp prebuilt binaries instead of building