Echo: Learning from Experience Data via User-Driven Refinement

Hande Dong, Xiaoyun Liang, Jiarui Yu, Jiayi Lin, Changqing Ai, Feng Liu, Wenjun Zhang, Rongbi Wei, Chaofan Zhu, Linjie Che, Feng Wu, Xin Shen, Dexu Kong, Xiaotian Wang, Qiuyuan Chen, Bingxu An, Yueting Lei, Qiang LinarXiv 2026

TL;DR

Echo is a generalized framework that allows AI agents to continuously learn from real-world user interactions by treating human corrections as high-fidelity training signals. By bypassing noisy intermediate editing steps and training the model to directly predict the final, user-verified solution, Echo breaks the performance ceiling of static datasets—boosting the online code acceptance rate by a massive 10% absolute leap in a production environment.

What Problem Does This Paper Address?

Traditional paradigms for training large language models and autonomous agents rely heavily on static "human data" via pre-training, supervised fine-tuning (SFT), and reinforcement learning from human feedback (RLHF). However, this approach is hitting a wall: high-quality human data is finite, expensive to scale, and restricts agent intelligence to the distribution of its fixed training corpus.

While continuous learning from "experience data"—the raw streams of interactions between agents and their environments—offers a path forward, it introduces a massive challenge: noise. Raw interaction logs are chaotic, filled with trial-and-error, and possess low information density. Furthermore, standard reinforcement learning signals (like scalar rewards) are too sparse to explain why or how an agent should correct complex reasoning flaws in open-ended domains like software engineering.

Methods

Echo operationalizes the transition from raw, noisy experience to structured, learnable knowledge through a three-stage closed-loop system: Experience Acquisition, Knowledge Extraction, and Model Optimization.

Overview of the Echo Framework, illustrating the loop between user-driven refinement and model optimization.

1. Experience Acquisition & Knowledge Extraction

Instead of modeling the messy, keystroke-by-keystroke path of human editing, Echo focuses entirely on the outcome. When an agent generates an initial proposal ($C_1$) given a context ($C_0$), an accountable stakeholder (the user) naturally drives that flawed proposal toward a verified, correct solution ($C_N$). Echo treats this final commit state ($C_N$) as the ultimate ground-truth target.

To extract this cleanly in a code auto-completion setting, Echo uses a Data Refinery Pipeline:

  • Gap-based Extraction: It tracks the lifecycle of a code gap using the cursor's surrounding text as static anchors (Prefix and Suffix). Once the user finishes working in that region (a contextual break), the pipeline extracts the accumulated code between the anchors as the raw commit state $C_N$.
  • Intent-aligned Rewriting: A high-capacity "Teacher LLM" truncates and formats the raw $C_N$ to isolate the immediate logical unit the user intended to write, ensuring it fits a human's immediate cognitive span without altering the underlying logic.
  • Quality Filtering: An LLM-based verifier performs boundary checks to handle "void predictions" (identifying when the agent should have remained silent) and filters out syntax errors, malicious patterns, or personally identifiable information (PII).
  • Data Proportioning: Rather than mirroring raw distributions, Echo strategically balances the dataset by down-sampling trivial patterns (e.g., closing braces) and boosting medium-length blocks rich in business logic.
The Data Refinery Pipeline detailing the extraction, rewriting, filtering, and proportioning stages.

2. Model Optimization

Because code auto-completion functions as a single-turn generation task, the optimization objective simplifies from complex reinforcement learning into direct Supervised Fine-Tuning (SFT). The agent is trained to directly maximize the probability of generating the refined, user-verified $C_N$ given the initial Prefix and Suffix context, effectively internalizing the missing knowledge.

Datasets

The framework was deployed and validated using real-world data from CodeBuddy, a production code-completion tool serving over 10,000 daily active users (DAU) at Tencent Cloud.

  • Primary Training Scale: A fixed, curated dataset of 50,000 experience samples (Refined $C_N$) mined from developer interaction streams.
  • Scaling Analysis: The authors varied the training volume from 30,000 to 200,000 samples specifically within the Python domain to evaluate data scaling laws.
  • Base Model: DeepSeek-Coder-6.7B, optimized via continued pre-training on 500B code tokens.

Key Insights and Ideas

  • The Ignorance Boundary: The entropy contained in a user's correction path ($C_1 \rightarrow C_N$) is significantly higher than a standalone code snippet. It explicitly exposes the exact boundary of what the model doesn't know, providing a uniquely dense supervision signal.
  • The "Lazy" Model Trap: Training on too many empty/void samples (where the model is penalized for generating code when it should be silent) causes the model to become overly conservative. Echo found that a strict 1:10 (Empty : Non-Empty) ratio is crucial at a 50k sample scale to prevent the model from defaulting to a "do nothing" mode.
  • Widespread Deployment as a Sensor: Widespread product deployment acts as a continuous sensor for authentic, long-tail data and proprietary business logic that are entirely absent from public internet corpora, creating a self-reinforcing strategic moat for the model.

Key Results

  • Production Leap: Over a five-month internal deployment at Tencent Cloud, Echo broke the static human data ceiling, surging the Acceptance Rate (AR) from 25.7% to 35.7% (a 10% absolute improvement) and increasing the Generation Rate (GR) from 35.2% to 38.3%.
  • Robust Generalization: When deployed to external users with entirely different coding styles and project contexts, Echo maintained its edge. The overall AR rose from 25.01% to 37.55% across all major programming languages.
  • Clear Scaling Laws: Offline evaluations using BLEU scores demonstrated a continuous, monotonic improvement in model performance as the volume of experience data scaled up to 200k samples, showing no signs of saturation.

Limitations and Future Work

  • Data Governance & Privacy: Mined live sessions require rigorous, bulletproof de-identification and anonymization pipelines to protect proprietary logic and user privacy.
  • Learning Bad Habits: The framework risks treating a developer's temporary "compromise" (e.g., quick hacks or dirty workarounds) as absolute truth. The authors note the need to build an Automated Alignment Oracle to evaluate whether refinements adhere to high execution standards.
  • Long-Horizon Planning: Moving beyond single-turn code completion to complex code agents introduces a severe credit-assignment challenge, where it becomes difficult to anchor which specific agent proposal contributed to a final commit state over days or weeks of work.

Summary updated

BibTeX
@misc{dong2026echo,
  author = {Hande Dong and Xiaoyun Liang and Jiarui Yu and Jiayi Lin and Changqing Ai and Feng Liu and Wenjun Zhang and Rongbi Wei and Chaofan Zhu and Linjie Che and Feng Wu and Xin Shen and Dexu Kong and Xiaotian Wang and Qiuyuan Chen and Bingxu An and Yueting Lei and Qiang Lin},
  title = {{Echo: Learning from Experience Data via User-Driven Refinement}},
  year = {2026},
  eprint = {2605.21984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.21984},
}
Figure