Reinforcement learning (RL) in continuous action spaces is notoriously difficult, whereas discrete-action RL is generally more stable and sample-efficient. This paper introduces AQuaDem (Action Quantization from Demonstrations), a framework that uses human demonstrations to intelligently discretize continuous action spaces into a small set of state-dependent candidate actions. This allows powerful discrete-action algorithms (like DQN) to solve complex, high-dimensional continuous control tasks—like robotic manipulation—while significantly outperforming standard continuous methods.
The Challenge of Continuous Control
In Reinforcement Learning, environments generally fall into two categories: discrete action spaces (e.g., "move up," "move down") and continuous action spaces (e.g., "apply 0.43 Nm of torque to joint 3").
Discrete RL algorithms (like Q-learning or DQN) are highly effective because finding the best action simply means checking a small list of options to find the exact maximum value. Continuous RL algorithms (like SAC or DDPG) have to approximate this maximum, which requires more data and is harder to tune.
A natural workaround is to chop a continuous space into a discrete grid. However, this suffers from the curse of dimensionality. If a robotic hand has 24 joints, and you only allow 2 options per joint (min or max), you end up with $2^{24}$ (over 16 million) possible actions. The authors tackle this by asking: How can we discretize a high-dimensional continuous action space into a tiny, manageable number of useful actions without losing the ability to solve the task?
The AQuaDem Framework
The authors propose a two-step framework to bridge the gap between continuous environments and discrete algorithms:
- Offline Action Quantization (AQuaDem): Instead of a uniform grid, the authors use human demonstrations to learn a smart, state-dependent discretization. They train a neural network that takes the current state as input and outputs $K$ candidate actions (where $K$ is small, e.g., 10 to 30). Crucially, they train this network using a soft-minimum loss governed by a temperature parameter. Instead of forcing the network to output the average of what a human did, this loss only penalizes the network if none of its $K$ candidates are close to the human's action.
- Online Discrete RL: Once the action space is quantized, the continuous environment is effectively transformed into a discrete one with $K$ choices. The authors then apply standard discrete RL algorithms—like Munchausen DQN for reward-based tasks, or GAIL for Imitation Learning—to learn the final policy.
Key Insights
Beating the Curse of Dimensionality: By anchoring the discretization to human priors, the number of discrete actions ($K$) only needs to scale with the multimodality of the behavior, not the raw dimensionality of the robot. Just 10 to 30 actions were enough to control a 24-joint robotic hand.
Embracing Multimodality: Human data is messy. Faced with an obstacle, a human might go left or right. Standard Behavioral Cloning averages these choices, causing the robot to crash straight into the obstacle. AQuaDem's soft-minimum loss naturally captures these diverging, valid choices as distinct action candidates.
Safe, Focused Exploration: Discretizing based on demonstrations acts as a massive behavioral filter. It restricts the agent from flailing randomly in hazardous or useless parts of the action space, drastically speeding up the exploration phase of RL.
Experimental Results
The framework was rigorously tested across several challenging datasets, including the Adroit Manipulation Suite (a 24-DOF simulated robotic hand), Robodesk (unstructured human "play" data on a Franka Panda robot), and D4RL (standard locomotion datasets).
- RL with Demonstrations (Adroit): The proposed agent (AQuaDQN) achieved near 100% success rates on complex tasks like opening a door, hammering a nail, and twirling a pen. It vastly outperformed state-of-the-art continuous methods like SAC and SACfD (SAC from Demonstrations) in both sample efficiency and final performance.
- Imitation Learning (Adroit): When no environmental rewards were provided, AQuaGAIL matched human success rates and achieved a much closer behavioral match to the human experts (measured by Wasserstein distance) compared to standard GAIL, Behavioral Cloning, or Mixture Density Networks.
- RL with Play Data (Robodesk): Using unstructured play data to form the action space, AQuaPlay consistently outperformed SAC and naive "bang-bang" (uniform grid) discretizations across all 9 tasks.
Limitations and Future Directions
While highly effective, AQuaDem does have limitations. Because the action space is restricted to what the human demonstrator deemed "plausible," the agent might be physically unable to discover a novel, mathematically optimal policy if it falls completely outside the human's prior. Additionally, the temperature parameter $T$, which controls how "hard" or "soft" the minimum loss is, requires careful tuning.
Looking forward, because AQuaDem successfully converts continuous problems into discrete ones, it opens the door to applying powerful discrete-only techniques to robotics, such as Monte Carlo Tree Search (MCTS) or count-based exploration. Its high sample efficiency also makes it a strong candidate for training physical robots in the real world.
Summary updated