Where to Intervene: Action Selection in Deep Reinforcement Learning

Wenbo Zhang, Hengrui Cai

Abstract

Deep Reinforcement Learning (RL) often struggles in real-world environments characterized by massive, redundant action spaces. This paper introduces a data-driven "Knockoff Sampling" (KS) method that automatically identifies and masks out irrelevant actions during online training while controlling for false discoveries. By focusing the agent on a minimal sufficient set of actions, the approach significantly improves sample efficiency and cumulative reward without requiring prior domain expertise.

The Challenge of High-Dimensional Action Spaces

While Deep RL has achieved remarkable success in games and basic robotics, real-world applications—such as precision medicine or complex muscle-driven robotics—feature "high-dimensional action spaces." In these settings, an agent may have hundreds of possible actions, many of which are redundant, ineffective, or irrelevant to the goal.

Training an RL agent to explore these useless actions wastes substantial computation and data. Conventional solutions often rely on human experts to manually prune action spaces or utilize computationally intensive offline models. This research addresses the challenge of identifying critical actions on the fly, directly from data, without disrupting the RL training loop.

Knockoff Sampling for Online Action Selection

The authors propose a framework that integrates variable selection directly into online RL training through several key innovations:

  1. Knockoff Sampling (KS): Adapting the "model-X knockoff" statistical framework, the method identifies important variables while strictly controlling the False Discovery Rate (FDR). This ensures the algorithm does not accidentally flag useless actions as essential.
  2. The "Free" Knockoff Trick: Generating "knockoff" data—fake data that mimics real correlations without affecting outcomes—is typically the most difficult part of knockoff methods. The authors observe that in online RL, the agent's policy network already models the action distribution. They simply resample actions from the current policy to create perfect knockoffs, bypassing significant computational hurdles.
  3. Handling Time-Dependent Data: To account for the sequential nature of RL data, the authors employ sample splitting and majority voting across trajectory chunks, maintaining statistical guarantees.
  4. Binary Hard Masking: Once the minimal sufficient action set is identified, a binary mask is applied to the Q-function and policy network. This immediately blocks the influence of redundant actions, forcing the agent to optimize only the relevant ones.
Average reward comparison on MuJoCo tasks showing Knockoff Sampling (KS) performance relative to true and all actions.

Experimental Performance and Efficiency

The method was evaluated on semi-synthetic MuJoCo environments (Ant, HalfCheetah, Hopper) with artificially bloated action spaces, and a real-world medical environment (MIMIC-III) for sepsis treatment.

  • Near-Optimal Performance: In MuJoCo tasks, PPO and SAC algorithms guided by KS achieved rewards comparable to agents trained exclusively on ground-truth essential actions. They significantly outperformed baselines forced to explore dozens of dummy actions.
  • Medical Accuracy: In the sepsis environment, KS successfully identified critical treatments (e.g., vasopressors, IV fluids) while ignoring irrelevant distractors. It outperformed advanced latent exploration baselines like Lattice and gSDE, which suffered from over-exploration.
  • Computational Efficiency: The action selection process is remarkably fast, taking under 20 seconds using lightweight algorithms like LASSO. The overhead added to the RL training loop is negligible.
Performance on Ant-v4 for PPO and SAC algorithms, comparing KS against true actions and standard variable selection (VS).

Discussion and Future Directions

A key insight of this work is that dropping redundant actions reduces variance without adding bias. Because these actions are conditionally independent of rewards and state transitions, removing them shrinks the hypothesis space, accelerating learning.

However, the current implementation uses a "one-shot" intervention at a predefined training step. If an essential action has a weak signal early on, it might be permanently masked. Future work could explore multi-stage or adaptive selection processes, allowing the agent to periodically re-evaluate masked actions as environment dynamics evolve or signals become clearer.

Summary updated

BibTeX
@article{zhang2025where,
  author = {Wenbo Zhang and Hengrui Cai},
  title = {{Where to Intervene: Action Selection in Deep Reinforcement Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure