Robot control policies trained with reinforcement learning in simulation tend to learn "bang-bang" commands that flip between extreme values from one control step to the next. A simulator charges nothing for this. Real motors do: the rapid flipping wastes power, heats and wears the hardware, and excites vibrations the simulator never modeled. The standard fix is to add a penalty on action changes to the reward, multiplied by a hand-picked weight. That weight becomes hard to choose once training uses domain randomization, which means sampling a different simulator physics (masses, thrust constants, delays) every episode so the policy can survive the unknown real physics. The more the randomization disturbs the robot, the more it needs fast corrections, so the right penalty weight moves with the randomization width. Nobody has measured how it moves.
We propose to stop treating smoothness as a reward term with an arbitrary weight and to treat it as a budget stated in physical units. The policy maximizes task reward subject to a cap on how much of its command signal lies above the actuator's bandwidth. The cap is calibrated against a controller already known to be safe on the hardware. A learned multiplier enforces the cap automatically, so the policy decides for itself where to spend its allowance. It can stay smooth while flying nominally and use sharp bursts when a disturbance hits. In two sentences: jitter should be a constrained resource with a measurable limit, not a penalty whose weight is guessed. If that works, it removes the per-platform, per-randomization-width tuning that current zero-shot transfer recipes quietly depend on.
Core Claim
Consider quadrotor trajectory tracking trained under domain randomization of varying width. The claim has three parts.
First, a constrained formulation with a physically calibrated high-frequency action budget reaches the task-versus-jitter trade-off of the best hand-tuned static penalty at each randomization width. It does so without a separate search per width.
Second, it spends its jitter budget in a state-dependent way that a static penalty cannot express, concentrating fast actions around disturbances.
Third, the budget set in simulation predicts the high-frequency command power measured on hardware closely enough to serve as a pre-deployment safety check.
The first part is the minimum publishable result. The second and third parts are what would make it more than automatic hyperparameter selection.
Concretely, let $a_t$ be the motor command at step $t$, and let $(h * a)_t$ be that command sequence passed through a fixed discrete high-pass filter whose cutoff $f_c$ is the actuator bandwidth. The per-step jitter cost is $c_t = \|(h * a)_t\|_2^2$. The training problem is
$$\max_\pi \; \mathbb{E}_{\xi \sim p(\xi)} \mathbb{E}_{\pi,\xi}\Big[\textstyle\sum_t r_t\Big] \quad \text{s.t.} \quad \mathbb{E}_{\xi \sim p(\xi)} \mathbb{E}_{\pi,\xi}\Big[\tfrac{1}{T}\textstyle\sum_t c_t\Big] \le \varepsilon,$$
where $\xi$ is the randomized physics drawn from distribution $p(\xi)$, $r_t$ is the task reward, $T$ is episode length, and $\varepsilon$ is the budget. The budget is set to the high-frequency command power of the platform's stock hand-tuned controller flying the same trajectories. We solve the problem with a Lagrange multiplier $\lambda$ updated by dual ascent alongside PPO.
Because the constraint limits an episode average rather than every step, the optimizer is free to allocate jitter across states. A static penalty prices every unit of jitter identically everywhere, so it cannot make that allocation.
Why this gap is real
The motivating evidence comes from four sources.
What Matters in Learning A Zero-Shot Sim-to-Real RL Policy for Quadrotor Control? builds SimpleFlight, a PPO recipe that transfers zero-shot to a Crazyflie. It identifies an action-difference penalty as one of five essential ingredients and also finds that indiscriminate randomization hurts. However, it keeps the penalty weight static and never characterizes how that weight interacts with randomization width.
Learning Smooth Humanoid Locomotion through Lipschitz-Constrained Policies penalizes the policy's input gradient. This gradient penalty is the Lipschitz constraint of the title: a cap on how fast the action can change as the observation changes. It reports a single coefficient that works across four humanoids. This appears to contradict our premise that the weight is hard to set. We take it seriously, but it was demonstrated on steady walking, and the authors leave explosive maneuvers open. Our test regime is aggressive tracking under wide randomization, which is exactly where a universal weight should break.
Reactive Stepping for Humanoid Robots using Reinforcement Learning: Application to Standing Push Recovery on the Exoskeleton Atalante chose an L1 action-difference penalty specifically so the exoskeleton could stay smooth while standing but burst during push recovery. That is informal evidence that the optimal amount of jitter depends on the state.
SPiDR shows that turning a physical requirement into a constraint, and making it pessimistic using disagreement across an ensemble of randomized simulators, eliminates real-world safety violations that plain domain randomization produces. SPiDR applies this to collision-style costs and ignores actuator jitter. We borrow its constrained, randomization-aware view and apply it to the actuator.
On the reward-composition side, the evidence against additive weighting is what makes a constraint attractive. Monolithic vs. hybrid controller for multi-objective Sim-to-Real learning reports a single additive-reward policy reaching only 30% success with 70% collisions on a real Franka arm, against 90% success for a controller that switches between separate reaching and avoiding policies. The hard switch between those policies itself introduces discontinuities in the commands. Redundancy Resolution as Action Bias in Policy Search for Robotic Manipulation avoids interference between objectives by moving secondary goals into the arm's null space: joint motions that leave the end-effector unchanged. A quadrotor has no such redundancy, so that route is closed there. A constraint decouples the objectives without either a switch or redundancy.
Research Program
The base system is SimpleFlight's recipe in OmniDrones, the GPU-parallel drone simulator it was built on. We keep its rotation-matrix observations, its critic that receives time information, its selective randomization of thrust coefficients, and its large batches. The only change is the smoothness mechanism. Holding everything else fixed makes the comparison clean.
We add a second critic that estimates the discounted jitter cost. Both critics receive the last two actions, since the cost depends on action history. Implicit Action Chunking for Smooth Continuous Control found that a value estimate blind to the smoothing window fights the actor's smoothing objective, so we also test a cost critic trained on multi-step returns as a secondary variant.
The randomization width is a controlled independent variable. We use a family of nested distributions over thrust coefficient, motor time constant, and control latency, scaled from narrow to wide, plus random external force pulses of increasing magnitude.
The analysis has three parts.
First, at each width we trace the full trade-off curve of the static penalty by sweeping its weight. This produces the reference frontier and, as a by-product, the first measurement of how the best static weight shifts with randomization width. The field does not currently have this measurement.
Second, we check whether the constrained policy lands on or above that frontier at the point set by the budget $\varepsilon$.
Third, we inspect where the budget is spent. We log $c_t$ against disturbance events and against the ensemble next-state disagreement used by SPiDR, which tells us whether the learned allocation tracks disturbances, model uncertainty, or neither.
A fourth, cheaper arm reruns the comparison on DeepMind Control Suite Walker and Reacher. This allows direct comparison with Grad-CAPS on the benchmarks where it reports numbers.
Baselines
The naive reference is SimpleFlight's configuration with the smoothness penalty removed, trained under the same randomization. It marks the jitter level an unregularized policy reaches and the tracking error it buys with that jitter. We expect it to track well in simulation and to be unflyable or power-hungry on hardware.
The published reference is SimpleFlight with its static action-difference penalty at its reported setting, run at every randomization width. The file gives only a relative figure for it: over 50% lower mean Euclidean tracking distance than prior methods, and it is the only policy that completes the "Fast" trajectories. No reported absolute tracking-error value was found on Lacuna, so we reproduce it ourselves.
The strongest competitor is the same static penalty with its weight tuned separately at each width by grid search, using the same total compute as all our constrained runs combined. This is the oracle frontier. It is strictly more expensive than our method and cannot be beaten on sim tracking error at matched jitter unless state-dependent allocation genuinely helps.
We count the proposal as winning in either of two cases:
- it matches this frontier within seed noise at every width while using one run instead of a sweep; or
- it lies strictly above the frontier, with lower tracking error at equal high-frequency power, on the wide-randomization and pulse-disturbance settings.
The remaining regularizers each get the same budget of eight hyperparameter trials, the same number of seeds, and the same simulator and randomization:
- CAPS (Regularizing Action Policies for Smooth Control with Reinforcement Learning). It reports an 80% power reduction on a real quadrotor.
- Grad-CAPS (Gradient-based Regularization for Action Smoothness in Robotic Control with Reinforcement Learning). It penalizes the second difference of actions and reports Walker action fluctuation of 0.41 ± 0.03 against 0.53 ± 0.03 for vanilla SAC, and Reacher reward of 982.20 ± 11.40. These are the numbers our DeepMind Control arm must match or beat at equal reward.
- The Lipschitz gradient penalty, at its reported universal coefficient of 0.002 and also tuned.
- A SkillMimic-style multiplicative composition (SkillMimic), with task and smoothness rewards each squashed to the range 0 to 1. This tests whether all-or-nothing reward structure already solves the weighting problem.
- The obvious intersection idea: a static penalty whose weight is scaled per state by SPiDR's ensemble disagreement.
Three ablations isolate the key ingredient.
The first freezes the multiplier at its converged value and retrains with an ordinary static penalty of that size. If this matches the full method, the contribution reduces to automatic selection of the penalty weight. That is still useful, but it would not support the state-allocation claim.
The second replaces the high-pass cost with a plain first-difference cost. This separates the benefit of "budget" from the benefit of "measured in actuator frequency units."
The third replaces the episode-average constraint with a per-step constraint. This should destroy the burst allocation if our explanation is right.
Why not just…?
Why not just grid-search the penalty weight at each randomization width? This is the real threat, and it is why the tuned frontier is our main baseline rather than a straw man. Grid search can find any single point a static penalty can reach. It costs a sweep per platform and per width, and it gives no physical meaning to the chosen weight. If the frozen-multiplier ablation matches the full method and both sit on the frontier, we will report that the gain is purely operational: one run instead of many, plus a budget stated in physical units. If the constrained policy exceeds the frontier under pulse disturbances, that is evidence a static price cannot express the needed allocation.
Why not just low-pass filter the commands before they reach the motors? CAPS reports that post-hoc filtering adds phase lag that destabilizes aggressive quadrotor flight. The Lipschitz-constrained policy paper reports that filtering damps exploration during training. We still include a Butterworth filter at cutoff $f_c$, both applied at deployment only and applied inside the simulator during training. The in-simulator version is the fairer test, because then the policy learns with the lag. We expect it to cost tracking error on the "Fast" trajectories, and the experiment will show whether that holds.
Why not just use an L1 action-difference penalty, which already permits sparse bursts? The Atalante exoskeleton work shows L1 does allow bursts. But L1 still has one weight, and it still shifts with randomization width. It is included in the tuned sweep. If tuned L1 matches our method, then the allocation benefit comes from the shape of the penalty rather than from the constraint, and we will say so.
Why not just scale the penalty by simulator uncertainty, as SPiDR scales safety cost? This is the natural combination of the input directions, and we run it as a baseline. Its assumption is questionable: where the randomized simulators disagree, the robot may need faster corrections, not slower ones. Our budget-spending analysis measures directly whether learned jitter correlates positively or negatively with ensemble disagreement.
Proposed Experiments
The simulation study uses the Crazyflie model in OmniDrones. Trajectories are SimpleFlight's figure-8, polynomial, pentagram, and zigzag at nominal and "Fast" speeds. Randomization comes at five widths, with and without force pulses, and every method gets five seeds.
The metrics are:
- mean Euclidean tracking distance;
- crash rate;
- high-frequency command power, measured as the average of $c_t$;
- a simulated motor electrical power proxy.
Results are reported as trade-off curves per width, not as single numbers.
The hardware study deploys the frozen-multiplier ablation, the tuned static frontier point matched in jitter, the naive baseline, and the full method on a real Crazyflie under motion capture. It measures tracking distance, battery current, and logged command spectra, and it includes a scripted gust from a fan to test disturbance recovery.
The DeepMind Control arm reruns Walker and Reacher against Grad-CAPS's reported figures.
Four checks decide the outcome:
- whether the constrained policy sits on or above the tuned frontier at wide randomization;
- whether the frozen-multiplier ablation falls below it, which would confirm state-dependent allocation matters;
- whether hardware high-frequency power lands within a stated tolerance of $\varepsilon$, which would make the simulated budget a usable pre-flight check;
- whether jitter spending concentrates within a short window after gusts rather than spreading uniformly.
A negative result on the second check still yields the first published map of how the right smoothness penalty scales with randomization width.
References
- What Matters in Learning a Zero-Shot Sim-to-Real RL Policy for Quadrotor Control? A Comprehensive Study
- Learning Smooth Humanoid Locomotion through Lipschitz-Constrained Policies
- Reactive Stepping for Humanoid Robots using Reinforcement Learning: Application to Standing Push Recovery on the Exoskeleton Atalante
- SPiDR: A Simple Approach for Zero-Shot Safety in Sim-to-Real Transfer
- Monolithic vs. hybrid controller for multi-objective Sim-to-Real learning
- Redundancy Resolution as Action Bias in Policy Search for Robotic Manipulation
- OmniDrones: An Efficient and Flexible Platform for Reinforcement Learning in Drone Control
- Implicit Action Chunking for Smooth Continuous Control
- Regularizing Action Policies for Smooth Control with Reinforcement Learning
- Gradient-based Regularization for Action Smoothness in Robotic Control with Reinforcement Learning
- SkillMimic: Learning Basketball Interaction Skills from Demonstrations