[Paper Notes] EXPO: Stable Reinforcement Learning with Expressive Policies
Published:
TL;DR
EXpressive Policy Optimization (EXPO) improves a diffusion policy through a separate, small action-editing network and Q-based candidate selection. The base policy keeps learning with a supervised denoising objective. The edit policy receives a state and a proposed action, then samples a bounded correction trained to increase Q while retaining exploration. At execution time, EXPO compares the original and edited candidates and chooses the highest-value action. It repeats this selection at the next state when constructing the critic’s TD target.
The resulting learning loop has two routes for improvement: Q gradients train the editor directly, while selected actions enter replay through environment interaction and subsequently become imitation targets for the base policy. The base policy is updated online, but Q gradients never pass through its denoising chain. Paper, Sections 4.1–4.4
Paper and reading version
EXPO: Stable Reinforcement Learning with Expressive Policies, by Perry Dong, Qiyang Li, Dorsa Sadigh, and Chelsea Finn, appeared at ICLR 2026. These notes use the 16-page arXiv v3, revised April 30, 2026, and the official implementation at commit bbd5713, checked November 16, 2026. The method concerns online RL with prior data and offline-to-online fine-tuning; its main experiments instantiate the expressive policy with DDPM.
The editor operates in action space
Let the base policy generate $a_0\sim\pi_\psi(\cdot\mid s)$. The editor conditions on both $s$ and $a_0$. In the implementation, the observation and action vectors are concatenated and passed through an MLP that predicts a Gaussian mean and state-dependent standard deviation. A tanh transformation and scale $\beta$ produce the residual:
\[u\sim\mathcal N(\mu_\theta(s,a_0),\operatorname{diag}(\sigma_\theta^2(s,a_0))),\qquad \delta=\beta\tanh(u),\qquad \widetilde a=a_0+\delta.\]Thus $\delta_j\in[-\beta,\beta]$ in every action dimension. The editor changes the final action vector after base-policy sampling; it does not modify a diffusion latent or execute another denoising chain. The bound constrains the correction coordinate by coordinate. It provides no guarantee that the final action is optimal or physically safe.
Conditioning on the proposed action matters when the base distribution has several modes: different candidates at the same state can require different corrections. The paper interprets this as local refinement within modes, followed by candidate selection across modes. The editor remains stochastic, so its entropy also supplies exploration around those proposals. Equation 1 and Section 4.1 · Editor implementation
The editor minimizes a SAC-style objective:
\[\mathcal L_{\mathrm{edit}}(\theta)= \mathbb E_{(s,a)\sim\mathcal D,\,\delta\sim\pi_\theta(\cdot\mid s,a)} \left[\alpha\log\pi_\theta(\delta\mid s,a)-Q_\phi(s,a+\delta)\right].\]The Q term favors useful corrections; the entropy term discourages premature collapse to a single correction. During this update, critic parameters are held fixed while gradients flow through Q’s action input into the editor. The implementation includes the log-density correction for residual scaling, subtracting $d\log\beta$ for action dimension $d$, and learns the temperature $\alpha$.
There is an important distinction between training anchors and execution anchors. Equation 2 and update_edit_actor take $(s,a)$ from replay: the anchor is the recorded dataset action. During rollout and TD candidate generation, the anchor is freshly sampled from the base policy. Describing every editor update as a call to the diffusion sampler would misrepresent the released code. Equation 2 · update_edit_actor
The executed policy includes a selection step
For each state, sample $N$ base actions and one edit per base action. Form a set containing both versions:
\[\mathcal C(s)=\{a_i,\ a_i+\delta_i\}_{i=1}^{N},\qquad a^*=\operatorname*{arg\,max}_{a\in\mathcal C(s)}Q_{\mathrm{select}}(s,a).\]EXPO calls this the on-the-fly (OTF) policy. It is a sampling-and-selection procedure built from the base policy, editor, and critic. Keeping the original candidates lets the selector reject an edit whose estimated value is lower. Selection only maximizes the learned critic over the sampled set; critic error and insufficient candidate coverage remain possible.
flowchart TD
S[Current state] --> B[Base policy samples N actions]
B --> E[Editor samples a bounded correction for each action]
B --> C[Candidate set: original and edited actions]
E --> C
C --> Q[Critic scores candidates]
Q --> A[Select highest-value candidate]
A --> R[Execute and store transition in replay]
R --> U[Update critic, base policy and editor]
NS[Next states from replay] --> T[Repeat candidate generation and selection]
T --> Y[Construct TD targets for critic updates]
Y --> U
With $N=8$, this gives sixteen candidates. The same construction supplies $a^{*\prime}$ at each next state in a replay minibatch, producing the basic target
\[y=r+\gamma m\,Q_{\bar\phi}(s',a^{*\prime}),\qquad \mathcal L_Q=\mathbb E_{\mathcal D}\left[(Q_\phi(s,a)-\operatorname{stopgrad}(y))^2\right],\]where $m$ is the bootstrap mask and $\bar\phi$ denotes target-critic parameters. This makes TD learning account for the candidate improvement used during execution. Backing up a single unselected imitation-policy action would train against a weaker next-state decision rule. The paper’s Can and Square ablation finds candidate maximization in the backup important for sample efficiency. Section 4.2, Algorithm 1, Figure 5
The released learner uses ten critics. For selection and target evaluation it subsamples two and takes their minimum; the editor’s loss uses the mean of the online critic ensemble. Sampling during rollout uses an averaged target base policy, while the batched next-action sampler uses the current base parameters. These are implementation details beyond the paper’s single-$Q$ notation. Official learner
What the base policy learns online
Given a replay action $a$, draw diffusion timestep $t$ and Gaussian noise $\epsilon$, then train the base network to predict that noise:
\[a_t=\sqrt{\bar\alpha_t}\,a+\sqrt{1-\bar\alpha_t}\,\epsilon,\qquad \mathcal L_{\mathrm{base}}(\psi)= \mathbb E_{(s,a),t,\epsilon}\left[\|\epsilon-\epsilon_\psi(a_t,s,t)\|_2^2\right].\]This is ordinary DDPM denoising MSE, as implemented in update_actor. There is no Q weighting of individual imitation examples and no backpropagation through the sampled candidate argmax. Offline demonstrations remain useful targets; online data contribute actions actually executed by the OTF policy, including selected edits. Improvements can therefore enter the base policy through the changing replay distribution, alongside unsuccessful exploratory behavior. EXPO does not train the base solely on successful trajectories or relabel every replay action with a newly optimized action. Section 4.4 · update_actor
A complete training iteration
The following sequence follows Algorithm 1 and the released training loop. The repository’s default sampling mix is 50% offline and 50% online data.
- Initialize. Optionally pretrain the base policy with imitation learning on the offline dataset. Initialize the editor and critic randomly. The online-with-prior-data setting skips pretraining but still uses offline demonstrations during learning.
- Interact. At the current state, generate original and edited candidates, score them, execute the selected action, and store the actual transition $(s,a^*,r,s’,m)$ in online replay.
- Update the critic repeatedly. Sample mixed offline/online data. For each critic minibatch, generate and select candidates at its next states, form TD targets, regress Q, and softly update the target critics.
- Update the base once. Use the last minibatch’s recorded actions for DDPM noise prediction, then update the averaged target base policy.
- Update the editor once. Use the same minibatch’s state–action pairs as anchors, sample bounded residuals, optimize the entropy-regularized Q objective, and update the entropy temperature.
With UTD = 20, the released loop performs twenty critic updates per environment step, followed by one base-policy update and one editor update. It does not perform twenty updates of every network. Offline pretraining also has separate flags for the critic and editor; the supplied Square fine-tuning script disables both. Algorithm 1 · Training loop · Square script
Configuration details that change the algorithm
| Item | Paper’s main setting or released task script |
|---|---|
| Base policy | DDPM with 10 diffusion steps; 3 residual blocks, hidden width 256 |
| Editor | Gaussian MLP with 3 hidden layers of width 256, tanh-bounded residual |
| Candidate sampling | 8 base actions plus 8 edited actions |
| Optimization | Batch size 256, learning rate $3\times10^{-4}$, discount 0.99 |
| Critics | Ensemble of 10, two sampled for minimum-Q targets; target update rate 0.005 |
| Update schedule | 20 critic updates per environment step, then one update per policy |
| Edit scale examples | Robomimic: 0.05 online, 0.1 offline-to-online; Adroit: 0.7 |
A smaller $\beta$ preserves a useful behavior prior closely; a larger value permits broader exploration. The paper tunes this parameter over 0.05, 0.1, 0.3, and 0.7. The bounds are in the action coordinates used by the environment, so their meaning depends on action scaling.
The generic expo_config.py defaults to N = 32 and n_edit_samples = 0. Used unchanged, it disables the edit branch. The supplied task scripts override these to 8 and 8 and set the edit scale. To reproduce the reported method, inspect the task script as well as the configuration module. Also, Table 1 lists 20k Adroit pretraining steps, while Section 5.2 says EXPO skips Adroit pretraining because the dataset is narrow; the supplied pen script has no pretraining, and the separate editor ablation explicitly uses 20k. Those statements should not be collapsed into a universal Adroit recipe. Appendix B and Section 5.5 · Config
Entropy in the editor versus entropy in the backup
The main editor already has an entropy term. Section 4.3 proposes a further variant for limited offline data: replace hard argmax over candidates with a categorical distribution $p_j\propto\exp(\eta Q(s,a_j))$, and use its log probability in an entropy-augmented TD target. Here $\eta$ is a selection inverse temperature, distinct from the residual scale $\beta$. This finite-candidate distribution makes the sampling entropy tractable; it does not provide the exact entropy of the diffusion policy.
On Square, the paper reports that this variant can reach nearly perfect performance after one million environment steps even when the prior’s imitation success is below 10%, averaged over three seeds. The released learner inspected here uses hard argmax and a TD target with no entropy bonus. Its backup_entropy field does not implement the soft-candidate backup in update_critic, and the supplied scripts set it to false. Treat Section 4.3 as a paper variant requiring additional implementation work in this revision. Sections 4.3–4.4 and Figure 7 · Released critic update
Evidence and practical limits
The evaluation covers twelve sparse-reward simulation tasks across Antmaze, Adroit, Robomimic, and MimicGen, with three seeds; error bands show the minimum and maximum. The paper reports up to 2–3× improvement in sample efficiency on average over prior methods. This is an environment-interaction claim, not a wall-clock speedup. Removing action edits hurts Pen and Square, while removing candidate maximization from the backup hurts Can and Square. These ablations support treating the editor and OTF backup as separate, necessary parts of the method. Sections 5.1–5.5 and Appendix B
My main implementation takeaway is to track three different quantities: whether edits improve estimated Q, whether the selected actions improve measured return, and whether the base policy alone improves as replay changes. Only the second establishes task improvement; a critic can overvalue edited actions. The method also depends on a useful prior and incurs repeated diffusion sampling for every next state in every critic minibatch. I would consider EXPO when online interactions are expensive and a behavior prior already exists, while checking the compute cost before choosing a large candidate count or UTD ratio. The paper leaves computational efficiency and completely uninformed priors as open problems. Section 6
