Glean's Chinmay Goyal says decision models cut LLM costs and latency: routing 8x faster, security recall up to 90.2%
Glean's Chinmay Goyal says decision models cut LLM costs and latency: routing 8x faster, security recall up to 90.2% Glean runs a separate deployment for every customer. That architectural choice — single-tenant, no shared resources — sounds like a footnote un
Illustrative imageGlean's Chinmay Goyal says decision models cut LLM costs and latency: routing 8x faster, security recall up to 90.2%
Glean runs a separate deployment for every customer. That architectural choice — single-tenant, no shared resources — sounds like a footnote until you do the arithmetic on a security classifier. At a hypothetical 1,000 customers, Glean was maintaining 1,000 copies of a screening model hosted on T4 GPUs, each one a small piece of infrastructure that engineers had to keep alive. Chinmay Goyal, a product engineer on Glean Assistant, put the recall of that first-phase classifier at 31.5%. Replacing it with a decision model called Jev pushed recall to 90.2% — and removed the maintenance burden entirely. He laid out the before-and-after numbers across five production use cases on the AI Engineer podcast.
The core argument is narrower than "AI is too expensive," and more useful. Most steps inside an AI product are not writing prose; they are picking an option. Which expert should answer this? Which follow-up suggestion is best? Does this citation actually support the claim? For those steps, an LLM is an overpriced, slow, occasionally flaky answer to a multiple-choice question. Goyal's rule of thumb, stated near the end of his talk: "Can the output be listed in advance? If no, it's a free-form generative text problem. If yes, use Jev."
A decision model that skips the training bill
Goyal frames classification as an old problem with three solution paths, and he compares them on Glean's query-classification task: a base open-source LLaMA model, Jev, and a LLaMA model fine-tuned on Glean's own compute.
His claim is that Jev roughly doubles the output quality of the base LLaMA and reaches about 90% of the fine-tuned model — with none of the work. "Jev nearly doubles the output quality of a base Llama model and performs at 90% quality compared to a fine-tuned Llama — without the data collection, cleaning, compute, and hosting costs," he said.
The operational argument for accepting that 10-point gap is that fine-tuning is not a one-time bill. Labels drift, decision categories change, and every taxonomy revision sends you back to data collection and training. With Jev, Goyal says, a taxonomy change is a prompt edit: "We can just change our prompt a bit and boom, it works out of the box." The trade-off he names is that Jev generates no text at all — it returns a decision, not prose. That is the point for bounded problems and a disqualifier for free-form ones.
Expert routing: 8x faster, and the one place complexity paid
When a user asks Glean a question, the system has to pick which expert should answer it to maximize response quality. That routing step previously ran on a general-purpose LLM. In a test bed with N experts, Goyal says Jev delivered "significantly high precision" at roughly an 8x reduction in latency.
Getting there required real surgery on Glean's implementation and infrastructure — a decision Goyal flags as unusual for the company. "We at Glean have been trying to build systems in the simplest possible manner. This is one of the rare pieces where we believe complexity is worth it," he said. The latency cut is the justification.
The follow-up ranker and the 1.5-second clock
Glean's follow-up suggestion system, internally called "Q," collects candidate suggestions from 10 to 15 independent sources, each generating natural-language queries with LLMs. A ranker then takes the original query, Glean's answer, and every candidate, and picks the winner. The hard constraint is snappiness: the step has a 1.5-to-2-second limit, because the product cannot deliver an answer and then stall.
Jev beat the general-purpose LLM on quality and latency both, but two numbers stood out.
Guard rails catch failures such as wrong-language output or output that misses programmatic criteria. Goyal acknowledges the prompts differed between the two setups but says they were made as similar as possible to avoid skewing the comparison.
The design idea worth stealing is what a decision model returns: not a string, but a probability for each option. "These were the five options and these are the probabilities of these five options," is how Goyal describes the output. That makes threshold tuning possible per deployment — and because Glean is single-tenant, self-learning systems adjust those thresholds to each customer's usage pattern. A single global cutoff would leave accuracy on the table for every customer whose behavior differs from the average.
Judging citations: the value was consistency
Glean uses LLMs as judges in its evaluation pipeline, and the standard practice is to repeat each judgment to account for variability. Goyal applied Jev to one specific check — whether a cited document actually supports the claim in a Glean answer. Citations are held to a high bar at Glean because they are how users trust that an answer is grounded.
Jev was cheaper and faster, but the finding he emphasizes is reproducibility. Across the 28 to 30 use cases tested, only one run produced a different response; everything else was identical. He contrasts that with "something like say Luna," which he does not quantify but implies was less consistent.
The payoff is developer throughput, and Goyal's arithmetic is the boldest claim in the talk. "If I'm able to increase my own productivity by 5x or 6x, I can ship 6x the features to our customers — and this happens across 300 or 500 engineers. The impact of a good decision model is no longer linear, it is exponential." That 5x-to-6x figure is an illustration of the latency reduction, not a measured result — worth flagging, since it is where conviction outruns evidence.
Security screening: the recall jump, and the headcount behind it
The security pipeline runs in two phases: a recall-heavy first pass and a heavier LLM pass, with calls made in parallel to the actual tool input and output calls. The first phase used to be a virtue classifier hosted on T4 GPUs — a separate copy in every single-tenant customer deployment, which Goyal calls a genuinely difficult operational problem that consumed significant engineering time.
Swapping in Jev moved first-phase recall from 31.5% to 90.2% while cutting cost. Goyal's stated cost figure covers resource cost only, but he argues the bigger saving is human: Glean no longer needs two or three full-time engineers maintaining virtue classifiers and T4 GPUs across customers. He puts total savings at "far more than 50%."
How Glean decides what ships
With millions of users, no model change goes out untested, and the process explains why these numbers read as production results rather than lab results. First, a golden eval set exists for essentially every place intelligence is used in the product. Second, changes soak for a couple of weeks inside Glean's own instance, where roughly 1,500 employees use the product and give active feedback. Third, the change goes to A/B testing with customers. Guard-rail failure rates are logged and reviewed during that internal soak, which is how Goyal can cite them at all.
When to use which model
Goyal closes with a simple procedure for choosing among generative models, fine-tunes, and decision models.
His view is that stable labels are "rarely the case anymore," which makes the decision-model branch the default for bounded problems. He also allows hybrid designs pairing Jev with a free-form LLM when dynamic text is genuinely needed.
The through-line across all five use cases is one substitution producing different kinds of value depending on the binding constraint: quality parity without training in classification, an 8x latency cut in routing, a 99.2% time-bound hit rate in ranking, reproducibility in judging, and a 31.5%-to-90.2% recall jump plus headcount savings in security. Two tensions remain. The fine-tuned LLaMA still beats Jev on raw quality by about 10 points. And the exponential-productivity claim extrapolates from latency rather than measuring it. Goyal's answer to both is that taxonomy churn makes retraining uneconomical — a claim worth tracking as decision spaces stabilize or fine-tuning tooling gets cheaper.
For investors, the significance is where the AI dollar goes. The market's attention sits on frontier model training runs and the GPU supply chain that feeds them, but a large share of production AI work is small, repetitive, latency-sensitive decisions. Every time a company like Glean converts one of those steps from a hosted GPU inference call to a decision model, the demand curve for expensive general-purpose inference shifts — while demand for cheap, specialized decision infrastructure rises. Companies selling compute by the token should expect customers to start sorting their workloads into "must generate" and "just decide," and the second bucket, on Goyal's numbers, is where the margin was quietly leaking.
References:
- Zhipu's GLM-5.4 Launches on Coding Plan, Adds Visual Understanding and Raises Weekly Quota by 50%
- AI Stocks Rebound as Dip Buyers Pile In; All Four Major U.S. Indexes Rise, Philadelphia Semiconductor Index Soars 4.69%
- Alibaba Expands North America Hiring for Top AI Researchers, Qwen Team Adds Hundreds This Year
- Goldman Sachs Backs Zhipu with HK$1,560 Target Price, Projects ARR to Top US$3.2 Billion by End-2026
- Reliance Worldwide Stock Rises 12% as AustralianSuper Backs Brookfield's $2.53 Billion Buyout
Once added, BigGo Finance appears first in Google Search Top Stories, so you get the broadest, most up-to-the-minute, and most comprehensive global financial news first.
Add preferred source
