Search papers, labs, and topics across Lattice.
This paper investigates the cost-effective adaptation of agents to new domains through programmatic skill learning, contrasting with existing approaches that prioritize performance over cost efficiency. The authors introduce SpeedRunner, a coding agent that analyzes past trajectories to incrementally discover and refine skills, enabling agents to achieve goals deterministically while minimizing trial-and-error costs. Results demonstrate that SpeedRunner outperforms traditional methods in both learning efficiency and cost reduction across various embodied environments, maintaining robustness against distribution shifts and environmental variability.
Programmatic skill learning can slash agent costs while enhancing performance, with SpeedRunner leading the charge in cost-efficient adaptation.
Recently, the practice of augmenting LLM agent capability with skills has gained prevalence. We explore the cost effective adaptation of agents to novel domains by means of learning skills. Existing works focus on performance gain over cost effectiveness. As a result, little is known about what skill learning strategies save cost. We argue that among all the different skill learning methods, those that view skills as programs can achieve the best cost reduction. By executing sequences of actions deterministically, a program-augmented agent can reliably and cheaply achieve goals that would otherwise require trial and error and risk degenerate behavior over long horizons. An agent can learn at inference time by incrementally discovering these programs and equipping them for future tasks. We hypothesize that past trajectories contain enough signal to guide skill learning, even without replay or validation, provided the agent can learn to analyze them. To test our claims, we propose SpeedRunner, a coding agent that analyzes trajectories and refactors skills for better performance on future tasks. Across three different embodied environments, we show that SpeedRunner consistently achieves the frontier in learning and cost reduction while remaining robust against distribution shifts and environmental randomness.