Manuscript Offprint
arXiv:2610.13306Structure-Aware Numerical Stabilization for Half-Precision Proximal Policy Optimization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Local online training on resource-constrained platforms requires low computational and training-state overhead. We study the numerical stability and computational efficiency of half-precision proximal policy optimization (PPO) on commodity GPUs. Directly converting PPO training to FP16 is unreliable because numerical errors feed back through policy updates and subsequent data collection, while PPO repeatedly compares a current policy with a fixed behavior policy. We propose PPO-FP16 with three structure-aware modules. Global scalar protection stabilizes statistics shared across a minibatch or parameter update. Policy-change residual protection extracts and preserves small differences between the current and behavior policies. Efficient persistent-update protection stabilizes optimizer state and parameter writeback while reducing state storage. These changes preserve the PPO objective, hyperparameters, and training budget. Across six continuous-control tasks and five seeds, PPO-FP16 achieves the lowest mean return-AUC rank (1.90) among the four methods and ranks first in 17 of 30 environment-seed comparisons. Eight of nine performance configurations yield faster PPO updates. Relative to Full FP32 Adam, optimizer-state memory falls by 71.7–74.9%, and peak allocated GPU memory falls by up to 44.5%. The results show that protecting a small set of structurally important quantities can deliver stable, efficient FP16 PPO without retuning.
CCS Concepts
• Computing methodologies → Reinforcement learning.
1 Introduction
Reinforcement learning (RL) agents adapt their policies through continued interaction with an environment. This ability is valuable in robotics, autonomous systems, and control. An agent trained in simulation may need further training after deployment to accommodate differences in hardware, sensor noise, or task conditions. Local adaptation is especially useful when data cannot easily be uploaded, communication adds latency, or the device must operate independently for long periods. These resource-constrained settings motivate lower computational, memory, and energy costs for training [37].
Low-precision training offers a direct way to reduce these costs. FP16 parameters and states use half the storage of FP32 values,
Liang Chen
Institute of Automation, Chinese Academy of Sciences
School of Artificial Intelligence, University of Chinese
Academy of Sciences
Beijing, China
and compatible hardware can provide higher arithmetic throughput [20]. In continuous-control tasks, PPO often uses compact actor-critic networks, making it a promising candidate for deployment on resource-constrained edge devices. Yet half-precision PPO is difficult to stabilize. Each policy update changes subsequent actions and the data used for later updates. PPO also performs several optimization epochs on each rollout and uses a probability ratio between the current and behavior policies in its clipped objective [24]. When the policy change is much smaller than either absolute log-probability, FP16 rounding can change the ratio and clipping decision. We study this numerical and computational problem on commodity GPUs as a step toward eventual use on resource-constrained platforms.
SAC-FP16 showed that algorithm-specific numerical reformulation can stabilize half-precision SAC training [3]. SAC and PPO, however, have different objectives and data flows. SAC uses replay and a maximum-entropy objective, whereas PPO collects an on-policy rollout and performs multiple updates relative to the fixed behavior policy that generated it. In PPO, errors in batch-level aggregate statistics, such as means, variances, and gradient norms, can affect an entire minibatch, small differences between the current and behavior policies determine clipping decisions, and gradients must pass through Adam states and the discrete FP16 parameter grid before producing persistent policy changes.
We therefore propose PPO-FP16. It preserves the PPO network architecture, objective, hyperparameters, and training budget while reorganizing three error-propagation paths. Module A, global scalar protection, stabilizes shared statistics through selective FP32 reductions and scale rearrangement. Module B, policy-change residual protection, extracts differences between Gaussian policies before forming absolute log-probabilities and performs clipping in the log domain. Module C, efficient persistent-update protection, builds on hAdam's root-second-moment representation. It introduces SHARP (Structured Half-precision Adam with Root-state Preconditioning), which shares second-moment state across parameter groups, and selectively compensates FP16 writeback of the log-standard-deviation. The residual-domain policy calculation and SHARP's structured state sharing are our main new designs.
Our contributions are:
-
We identify three sensitive error-propagation paths in FP16 PPO through stage-by-stage comparisons on fixed training data and numerical stress tests: shared statistics, small policy changes, and persistent parameter updates.
-
We propose a structure-aware FP16 PPO design with three complementary protection modules while preserving the PPO objective and training configuration.
-
We evaluate PPO-FP16 on six continuous-control tasks with five seeds. PPO-FP16 achieves the lowest mean return-AUC rank (1.90); eight of nine performance configurations yield 1.16–2.03× faster PPO updates, optimizer-state memory is reduced by 71.7–74.9% relative to Full FP32 Adam, and peak allocated GPU memory is reduced by up to 44.5%.
2 Background
2.1 Numerical Limits of Low-Precision Training
IEEE FP32 has one sign bit, eight exponent bits, and 23 explicit fraction bits. FP16 has one sign bit, five exponent bits, and ten explicit fraction bits [14]. Fewer exponent bits narrow the dynamic range, while fewer fraction bits widen the spacing between representable values. Training can consequently suffer from overflow, underflow, and loss of small terms during addition or subtraction. Early studies showed that successful limited-precision training depends on rounding, accumulation, scaling, and the placement of high-precision operations [2, 10, 31].
Recent methods control tensor scales and numerical dataflow more explicitly. Unit Scaling [4] targets unit variance in weights, activations, and gradients, while Jetfire [36] combines per-block quantization with an INT8 training dataflow. Recent low-precision studies have extended this direction to FP8 training, optimizer-state quantization, and long-horizon numerical stability [8, 22, 34, 35]. At lower precision, recent work studies how exponent-significant allocation affects training [27], develops FP4 training recipes [6, 32], and controls outliers or sensitive matrix multiplications through numerical and architectural transformations [1, 13]. These studies concern large language models rather than PPO, but reinforce the general principle that low-precision training depends on where and how numerical representations are applied.
2.2 Low-Precision RL and SAC-FP16
RL is commonly formulated as a Markov decision process , where and are state and action spaces, is the transition probability, is the reward, and is the discount factor. A policy , parameterized by , maximizes expected discounted reward over trajectories it generates. Because the policy also determines the training-data distribution, numerical errors can persist through a cycle of parameter updates, changed actions, new data, and further updates.
SAC-FP16 [3] addresses low-precision training of soft actor-critic (SAC) with a stable root second moment, stable probability calculations, compensated updates, and compound scaling. Its hAdam component stores a root-second-moment state instead of directly storing Adam's second moment . This reduces the risk that small squared gradients underflow in FP16. SAC-FP16 demonstrates that numerical reformulation can stabilize SAC in half precision.
SAC [12] and PPO [24] differ in both objective and data flow. PPO has neither a target network nor the Jacobian term of a tanh-squashed SAC policy. Instead, it reduces advantages, clips a ratio against an old policy, and repeatedly optimizes on a fixed rollout. We therefore examined whether SAC-FP16 components transfer to PPO. Our exploratory transfer study found limited, environment-dependent gains from these components. This motivated a closer analysis of PPO's own numerical paths.
Recent work has also studied low-precision reinforcement learning at the scale of reasoning language models. QuRL [18] accelerates rollout generation with INT8 or FP8 actors and addresses mismatch and small quantized weight updates. QaRL [9] aligns training-side computation with quantized rollouts to reduce the mismatch between a low-precision rollout policy and a full-precision learner. These methods focus on quantized LLM rollout generation, whereas our study concerns native half-precision PPO learner updates and persistent training state in continuous control.
2.3 Proximal Policy Optimization
PPO [24] is an on-policy policy-gradient method. Let the behavior policy collect a rollout. For a sampled state-action pair , the probability ratio is
Given advantage estimate , the clipped surrogate objective is
Here is the PPO clipping threshold and . Clipping supports stable learning, but its decision depends on an accurate probability ratio.
Advantage estimates are obtained using standard generalized advantage estimation (GAE) [23] with the value network . GAE accumulates temporal-difference residuals along the rollout, with controlling the bias-variance tradeoff. The rollout is divided into minibatches and reused for several optimization epochs. GAE propagates information through time; log-probability differences enter an exponential; and repeated updates gradually separate the current and behavior policies. These connected operations allow local rounding errors to affect later updates.
3 Method: Structure-Aware Half-Precision PPO
We propose a structure-aware design for half-precision PPO. Low-precision errors concentrate in three paths with broad or persistent effects. First, errors in means, variances, and gradient norms affect an entire minibatch or parameter update. Second, rounding and cancellation obscure small changes between the current and behavior policies. Third, Adam state updates and FP16 parameter writeback can distort the second moment or discard nonzero updates.
By structure-aware, we mean choosing numerical representations and computations according to a quantity's role in PPO and the reach of its errors. We distinguish global statistics shared across samples or parameters, policy differences that determine clipping, and optimizer and parameter states that persist across updates. We protect information at these propagation points.
Figure 1 locates the three modules in the PPO update.
Parameters, the main forward and backward passes, gradients, and major optimizer states use FP16. FP32 is reserved for a few points where errors propagate across samples, time, or updates. By element count, FP32 accounts for less than 0.1% of persistent training state. We write for rounding x to FP16. Because
PPO Training Pipeline (FP16)
Environment
Rollout Buffer
GAE & Batch Statistics
Advantages, Returns
Mean/Std
Mini-batch Sample
Policy Loss (Clipping)
Repeat for multiple epochs on the same rollout
Gradients
Adam Optimizer & Writeback
m, v, update u
Updated Policy
A
Global Scalar Protection
Stabilize batch-level statistics and global gradient scale
- Many-to-one aggregation
A
Global scalars
• Many local FP16 values aggregate
• Rounding error accumulation
• Outliers and overflow
• Affect the whole mini-batch
- Our Method
FP32 reduction for batch statistics
mean, std, in FP32
Safe global norm computation
B
Policy-Change Residual Protection
Accurately capture and preserve small policy changes
- Small policy change is easily lost
Sampling policy
Current policy
very small policy change
a
Traditional computation
• Subtractive cancellation
• Rounding error
• Small change drowned by absolute log-probabilities
- Our Method
Residual extraction
Small-change protection
expm1
high-low compensation
Log-domain clipping
clip(d, b_-, b_+)
C
Efficient Persistent-Update Protection
Stabilize low-precision optimizer and ensure effective updates
- Optimizer and writeback in FP16
(1) Second moment underflow
but underflows
Distorted optimizer state
(2) Large optimizer states

• Element-wise states are memory intensive
• High read/write cost
(3) Small update swallowed
u too small
• Non-zero update but no parameter change
- Our Method
Root second moment
Store instead of
Structured shared second moment
row1
row2
rowM
4MN → 2MN + 2M
Small-update compensation
FP32 residual
Figure 1: PPO-FP16 training pipeline and its three structure-aware protection modules. Module A protects global statistics and gradient scale, Module B protects small policy changes in the residual domain, and Module C stabilizes optimizer state.
GAE is recursive, each parallel environment maintains one FP32 recurrence state; rewards, values, advantages, and returns in the rollout remain FP16. The completed recurrence is written back to FP16 without retaining an FP32 advantage buffer.
3.1 Module A: Global Scalar Protection
Our sensitivity analysis found that some local low-precision errors spread through global statistics. PPO includes several many-to-one computations: sums, means, variances, or norms reduce many sample or parameter values to a few statistics, which are then shared by a minibatch or parameter update. Advantage statistics, value-loss reduction, and the global gradient norm all have this form.
The advantage mean and variance normalize a whole minibatch, the batch-mean value loss sets the scale of critic gradients, and the global gradient norm determines one clipping coefficient shared by all parameters. Errors in these quantities therefore propagate beyond the values that first produced them.
For example, a minibatch of advantages is normalized by subtracting its mean and dividing by its standard deviation , with a small stabilizer in the denominator. Both statistics are computed from the whole minibatch and then reused for every sample. The stabilizer is distinct from PPO's clipping threshold.
Because and affect the whole minibatch, FP16 reduction error changes the scale of its policy loss and gradient. We therefore perform advantage statistics and value-loss reductions in FP32 while retaining FP16 data and main computation. This avoids repeated FP16 rounding of partial sums. Gradient norms have an additional failure mode before reduction.
For gradients , the global norm is . PPO uses to determine a common gradient-clipping coefficient. Even when is representable in FP16, its square may exceed the largest finite FP16 value (about ) before the sum begins.
We follow the classical scaled-norm approach [5]. Let
If , we set ; otherwise Eq. (3) is algebraically equivalent to the original norm, while prevents any squared term from exceeding one.
3.2 Module B: Policy-Change Residual Protection
PPO performs multiple optimization epochs on data from a fixed behavior policy. Clipping constrains each update, so the current and behavior policies are often close.
PPO measures policy change through the probability ratio defined in Sec. 2. Here collected the rollout and is being optimized. For a state-action pair, write this ratio as . Computation usually avoids direct division of probabilities by using the log ratio , so . For nearby policies, clipping depends on a near-zero , rather than either absolute log-probability.
Even when a small is representable, the usual FP16 path first forms two absolute log-probabilities and subtracts them. Rounding in both absolute values can obscure their much smaller difference. We instead extract policy-parameter differences early and use expm1, which evaluates more accurately near zero, together with high-low compensated summation.
A separate FP16 exponential may round to one before subtracting one. Applying expm1 directly to the small residual avoids this premature loss.
High-low compensated summation reduces further loss in local additions and subtractions. We use a TwoSum-form transformation [21] to retain a rounded high-order component h and a compensating low-order component l. We apply it to the terms of and the one-dimensional log-probability residual, then reduce high and low parts separately across action dimensions in FP32.
For continuous actions, the policy is a diagonal Gaussian density: . We write for this density and for its log-density; thus, . For one action dimension, . Writing and , its standard log-density is , where . This representation makes the difference between nearby Gaussian policies explicit.
Rather than evaluating two complete log-probabilities, let be the behavior-policy parameters and . Define the small residuals , , and .
Since , the log-probability difference is
The common constant cancels without constructing either complete Gaussian log-probability.
To compute , set . Substituting the new mean and log-standard-deviation into gives . Because nearby policies have small , define . Subtracting now yields
This expresses the unchanged probability ratio through small residuals, allowing expm1 and compensation to act before rounding and cancellation accumulate.
Limited-precision rollout storage can also make the reconstructed behavior log-probability differ from its sampling-time value. Without correction, PPO would measure change relative to this reconstructed policy rather than the policy that generated the rollout.
We therefore store a sampling-reference residual. At sampling time, the policy mean and log-standard-deviation are converted to FP32 to construct the Gaussian; the sampled action yields an FP32 log-probability , temporarily held in an FP32 buffer. After the rollout, we reconstruct in FP32 from the saved low-precision action and policy parameters. Their difference is rounded once when written to the rollout buffer:
During optimization, c restores the sampling-time reference without a full high-precision rollout.
Clipping can be decided before forming exactly when , and analogously for the lower boundary. Define and .
The advantage sign determines which side of the ratio is clipped. We can therefore write
This avoids an exponential intermediate in the clipping decision while preserving the PPO objective.
Module B therefore combines residual-domain Gaussian computation, expm1, compensated summation, sampling-reference correction, and log-domain clipping to preserve small policy changes without changing the clipped objective.
3.3 Module C: Efficient Persistent-Update Protection
Adam [16] maintains persistent first- and second-moment states. The latter involves squared gradients. In FP16, a representable gradient may have a square too small to represent, distorting the second moment and potentially destabilizing training. Recent convergence analysis likewise identifies weights and second moments as sensitive components when adaptive optimizers are quantized [28].
Building on hAdam from SAC-FP16 [3], we store rather than the underflow-prone second moment and update it with a stable hypot operation. Our implementation retains Adam's first moment, bias correction, and update semantics; it changes the numerical representation of the second moment.
Standard Adam stores both moments for every parameter. For an weight matrix, each state has MN elements and must be read and written during updates. Low-precision optimizers compress these persistent states through 8-bit block-wise quantization [7], 4-bit moment quantization [17], or FP8 representations [8, 22, 35]. SHARP instead reduces their granularity by sharing a root-second-moment scale within parameter groups.
Adafactor factorizes second moments [26]; Shampoo and KrADagrad use structured matrix preconditioners [11, 19]; and 4-bit Shampoo quantizes preconditioner state [33]. SHARP instead shares only the root-second-moment scale within PPO parameter groups.
Building on hAdam, we introduce SHARP (Structured Half-precision Adam with Root-state Preconditioning), whose new contribution is structured state sharing for PPO parameters.
SHARP maintains the first-moment state element-wise, while the root-second-moment state is shared within predefined parameter groups. For an hidden-layer weight matrix, we use row-wise grouping, yielding M shared root-second-moment states instead of MN element-wise second-moment states. Parameters within the same group therefore share only the preconditioning scale, while retaining independent first-moment states and parameter updates. Bias correction follows standard Adam, and the parameter update keeps the same Adam semantics; SHARP changes only the representation and granularity of the second-moment state. For small parameter groups and parameters that directly affect the policy output, we retain fine-grained states rather than enforcing sharing.
For each row, SHARP updates the shared root-second-moment from a scale-safe gradient root-mean-square through the stable hypot recurrence. Its ratio to the layer root-mean-square is clipped to before preconditioning.
With FP16 states, two element-wise Adam moments require 4MN bytes, whereas SHARP requires bytes for an row-grouped weight matrix. Thus, for large N, SHARP approaches a 50% reduction relative to element-wise FP16 Adam states and a 75% reduction relative to Full FP32 Adam states. Fewer second-moment values also reduce state reads and writes.
FP16 writeback can also swallow small updates. Let be a stored parameter and its optimizer update at step . If is below the local FP16 spacing, may still produce
Repeated swallowed updates can separate the FP16 trajectory from the intended trajectory.
We add small-update compensation. In our implementation it applies only to the Gaussian policy’s log-standard-deviation, which controls exploration scale. When a nonzero update does not change this FP16 parameter, we accumulate the unwritten change in an FP32 residual. Later accumulated updates can cross the FP16 grid spacing and be written to the parameter.
Module C thus protects both optimizer state and parameter write-back: SHARP reduces persistent second-moment storage and traffic, while selective residual writeback prevents repeated loss of small log-standard-deviation updates.
3.4 Computational and Storage Complexity
Let B, R, D, P, and G denote minibatch size, rollout samples, action dimensions, parameters, and second-moment groups. All modules preserve PPO's asymptotic update cost. Module A adds one maximum reduction; Module B remains and adds 2R temporary bytes; Module C remains but reduces the root-second-moment state from P to elements. For an row-grouped layer, optimizer state changes from 4MN to bytes, approaching reductions of 50% versus element-wise FP16 Adam and 75% versus Full FP32 Adam. In practice, eight of nine configurations achieve update speedups, while optimizer-state memory falls by 71.7–74.9% relative to Full FP32 Adam (Sec. 4.4).
4 Experiments
We evaluate numerical sensitivity, the contributions of Modules A–C, long-horizon learning quality, compute and memory costs, and the limits of lower-precision formats.
Implementation details. All long-horizon methods use the same two-layer tanh actor and critic, PPO objective, and hyperparameters, with no environment- or precision-specific retuning. Runs use 2,048-step rollouts, 10 PPO epochs, 32 minibatches of 64 samples, and five seeds for 512,000 environment steps. The learning rate is with linear annealing, , GAE , the PPO clipping threshold is 0.2, and the global gradient-clipping threshold is 0.5. Adam uses . Full FP32, AMP-FP16, AMP-BF16, and PPO-FP16 share these settings. PPO-FP16 keeps the main training state in FP16, with FP32 accounting for less than 0.1% of persistent training-state elements. Experiments use PyTorch 2.3.0, CUDA 12.1, and an RTX 4060 Laptop GPU, which natively supports FP16 and BF16 computation. We use native PyTorch dtypes and autocast rather than fake quantization or explicit quantize–dequantize emulation. The Native-BF16 study uses actual BF16 tensors through a PyTorch reference implementation because the final SHARP CUDA kernel is FP16-specific. The nine-configuration performance benchmark uses one CUDA Graph for each complete PPO update.
4.1 Sensitivity Analysis
We first converted the parameters, gradients, and Adam states of standard PPO directly to FP16. We compared this naive path against FP32 stage by stage on the same training data. Naive FP16 did not immediately produce NaNs or Inf's, but iteration KL and clip fraction soon diverged from FP32, as did learning curves across seeds. Here iteration KL is the approximate policy divergence accumulated within an update iteration, and clip fraction is the fraction of minibatch samples whose probability ratios leave the unclipped interval. Numerical error accumulated through the PPO update cycle.
To locate the sources, we replayed the FP32 and FP16 paths on fixed rollouts and minibatches. We compared advantage statistics, losses, gradient norms, log-probabilities, log ratios, clipping decisions, Adam states, and actual parameter writeback. Stress tests covered extreme ranges rarely encountered in ordinary training. Holding the data fixed isolated differences in numerical representation and computation.
The first problem involved shared statistics. Errors in the advantage mean and variance altered the scale of a whole minibatch. The global gradient norm had a similar reach. Direct FP16 squaring and summation produced nonfinite norms for all 24 large-gradient stress inputs; scaled-norm computation produced finite norms for all 24. Reduction error and overflow during squaring both mattered.
The second problem involved the policy ratio. With Hopper states, actions, and old and new Gaussian parameters fixed, subtracting two absolute log-probabilities gave a mean absolute error (MAE) of in the local policy change. Constructing the change directly from policy-parameter differences reduced MAE to . The absolute-log-probability path obscured the small difference that determines the ratio and clipping decision.
The third problem arose in optimizer state and writeback. Native FP16 Adam rounded 64.55% of second-moment states to zero, and the update-magnitude ratio relative to FP32 Adam reached . In the root-second-moment domain, the zero-state ratio fell to 0.58%. The update-magnitude ratio fell to . Later in training, many nonzero updates did not change FP16 parameters; accumulating them allowed eventual writeback. Thus both second-moment underflow and swallowed updates caused persistent error.
Together, these tests locate three connected paths: shared reductions spread local error, absolute probability calculations obscure small policy differences, and optimizer state and the FP16 grid retain error across updates. The three modules in Sec. 3 address these paths.
4.2 Module Ablations
We ablated the three modules in both subtractive and additive directions on HalfCheetah-v5, with fixed networks and hyperparameters. Each configuration used three seeds. We marked a configuration Crash if it failed a 20,480-step stability gate; the others were reinitialized and trained for 151,552 steps. Full FP32 served as a reference.
In the subtractive study, complete PPO-FP16 had the highest AUC and smallest endpoint variance. Removing A or B reduced AUC, while removing C caused a Crash. In the additive study, Naive FP16 crashed; adding C enabled training, and adding A and B raised AUC from 293.3 to 465.8 and 618.3. These results support complementary roles for the modules.
4.3 Long-Horizon Learning Quality
We trained for 512,000 steps in six Gymnasium MuJoCo-v5 continuous-control environments [29, 30]. We compared PPO-FP16 with Full FP32, AMP-FP16, and AMP-BF16. All methods used the same tanh actor and critic, PPO objective, and hyperparameters. Each method ran five seeds without environment- or precision-specific retuning. Full FP32 used FP32 parameters, activations, gradients, and Adam states. AMP-FP16 kept FP32 parameters and Adam states while using FP16 autocast and GradScaler [20]. AMP-BF16 likewise kept FP32 parameters and Adam states while using BF16 autocast [15]. We define return AUC as the trapezoidal integral of deterministic evaluation return over environment steps, divided by the 512,000-step horizon. Figure 3 shows deterministic evaluation curves, and Table 3 reports return AUC.
To avoid bias from different return scales, we ranked the four methods by return AUC within each environment and seed, then averaged over 30 environment–seed combinations. PPO-FP16 had the best mean rank, 1.90, versus 2.63 for each AMP method and 2.83 for Full FP32. It ranked first in 17 comparisons, versus 7, 5, and 1 for Full FP32, AMP-FP16, and AMP-BF16, respectively.
PPO-FP16 had the highest mean AUC on Walker2d, Humanoid, and InvertedDoublePendulum, while maintaining stable learning on HalfCheetah, Hopper, and Swimmer. In paired comparisons, its AUC exceeded Full FP32, AMP-FP16, and AMP-BF16 in 20, 21, and 22 of the 30 environment–seed pairs, respectively.
For cross-environment comparison, we normalized each environment's AUC observations as , where and are the minimum and maximum over all four methods and five seeds in that environment. We then used an environment-stratified paired bootstrap to calculate 95% confidence intervals for method differences in . PPO-FP16's normalized AUC difference from AMP-FP16 was 0.208, with interval [0.026, 0.371]. The confidence intervals against Full FP32 and AMP-BF16 include zero, while PPO-FP16 achieves the lowest overall return-AUC rank and maintains strong long-horizon learning quality across all six tasks without FP32 master parameters or element-wise FP32 Adam states.
4.4 Compute Performance and Memory
Performance tests covered nine network-width and batch-size combinations on an RTX 4060 Laptop GPU. FP32 and PPO-FP16 performed the same complete PPO update. Each configuration used five independent processes, with 3,000 timed updates after warm-up.
PPO-FP16 achieved 1.16–2.03× faster updates in eight of nine configurations; the remaining one was near parity with FP32. SHARP reduced optimizer-state memory by 71.7–74.9% relative to Full FP32 Adam. Peak allocated GPU memory fell by up to 44.5%. Recent low-precision systems also demonstrate substantial training gains on consumer GPUs [25]; our measurements address a different regime, namely native FP16 PPO updates with compact actor-critic networks.
For a mixed-precision comparison, we tested widths 64, 512, and 2,048 at batch size 2,048 using Full FP32, AMP-FP16, AMP-BF16, and PPO-FP16. Each configuration used five paired processes, 500 warm-up iterations, and 1,000 timed updates. PPO-FP16 had the lowest update time at widths 64 and 512. At width 2,048 it was about 3–5% slower than AMP, but reduced optimizer-state memory from 64.70 to 16.23 MiB and peak allocated GPU memory from 181.89 to 101.01 MiB. Tables 1 and 2 use independent benchmark protocols; absolute latency should be compared only within each table.
4.5 Precision-Boundary Study
We study exponent range and significant precision separately. BF16 retains an FP32-like exponent range but has fewer significant bits [15]. Recent floating-point scaling studies also show that exponent allocation, significant length, and scaling granularity jointly determine low-precision training behavior [27]; FP4 methods therefore require additional scaling or structural treatment [6, 32]. In a Native-BF16 variant, we replace PPO-FP16 parameters, gradients, rollout data, first-moment state, and structured root-second-moment state with BF16 while retaining the three modules and their specified FP32 scalar boundaries. Because the final SHARP CUDA kernel targets FP16, we use an arithmetically equivalent PyTorch reference implementation. We compare learning quality, not BF16 speed, across the same six environments, five seeds, and 512,000 steps.
Across the six environments, Native-BF16 retained only 10.7–79.6% of PPO-FP16's return AUC. A wider exponent range alone therefore did not preserve learning quality. The pattern is consistent with greater loss of small updates on BF16's coarser parameter grid, but direct causal attribution requires update-level measurements. Our residual writeback covers only the log-standard-deviation, so it cannot compensate writeback of the other network parameters.
We also held the exponent at five bits on HalfCheetah-v5 and shortened the main-tensor significant from E5M10 through E5M5. Each format ran two seeds for 100,352 steps. E5M9 still learned; E5M8 and E5M7 had lower returns and greater seed variation; E5M6 and E5M5 learned little. Together, these tests suggest that widening
Table 1: PPO update time and speedup over five processes.
| Width / batch | FP32 (ms) | PPO-FP16 (ms) | Speedup |
|---|---|---|---|
| 32 / 512 | 0.307 | 0.213 | 1.44× |
| 32 / 1024 | 0.335 | 0.227 | 1.48× |
| 64 / 512 | 0.293 | 0.254 | 1.16× |
| 64 / 1024 | 0.319 | 0.260 | 1.23× |
| 512 / 1024 | 0.817 | 0.816 | 1.00× |
| 512 / 2048 | 1.308 | 0.963 | 1.36× |
| 1024 / 1024 | 2.410 | 1.639 | 1.47× |
| 1024 / 2048 | 4.145 | 2.318 | 1.79× |
| 2048 / 2048 | 15.837 | 7.784 | 2.03× |
Subtractive ablation on HalfCheetah-v5

Table 2: Mixed-precision performance at batch size 2,048. Time is in ms; memory is in MiB.
| Method | Width | Time | Peak | State |
|---|---|---|---|---|
| Full FP32 | 64 | 0.363 | 16.69 | 0.085 |
| 512 | 1.385 | 27.09 | 4.176 | |
| 2048 | 16.762 | 181.89 | 64.703 | |
| AMP-FP16 | 64 | 0.395 | 16.69 | 0.085 |
| 512 | 1.050 | 27.09 | 4.176 | |
| 2048 | 8.156 | 181.89 | 64.703 | |
| AMP-BF16 | 64 | 0.401 | 16.69 | 0.085 |
| 512 | 1.039 | 27.09 | 4.176 | |
| 2048 | 7.989 | 181.89 | 64.703 | |
| PPO-FP16 | 64 | 0.291 | 16.54 | 0.023 |
| 512 | 1.019 | 21.82 | 1.058 | |
| 2048 | 8.416 | 101.01 | 16.231 |
Additive construction on HalfCheetah-v5

Figure 2: Module ablations on HalfCheetah-v5 over three seeds. Bars show mean ± standard deviation; Crash denotes instability.

Figure 3: Long-horizon evaluation over six tasks and five seeds; shading shows 95% confidence intervals.
Table 3: Return AUC over five seeds (mean ± standard deviation). Bold marks the best mean per environment.
| Environment | Full FP32 | AMP-FP16 | AMP-BF16 | PPO-FP16 |
|---|---|---|---|---|
| HalfCheetah | ||||
| Hopper | ||||
| Walker2d | ||||
| Humanoid | ||||
| Swimmer | ||||
| InvertedDoublePendulum | ||||
| Mean rank (30 pairs) | 2.83 | 2.63 | 2.63 | 1.90 |
| First-place count (30 pairs) | 7 | 7 | 1 | 17 |
the exponent cannot replace the significand precision needed for persistent updates.
5 Conclusion
We presented PPO-FP16, a structure-aware approach that protects shared statistics, small policy changes, and persistent parameter updates while keeping parameters, gradients, and major optimizer states in FP16. Across six tasks and five seeds, it achieved the best mean return-AUC rank (1.90) and ranked first in 17 of 30 environment-seed comparisons. PPO updates were up to faster, optimizer-state memory was 71.7–74.9% lower than with Full FP32 Adam, and peak allocated GPU memory was up to 44.5% lower. BF16 and reduced-significand experiments delineated the remaining precision limits. These results establish the numerical and computational feasibility of FP16 PPO on commodity GPUs. Deployment on embedded accelerators, larger models, and more general low-precision methods remain future work.
References
[1] Saleh Ashkboos, Mahdi Nikdan, Rush Tabesh, Roberto Castro, Torsten Hoefler, and Dan Alistarh. 2025. HALO: Hadamard-Assisted Lower-Precision Optimization for LLMs. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc. doi:10.52202/085713-3966
[2] Ron Banner, Itay Hubara, Elad Hoffer, and Daniel Soudry. 2018. Scalable Methods for 8-bit Training of Neural Networks. In Advances in Neural Information Processing Systems, Vol. 31. Curran Associates, Inc.
[3] Johan Björck, Xiangyu Chen, Christopher De Sa, Carla P. Gomes, and Kilian Q. Weinberger. 2021. Low-Precision Reinforcement Learning: Running Soft Actor-Critic in Half Precision. In Proceedings of the 38th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 139). PMLR, 980–991.
[4] Charlie Blake, Douglas Orr, and Carlo Luschi. 2023. Unit Scaling: Out-of-the-Box Low-Precision Training. In Proceedings of the 40th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 202). PMLR, 2548–2576.
[5] James L. Blue. 1978. A Portable Fortran Program to Find the Euclidean Norm of a Vector. ACM Trans. Math. Software 4, 1 (1978), 15–23. doi:10.1145/355769.355771
[6] Hengjie Cao, Mengyi Chen, Yifeng Yang, Fang Dong, Ruijun Huang, Jixian Zhou, Anrui Chen, Mingzhi Dong, Yujiang Wang, Jinlong Hou, Yuan Cheng, Fan Wu, Fan Yang, Tun Lu, Ning Gu, and Li Shang. 2026. Metis: Training LLMs with FP4 Quantization. In International Conference on Learning Representations.
[7] Tim Dettmers, Mike Lewis, Sam Shleifer, and Luke Zettlemoyer. 2022. 8-bit Optimizers via Block-wise Quantization. In International Conference on Learning Representations.
[8] Maxim Fishman, Brian Chmiel, Ron Banner, and Daniel Soudry. 2025. Scaling FP8 Training to Trillion-Token LLMs. In International Conference on Learning Representations.
[9] Hao Gu, Hao Wang, Jiacheng Liu, Lujun Li, Qiyuan Zhu, Bei Liu, Binxing Xu, Lei Wang, Xintong Yang, Sida Lin, Sirui Han, and Yike Guo. 2026. QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training-Inference Mismatch. In Findings of the Association for Computational Linguistics: ACL 2026. Association for Computational Linguistics, 17051–17064. doi:10.18653/v1/2026.findings-acl.841
[10] Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. 2015. Deep Learning with Limited Numerical Precision. In Proceedings of the 32nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 37). PMLR, 1737–1746.
[11] Vineet Gupta, Tomer Koren, and Yoram Singer. 2018. Shampoo: Preconditioned Stochastic Tensor Optimization. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80). PMLR, 1842–1850.
[12] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. 2018. Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80). PMLR, 1861–1870.
[13] Alejandro Hernández Cano, Dhia Garbaya, Imanol Schlag, and Martin Jaggi. 2025. Towards Fully FP8 GEMM LLM Training at Scale. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc. doi:10.52202/085713-1896
[14] IEEE. 2019. IEEE Standard for Floating-Point Arithmetic. IEEE Std 754-2019. doi:10.1109/IEEESTD.2019.8766229
[15] Dhiraj Kalamkar, Dheevatsa Mudigere, Naveen Mellempudi, Dipankar Das, Kunal Banerjee, Sasikanth Avancha, Dharma Teja Vooturi, Nataraj Jammalamadaka, Jianyu Huang, Hector Yuen, Jiyan Yang, Jongsoo Park, Alexander Heinecke, Evangelos Georganas, Sudarshan Srinivasan, Abhisek Kundu, Misha Smelyanskiy, Bharat Kaul, and Pradeep Dubey. 2019. A Study of BFLOAT16 for Deep Learning Training. arXiv:1905.12322 https://arxiv.org/abs/1905.12322
[16] Diederik P. Kingma and Jimmy Ba. 2015. Adam: A Method for Stochastic Optimization. In International Conference on Learning Representations.
[17] Bingrui Li, Jianfei Chen, and Jun Zhu. 2023. Memory Efficient Optimizers with 4-bit States. In Advances in Neural Information Processing Systems, Vol. 36. doi:10.52202/075280-0666
[18] Yuhang Li, Reena Elangovan, Xin Dong, Priyadarshini Panda, and Brucek Khailany. 2026. QuRL: Low-Precision Reinforcement Learning for Efficient Reasoning. In International Conference on Learning Representations.
[19] Jonathan Mei, Alexander Moreno, and Luke Walters. 2023. KrADagrad: Kronecker Approximation-Domination Gradient Preconditioned Stochastic Optimization. In Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence (Proceedings of Machine Learning Research, Vol. 216). PMLR, 1412–1422.
[20] Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, and Hao Wu. 2018. Mixed Precision Training. In International Conference on Learning Representations.
[21] Takeshi Ogita, Siegfried M. Rump, and Shin'ichi Oishi. 2005. Accurate Sum and Dot Product. SIAM Journal on Scientific Computing 26, 6 (2005), 1955–1988. doi:10.1137/030601818
[22] Houwen Peng, Kan Wu, Yixuan Wei, Guoshuai Zhao, Yuxiang Yang, Ze Liu, Yifan Xiong, Ziyue Yang, Bolin Ni, Jingcheng Hu, Ruihang Li, Miaosen Zhang, Chen Li, Jia Ning, Ruizhe Wang, Zheng Zhang, Shuguang Liu, Joe Chau, Han Hu, and Peng Cheng. 2023. FP8-LM: Training FP8 Large Language Models. arXiv:2310.18313 doi:10.48550/arXiv.2310.18313
[23] John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. 2016. High-Dimensional Continuous Control Using Generalized Advantage Estimation. In International Conference on Learning Representations.
[24] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal Policy Optimization Algorithms. arXiv:1707.06347 https://arxiv.org/abs/1707.06347
[25] Erik Schultheis and Dan Alistarh. 2026. LLMQ: Efficient Lower-Precision LLM Training for Consumer GPUs. In Conference on Parsimony and Learning (Proceedings of Machine Learning Research, Vol. 328). PMLR, 265–284.
[26] Noam Shazeer and Mitchell Stern. 2018. Adafactor: Adaptive Learning Rates with Sublinear Memory Cost. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80). PMLR, 4596–4604.
[27] Xingwu Sun, Shuaipeng Li, Ruobing Xie, Weidong Han, Kan Wu, Zhen Yang, Yixing Li, An Wang, Shuai Li, Jinbao Xue, Yu Cheng, Yangyu Tao, Zhanhui Kang, Cheng-Zhong Xu, Di Wang, and Jie Jiang. 2025. Scaling Laws for Floating-Point Quantization Training. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 57544–57570.
[28] Xuan Tang, Jichu Li, and Difan Zou. 2026. A Convergence Analysis of Adaptive Optimizers under Floating-Point Quantization. In International Conference on Learning Representations.
[29] Emanuel Todorov, Tom Erez, and Yuval Tassa. 2012. MuJoCo: A Physics Engine for Model-Based Control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems. 5026–5033. doi:10.1109/IROS.2012.6386109
[30] Mark Towers, Ariel Kwiatkowski, John U. Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Krimmel, Arjun KG, Rodrigo Perez-Vicente, J. K. Terry, Andrea Pierré, Sander Schulhoff, Jun Jet Tai, Hannah Tan, and Omar G. Younis. 2025. Gymnasium: A Standard Interface for Reinforcement Learning Environments. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc., Red Hook, NY, USA, 163114–163129. doi:10.52202/085713-4916
[31] Naigang Wang, Jungwook Choi, Daniel Brand, Chia-Yu Chen, and Kailash Gopalakrishnan. 2018. Training Deep Neural Networks with 8-bit Floating Point Numbers. In Advances in Neural Information Processing Systems, Vol. 31. Curran Associates, Inc.
[32] Ruizhe Wang, Yeyun Gong, Xiao Liu, Guoshuai Zhao, Ziyue Yang, Baining Guo, Zheng-Jun Zha, and Peng Cheng. 2025. Optimizing Large Language Model Training Using FP4 Quantization. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 62937–62957.
[33] Sike Wang, Pan Zhou, Jia Li, and Hua Huang. 2024. 4-bit Shampoo for Memory-Efficient Network Training. In Advances in Neural Information Processing Systems, Vol. 37. Curran Associates, Inc.
[34] Mitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari Morcos, Ali Farhadi, and Ludwig Schmidt. 2023. Stable and Low-Precision Training for Large-Scale
Vision-Language Models. In Advances in Neural Information Processing Systems, Vol. 36. Curran Associates, Inc. doi:10.52202/075280-0451
[35] Haocheng Xi, Han Cai, Ligeng Zhu, Yao Lu, Kurt Keutzer, Jianfei Chen, and Song Han. 2025. COAT: Compressing Optimizer States and Activation for Memory-Efficient FP8 Training. In International Conference on Learning Representations.
[36] Haocheng Xi, Yuxiang Chen, Kang Zhao, Kai Jun Teh, Jianfei Chen, and Jun Zhu. 2024. Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow
and Per-Block Quantization. In Proceedings of the 41st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 235). PMLR, 54049–54063.
[37] Zhi Zhou, Xu Chen, En Li, Liekang Zeng, Ke Luo, and Junshan Zhang. 2019. Edge Intelligence: Paving the Last Mile of Artificial Intelligence With Edge Computing. Proc. IEEE 107, 8 (2019), 1738–1762. doi:10.1109/JPROC.2019.2918951