TL;DR
Reinforcement learning (RL) agents often fail when faced with massive discrete action spaces, such as choosing inventory levels for thousands of different items. This paper introduces Dynamic Neighborhood Construction (DNC), a method that maps continuous actions to discrete ones by smartly searching local neighborhoods on the fly rather than memorizing the entire action space. DNC allows RL to scale to mind-bogglingly large structured action spaces (up to $10^{73}$ actions) while using a tiny fraction of the memory required by existing methods.
Introduction: The Challenge of Large Discrete Action Spaces
In Deep Reinforcement Learning (DRL), handling large state spaces is largely a solved problem, but large discrete action spaces (LDAS) remain a massive headache. Standard algorithms like DQN or PPO require an output node for every possible action. If you're controlling a robot with a few joints, that's fine. But in real-world combinatorial problems—like managing inventory for 40 different items or scheduling jobs across machines—the number of possible actions explodes into the billions or trillions.
Current state-of-the-art methods try to solve this by learning embeddings or mapping continuous outputs to discrete actions. However, they usually require defining and storing the entire action space in memory as a matrix. This hard-caps their scalability at a few million actions.
The authors note a saving grace: many of these massive action spaces are structured (e.g., equally spaced units of inventory, or a grid of coordinates). The challenge is how to exploit this underlying structure to bypass the need to enumerate and store every single action.
The Solution: Dynamic Neighborhood Construction (DNC)
The authors build on a standard actor-critic framework but introduce a novel continuous-to-discrete mapping pipeline called Dynamic Neighborhood Construction (DNC).
- The Standard Part: The actor network outputs a continuous proxy action.
- The Novel Part (DNC): Instead of looking up the nearest discrete action from a massive pre-saved list (like k-Nearest Neighbors approaches do), DNC dynamically builds a local neighborhood mathematically.
- It rounds the continuous proxy action to a discrete "base" action.
- It generates a set of neighboring discrete actions by slightly perturbing the base action's vector.
- It evaluates these neighbors using the critic network's Q-values.
- To avoid getting stuck in local optima, it uses a Simulated Annealing (SA) search. It iteratively explores new neighborhoods, occasionally accepting "worse" actions early in the search, to eventually find the discrete action that maximizes the Q-value.
By generating neighbors on the fly, DNC completely eliminates the need to store the action space in memory.
Experimental Evaluation
The authors evaluate their method across three simulated environments:
- Maze Navigation: A standard benchmark where an agent uses $N$ actuators to move. They also introduce a variant with a "teleporting tile" to test how algorithms handle sharp, non-linear jumps in rewards. (Action space: up to $2^{20}$).
- Joint Inventory Replenishment: A real-world logistics simulation where a retailer manages order-up-to levels for $N$ items with joint ordering costs. (Action space: up to $67^{40} \approx 10^{73}$).
- Job-Shop Scheduling: Allocating 500 jobs across 5 heterogeneous machines while balancing load and energy consumption. (Action space: $100^5 = 10^{10}$).
Key Insights and Results
- Structure is a cheat code for scale: By assuming the action space is a regular grid (e.g., 1, 2, or 3 items), you don't need to memorize the space. You can just use math to find neighbors. This shifts the bottleneck from memory constraints to local search computation.
- Simulated Annealing bridges the gap: Just picking the absolute closest discrete action (simple rounding) fails when the reward landscape is bumpy. SA allows the agent to "wiggle" around the continuous proxy action to find a much better discrete action nearby, smoothing out non-linear Q-value distributions.
- Unprecedented Scalability: DNC successfully learned performant policies in action spaces up to $10^{73}$ (the 40-item inventory problem).
- Massive Memory Savings: For the job-shop problem ($10^{10}$ actions), baseline methods like kNN and Learned Action Representations (LAR) required ~373 GB of RAM and crashed. DNC required only 73 MB of RAM.
- Superior Performance: In complex environments with non-linear rewards (like the teleporting maze or joint inventory), simple rounding methods (MinMax) got stuck in local optima. DNC matched or outperformed all baselines, converging to higher rewards more stably.
- Fast Execution: Despite the SA search, DNC's step time during testing remained in the milliseconds, making it highly viable for real-time decision-making.
Limitations and Future Directions
Limitations: The method strictly requires the action space to be structured (representable as a regular grid or tessellation). It will not work for purely categorical, unstructured action spaces (e.g., choosing between "apple", "banana", and "car"). Additionally, the Simulated Annealing search adds some computational overhead during training compared to simple rounding techniques.
Future Work: The authors suggest exploring alternative neighborhood operators, finding ways to efficiently handle infeasible actions or constraints within the search, and potentially using Graph Neural Networks (GNNs) to evaluate neighborhoods even faster.
Summary updated