Abstract
Effective Human-Robot Collaboration (HRC) requires robots to adapt to the non-stationary nature of human behavior. Traditional reinforcement learning approaches often fail when human strategies shift over time. We present BeTrans (Behaviour-Transform), a meta-learning framework that leverages a transformer-based architecture to infer hidden human intent from interaction history. By conditioning the robot's policy on these inferred latent states, BeTrans enables real-time adaptation. Our results in a collaborative simulation environment demonstrate that BeTrans outperforms existing state-of-the-art methods in convergence speed and robustness, particularly in complex scenarios with long-term dependencies.
1. Introduction
In the field of Human-Robot Collaboration (HRC), the human partner is a critical, albeit unpredictable, component of the robot's environment. Unlike static obstacles or fixed environmental parameters, humans are inherently non-stationary. They change their minds, develop new habits, react to the robot’s actions, and exhibit various behavioral "modes."
Standard Reinforcement Learning (RL) typically operates under the assumption of a stationary Markov Decision Process (MDP), where transition functions remain constant. When a human partner changes their strategy, the underlying "rules" of the interaction shift, often leading to a significant degradation in the performance of traditional RL agents. To address this, a robot must be capable of identifying a human’s current behavioral "latent state"—their unobserved intent or strategy—and adapting its actions instantaneously, even if those changes occur mid-task.
2. Methodology
The proposed framework, BeTrans, treats the collaboration challenge as a zero-shot meta-learning problem. The architecture is designed to capture the nuances of human behavior through a sophisticated temporal processing unit.
2.1 The Transformer Core
At the heart of BeTrans is a transformer architecture based on GPT-2. Unlike standard Feed-Forward or Recurrent Neural Networks (RNNs), which often struggle with long-term dependencies or vanishing gradients, the transformer utilizes self-attention mechanisms to process a "look-back" window. In this implementation, the agent analyzes the last 25 timesteps of interaction history, including states, actions, and rewards.
2.2 Latent State Inference and Conditioned RL
The transformer maps the interaction history into a latent variable ($v$), which serves as a compact representation of the human’s current behavioral style. The robot’s policy is trained using Soft Actor-Critic (SAC), conditioned on this inferred latent state. This conditioning allows the robot to move beyond simple reactive behavior; instead, it acts based on a prediction of the human’s underlying strategy.
2.3 Training Regime
BeTrans employs a two-phase training process:
- Pre-training: The model learns the underlying structure of the interaction data.
- Fine-tuning: A Dynamics Network (DN) is introduced to predict future states and rewards, which sharpens the latent representations and improves the policy's accuracy.
3. Experimental Setup
The framework was evaluated using a custom simulation platform titled "co-pass."
3.1 The Co-pass Task
The task involves a collaborative virtual ball-hitting game, similar to Pong. A robot and a human agent must pass a ball back and forth to accumulate points. The environment allows for precise tuning of reward sparsity (ball travel time) and task difficulty (number of target locations).
3.2 Simulated Human Models
To provide a robust training ground, the researchers developed probabilistic human models with three distinct behavioral layers:
- Time-invariant biases: Consistent individual traits.
- Low-frequency changes: Strategy shifts between episodes.
- High-frequency changes: Immediate reactions to the previous hit.
4. Key Insights and Results
4.1 Transformer Superiority
The study confirmed that transformers are significantly more effective than RNNs at capturing long-term historical dependencies. This is particularly vital in HRC, where a human's current action may be rooted in an event that occurred many steps prior. In scenarios where human behavior depended on the previous 10 episodes, the performance gap between BeTrans and baseline methods (such as LILI and RNN-LILI) widened significantly.
4.2 The Benefit of Discretization
A notable finding was the impact of discrete latent variables. By using Gumbel-Softmax to create a discrete "bottleneck," the RL policy learned 24–46% faster than when using continuous variables. This discretization acts as a regularizer, preventing the robot from over-fitting to stochastic noise in human movements and focusing instead on meaningful behavioral shifts.
4.3 Performance and Robustness
BeTrans demonstrated "Oracle-level" performance, approaching the efficiency of a hypothetical agent with perfect knowledge of the human's internal state. Furthermore, the system showed high robustness to observation noise and the ability to adapt to behavioral shifts within a single episode, a feat that many previous models fail to achieve.
5. Conclusion and Future Work
BeTrans represents a significant step forward in creating adaptive robotic partners. However, several challenges remain. The current model assumes human behavior is Markovian and predictable given sufficient history, which simplifies the complexities of human psychology. Additionally, the "co-pass" environment uses deterministic physics.
Future research will focus on bridging the "sim-to-real" gap by validating BeTrans with real human participants and physical robotic systems, as well as accounting for the noisy dynamics of real-world physical interactions.
Summary updated