arXiv:2609.09478cs.LGSep 2026

Manuscript Offprint

arXiv:2609.09478

Unthrottling the Tanh Jacobian in SAC: A Negative Result on Bang-Bang Control and MetaDrive

Faiq Shamass

Abstract

Soft Actor-Critic (SAC) represents a continuous policy as an unbounded Gaussian that is squashed by tanh. The Jacobian of that map is ∂a/∂u=1−a2\partial a/\partial u = 1 - a^2, which vanishes as ∣a∣→1|a| \to 1. A natural concern is that this throttle starves the actor of critic signal exactly where extreme actions—full brake, full throttle—are optimal. We test a minimal intervention that restores the missing signal: one extra term in the actor loss whose gradient on the pre-tanh mean is the detached action-gradient of QQ, with no gain parameter.

On a minimum-time double integrator whose optimum is bang-bang at the action bounds, vanilla SAC already reaches near-optimal return ( −31.6-31.6 vs. a calibrated optimum of −30.3-30.3) across ten paired seeds. An ungated bypass does saturate the policy (99% of eval steps with ∣a∣≥0.9|a| \geq 0.9) and collapses return to −195.5-195.5. A gated bypass that fires only on the flat shoulder ∣a∣∈[0.9,0.999]|a| \in [0.9, 0.999] also fails, and does so without leaving a saturated policy. Warm-started MetaDrive fine-tuning shows the same pattern: the bypass does not improve return, and where collision rate falls it is typically traded for out-of-road departures. Auto-tuned entropy coefficient rises against the bypass, which is a push toward the tails.

The Jacobian effect is real. Treating it as a bug to be undone is not free, and on the tasks studied here it is not helpful. Saturating a bound is not the same as solving a problem whose optimum lives on that bound.

1 Introduction

Bounded continuous control almost always routes an unbounded policy through a squash. In SAC [2, 3] that squash is tanh, chosen so that the change-of-variables correction for log⁡π(a∣s)\log \pi(a \mid s) stays closed form [2]. The same map multiplies every critic gradient that reaches the pre-tanh mean uu by 1−a21 - a^2. At ∣a∣=0.9|a| = 0.9 that factor is 0.19; at ∣a∣=0.99|a| = 0.99 it is 0.02.

If a task rewards sitting on the bound—emergency braking, bang-bang thrust—this looks like a defect. The critic can prefer a more extreme action while the actor receives almost no update. We isolate that hypothesis and test the smallest repair that follows from it:

Add a term to the SAC actor loss whose gradient on u is ∂Q/∂a\partial Q/\partial a, not (∂Q/∂a)(1−a2)(\partial Q/\partial a)(1 - a^{2}).

No step-size knob is introduced. On a dimension that is already near saturation, the extra term is stronger than the throttled SAC term by the geometry 1/(1−a2)1/(1 - a^{2}).

The hypothesis does not hold on the two domains we use to test it.

  1. A one-dimensional cart (minimum-time double integrator) whose every optimum is at ±1\pm1. Vanilla SAC solves it to within a few percent of a hand-calibrated bang-bang reference. Unthrottling the Jacobian either locks the policy to the wall without switching, or—when gated to the shoulder—destabilizes learning without producing a more saturated policy.

  2. Warm-started SAC on MetaDrive [4], continued from a checkpoint that already succeeds at low traffic density. Matched baseline/bypass arms under several entropy treatments do not show a return gain attributable to the bypass. Collision reductions, when they appear, come with higher out-of-road rates.

This is a negative result about a specific intervention, not a claim that tanh is optimal among bound handlers. Alternative action distributions such as the Beta policy [1] remain open. The narrower conclusion is that re-injecting the vanished Jacobian into an otherwise standard SAC actor is a different objective, not a faster path to the same one.