Introduction
Reinforcement learning (RL) agents often struggle when faced with thousands of discrete choices, as they typically treat each action as completely independent. While modern RL frequently uses representations (like convolutional neural networks) to help agents generalize across massive state spaces, the action space is usually treated as a flat, discrete list.
If an agent has 2,000 possible actions—such as recommending one of 2,000 different tutorial videos—standard RL algorithms must learn the value of each action mostly from scratch. In reality, discrete actions often have underlying structure; for example, recommending a "Brush Tool" tutorial is functionally similar to recommending a "Pencil Tool" tutorial. While previous work has explored using action embeddings to exploit this structure, those embeddings usually had to be hand-crafted or provided a priori.
This paper introduces a method to autonomously learn low-dimensional, continuous representations (embeddings) for large discrete action spaces directly from the agent's interactions with the environment, drastically speeding up learning in massive real-world domains.
The PG-RA Architecture
The authors propose decomposing the agent's overall policy ($\pi_o$) into two distinct components:
- An Internal Policy ($\pi_i$): A standard continuous-action RL policy that outputs a low-dimensional continuous vector (the action representation/embedding).
- A Mapping Function ($f$): A deterministic function that maps this continuous embedding to an actual discrete action in the environment.
To train this system, the authors introduce the PG-RA (Policy Gradient with Representations for Actions) algorithm, which uses a clever two-pronged learning approach:
- Supervised Learning for the Representation ($f$): The mapping function $f$ is trained using supervised learning to predict which discrete action caused a specific state transition ($S_t \to S_{t+1}$). Because this relies only on observed transitions and not on reward signals, it learns quickly and is highly robust to sparse rewards.
- Reinforcement Learning for the Policy ($\pi_i$): The internal policy is trained using standard continuous policy gradient methods (like Actor-Critic or DPG).
Crucially, the authors provide mathematical proofs showing that updating the internal policy ($\pi_i$) using its own policy gradient is mathematically equivalent to updating the overall discrete policy ($\pi_o$). They also provide a three-timescale proof guaranteeing the convergence of the PG-RA algorithm.
Key Insights
- Supervised learning bypasses sparse rewards: By framing the learning of the action space structure as a supervised task (predicting the action from the state transition), the agent extracts useful structure from every step it takes, even if the environment's reward signal is sparse or stochastic.
- Implicit generalization: Once the embedding space is learned, updating the policy for one action automatically updates the policy for other actions that are embedded nearby. This prevents the agent from having to exhaustively explore thousands of discrete actions.
- Drop-in compatibility: Because the internal policy simply outputs a continuous vector, PG-RA can act as a drop-in extension for virtually any existing continuous policy gradient algorithm (e.g., DDPG, PPO), allowing them to operate efficiently in massive discrete action spaces.
Experimental Results and Real-World Impact
The authors evaluated their method on one synthetic domain (a Maze navigation task) and two large-scale, real-world datasets: a Web-based Video-Tutorial Platform (1,498 discrete actions) and Professional Multi-Media Editing Software (1,843 discrete actions).
Robustness and Meaningful Embeddings
In the Maze domain, the agent has $n$ binary actuators, creating an exponentially large discrete action space. Standard Actor-Critic (AC) completely failed as the action space scaled to $2^{12}$ (4,096) actions. In contrast, AC augmented with PG-RA maintained near-optimal performance regardless of the action space size.
Visualizations of the learned embeddings in the Maze domain showed that the algorithm successfully reconstructed the underlying geometric physics of the actuators. It mapped actions that cause similar physical displacements close together in the embedding space, entirely without being given any prior knowledge of the maze's physics.
Real-World Performance
On the massive Adobe tutorial and software recommendation datasets, PG-RA achieved up to 2x and 3x higher returns, respectively, compared to standard Actor-Critic and Deterministic Policy Gradient baselines. It also converged significantly faster, proving its viability for large-scale commercial recommender systems.
Limitations and Future Work
The theoretical framework relies on the assumption that the transition from $S_t$ to $S_{t+1}$ contains enough information to infer the action that was taken. In highly stochastic environments, or environments where many actions produce the exact same state transition, learning $f$ via supervised learning might struggle.
For future work, the authors note that they used standard, slightly biased policy gradient updates for sample efficiency. They suggest that combining this representation-learning module with more advanced, state-of-the-art policy gradient methods could push performance even further.
Summary updated