Coding Models Win Because Facts Don't Grade Themselves
Small open models optimize for coding because unit tests grade themselves; world knowledge has no equivalent reward signal, and that's not an accident.
The gap a poster on r/LocalLLaMA flagged this week — a compact open-weight model that reasons brilliantly about code but goes soft on plain facts, especially once you quantize it down to fit on a single GPU — isn't a blind spot anyone forgot to close. It's the predictable output of what actually gets rewarded during training, and it tells you more about the economics of reinforcement learning than about any failure of model design.
The Grading Problem
Code has a property almost nothing else in language modeling has: you can check the answer by running it. Write a function, execute the unit tests, get a scalar reward, back-propagate. Agentic tool use has a weaker but still usable version of the same thing — did the API call succeed, did the file get edited correctly, did the shell command exit zero. This is why reinforcement learning with verifiable rewards (RLVR) has become the dominant post-training recipe for the last two years, and why every lab from Alibaba to Mistral to the frontier US labs is pouring compute into it. It's not that coding is judged to be the most valuable use case in the abstract. It's that coding is the cheapest thing to train against at scale, because the grader is free and objective.
World knowledge has no equivalent. There's no compiler for "who was the mayor of a mid-size city in 2019" or "when did this company change its name." You can build a multiple-choice benchmark and optimize against it, but those saturate fast and famously reward memorizing the benchmark rather than the world. Facts also decay — a model's knowledge of current officeholders, prices, or org charts is stale the moment training ends, which makes it a genuinely bad target for the kind of iterative, verifiable-reward training loop that's currently winning. So the compute goes where the grading is cheap and stays fresh: code, math, structured tool calls. Everything else is a byproduct of pretraining scale, not a deliberate target.
Unit tests grade themselves. Facts about the world do not, and that asymmetry is quietly deciding what small models are for.
Quantization Taxes Knowledge Harder Than Reasoning
The original poster's observation that a 27B model's world knowledge "sucks" specifically at Q4 is worth taking seriously rather than treating as an aside. Quantization compresses weights uniformly, but a model's capabilities aren't stored uniformly — reasoning and procedural skill seem to survive aggressive compression better than the long tail of memorized, low-frequency facts, which depend on precise activations across specific weights that have less redundancy to fall back on. Practically, that means the same checkpoint can feel like two different models depending on quant level: sharp at code, noticeably fuzzier on trivia, at Q4 versus Q8 or full precision. If you're picking a quantization level purely by how much VRAM you have, you're implicitly choosing to sacrifice factual reliability before you sacrifice coding ability, whether you meant to or not.
Worth noting: this is exactly backwards from what a lot of users assume they're trading off. The intuition is "lower quant, dumber model, uniformly worse." The reality is closer to "lower quant, same coding competence, much worse as a source of truth" — which matters a great deal if you're using the local model to answer factual questions unsupervised.
The Retrieval Counterargument, and Where It Runs Out
The obvious rebuttal is that nobody needs a knowledge-dense small model because retrieval-augmented generation already solved this — bolt a search tool onto a 27B coding model and it can look up whatever it doesn't know, which is both cheaper and more current than cramming facts into weights. This is largely correct for verifiable, lookup-shaped facts, and it's a big part of why no lab is racing to build an encyclopedic small model: the market solved that problem architecturally rather than by scaling parameters.
But RAG doesn't replace the tacit, background world knowledge that shapes how a model reasons about ambiguous or underspecified requests — the stuff you'd never think to search for because you didn't know you needed it. And the people asking for this, running models locally specifically to get off hosted APIs, are often the same people trying to avoid a live search dependency for latency, privacy, or offline reasons. Wiring a search tool into every agentic loop reintroduces the network dependency, the latency, and the third-party data exposure that motivated running locally in the first place. There's also a quieter irony here: every time a knowledge gap forces a local-model user back to a hosted search API or a bigger cloud model to fact-check, that's a small win for the very providers the original poster was trying to route around.
What This Means If You're Actually Running These Models
In practice, treat a small coding-optimized model and a general knowledge source as two different tools rather than expecting one checkpoint to do both jobs well. If you're doing agentic coding work locally, the current generation of sub-30B models genuinely is good enough to replace a hosted assistant for a large share of tasks — that part of the pitch holds up. But don't use the same checkpoint, especially at Q4, as your source of truth for anything factual without a way to verify it; pair it with a retrieval layer for anything time-sensitive, or keep a larger model or a hosted frontier model on hand specifically for knowledge-heavy questions rather than asking your coding model to guess. And if factual reliability matters for a given session, it's worth bumping to a higher quantization or a larger model for that session rather than assuming your daily-driver quant is fine for everything — the coding ability will look identical either way, which is exactly what makes the knowledge gap easy to miss until it costs you something.
Sources & further reading
The analysis above is our own. The underlying reporting and primary documents are credited here.