匹配人類行為之強化學習
Matching Human's Behavior in Reinforcement Learning
摘要
Despite significant advancements in deep reinforcement learning (DRL), DRL agents frequently exhibit behaviors that are unnatural compared to those of humans, which can detract from the immersive experience for human players. To address the challenge of achieving human-like behavior, we propose a novel framework called Macro Action Quantization (MAQ). This framework is designed to mimic human actions while simultaneously achieving competitive total rewards. The motivation behindMAQ stems from the observation that human behavior is often encapsulated in sequences of actions. MAQ enhances human-likeness by learning to extract macro actions from offline human demonstrations, which capture the essential skills of human players. These macro actions are then utilized in subsequent online RL tasks. To implement the MAQ framework, we adapt the Vector Quantized Variational AutoEncoder (VQVAE) to quantize these human-like macro actions into a discrete codebook. A human-like macro action policy is then trained based on this codebook under appropriate behavior regularization. To evaluate the human-likeness of trajectories generated by RL agents, we propose using a trajectory similarity metric based on dynamic time warping (DTW), which calculates the similarities between the trajectories of agents and humans. We conduct experiments across various domains, including Atari games and robot arm manipulation tasks. The results show that MAQ not only delivers superior reward performance but also enhances human-likeness, outperforming other benchmark methods. Additionally, our empirical observations reveal several interesting phenomena related to human-likeness in reinforcement learning.
儘管深度強化學習(DRL)取得了顯著進展,但深度強化學習代理經常表現出不自然的行為,與人類不同,這會削弱人類玩家的沉浸式體驗。為了解決人類相似性問題,我們提出了一個名為宏動作量化(MAQ)的新框架,該框架可以模仿人類行為,同時實現具有競爭力的總回報。基於人類行為通常封裝在動作序列中的事實,MAQ 通過學習從離線人類演示中提取一組宏動作來實現人類相似性,這些宏動作捕捉了人類玩家的基本技能,隨後用於下游的在線強化學習任務。為了證實MAQ 框架,我們改編了向量量化變分自編碼器(VQVAE)來將這些類人宏動作量化為離散的碼本,並在適當的行為正則化下基於此碼本訓練類人宏動作策略。為了衡量強化學習代理軌跡的類人性,我們提出使用基於動態時間規整的軌跡相似性指標來計算代理與人類軌跡之間的相似性。我們在各種領域進行了實驗,包括Atari 遊戲和機器人手臂操作任務,結果表明MAQ 同時實現了卓越的回報表現和增強的人類相似性,超越了其他基準方法。最後,基於我們的實驗觀察,我們還發現了多個與強化學習中的人類相似性相關的有趣現象。