LangChain's Trace-Trained GLM 5.3 Flash Replaced Gemini 3.5 Flash Lite in Chat LangChain: 0.735 vs GPT-6.1 Sol's 0.748 Held-Out, $12 vs Gemini's $20 per 1,000 Questions
LangChain's December 2 report: a GLM 5.3 Flash fine-tuned on Chat LangChain's own production traces scores 0.735 on 128 held-out questions, leads on groundedness in a three-way live test, and runs at $12 per 1,000 questions.
LangChain has put a fine-tuned GLM 5.3 Flash in front of real users of Chat LangChain, the docs agent that answers questions about the LangChain stack from its documentation and public support knowledge base. On a held-out set of 128 real user questions, LangChain reports the fine-tune at 0.735, the base model at 0.679 and GPT-6.1 Sol at 0.748, with the fine-tune 83% cheaper than GPT-6.1 Sol. Those decimals are not percentages of questions answered correctly: each answer scores 1 if it is correct and complete, 0 if it falls short and minus 0.5 if it is confidently wrong, and a model’s score is its average over 8 attempts at each question.
This is a first-party vendor report, and the method transfers even if the headline does not: production traces in, a benchmark out, a fine-tune, and a live test with three arms. Chat LangChain traffic was split evenly between the fine-tune, base GLM 5.3 Flash and Gemini 3.5 Flash Lite, the model the fine-tune replaced, and every response was scored with online evals in LangSmith.
What LangChain actually ran
The starting point was not a synthetic dataset. Chat LangChain’s production traces were grouped into usage patterns, and tasks were built from those groups so the benchmark would resemble how people actually use the product. Every task has an answer key and verifiers score the answer against it. The set was split into a training set and a held-out set of 128.
Agent runs are hard to compare when the tools and data behind them keep changing, so LangChain built a mocked environment mirroring production configuration, and calibrated the benchmark rather than assuming it: stronger models must rank above weaker ones, the verifiers must give the same score twice, and a model reviewed their decisions until a review run turned up no errors.
The held-out set was made harder on purpose: LangChain picked 78 of the 128 tasks because the base model struggled with them, which leaves headroom for training to show up.

Three training methods, one deployment
LangChain tried supervised fine-tuning (SFT), group relative policy optimization (GRPO) and answer-only direct preference optimization (DPO), plus a self-distillation baseline in which the base model trains on its own trajectories. They differ in which parts of a trajectory get a training signal.
| Method | Signal | Score gain | Effect on research |
|---|---|---|---|
| Answer-only DPO | Final answer only | +0.056 | 33% more tool calls, 25% more turns |
| SFT from teacher GLM 5.3 | Full trajectories | +0.052 | 14.5 tool calls per question against 5 for the base model; median offline latency changed from 17s to 75s |
| GRPO | Reinforcement on trajectories | +0.037 | 42% more tool calls, 40% more turns; costlier to train |
| Self-distillation | Base model’s own trajectories | +0.014 | Tool-call change not reported |
The deployed version was answer-only DPO: it posted the largest score gain, and it added fewer tool calls than teacher SFT or GRPO. About one in five rejected answers was a confident claim that something does not exist, made after a shallow search; LangChain offers as its best explanation, not a proven cause, that learning to avoid those answers taught the model not to stop searching early. The latency line to watch is the teacher-SFT student: its median offline latency against base GLM changed from 17 seconds to 75 seconds. The report does not establish that the training method independently caused that change, and it does not rank the three methods by signal strength.
What production showed
The fine-tune led on groundedness every day of the test, where groundedness measures whether an answer is supported by the docs the agent retrieved. A model judge reading all three answers picked a GLM model 82% of the time across 119 comparisons where the answers differed in substance, and those preferences were split evenly between the fine-tune and the base model.
Latency surfaced in the first days: 18.7% of the fine-tune’s runs took longer than 30 seconds. An instruction to keep answers concise brought that share to 5.9% over six days, close to base GLM’s 5.4%, so the fix was a prompt constraint rather than a model change. Users followed up in 36% of the fine-tune’s threads, against 41% of Gemini’s threads. On price, it answers about twice as slowly as Gemini but costs $12 per 1,000 questions against Gemini’s $20.
How to decide whether to deploy
Read the numbers as three gates rather than a leaderboard. Groundedness against the incumbent comes first, because a docs agent that invents an API costs a user more than a few seconds of delay, and the fine-tune won that comparison every day of the test. Cost per question comes second: $12 against $20 per 1,000 questions is the margin against Gemini 3.5 Flash Lite, while base GLM 5.3 Flash cost $9, Sonnet 5.5 $192 and Opus 5.5 $330 per 1,000 questions. Tail latency is the third, and it is the gate that needed work: after a prompt instruction the fine-tune’s share of runs over 30 seconds settled at 5.9%, close to base GLM’s 5.4% rather than matching it, and the fine-tune still answers about twice as slowly as the incumbent, Gemini 3.5 Flash Lite. Track that share against Gemini from day one.
A second LangChain result offers a test readers can run themselves. Its WikiBench evaluation of the OpenWiki agent, published August 26, 2026, gave a reader agent the same repository questions three ways: wiki only, source only, and wiki plus source. Combining the wiki with the source produced the highest mean score at a lower cost than using the source alone, because the wiki acts as an index, while the wiki alone performed much worse. That is a harness result rather than a model result, and the practical move is to repeat it on your own repository: answer the same grounded questions with and without a generated index and compare both the score and the cost per answer.
Most teams should start with the benchmark rather than the training run, and Automater has covered this pattern in LangChain’s Agent Lake architecture, agent evaluation CI gates and the context engineering playbook.
Sources
- Fine-tuning an open model on our docs agent’s traces - LangChain Labs, December 2, 2026.
- LangChain blog index - publisher listing confirming the December 2, 2026 date.
- Evaluating OpenWiki with WikiBench - LangChain, August 26, 2026.