NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LAPP: Large Language Model Feedback for Preference-Driven Reinforcement Learning

Pingcheng Jian, Xiao Wei, Yanbaihui Liu, Samuel A. Moore, Michael M. Zavlanos, Boyuan Chen

Abstract

We introduce Large Language Model-Assisted Preference Prediction (LAPP), a novel framework for robot learning that enables efficient, customizable, and expressive behavior acquisition with minimum human effort. Unlike prior approaches that rely heavily on reward engineering, human demonstrations, motion capture, or expensive pairwise preference labels, LAPP leverages large language models (LLMs) to automatically generate preference labels from raw state-action trajectories collected during reinforcement learning (RL). These labels are used to train an online preference predictor, which in turn guides the policy optimization process toward satisfying high-level behavioral specifications provided by humans. Our key technical contribution is the integration of LLMs into the RL feedback loop through trajectory-level preference prediction, enabling robots to acquire complex skills including subtle control over gait patterns and rhythmic timing. We evaluate LAPP on a diverse set of quadruped locomotion and dexterous manipulation tasks and show that it achieves efficient learning, higher final performance, faster adaptation, and precise control of high-level behaviors. Notably, LAPP enables robots to master highly dynamic and expressive tasks such as quadruped backflips, which remain out of reach for standard LLM-generated or handcrafted rewards. Our results highlight LAPP as a promising direction for scalable preference-driven robot learning.

Introduction: Solving the "Reward Problem"

Reinforcement Learning (RL) is a powerful tool for robot control, but it faces a significant bottleneck: the "reward problem." Designing mathematical reward functions that capture nuanced behaviors, such as walking naturally or performing a graceful flip, is notoriously difficult. Simple rewards often lead to degenerate "exploits," while complex ones are nearly impossible to tune.

LAPP enables robots to master complex tasks across large action spaces and challenging environments, achieving significant performance gains.

While Reinforcement Learning from Human Feedback (RLHF) offers a solution by allowing humans to rank behaviors, it is slow and expensive. Recent attempts to use Large Language Models (LLMs) to generate reward code often produce static functions that fail to capture temporal patterns. We introduce Large Language Model-Assisted Preference Prediction (LAPP), a framework where the LLM acts not as a coder, but as an adaptive "judge" providing continuous, trajectory-level feedback.

The LAPP Framework

LAPP introduces a closed-loop system that integrates LLMs into the RL feedback loop through trajectory-level preference prediction. This approach avoids the computational expense of vision-language models by having the LLM reason over structured numerical logs of state-action trajectories.

The LAPP architecture: LLMs provide preference labels on trajectory pairs, which train a Transformer Reward Predictor to guide Reinforcement Learning.

The system operates in three main stages:

  1. Behavior Instruction: The LLM receives numerical logs (e.g., joint angles, velocities) and compares pairs of trajectories based on a high-level goal, such as "walk with a bounding gait."
  2. Preference Predictor Training: These LLM-generated labels train an ensemble of Transformer-based reward models. Unlike standard Markovian rewards, these models analyze a history of states, which is essential for capturing the temporal dependencies and "rhythm" of tasks like walking or flipping.
  3. Online Reinforcement Learning: The robot trains using a combination of environment rewards and the "preference reward" from the Transformer. This online process allows the LLM to become increasingly "picky" as the robot's performance improves, evolving the standards for success dynamically.

Key Results and Insights

LAPP was evaluated on high-degree-of-freedom (DoF) benchmarks, including quadruped locomotion (Unitree Go2) and dexterous manipulation (52-DoF Shadow Hands).

  • Mastering the Backflip: LAPP successfully trained a robot to perform a full 360-degree backflip and land on its feet—a task where traditional baselines like PPO and LLM-generated reward code (Eureka) failed, only achieving partial rotation.
  • Efficiency and Cost: LAPP converged faster and achieved higher performance in 6 out of 8 tasks compared to state-of-the-art baselines. By using efficient models like GPT-4o-mini, the cost of training a complex policy was reduced to approximately $3.00.
  • Nuanced Control: Researchers could precisely control high-level attributes, such as switching between "trotting" and "bounding" gaits or adjusting cadence, simply by changing the text prompt.
  • Sim-to-Real Transfer: Policies developed in simulation were successfully deployed on physical hardware, demonstrating robustness in real-world environments like stairs and obstacles.

Limitations and Future Work

While LAPP is highly effective, it currently relies on frequent LLM API calls and manually curated state variables. Future work will focus on reducing query frequency through batching and automating state selection. Additionally, integrating visual observations would allow the framework to handle more complex, reactive tasks in unstructured environments.

Summary updated

BibTeX
@article{jian2025lapp,
  author = {Pingcheng Jian and Xiao Wei and Yanbaihui Liu and Samuel A. Moore and Michael M. Zavlanos and Boyuan Chen},
  title = {{LAPP: Large Language Model Feedback for Preference-Driven Reinforcement Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=cq76wx7T9F},
}
Figure