ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2026
Year
Real-world agent learning is often constrained by costly environment interactions, such as running time-consuming experiments or obtaining human feedback. In-context learning offers a highly sample-efficient way for agents to learn from their own interaction histories, but its gains disappear once that experience is removed from the context. Separately, context distillation provides a mechanism for internalizing contextual information into model weights. However, applying it to agents' interaction histories without sacrificing environment sample efficiency remains underexplored. We term this problem Experience Distillation and develop an implementation that requires no further environment interaction beyond the collected experience. Experiments on 749 curated software-engineering tasks and six text-adventure games show that it retains at least 64.8\% of the gains from in-context learning across both domains, whereas direct supervised fine-tuning on the collected experience recovers only 3.8\%. Compared with classical reinforcement-learning baselines, in-context learning from trial-and-error experience followed by Experience Distillation matches their performance with at least \(9.6\times\) fewer environment samples.
Real-world agent learning is often bottlenecked by the high cost of environment interactions—whether running lengthy experiments or obtaining human feedback. This paper tackles a critical gap: while in-context learning (ICL) is highly sample-efficient, its benefits vanish once the experience is removed from the context. The authors propose Experience Distillation, a method that internalizes ICL gains into model weights without requiring additional environment samples. This is significant because it bridges the gap between the sample efficiency of ICL and the permanence of weight-based learning, offering a practical solution for deploying agents in cost-sensitive domains.
The paper's focus on software-engineering tasks and text-adventure games demonstrates broad applicability. By showing that Experience Distillation retains over 64% of ICL gains while supervised fine-tuning recovers only 3.8%, the authors highlight the inadequacy of naive fine-tuning and the promise of their approach. Furthermore, matching classical RL baselines with at least 9.6× fewer samples underscores the potential for substantial cost savings in real-world applications.
This work has broad implications for AI practitioners deploying agents in cost-sensitive environments. By enabling agents to internalize ICL gains without extra environment interactions, Experience Distillation reduces the barrier to effective learning from limited experience. It also opens avenues for combining the flexibility of ICL with the permanence of weight updates, potentially leading to more robust and sample-efficient learning systems. The demonstrated success on both software-engineering and text-adventure tasks suggests applicability across diverse domains, from automated coding assistants to interactive game agents.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba