跪拜 Guibai
← All articles
Artificial Intelligence

Meituan's CARE System Makes a 31B Agent Learn From Its Own Mistakes

By 美团技术团队 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A self-hosted 31B model can now match and even beat a closed strong model in customer service while cutting per-order cost by 70.5%, making the switch from pay-per-call APIs to in-house weights a practical option. The OPSD training method, which uses a teacher with privileged information, offers a template for any agent that must learn from its own mistakes without reinforcing them.

Summary

Meituan's customer-service agents run on a closed-source strong model, but that costs a lot per call and leaves behavior outside the team's control. To replace it, the team built CARE, a recursive self-improvement loop that turns the agent's own online failures into training data. The pipeline splits into a one-time cold start that cleans historical trajectories, and an iterative phase where a dedicated inspection system confirms failures, attribution separates model errors from tool or SOP issues, and only model-caused defects become repair samples.

The training uses On-Policy Self-Distillation (OPSD): a frozen copy of the model (the teacher) reads the same input plus privileged information about the error, the SOP in effect, and a verified repair, and scores the student's output token by token using forward KL divergence truncated to the top-32 tokens with a zero lower bound. This corrects the model's current behavior without forcing it to memorize a fixed target. Over five rounds, the 31B model's bad-case rate fell from 6.42% to 1.97%, online satisfaction went from 4.57 points behind the strong model to 1.73 points ahead in some regions, and full replacement cut per-order service cost by 70.5%.

The article also details how inspection works (evidence-gated, multi-stage reviews), how repairs are constructed (only the first error decision, with a "no hindsight" rule), and how the team decides a candidate is ready for production (simulated tests plus offline inspection, with a composite score). The key lesson is that experience comes from the model itself, but judgment about right and wrong stays outside the model.

Takeaways
— Five iterative rounds cut the 31B model's inspection bad-case rate from 6.42% to 1.97%, less than half the strong model's rate.
— Online user satisfaction went from 4.57 points below the strong model to +1.73 points in some regions in round five.
— Full replacement of the strong model cut per-order service cost by 70.5%; switching half the traffic cut it by 35.8%.
— Inspection uses a multi-step process: coarse screening, detailed review, and independent confirmation; a conversation is a bad case only if it has a single error turn, complete evidence, a clear problem type, and a confirmed conclusion.
— Attribution separates model errors from tool/harness/SOP errors; only model-caused failures become training data.
— Repair construction targets only the first wrong decision, uses the input available at that moment, and bans hindsight information.
— OPSD uses forward KL divergence truncated to the top-32 tokens with a zero lower bound on per-token loss.
— Comparing a candidate to the deployed version uses a composite score mixing simulated pass rate and inspection bad-case rate.
— The team deliberately mixes multiple SOP versions in the training set so the model learns to follow the policy given in its input, not memorize a current one.
— SFT became unstable and DPO degraded to early human handoff; OPSD stayed stable.
Conclusions

The separation of inspection from model self-assessment is what makes the loop safe: the model never judges its own failures, avoiding reinforcement of its own biases.

The "no hindsight" rule in repair construction is a subtle but crucial guardrail that prevents the model from learning to assert facts it cannot know, which would otherwise cause hallucination in production.

The team's decision to compare only against the simultaneous strong model, not across versions, acknowledges that harness changes pollute absolute metrics; this is a practical lesson for anyone running continuous evaluation.

The flat cost of OPSD training, where the teacher is a frozen copy of the student, avoids the instability seen with SFT and DPO on small increments, making recursive updates feasible.

Concepts & terms
RSI
Recursive Self-Improvement: a system that uses its own experience and feedback to create persistent updates to its components, then repeats the cycle with the new version.
OPSD
On-Policy Self-Distillation: training where a frozen copy of the model (teacher) with extra privileged information scores the current model's (student's) output token-by-token, guiding it toward the teacher's belief without a fixed target.
Bad Case
A conversation confirmed by inspection to contain an error, used as training data after attribution.
Privileged Information
Extra information available to the teacher during training that the student does not see, such as the error location, the SOP in effect, and a verified repair.
Hindsight
Information about the outcome of a decision that the model could not have known at the time it made the decision; banned in repair construction.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗