Learning Human-Like RL Agents Through Trajectory Optimization With Action Quantization
Jian-Ting Guo, Yu-Cheng Chen, Ping-Chun Hsieh, Kuo-Hao Ho, Po-Wei Huang, Ti-Rong Wu, I-Chen Wu
TL;DR
This work reframes human-like reinforcement learning as trajectory optimization guided by human demonstrations. It introduces Macro Action Quantization (MAQ), which distills offline human data into a discrete codebook of macro actions via a Conditional-VQVAE and integrates this with receding-horizon control to constrain planning to human-like segments. By replacing primitive actions with macro-action indices, MAQ enables efficient long-horizon planning and demonstrably improves trajectory similarity and perceived human-likeness across multiple Adroit tasks and RL algorithms, including through a human Turing-like evaluation. The results suggest MAQ’s potential to produce more natural, trustworthy AI agents while remaining broadly compatible with existing RL methods. In short, MAQ provides a practical pathway to human-like behavior in RL by linking offline human patterns to online planning through a compact, discrete action representation.
Abstract
Human-like agents have long been one of the goals in pursuing artificial intelligence. Although reinforcement learning (RL) has achieved superhuman performance in many domains, relatively little attention has been focused on designing human-like RL agents. As a result, many reward-driven RL agents often exhibit unnatural behaviors compared to humans, raising concerns for both interpretability and trustworthiness. To achieve human-like behavior in RL, this paper first formulates human-likeness as trajectory optimization, where the objective is to find an action sequence that closely aligns with human behavior while also maximizing rewards, and adapts the classic receding-horizon control to human-like learning as a tractable and efficient implementation. To achieve this, we introduce Macro Action Quantization (MAQ), a human-like RL framework that distills human demonstrations into macro actions via Vector-Quantized VAE. Experiments on D4RL Adroit benchmarks show that MAQ significantly improves human-likeness, increasing trajectory similarity scores, and achieving the highest human-likeness rankings among all RL agents in the human evaluation study. Our results also demonstrate that MAQ can be easily integrated into various off-the-shelf RL algorithms, opening a promising direction for learning human-like RL agents. Our code is available at https://rlg.iis.sinica.edu.tw/papers/MAQ.
