cs.ROOct 29, 2026

Teaching a Tree to Recover: Online Distillation of an LLM Supervisor with Counterfactual Replay

Authors: Kristian Ceder, Kilian Freitag, Knut Åkesson

Organizations: Department of Electrical Engineering, Chalmers University of Technology, Sweden

Abstract

Autonomous mobile robots commonly pair a global planner with a local model predictive controller (MPC), but nonconvex obstacle avoidance and a limited horizon can make the robot freeze in complex layouts. Deciding whether to replan, wait, or call for help is a supervisory decision. Recent work queries a large language model (LLM) supervisor on every anomaly, which is slow and costly. We instead distill the LLM online into a decision tree. After each training episode, counterfactual replay labels recoveries as needed, unnecessary, or harmful. These labels retire unhelpful rules. In simulation, on 20 unseen layouts where the MPC alone freezes, the tree handles at least 18 correctly across all seeds, either by reaching the goal or by calling for help when no feasible path exists. The tree matches both an always-query LLM supervisor and expert-designed rules, while issuing no LLM queries at test time. Handwritten rules cannot anticipate the long tail of situations a physical robot will encounter. Online distillation is a promising remedy: the tree handles familiar cases, and the LLM is consulted only for new ones, whose validated recoveries become new rules. Language models can thus also serve as designers of supervisors rather than only as runtime supervisors.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AHEAD: Adaptive Hindsight with Environment-Augmented Distillation for Agentic RL

    Aug 25, 2026Xiaolong Jin, Dingmin Wang, Vijay Lingam +1RL for LLM AgentsLLM-Guided RL

  2. BT-Agent: Deploying Onboard Robot Agents with Behavior Trees and Multi-Fidelity Evaluation

    Oct 9, 2026Fabio Hübel, Adam Lilja, Yue Yin +5Large Language Model-Based Robot PlanningMobile Robotics

  3. A Tutorial on Autonomous Fault-Tolerant Control Using Knowledge-Grounded LLM Agents

    Jun 30, 2026Javal Vyas, Milapji Singh Gill, Artan Markaj +2Language Model-Based ControlFault-Tolerant Control