arXiv:2608.24488cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24488

Where Entropy Is Measured Matters: Policy Geometry in Bounded Continuous-Control PPO

Yiyang He, Zhichun Zhou, Ziwei Wang, Tao Xue, Haolin Fei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yiyang He ∗^{*}

Department of Engineering, Lancaster University, Lancaster, UK

y.he20@lancaster.ac.uk

Zhichun Zhou ∗^{*}

Department of Engineering, Beihang University, Beijing, China

zy2332222@buaa.edu.cn

Ziwei Wang

Department of Engineering, Lancaster University, Lancaster, UK

z.wang82@lancaster.ac.uk

Tao Xue †^{\dagger}

Department of Automation, Tsinghua University, Beijing, China

xuetao16@mail.tsinghua.edu.cn

Haolin Fei

Department of Engineering, Lancaster University, Lancaster, UK

haolin.fei@ieee.org

Abstract

Many continuous-control policies are optimized as unbounded Gaussians and then mapped into bounded actions. We show that the space in which entropy is measured changes the geometry that proximal policy optimization (PPO) learns. The study begins with an 80-muscle MyoLeg walking task, where a clipped Gaussian executes 89.07% of actions within 5% of a bound. A counterfactual decomposition on the same visited states shows that this is not an effect of variance alone. Setting the variance to zero still leaves 83.83% of actions near a bound, centering the mean while keeping the learned variance gives 77.51%, and 82.12% of state-conditioned means lie outside the executable interval. Replacing clipping by a smooth tanh map does not remove the high-variance regime. For a latent Gaussian, the latent entropy H(u)H(u) has zero gradient with respect to the mean and a constant variance-increasing gradient of the entropy loss. For the executed-action entropy H(a)H(a), the transformation Jacobian adds 2centE[tanh⁡ui]2c_{\text{ent}} \mathbb{E}[\tanh u_i] to the entropy-loss gradient on the mean; gradient descent therefore pulls the mean inward. Across three matched MyoLeg seeds, total near-boundary occupancy is 71.42%, 29.76%, and 18.83% under latent entropy, no entropy, and executed-action entropy. No entropy gives the lowest occupancy when only variance is retained, at the 5% reference margin, yet H(a)H(a) produces the most interior policy mean, so low learned dispersion is not equivalent to interior policy geometry. A 38-dimensional Dog-Stand replication with an independent, CleanRL-based PPO implementation reproduces the ordering in mean geometry, which also survives evaluation on shared states and boundary margins from 1% to 10%. Direct mean penalties reproduce or exceed the centering produced by H(a)H(a), so interior means are not unique to executed entropy. However, an L2-regularized policy and H(a)H(a) reach nearly identical mean geometry while differing by 0.600 in mean log standard deviation and by 129 return points in Dog-Stand. Entropy measurement space is therefore a coupled mean–variance design choice, and task return alone does not characterize the geometry of a bounded policy.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: xuetao16@mail.tsinghua.edu.cn.

1 Introduction

Continuous-control reinforcement learning often uses a Gaussian policy even when every actuator is bounded. The policy therefore lives in two spaces. In the latent space, an action is sampled from an unbounded distribution. In the executed space, that sample is clipped or transformed before it reaches the simulator or robot. This distinction is easy to ignore when return is the only evaluation metric. It becomes important when the learned controller spends much of its time near the action limits.

We encountered this problem in an 80-muscle MyoLeg walking task. An off-the-shelf PPO configuration produced high-return locomotion, yet the muscle policy was strongly boundary dominated: roughly 89% of executed muscle commands were within 5% of either 0 or 1. A 14-actuator motor policy on the same model showed only about 9.5% near-boundary occupancy, measured with the same absolute 0.05 margin from either bound (Section 3). The immediate explanations were physical: perhaps muscle activation filtering, asymmetric activation/deactivation time constants, or the non-negative muscle action range caused the switching. They did not. Removing the activation filter or making the time constants symmetric left the regime essentially unchanged.

The more important question is statistical: is the policy near the bounds because its variance is large, or because its state-conditioned mean has moved there? We answer this with a same-state decomposition. In the trained clipped-Gaussian muscle policy, setting the variance to zero still leaves 83.8% near-boundary occupancy, and 82.1% of state-conditioned means lie outside the executable interval. Large dispersion is also sufficient, but it is not the whole explanation. The policy mean itself is strongly extruded. We use mean extrusion to denote this movement of a state-conditioned latent mean into regions that the bounded execution map sends close to an action limit.

This observation points to the entropy term. For a diagonal latent Gaussian u∼N(μ,σ2)u \sim \mathcal{N}(\mu, \sigma^2),

H(u)=∑i(log⁡σi+12log⁡(2πe)),(1)H(u)=\sum_{i}\left(\log\sigma_{i}+\frac{1}{2}\log(2\pi e)\right), \tag{1}

so latent entropy has no direct gradient on the mean and gives the same variance-increasing entropy-loss gradient in every dimension. If entropy is measured after a bounded transform, the change-of-variables Jacobian adds a geometric term. For the tanh map, this term pulls the mean inward and changes the variance gradient from a constant into a distribution-dependent quantity.

We test this mechanism with three matched tanh policies: latent entropy H(u)H(u), no entropy, and executed-action entropy H(a)H(a). The intervention changes only the entropy objective; sampling and the PPO importance ratio remain in the same latent Gaussian family. Across three MyoLeg seeds, the three policies converge to sharply different mean–variance regimes. Latent entropy has the largest dispersion and the most extruded means. Removing entropy drives dispersion much lower but leaves the mean substantially closer to the bounds than H(a)H(a). Thus the policy with the smallest exploration-driven boundary occupancy does not have the smallest total boundary occupancy.

We then repeat the experiment on the 38-dimensional DeepMind Control Dog-Stand task using an independent, CleanRL-based PPO implementation. The same ordering in mean geometry appears across all three seeds and three late checkpoints. It also survives two robustness checks that target natural alternative explanations: every policy is scored on shared state buffers, and the near-boundary margin is swept from 1% to 10%. The same Dog study also changes the interpretation of H(a)H(a). Two direct mean penalties produce equally or more interior means. In particular, a pre-tanh L2 penalty nearly matches the trained mean distribution of H(a)H(a), yet the two policies end in very different variance and return regimes. Executed-action entropy is therefore not the only route to an interior mean; it is a coupled mean–variance regularizer.

The contribution is mechanistic rather than a new entropy formula. Tanh-transformed densities and Jacobian-corrected log probabilities are standard, including in Soft Actor-Critic (SAC) (Haarnoja et al., 2018). Our contribution is to connect the choice of entropy measurement space to trained PPO policy geometry, separate mean placement from dispersion experimentally, and test the resulting mechanism with direct gradients and an independent external replication.

The main contributions are:

  • A counterfactual decomposition evaluated on the same states, showing that mean placement and dispersion are each sufficient to produce high boundary occupancy in trained 80-muscle PPO, and that the policy mean itself is strongly extruded.

• Controlled ablations showing that muscle activation filtering, activation/deactivation asymmetry, and hard clipping are not necessary explanations for the boundary-dominated regime.

  • A three-condition intervention on entropy measurement space, replicated across three MyoLeg seeds, together with analytic gradients and measurements on frozen buffers that directly distinguish latent from executed entropy.

• An independent 38-dimensional Dog-Stand replication under CleanRL PPO, followed by an audit on shared states and a sweep of boundary margins from 1% to 10%.

• Controls with direct penalties on the policy mean, showing that interior means are not unique to H(a)H(a), while closely matched mean geometry can coexist with very different variance and performance regimes.

Figure 1 summarizes this chain of reasoning.

Figure

Figure 1: Study logic. The paper starts from an actuator-level phenomenon, separates mean placement from dispersion, changes only the space in which entropy is measured, measures the resulting gradients, and then tests the mechanism in an independent PPO implementation.