Forward-Sampled Action Selection in RL
- Forward-sampled action selection is a family of reinforcement learning techniques that generate and refine action samples in a forward pass for immediate decision making.
- These methods filter actions using value estimates, density corrections, local search, or statistical criteria to effectively balance exploration and exploitation.
- They are applied across various settings such as continuous Q-learning, bounded SAC, and online planning, improving performance and stability in high-dimensional control tasks.
Forward-sampled action selection denotes a family of reinforcement-learning and planning procedures in which the decision mechanism uses samples generated in the forward pass itself to determine what action is executed, recommended, or further refined. Across the cited literature, the sampled object varies: a candidate action can be accepted or rejected according to an approximate value function, a stochastic-policy sample can be locally refined before environment interaction, a bounded-action policy can select the mode of its post-transform density rather than the transformed Gaussian mean, the available action set can itself be a random variable, and online planners can sample heuristic values or future action sequences to decide what to expand next (Kumar et al., 2021, Chang et al., 2024, Chen et al., 2024, Boutilier et al., 2018, Bonet et al., 2019, Hay et al., 2014, Zhang et al., 5 Jul 2025).
1. Conceptual frame and recurrent design pattern
The surveyed literature suggests a common operational template. First, some object relevant to control is sampled in the forward decision process: a feasible action, a perturbation around a policy sample, a post-squash action density, a realized action subset, a rollout-based heuristic, or a knockoff copy of the action vector. Second, that sampled object is filtered by a value estimate, a density correction, a local search rule, an availability constraint, or a statistical selection criterion. Third, the resulting decision is used immediately for environment interaction or for current-step planning, rather than being treated only as offline analysis.
| Setting | Sampled object | Decision mechanism |
|---|---|---|
| Continuous-action Q-learning | Candidate action | Accept-reject via |
| Policy optimization with ESA | Policy sample | Local ESC refinement before execution |
| Bounded-action SAC | Post-squash action grid | Select mode of transformed density |
| SAS-MDPs | Realized action set | Choose best available action |
| Anytime planning | Sampled heuristics / rollouts | Expand IN or OUT tip nodes |
| Knockoff action selection | Action and knockoff copies | Threshold anti-symmetric statistics |
A recurring distinction is between sampling as undirected exploration noise and sampling as a decision rule. QIS explicitly uses the approximate Q-function to define the sampling policy itself rather than an externally imposed -greedy schedule; ESA does not execute the raw stochastic action, but refines it before execution; the SAC correction argues that need not be the most probable bounded action; SAS-MDPs require action choice to condition on the realized available set; and metalevel planning methods treat simulation selection as a decision problem in its own right (Kumar et al., 2021, Chang et al., 2024, Chen et al., 2024, Boutilier et al., 2018, Hay et al., 2014).
2. Value-shaped accept-reject sampling in continuous action spaces
In "Importance Sampling based Exploration in Q Learning" (Kumar et al., 2021), forward-sampled action selection is implemented as a behavior policy for continuous-action Q-learning. The state-action value function is approximated by a parametric model,
with temporal-difference updates of the form
The paper’s novel step is to use the current approximation not only for backup targets but also for action generation.
The proposed method, Q-learning Importance Sampling (QIS), draws a proposed action from a simple proposal over the feasible action set, evaluates , and accepts the proposal according to
0
followed by acceptance if
1
Because the problem is formulated as a minimization problem, smaller 2 values have higher acceptance probability. If 3 is near the current best value 4, then 5 is near 6; if it is near 7, acceptance becomes unlikely. The paper emphasizes that no action has zero probability of being accepted, so the scheme retains exploration even when it strongly biases toward promising actions.
This accept-reject rule is explicitly contrasted with 8-greedy. QIS does not use a fixed exploration probability, and it never performs a “pure exploit” sample in the 9-greedy sense. Early in learning, because 0 and 1 are crude, the acceptance probabilities are relatively broad and exploration is high. Later, as the approximation sharpens, the proposal distribution becomes more concentrated near low-cost actions, which gives an explicit exploration–exploitation tradeoff without a tunable 2. The paper also states that in this one-step Q-learning setting, the forward-sampling step does not require importance-weight correction, because the sampled action is the actual action being evaluated and updated (Kumar et al., 2021).
Algorithmically, the method performs a forward pass over stages and samples, then a backward pass that updates the Q-function approximation and recomputes 3 and 4. A computationally cheaper variant, QIS-RE, recomputes the historical extrema only every 5 iterations. In the numerical comparison on stochastic generation expansion planning, the authors report that QIS and QIS-RE produce more stable and higher-quality policies than epsilon-greedy and epsilon-decay, with less variability across replications (Kumar et al., 2021).
3. Sample-then-refine action execution via extremum-seeking control
"Extremum-Seeking Action Selection for Accelerating Policy Optimization" (Chang et al., 2024) formulates forward-sampled action selection as a sample-then-refine procedure inserted directly into model-free policy optimization. The setting is a continuous-control MDP
6
with a Gaussian stochastic policy
7
and return objective
8
The paper argues that standard Gaussian action sampling is often inefficient in unstable robotic control tasks, because most random samples fall into regions that are dynamically disastrous or low-value.
The proposed mechanism, ESA, keeps the policy sample but refines it online using extremum-seeking control (ESC). Standard ESC is written as
9
0
In the RL adaptation, the procedure is: sample
1
construct a probing input
2
query the critic at
3
update
4
and execute the refined action
5
The pseudocode given in the paper stores 6 in the replay buffer and then performs otherwise standard PPO- or SAC-style optimization.
The significance of ESA lies in the fact that the correction occurs before environment interaction. The sampled action is only the starting point of a local search, not the final decision. The paper emphasizes that no additional models or external oracles are needed beyond the critic or Q-network already present in actor-critic methods. Empirically, adding ESA accelerates learning, improves final performance, outperforms parameter noise and Ornstein–Uhlenbeck-noise baselines, and helps especially in the quadrotor task where vanilla PPO can diverge. The reported overhead is at most about 50% longer runtime per episode for 2048 steps. The stated limitations are equally specific: ESC is local, depends on frequency separation, assumes exploitable local Q-structure, requires careful tuning of 7, 8, and 9, and depends on critic quality (Chang et al., 2024).
4. Transformed policy densities and mode-aware action choice in bounded SAC
"Rethinking Soft Actor-Critic in High-Dimensional Action Spaces: The Cost of Ignoring Distribution Shift" (Chen et al., 2024) identifies a distinct forward-sampling issue in bounded-action actor-critic methods. SAC produces an unbounded Gaussian pre-squash action,
0
and maps it to the bounded action space by
1
The inverse transform is
2
The paper’s central claim is that the nonlinear 3 transformation induces a distribution shift: the post-squash distribution is not simply a Gaussian clipped to 4, because the Jacobian term reshapes the density. In the general transformed-policy form,
5
the determinant is
6
This Jacobian factor implies that the deterministic action commonly used at evaluation time,
7
need not coincide with the mode of the executed policy in post-squash space,
8
The paper frames this as a forward-sampling mismatch: the policy network produces 9, SAC’s usual deterministic output uses 0, but the most probable post-squash action may be different. In multiple dimensions, the product Jacobian means that small per-dimension deviations can accumulate into a substantial mismatch in the joint action distribution, and the paper emphasizes that the effect becomes increasingly pronounced in high-dimensional action spaces such as Humanoid and HumanoidStandup.
The proposed correction separates inference and training. During inference, the method discretizes the action interval with
1
evaluates 2 on the grid, and returns the maximizing 3. During training, it preserves stochasticity through inverse transform sampling with
4
sampling 5 and selecting the smallest discretized 6 such that 7. The empirical comparison uses six MuJoCo tasks—HalfCheetah-v4, Hopper-v4, Walker2d-v4, Humanoid-v4, HumanoidStandup-v4, and Reacher-v4—and contrasts Original-deterministic, Original-refineSampling, and RefineT-refineSampling. On Humanoid-v4, refined methods improve cumulative reward by about 10% to 20%, with RefineT-refineSampling showing the best stability and narrowest variance bands; on HumanoidStandup-v4, RefineT-refineSampling improves performance by about 5% to 10%; on Reacher-v4, baseline and Original-refineSampling can be slightly better, suggesting that the correction is less beneficial in low-dimensional or simple tasks. The paper also defines convergence speed as
8
and reports that RefineT-refineSampling is best on Humanoid-v4, while baseline converges fastest on Reacher-v4 (Chen et al., 2024).
5. Sampled action availability and compact optimal action ranking
"Planning and Learning with Stochastic Action Sets" (Boutilier et al., 2018) generalizes forward-sampled action selection to the case where the set of feasible actions is itself random. Starting from a discounted base MDP
9
the available action set at state 0 and time 1 is a random subset
2
drawn from a state-dependent distribution 3 under the history-independence assumption
4
The paper assumes 5, so some action is always available.
To recover standard MDP semantics, the paper defines an embedded MDP whose states are 6, and a compressed MDP over the original state space whose “actions” are state policies
7
The compressed optimal Bellman operator is written as
8
A central structural result is that optimal policies admit a compact decision-list representation: at each state, one stores a permutation of the base actions and, when the realized set is 9, executes the first available action in that ordering. The key intuition given by the paper is that the Q-value of an action at a state does not depend on what other actions are present. Once actions are sorted by Q-value, the optimal action is simply the highest-ranked available one.
This structure yields exact and approximate planning methods. Under the product distribution assumption, each action 0 is independently available with probability 1, and if the actions are sorted by descending Q-value, the expected maximum can be computed efficiently. The paper states that the compressed Bellman operator can be computed in
2
time per iteration. For arbitrary sampleable action-set distributions, it uses sampled realizations
3
to approximate the expectation over subsets.
From the learning perspective, the paper shows that standard Q-learning remains sound provided that the next-state maximization is taken over the realized available action set rather than the full base action set: 4 To execute the learned policy, one simply chooses
5
The paper therefore provides a principled formulation in which forward-sampled action selection means: the environment samples which actions are available, the agent observes the realized set, and the agent selects the best available action under a Q-ranking (Boutilier et al., 2018).
6. Forward planning with sampled heuristics and metalevel computation selection
In large MDPs, forward-sampled action selection also appears as online planning under limited computation. "Action Selection for MDPs: Anytime AO* vs. UCT" (Bonet et al., 2019) studies the task of choosing the current action by solving a truncated-horizon problem from the current state, executing one action, and replanning. A finite-horizon MDP is converted into an implicit AND/OR graph whose OR nodes are 6 and AND nodes are 7, with Bellman-style recurrences
8
The proposed Anytime AO* algorithm, AOT, departs from classical AO* by explicitly balancing exploration and exploitation when heuristics are non-admissible and even randomly sampled. At each iteration it selects, with probability 9, a non-terminal tip node IN the best partial graph and, with probability 0, a non-terminal tip node OUT of the best partial graph; the default in experiments is 1. It also permits heuristic values to be random samples, such as rollouts of a base policy, and averages them incrementally until expansion. The paper further defines a 2 quantity that measures how much a node’s value would need to change to alter the best partial solution, and chooses tip nodes with minimal 3. Performance is measured by the average cost to the goal as a function of the time window per selected action, averaging 1,000 episodes, and the results show that AOT often outperforms domain-independent UCT, while typically starting more slowly because each expansion is more expensive (Bonet et al., 2019).
"Selecting Computations: Theory and Applications" (Hay et al., 2014) places this planning view inside a broader metalevel decision-theoretic framework. A metalevel probability model consists of utilities 4 and a countable set of computations 5 whose outcomes can be sampled. Given computation cost 6, the metalevel decision problem is an MDP in which actions are either to perform a computation or to stop. Its value function is
7
where 8 is the total number of computations performed and
9
The paper proves that the optimal policy’s expected number of computations is bounded by the value of perfect information times 0, gives a counterexample showing that stopping with probability one does not imply bounded computation almost surely, and shows that selection problems are not indexable in general. It introduces the myopic policy, the blinkered policy for independent actions, and distribution-free value-of-information bounds that lead to the heuristic rule: sample the arm with the largest estimated VOI and stop if all estimated VOIs are below the computation cost threshold. In Monte Carlo tree search, the paper proposes a hybrid scheme that uses VOI-based selection at the root and UCT at non-root nodes; in 9x9 Go, for threshold 1, the VOI-aware policy reaches a winning rate of about 64% for 10000 samples per ply (Hay et al., 2014).
Taken together, these two papers show that forward-sampled action selection need not mean direct sampling of physical actions only. It can also mean forward sampling of heuristic values, rollouts, or computations whose purpose is to improve the current action choice before acting.
7. Knockoff-based online action-coordinate selection in deep RL
"Where to Intervene: Action Selection in Deep Reinforcement Learning" (Zhang et al., 5 Jul 2025) studies a different but related problem: selecting which action coordinates matter in high-dimensional deep RL. The paper defines a sufficient action set 2 by the conditional independence conditions
3
for all 4, and seeks a minimal sufficient action set. Its forward-sampling mechanism is model-free knockoff generation from the current policy. At each step,
5
so the action and its knockoff are sampled directly and exactly from the same conditional distribution.
After collecting data, the response is
6
and a generic ML selector computes original and knockoff importances 7 and 8, aggregates them via
9
forms an anti-symmetric statistic
00
for example 01, and selects variables by thresholding: 02 The threshold is
03
To stabilize selection under dependent online RL data, the paper uses sample splitting and majority vote, with
04
and proves the modified false discovery rate guarantee
05
under stationarity and exponential 06-mixing.
Integration into deep RL is through a hard mask. If 07 is the selected mask, then critic masking is
08
and policy masking is
09
Empirically, the method is evaluated on Ant, HalfCheetah, and Hopper with artificially enlarged action dimensions 10 and 11, using PPO and SAC, and comparing All, True, and KS. The reported findings are that KS achieves much better reward performance than All, often performs close to True, and achieves high TPR with very low FDR/FPR. Examples given in the paper include Ant/PPO with 12, where KS obtains FDR 13, FPR 14, reward 15, while All has FDR 16, FPR 17, reward 18; HalfCheetah/SAC with 19, where KS reward is 20 versus 21 for All; and Hopper/PPO with 22, where KS reward is 23 versus 24 for All. The paper further states that the selection step can finish in under 20 seconds with a few thousand samples, and reports a clinical control application on MIMIC-III in which clinically relevant treatments such as vaso_dose and iv_input are identified while many less relevant treatments are avoided (Zhang et al., 5 Jul 2025).