SCALAR: Learning and Composing Skills through LLM Guided Symbolic Planning and Deep RL Grounding
Organizations: School of Computer Science, Carnegie Mellon University · Department of Mechanical Engineering, Virginia Tech
Abstract
LM-based agents excel when given high-level action APIs but struggle to ground language into low-level control. Prior work has LLMs generate skills or reward functions for RL, but these one-shot approaches lack feedback to correct specification errors. We introduce SCALAR, a bidirectional framework coupling LLM planning with RL through a learned skill library. The LLM proposes skills with preconditions and effects; RL trains policies for each skill and feeds back execution results to iteratively refine specifications, improving robustness to initial errors. Pivotal Trajectory Analysis corrects LLM priors by analyzing RL trajectories; Frontier Checkpointing optionally saves environment states at skill boundaries to improve sample efficiency. On Craftax, SCALAR achieves 88.2% diamond collection, a 1.9x improvement over the best baseline, and reaches the Gnomish Mines 9.1% of the time where prior methods fail entirely.
Figures & tables
| Craftax-Classic (%) | Craftax (%) | ||||
| Method | Eat Plant | Collect Diamond | Enter Dungeon | Unlock Gnomish Ladder | Enter Gnomish Mines |
| Baselines | |||||
| PPO-FC | 23.9 | 35.4 | 86.6 | 1.8 | 0.0 |
| PPO-RND | 21.9 | 34.5 | 87.4 | 1.9 | 0.0 |
| PPO-RNN | 0.0 | 40.9 | 89.7 | 0.0 | 0.0 |
| PPO-TRXL | 0.0 | 31.5 | 96.5 | 0.4 | 0.0 |
| Modification | PPO | Scalar | + Traj. |
|---|---|---|---|
| Baseline | 34.8 | 88.1 | 88.1 |
| Iron Pick (2 Iron) | 5.1 | 5.4 | 86.1 |
| Iron Pick (2 Wood) | 14.8 | 61.0 | 81.8 |
| Iron Sword (3 Iron) | 3.1 | 88.1 | 87.0 |
| Table (3 Wood) | 32.8 | 0.7 | 86.7 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | PPO-FC/RNN/RND | PPO-TRXL |
| Learning rate | ||
| Discount factor ( ) | 0.99 | 0.999 |
| GAE lambda ( ) | 0.8 | 0.8 |
| Clip coefficient ( ) | 0.2 | 0.2 |
| Entropy coefficient | 0.01 | 0.002 |
| Value function coefficient | 0.5 | 0.5 |
| Hyperparameter | PQN-FC | PQN-RNN |
|---|---|---|
| Learning rate | ||
| Discount factor ( ) | 0.99 | 0.99 |
| TD-lambda ( ) | 0.0 | 0.5 |
| -greedy (start end) | ||
| Maximum gradient norm | 1.0 | 0.5 |
| Update epochs | 1 | 4 |
LLM-Guided RL
Large language model-guided reinforcement learning uses language models to shape rewards, exploration, planning, and policy learning.
See all 140 papers