Manuscript Offprint
arXiv:2611.007328 Bits to End the Loudness War: Lossless Floating-Point Compression for Audio Streams
Abstract
We present a native extension to the Free Lossless Audio Codec (FLAC) providing lossless compression for IEEE 754 single-precision (binary32) floating-point audio, alongside a survey and empirical benchmark of existing floating-point compression methods. While professional recording hardware is increasingly adopting 32-bit float converters and digital audio workstations process sound exclusively in floating-point math, consumer distribution remains constrained to fixed-point integer PCM. Through Dynamic Positional Alignment (DPA), our implementation achieves ≈ 44.1% compression ratios on natural multi-stage ADC recordings—matching the storage footprint of standard 24-bit integer FLAC—and ≈ 60.2% on complex digital workstation masters. By preserving dynamic peaks beyond 0 dBFS, the format also allows listeners and audiophiles to undo clipping, providing a practical technical path away from the loudness war with virtually no storage overhead. We do not claim to introduce a fundamentally new compression paradigm; our approach is conceptually similar to the floating-point mechanism in WavPack (which remains undocumented without published literature). Instead, this paper compares existing methods, provides theoretical grounding for why they succeed or fail, benchmarks current codec implementations, and contributes a reference implementation of a proven method within the FLAC ecosystem. The source implementation code, the Internet-Draft specifying the changes to the standard, and the benchmarks are all available at the GitHub link.
1 Introduction
point arithmetic. Within these production environments, signals that momentarily exceed 0 dBFS do not lose information; intermediate peaks remain preserved across the IEEE 754 exponent field.
Despite this unified floating-point chain across capture and production, consumer distribution remains the missing link in the digital pipeline. Storage and release formats remain strictly constrained to fixed-point integer PCM (16-bit or 24-bit). In integer PCM, 0 dBFS acts as an absolute digital boundary: sample values exceeding ±1.0 cannot be represented and are subject to hard digital clipping unless restrained by peak limiting. This forces engineers to compress or truncate dynamic peaks at the final export stage, breaking an otherwise continuous floating-point signal path.
1.2 The Loudness War and Permanent Dynamic Loss
This rigid 0 dBFS ceiling historically fueled the Loudness War [2]. In broadcast, streaming, and mobile listening environments, commercial incentives favored higher perceived acoustic loudness. Because fixed-point masters cannot exceed 0 dBFS, mastering workflows increasingly turned to brickwall limiting and aggressive dynamic range compression to push average signal levels (RMS) closer to full scale.
Table 1: Dynamic Range and Loudness Metrics Across Releases of Nirvana's Something In The Way
| Release | Peak Level (dBFS) | RMS Level (dBFS) | Crest Factor (dB) | RMS vs. 1991 |
|---|---|---|---|---|
| 1991 MFSL Master | -0.98 | -18.80 | 17.82 | 0.00 dB |
| 2011 Reissue | -0.30 | -13.15 | 12.85 | +5.65 dB |
| 2021 Remaster | -0.33 | -11.64 | 11.31 | +7.16 dB |
While metadata-based volume normalization (e.g. Replay-Gain [3]) was intended to mitigate perceptual loudness disparities, it is frequently bypassed, disabled, or inconsistently handled across playback hardware and consumer applications. This lack of reliability actively incentivizes mastering engineers to bake gain directly into the audio file itself—an inherently lossy practice that permanently destroys peak crest factor and waveform transients.

Figure 1: Waveform and dynamic range comparison across three releases of Nirvana's Something In The Way (1,280 sampled peaks per channel). Dashed red lines indicate the 0 dBFS () digital ceiling. Notice the emergence of brickwall limiting along the dBFS ceiling during the choruses of the 2021 remaster compared to the dynamic headroom preserved in the MFSL release.
This dynamic trade-off is shown in Fig. 1 and Table 1, analyzing three releases of Nirvana's acoustic track Something In The Way via FFmpeg's audio statistical filters [4]. In the 1991 Mobile Fidelity Sound Lab (MFSL) audiophile release, verses average around dBFS to dBFS, rising to peaks near dBFS during the chorus and maintaining a broad crest factor of 17.82 dB. In the 2021 remaster, the track's average RMS level is raised by dB, with peaks confined to a dBFS ceiling. Consequently, the crest factor drops by 6.51 dB, resulting in flat-topped peak envelopes during the loud passages.
Distributing audio in native IEEE 754 floating-point format provides a structural alternative. Peak transients that exceed 0 dBFS during production remain mathematically preserved rather than clipped. Audiophiles and listeners who wish to experience the uncompressed crest factor can manually attenuate digital playback levels prior to digital-to-analog conversion, bringing the entire signal below 0 dBFS and restoring the intended dynamic peaks without irreversible peak truncation.
The primary obstacle to this workflow has been the absence of native floating-point support in open lossless distribution formats. The Free Lossless Audio Codec (FLAC) [5] remains standard across high-resolution digital audio distribution, but has historically been restricted to integer PCM up to 32 bits. We implement native IEEE 754 single-precision compression within libFLAC, enabling float distribution without storage overhead.
2 Methodology
The encoding architecture presented in this section overcomes these distribution and dynamic compression challenges with zero storage overhead. Even where individual clipping artifacts or quantization losses might appear small in isolation, resolving them introduces no penalty in file size or transmission bandwidth. Our method is similar to WavPack [6].
2.1 IEEE 754 binary32 Structure

Figure 2: Bit allocation of an IEEE 754 binary32 floating-point word (1-bit sign, 8-bit exponent, 23-bit significand fraction).
An IEEE 754 single-precision floating-point word comprises a 1-bit sign (), an 8-bit biased exponent (), and a 23-bit fraction (), shown in Fig. 2. Defining the unbiased exponent as , the value evaluates to:
Applying Linear Predictive Coding (LPC) directly to raw floating-point bit streams is ineffective. Sign-magnitude encoding and frequent exponent changes degrade sample-to-sample autocorrelation. In particular, transitions across power-of-two amplitude boundaries alter mantissa bits in step changes that integer predictors treat as high-frequency noise. However, natural audio signals generally vary smoothly, keeping the active bit span within a standard FLAC frame window ( samples, ms at 44.1 kHz) well within manageable limits.
2.2 Dynamic Positional Alignment (DPA) Mode
In lossless audio compression, predictive coding cannot be formulated directly over floating-point representations due to a fundamental entropy explosion caused by precision dilation. Audio samples often possess sparse or compact mantissas (for example, an exact value of 1.0 contains 23 trailing zero fraction bits). However, evaluating an LPC filter with real-valued coefficients (such as ) instantly populates all 23 fraction bits with non-zero arithmetic digits.
Even when a floating-point prediction is exceptionally accurate, differing from the ground truth by only a minimal epsilon near machine precision (), that fractional discrepancy expands the sample's active bit span by up to 23 bits. In an aligned integer register, this single bit of fractional error scatters non-zero bits across the entire lower register. Instead of yielding compact, near-zero discrete integer residuals () that Golomb-Rice coding compresses to 1–2 bits, the prediction error inflates into a massive 23-bit residual, destroying the Laplacian distribution required for entropy coding.
To prevent this precision dilation, predictive coding must operate over a discrete integer ring where predictor states are systematically discretized ( ), requiring floating-point samples to first be aligned and mapped into discrete integer registers.
In binary positional notation, every normalized sample, , has an explicit 24-bit mantissa . Its active bit boundary relative to is bounded by:
where denotes the count of trailing zeros. Across an audio frame of N samples, the global active positions are:

Figure 3: Dynamic Positional Alignment (DPA) mapping single-precision IEEE 754 samples into a unified 29-bit integer register. The per-sample exponent dictates the alignment shift relative to the block maximum ( ). Coral cells delineate the active 24-bit significand, while white cells represent inactive headroom and trailing zero padding.
However, applying LPC directly to this unified aligned integer register introduces an information-theoretic conflict. While both regions of the word represent the amplitude-modulated signal, real-world acoustic recordings are strictly bounded by a physical Effective Number of Bits (ENOB) dictated by the ambient background noise of the recording environment. Even world-class studios certified to Noise Criterion NC-15 or NC-20 exhibit an ambient noise floor of dBSPL. Against typical musical peaks ( dBSPL), the physical space alone caps the usable dynamic range to under 100 dB ( bits). Below this acoustic threshold, recorded data consists entirely of uncorrelated environmental air motion and room noise, strictly limiting coherent, auto-correlated acoustic resolution to bits.
As a result, the aligned integer behaves as an alloy of two distinct physical regimes:
- Upper Bits (Physical ENOB): Corresponds to the coherent acoustic signal rising above the room's ambient noise floor. Because musical instruments and acoustic vibrations evolve smoothly over time, this region exhibits strong
sample-to-sample autocorrelation. Linear prediction models this physical motion with high fidelity, yielding prediction residuals that strictly follow a zero-mean Laplacian (discrete two-sided geometric) distribution, ideally suited for Golomb-Rice entropy coding.
- Lower Bits (Noise Floor and Rounding Arithmetic): Corresponds to the sub-ENOB region—governed entirely by ambient room background noise in physical captures, or uniform floating-point rounding arithmetic in DAW production workflows. Although this noise floor is envelope-modulated across block exponent scales, its instantaneous bit values are uncorrelated and identically distributed , behaving as pure white noise.
When this incompressible uniform noise floor is passed into a partitioned Rice coder alongside the upper bits, the Rice parameter k inflates dramatically across entire subframe partitions to prevent unary blowout, penalizing the coding efficiency of the correlated upper bits.
To resolve this, DPA employs a dynamic 2-way split that routes each distribution to its mathematically optimal entropy coder, parameterized by the upper subframe bit depth (default 24 bits, stored in the frame header) and the lower subframe bit depth ( ). The total effective alignment width and corresponding base exponent position are given by:
Each logical audio channel is segregated into two coupled subframes:
- Upper Subframe ( bits): Contains the correlated acoustic waveform:
This subframe is processed through the standard FLAC LPC and Rice entropy coding pipeline, where the Laplacian predictor residuals are compressed optimally.
- Lower Subframe ( bits): Contains the uncorrelated fractional noise:
Because uniform noise cannot be compressed, this subframe bypasses Rice coding entirely and is serialized using a dedicated PACKED subframe type that writes raw, uncompressed variable-width bits. Capping the lower bit depth to at most 31 bits ( ) maintains a bounded lower subframe, as samples with dynamic spans exceeding this range can be represented in 32 bits as raw floats.
During sample alignment, when facing exact zeros ( ), subnormal values, non-finite values ( , NaNs), or values whose magnitude falls below the active upper window—the encoder sets in the upper subframe and writes the entire 32-bit raw IEEE 754 floating-point pattern directly into the packed subframe stream as an uncompressed 32-bit literal.
At decode time, the decoder reconstructs the alignment parameters symmetrically:
For each sample:
- If : The decoder reads , reconstructs the aligned integer via bitwise reassembly:
and recovers the original floating-point exponent directly from and the leading bit position with zero overhead.
- If : The decoder reads 32 raw bits from the packed subframe bitstream and emits the float directly.

Figure 4: Dynamic Positional Alignment (DPA) 2-way split between the upper LPC subframe and lower PACKED subframe (upper subframe width demonstrated at 24 bits).
As illustrated in Fig. 4, this dynamic positional alignment unifies the exponent trajectory and organizes samples relative to the subframe boundary.
2.3 Frame Mode Selection and Adaptive Fallback
Operating modes are selected on a per-frame basis. A frame defaults to DPA mode. Under pathological dynamic spans or extreme frame-level dynamic range, the auxiliary PACKED subframe may theoretically expand to store full 32-bit uncompressed floating-point literals with no compression gain. When an audio segment contains extreme dynamic divergence, numerical outliers, or high concentrations of values that drop below the active upper window, the overhead of transmitting uncompressed literal payloads alongside upper subframe metadata can cause negative compression (expanding the file beyond the raw stream). To prevent this, the codec incorporates an adaptive fallback mechanism reserved for:
- Efficiency Reversion: If the DPA compressed frame size fails to achieve at least a 25% savings (i.e., the compressed payload is > 75% of the raw uncompressed bits), the encoder automatically discards the DPA pass and reverts to Fallback mode for that frame.
In fallback mode, each audio channel is split into two independent subframes (4 subframes for stereo):
-
Exponent Subframe (8 bits): Centered using a -128 DC offset to remove step discontinuities, establishing a continuous exponent trajectory that facilitates inter-channel decorrelation and LPC filtering.
-
Significant Subframe (24 bits): The sign and fraction fields are mapped from sign-magnitude to signed two's complement, mapping -0.0f uniquely to -8,388,608 and providing a continuous signed manifold around zero-crossings for linear prediction.
3 Performance and Implications
In the comparative figures throughout this section, benchmarks are presented exclusively for Tier 3, 24-bit, > 48 kHz real-world streams. This focus reflects our primary target scenario: consumer delivery of high-resolution (Hi-Res) music. Our core empirical finding is that such high-resolution music can be losslessly transitioned to 32-bit floating-point representations with zero additional storage footprint compared to legacy 24-bit integer PCM. Readers interested in comprehensive benchmarking across all tiers, bit depths, sampling strata, and synthetic stress signals are referred to Appendix A.
Across both capture and master simulations, FLAC exhibits a 3% to 4% compression lag relative to the best-performing codecs (WavPack, MPEG-4 ALS, and OptimFROG). Crucially, this margin is entirely expected: standard FLAC displays the exact same 3% to 4% gap when compressing conventional integer PCM streams due to its lightweight linear prediction engine and simple Rice entropy coding compared to high-complexity asymmetric numeral systems or advanced context models. The underlying mechanisms for floating-point segregation perform identically across codecs (with the sole exception of Monkey's Audio, which fails to isolate mantissa noise). Most importantly, compared to conventional 24-bit integer FLAC files, FLAC floating-point files still maintain a minimal storage footprint.
3.1 Performance on Raw ADC Captures
On live recordings captured via multi-stage 32-bit float ADCs, DPA mode achieves an exceptional ≈ 44.1% compression ratio, matching the storage footprint of standard 24-bit integer FLAC. This compression performance arises directly from the underlying physical capture topology: raw audio is recorded by physical ADCs that operate with an effective resolution of 24 bits. Although the signal is scaled into floating-point format via gain staging, the active bit span within each individual frame remains bounded by 24 bits. The only transition occurs when the recording hardware switches between converter stages, which happens quite infrequently across standard frame windows.
Because standard FLAC compresses 24-bit integer PCM to an average ratio of ≈ 60.2%, and DPA transforms the 32-bit floating-point stream into an aligned integer representation of equivalent effective precision, the final compression ratio evaluates to Ratio ≈ 60% × = 45%. Thus, the storage footprint of raw 32-bit float audio is theoretically grounded to match that of conventional 24-bit integer PCM (see Fig. 5).

Figure 5: Compression ratio across codecs under Dual-Stage ADC simulation on high-resolution musical material (Tier 3, 24-bit, > 48 kHz).
Additionally, engineers designing dual-stage converters are advised to calibrate analog preamplification to exact power-of-two voltage gain ratios ( , such as ) rather than nominal decibel targets (such as 6 dB ≈ 1.995×, or arbitrary steps like 3 dB or 5 dB). Because decibels are base-10 logarithmic quantities, nominal decibel gain steps require fractional digital multipliers that scatter non-zero rounding noise across the entire mantissa. In contrast, an exact analog gain ratio allows digital firmware to stitch converter stages by merely adjusting the IEEE 754 exponent by , leaving the significand bits bit-for-bit intact and preserving clean trailing zeros for optimal DPA packing.
3.2 Workstation Masters and Consumer Delivery
On complex digital masters, the operational efficiency of DPA mode hinges directly on the selected upper subframe bit depth ( ). Fig. 6 illustrates the compression ratio as a function of on complex 32-bit floating-point master files, revealing a distinct U-curve governed by the tension between predictor precision and entropy coder inflation:
• Left Branch ( ): Predictor Starvation. The upper subframe is allocated insufficient bits to model the acoustic waveform smoothly. The unmodeled dynamics overflow into the lower subframe where they are stored uncompressed, drastically inflating file size.
• Right Branch ( ): Rice Parameter Inflation. As exceeds the physical 24-bit single-precision man-
tissa span, trailing float noise is pulled into the upper subframe. The resulting variance spikes force the Rice coder to raise k across entire partitions, exponentially degrading compression.
• The Sweet Spot ( ): By setting the upper resolution near the true physical noise floor, the codec isolates the Laplacian data from the Uniform data, achieving a global optimum compression ratio of at .

Figure 6: Compression ratio as a function of the upper subframe bit depth ( ) on a complex DAW master (lower is better). Isolating the Laplacian acoustic data from the Uniform float noise yields optimal compression, avoiding both predictor starvation and Rice coder inflation.
The U-curve essentially demonstrates that the effective number of bits (ENOB) per sample is around 16. In typical audio workflows, background noise limit coherent acoustic resolution to this range; allocating predictor bits beyond this boundary simply captures the noise.
Theoretically, for uniformly distributed floating-point mantissas across full scale, half of the samples have their most significant bit active (requiring 1 packed bit), one quarter require 2 packed bits, and so on. The expected bit allocation across a 24-bit mantissa evaluates to:
Because this geometric series converges strictly to 2, the asymptotic theoretical expectation is 2 bits per sample in the packed subframe. In real-world audio, empirical measurements yield an average of bps. Because music is inherently non-stationary—exhibiting continuous dynamic fluctuations between quiet passages and loud transients—the active bit span varies across frames. Nevertheless, this bounded overhead confirms that raw serialization of fractional noise incurs low storage penalty. In particular, standard FLAC compresses the upper 24-bit audio subframe to an average ratio of (14.4 effective bps). Adding the bps lower subframe yields a combined bit budget of . In practice, empirical evaluation on complex master material converges to an average compression ratio of ≈ 60.2% (see Fig. 7).

Figure 7: Compression ratio across codecs under Complex DAW simulation on high-resolution musical material (Tier 3, 24-bit, > 48 kHz).
For consumer delivery, FLAC introduces the dedicated export option:
-force-empty-packed-subframe-which-is-not-lossless
Applying this flag omits the PACKED subframe entirely, purging the uniform floating-point arithmetic noise floor while discarding virtually zero ENOB or real acoustic information.
Crucially, using this option produces an output stream whose file size is indistinguishable from a conventional 24-bit integer PCM stream. Online high-resolution music storefronts can therefore deliver native floating-point audio with zero storage overhead compared to their existing fixed-point catalogs. This provides three foundational industry benefits:
-
Clipping is Not Permanently Baked In: Mastering engineers are freed from the artificial constraint of the 0 dBFS brickwall limiter ceiling, preserving natural transient punch for downstream attenuation.
-
Superior Quality for Float ADC Recordings: Acoustic captures from 32-bit float location recorders retain uncompressed dynamic fidelity without truncation or requantization artifacts.
-
End-to-End Floating-Point Pipeline: Maintaining an unbroken floating-point workflow from tracking through mixing, mastering, and final delivery eliminates lossy format conversions and cumulative quantization errors.
3.3 Scientific Time Series and High-Precision Measurements
A ≈ 75% compression ratio acts as a structural upper bound when FLAC adaptively reverts to fallback mode (see Fig. 8). Because physical amplitude envelopes typically evolve smoothly over continuous trajectories, the 8-bit exponent subframe exhibits strong sample-to-sample autocorrelation and compresses to near-zero bitrate under linear prediction. Consequently, the compressed frame size is bounded almost entirely by the 24-bit
significand subframe (24/32 = 75%), even when sensor noise, steep decay, or high-entropy measurement dynamics render fractional bits incompressible.
Adaptive fallback also serves as an automated safeguard against pathological dynamic spans that defeat positional alignment. When intra-frame dynamics exceed the 31-bit DPA window (), pure alignment would force out-of-window samples into uncompressed 32-bit raw float serialization, expanding the payload beyond raw PCM. Instead, the encoder's efficiency threshold (> 75% uncompressed payload) automatically reverts those frames to Fallback mode, maintaining bounded file sizes across all arbitrary inputs.

Figure 8: Macro-mean compression ratio across codecs under scientific time series and pathological signals (Tier 3; lower is better).
This architectural resilience allows libFLAC to reliably bound worst-case storage overhead on extreme signals, outperforming competitors overall without specialized format branches. A detailed breakdown across the synthetic stress regimes, along with an evaluation of non-finite sentinel telemetry, is provided in Appendix A.4.
4 Architectural Evolution and Design Trade-Offs
Developing native lossless floating-point compression within libFLAC required navigating the trade-off between architectural complexity and compression ratio. To isolate the exact mathematical bottlenecks of IEEE 754 encoding, we evaluated five developmental stages spanning six distinct techniques before arriving at Dynamic Positional Alignment (DPA) with 2-way splitting. We document this architectural progression to provide future codec designers with an empirical cost-benefit reference.
- Raw Floats as 32-Bit Signed Integers (Baseline): The simplest conceivable approach feeds raw IEEE 754 binary32 bit patterns directly into FLAC's existing integer linear predictive coding (LPC) and Rice coding pipeline. Despite sign-magnitude discontinuities and step changes across power-of-two boundaries, standard integer predictors achieve an unoptimized compression ratio of ≈ 89.3%.
This establishes the baseline performance floor requiring zero format modifications.
- Single-Stream Bitwise Transformations: To improve sample-to-sample autocorrelation without splitting channels into auxiliary subframes, we evaluated in-place bitwise mappings that transform binary32 words into pseudo-two's-complement integers prior to LPC analysis:
-
Monkey's Audio (MAC) Transform: In standard normalized audio, sample magnitudes strictly reside within , meaning biased exponents are always < 127 (the highest bit is 0). Typical exponents cluster between 123 and 126, meaning the next 3 to 4 highest bits are consistently set to 1. The MAC [7] transform leverages this by applying the 0x3C000000 bitmask via XOR, which negates these predictable "always 1" bits. This effectively maps large exponent values down to a tight integer range (e.g., 0 to 7) at the top of the word. Coupled with conditional negation on the sign bit, this heuristic smooths the top bits for the integer predictor.
-
Cyclic Shift Transform: While actual bit-shifting perfectly aligns mantissas, doing so within a fixed 32-bit word is inherently lossy. This transform attempted a lossless approximation via modular arithmetic. By cyclically shifting the significand by a modulo of the exponent ((23*12-exponent)%23), mantissas are dynamically aligned within any 23-wide exponent interval, causing lower exponents to align with themselves. While highly effective on clean 24-bit streams, it failed on complex DAW masters: cyclic shifting wrapped the incompressible floating-point rounding noise from the bottom of the mantissa directly into the high-order bits, destroying LPC correlation and performing worse than the raw float baseline.
-
Pseudo-Two's Complement Transform: The optimal single-stream heuristic avoids cyclic bit-wrapping. It inverts the biased exponent , maps it to the upper 8 bits, and conditionally complements the significand when the sign is negative. Because the exponent bits are mapped to the most significant bit positions, their smooth, slow-moving trajectories are almost guaranteed to be compressed highly efficiently by standard predictive coding. Furthermore, conditional negation enforces monotonic continuity across zero crossings. This achieves the highest compression ratio among single-stream techniques. However, transitions across power-of-two amplitude boundaries remain the central bottleneck for the coder.
-
Forced 2-Subframe Fallback Mode: Decouples each channel into an 8-bit Exponent subframe (centered with a -128 DC offset) and a 24-bit Significand subframe mapped to signed two's complement notation. This removes step discontinuities and establishes a continuous exponent trajectory that facilitates inter-channel decorrelation and LPC filtering for the exponent bits. However, lacking global positional alignment, the LPC filter must model unaligned mantissa amplitudes independently, yielding overall poor efficiency.
-
Dynamic Positional Alignment (Base Alignment in 1 Subframe Only): To allow standard predictors to operate on true time-domain values, this iteration aligns all frame samples to the lowest active position ( ) via left-shifting. On multi-stage ADC recordings, the active bit span remains strictly bounded by 24 bits ( ), allowing the standard LPC pipeline to compress the stream to with zero structural modifications. On complex DAW masters, active bit spans expand up to 47 bits. To align to the quietest sample, loud samples (with higher exponents) must be left-shifted significantly. While the predictor perfectly models the scaled waveform, this left-shift physically pads the loud samples with large quantities of uninformative trailing zeros (e.g., up to 23 zeros). The entropy coder is forced to physically initialize these trailing zeros, severely bottlenecking compression.
-
DPA with Shift-Normalized Prediction (Delta Stream): To eliminate the entropy overhead of storing the trailing zeros generated by loud samples, this iteration introduced a dedicated 8-bit Delta subframe ( ) to initialize exponent shift trajectories, enabling shift-normalized prediction. Aligning samples via a left shift ( ) establishes a strict mathematical congruence constraint on the integer signal. This relationship proves that the bottom bits of the prediction residual are completely deterministic given the predictor state . Rather than spending entropy-coding bandwidth transmitting these redundant low-order bits, the encoder extracts the deterministic remainder and normalizes the residual via an arithmetic right shift . At decode time, the decoder decodes the Delta subframe to recover , computes from reconstructed prior samples, evaluates , and restores the exact residual .
While shift normalization successfully stripped the trailing zeros from the loud samples, empirical instrumentation revealed that the quotient residuals formed a rigid, uniform floor of bits/sample across entire blocks. Normalizing residuals by dividing by the local sample shift mathematically scaled the prediction errors back to the full 24-bit mantissa domain. Because non-power-of-two gain staging fills the lower mantissa of every sample with uniform rounding noise, feeding this uniform distribution into a partitioned Rice coder caused partition-wide parameter inflation, capping DAW compression at .
-
DPA with 2-Way Splitting (Current Work): Solves the uniform noise bottleneck through pre-prediction distribution segregation. Rather than normalizing residuals post-prediction, DPA segregates the aligned integer into an Upper Subframe of width ( ) and a Lower Subframe (), with lower bit depth bounded by . Outliers and samples with (including zeros, subnormals, and non-finite floats) are directly captured as raw 32-bit floats within the auxiliary stream. The Upper Subframe preserves the Laplacian acoustic distribution for optimal LPC and Rice coding, while the Lower Subframe serializes uniform rounding noise as uncompressed packed bits, completely bypassing Rice coding.
-
Common Factor Estimation and Dictionary Coding (MPEG-4 ALS): Beyond bitwise transformations and DPA, MPEG-4 ALS (ISO/IEC 14496-3) [8] adopts two fundamentally different mechanisms for floating-point audio: Common Factor Estimation (CFE) and Lempel-Ziv (LZ) compression of lower mantissa bits. CFE operates under the premise that the audio stream originates from a 24-bit integer source with an added uniform gain factor that alters the bit structure; it attempts to identify this common multiplier and invert it to recover discrete integer samples. However, this assumption is valid only for simple gain scaling. Production DAWs are substantially more complex: a single equalization (EQ) filter, dynamic compressor, or multi-bus summing pass thoroughly breaks this assumption, rendering CFE useless. Similarly, LZ dictionary compression is ineffective on complex workstation masters. LZ compression only yields meaningful gains when simplistic arithmetic operations have been applied to the audio stream (e.g., dividing by 3, which generates repeating binary bit sequences across samples). Under such contrived conditions, our internal results suggested that MPEG-4 ALS achieves compression ratios near while other techniques remain near . However, across authentic real-world masters, fractional arithmetic noise is statistically uniform and non-repetitive, offering no recurrent substrings for dictionary parsing. Our benchmarks on realistic production material confirm that these techniques provide no practical advantage on real-world streams. Consequently, adding this algorithmic complexity to the FLAC codec specification was not considered.
Acknowledgments
The author would like to express sincere gratitude to Prof. Mohammad Hossein Rohban and Prof. Mohammad Bahrani for their supervision, guidance, and support throughout this research.
Department of Computer Engineering, Sharif University of Technology. Email: rohban@sharif.edu. Faculty of Mathematical Sciences and Computer, Allameh Tabatabaf University. Email: bahrani@atu.ac.ir.

Figure 9: Compression ratios across architectural evolution stages under Dual-Stage ADC and Complex DAW simulations on high-resolution musical material (Tier 3, 24-bit, ).
References
[1] TASCAM. "What is 32-bit float recording?" Wayback Machine: https://web.archive.org/web/20230604051045/https://tascam.com/us/feature/32-bit_float, Accessed: Jun. 4, 2023. [Online]. Available: https://tascam.com/us/feature/32-bit_float
[2] E. Vickers, "The Loudness War: Background, Speculation, and Recommendations," in AES Convention 129, Audio Engineering Society, Nov. 2010, 8175:1-. [Online]. Available: https://aes.org/publications/elibrary-page/?id=15598
[3] Hydrogenaudio, Revised ReplayGain specification, Hydrogenaudio Knowledgebase, 2026. Accessed: Jan. 23, 2026. [Online]. Available: https://wiki.hydrogenaudio.org/index.php?title=Revised_ReplayGain_specification
[4] F. Developers, Ffmpeg tool, version 9.0.1, 2026. [Online]. Available: https://www.ffmpeg.org/
[5] M. van Beurden and A. Weaver, Free Lossless Audio Codec (FLAC), Request for Comments 9639, RFC Editor, Dec. 2024, 75 pp. doi: 10.17487/RFC9639 [Online]. Available: https://www.rfc-editor.org/info/rfc9639/
[6] D. Bryant, Wavpack audio compression, version 5.9.0, 2026. [Online]. Available: https://www.wavpack.com/
[7] M. T. Ashland, Monkey's audio, version 13.26, 2026. [Online]. Available: https://monkeysaudio.com
[8] N. Harada, T. Moriya, H. Sekigawa, and K. Shirayanagi, "Lossless Compression of IEEE Floating-point Audio using Approximate Common Factor Coding and Masked-LZ Compression," in AES Convention 118, Audio Engineering Society, May 2005, 6352:1-. [Online]. Avail-able: https://aes.org/publications/elibrary-page/?id=13068
A Experimental Evaluation and Benchmarks
To evaluate the empirical efficiency of the proposed floating-point implementation, we benchmarked our native FLAC fork against the established state of the art in lossless floating-point audio compression: WavPack 5.9.0, MPEG-4 ALS v23, OptimFROG (off) v5.1000, and Monkey's Audio 13.26.
A.1 Benchmark Corpus and Simulation Models
The evaluation suite comprises a three-tier corpus totaling 144 audio tracks:
-
Tier 1: Canonical Public Sets (101 tracks): The complete official European Broadcasting Union Sound Quality Assessment Material (EBU SQAM, Tech 3253; 70 tracks, 16-bit / 44.1 kHz) and the complete public-domain studio recording of J.S. Bach's Open Goldberg Variations performed by Kimiko Ishizaka (31 tracks, native 24-bit studio masters).
-
Tier 2: Stratified Real-World Music (40 tracks): Commercial master recordings sampled across ten diverse genres (including blues, rock, electronic, jazz, progressive metal, soul, and acoustic pop).
-
Tier 3: Scientific Time Series and Pathological Signals (3 tracks): Algorithmic and sensor-telemetry stress models (including wide-range exponent staircases, exponential seismic decay, and sentinel NaN dropouts).
All audio tracks across the three tiers were originally fixed-point integer PCM streams (16-bit or 24-bit). Because native floating-point distribution files are not yet commercially widespread, we converted these integer streams to IEEE 754 single-precision float and constructed two deterministic operational simulations:
-
Dual-Stage ADC Simulation: To realistically simulate a 2-stage ADC architecture, the audio stream is subjected to discrete gain staging. Every 10 seconds, samples are shifted by an exact power-of-two factor of () only, with a 50% probability. Because exact power-of-two scaling modifies only the IEEE 754 exponent field, the significant bits remain bit-for-bit unaltered outside stage transitions.
-
Complex DAW Master Simulation: Each float sample is transformed via a non-linear power curve . This non-linearity simulates complex digital workstation processing (such as equalization and dynamic shaping) that thoroughly alters the floating-point mantissa bits while keeping the samples relatively bounded within the normalized interval.
Under this simulation, arithmetic rounding thoroughly populates all 23 significant bits, expanding active bit spans to 39 bits for 16-bit sources and 47 bits for 24-bit sources, triggering dynamic two-way splitting.
All codecs were verified to decompress 100% bit-for-bit losslessly across all 144 tracks and both simulation regimes.
A.2 Operational Throughput (Real-Time Factors)
To evaluate operational throughput realistically for interactive audio workstations and consumer battery-constrained devices, speed comparisons were conducted using standard (default) compression presets across all codecs: f1ac -5, wavpack (default), mp4als (default), off (default), and mac -c2000. Throughput was measured in real-time playback factors ( real-time, defined as stream duration divided by processing duration).
Table 2: Operational Throughput Comparison at Default Presets
| Simulation Scenario | Codec | Encode Speed(× Real-Time) | Decode Speed(× Real-Time) |
|---|---|---|---|
| Dual-Stage ADC | FLAC (Ours, -5) | 169.1× | 160.9× |
| WavPack (Default) | 62.4× | 117.9× | |
| MPEG-4 ALS (Default) | 20.1× | 66.0× | |
| OptimFROG (Default) | 18.5× | 27.5× | |
| Monkey's Audio (-c2000) | 33.2× | 31.9× | |
| Complex DAW Master | FLAC (Ours, -5) | 114.6× | 101.0× |
| WavPack (Default) | 53.9× | 103.6× | |
| MPEG-4 ALS (Default) | 5.8× | 57.8× | |
| OptimFROG (Default) | 17.2× | 24.6× | |
| Monkey's Audio (-c2000) | 34.7× | 34.1× |
A.3 Cross-Codec Compression Benchmarks
Tables 3 and 4 present compression ratios across the corpus. For evaluating compression ratios, all codecs were evaluated at their highest compression settings: f1ac -8, wavpack -hh -x6 -threads=1, mp4als -7 -f5, off -mode highnew-light -optimize best, and mac -c5000 -threads=1.
A.4 Scientific Time Series and Pathological Stress Tests
To evaluate codec robustness beyond acoustic material, we constructed Tier 3, consisting of synthetic stress models designed to evaluate extreme dynamic divergence, automated fallback switching, and non-finite representation. The resulting compression metrics are reported in Table 5.
Evaluation Regimes and Architectural Rationale
- Monotonic Exponent Staircase: A single 4096-sample frame subdivided into 64 uniform blocks of 64 samples, stepping the unbiased exponent monotonically from 0 down to -63 (spanning 64 powers of two per frame).
- Rationale: Deliberately exceeds the 31-bit positional register window () within every single
Table 3: Lossless Compression Ratios for Dual-Stage ADC Simulation (Maximum Presets; lower is better)
| Corpus Tier | Format Strata | Sampling Rate | FLAC (Ours) | WavPack | MPEG-4 ALS | OptimFROG | Monkey's Audio 13.26 | Paired Difference vs. WavPack | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| (Mean ± 90% CI) | -hh -x6 | -7 -f5 | highnew-light | -c5000 | Δ (%) | 90% CI | p-value | ||||
| Tier 1: Canonical | 16-bit PCM | ≤ 48 kHz | 24.18 ± 1.08% | 14.11% | 12.67% | 12.22% | 75.70% | +10.07% | [+9.35, +10.79] | < 10⁻⁴ | |
| 24-bit PCM | > 48 kHz | 35.52 ± 0.25% | 35.20% | 34.57% | 35.28% | 87.51% | +0.32% | [+0.31, +0.33] | < 10⁻⁴ | ||
| Tier 2: Stratified Music | 16-bit PCM | ≤ 48 kHz | 34.43 ± 1.06% | 30.78% | 30.43% | 29.78% | 104.48% | +3.65% | [+3.11, +4.20] | < 10⁻⁴ | |
| 24-bit PCM | ≤ 48 kHz | 55.84 ± 8.76% | 54.01% | 53.14% | 53.08% | 97.36% | +1.83% | [+0.72, +2.94] | 0.030 | ||
| > 48 kHz | 44.11 ± 2.93% | 40.87% | 40.36% | 40.70% | 89.81% | +3.23% | [+0.63, +5.83] | 0.046 | |||
| Tier 2 Macro-Mean (40 Tracks) | 39.96 ± 2.24% | 36.63% | 36.17% | 35.93% | 98.63% | +3.32% | [+2.42, +4.23] | < 10⁻⁴ | |||
Table 4: Lossless Compression Ratios for Complex DAW Master Simulation (Maximum Presets; lower is better)
| Corpus Tier | Format Strata | Sampling Rate | FLAC (Ours) | WavPack | MPEG-4 ALS | OptimFROG | Monkey's Audio 13.26 | Paired Difference vs. WavPack | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| (Mean ± 90% CI) | -hh -x6 | -7 -f5 | highnew-light | -c5000 | Δ (%) | 90% CI | p-value | ||||
| Tier 1: Canonical | 16-bit PCM | ≤ 48 kHz | 54.46 ± 1.55% | 51.01% | 50.07% | 50.31% | 68.74% | +3.46% | [+2.41, +4.50] | < 10⁻⁴ | |
| 24-bit PCM | > 48 kHz | 54.97 ± 0.24% | 54.47% | 54.77% | 54.16% | 83.06% | +0.50% | [+0.43, +0.57] | < 10⁻⁴ | ||
| Tier 2: Stratified Music | 16-bit PCM | ≤ 48 kHz | 70.71 ± 1.23% | 68.61% | 68.37% | 67.83% | 81.80% | +2.10% | [+1.67, +2.54] | < 10⁻⁴ | |
| 24-bit PCM | ≤ 48 kHz | 69.65 ± 5.67% | 67.59% | 67.36% | 66.66% | 80.62% | +2.06% | [+0.33, +3.79] | 0.067 | ||
| > 48 kHz | 60.15 ± 2.03% | 57.57% | 57.92% | 57.13% | 78.19% | +2.58% | [-0.08, +5.23] | 0.109 | |||
| Tier 2 Macro-Mean (40 Tracks) | 66.91 ± 1.67% | 64.64% | 64.61% | 63.97% | 80.42% | +2.27% | [+1.36, +3.17] | < 10⁻⁴ | |||
Table 5: Lossless Compression Ratios on Scientific Time Series and Pathological Signals (Tier 3; lower is better)
| Synthetic Signal | FLAC (Ours) | WavPack | MPEG-4 ALS | OptimFROG | Monkey's Audio |
|---|---|---|---|---|---|
| Exponent Staircase | 74.87% | 90.74% | 55.05% | 82.82% | 71.94% |
| Seismic Ringdown | 81.52% | 93.59% | 90.31% | 83.16% | 87.53% |
| Sensor Dropout (NaNs) | 77.92% | 52.24% | 48.87% | 44.07% | 229.68% |
| Macro-Mean | 78.10% | 78.86% | 64.74% | 70.02% | 129.72% |
frame. This verifies that the encoder cleanly detects uncompressed literal bloat and reverts to Fallback mode. Because the piecewise-linear exponent staircase is easily modeled by LPC, the 8-bit exponent subframe collapses to near-zero bitrate, verifying the theoretical 24/32 ≈ 75% bound.
- Seismic Shock and Exponential Decay: Simulates wide-range physical impulse response telemetry (such as seismological sensor events or nuclear magnetic resonance free induction decays), dropping 48 powers of two (> 280 dB) in amplitude within each 4096-sample frame.
- Rationale: Evaluates adaptive switching during sharp decay transients where positional alignment would otherwise suffer severe literal overhead. The efficiency safeguard successfully confines the frame size below the raw PCM stream, outperforming both WavPack and Monkey’s Audio.
- Sensor Dropout Telemetry with Sentinel NaNs: Simulates instrumentation loss and missing sensor frames, introducing random 50% dropouts where samples are independently replaced by canonical IEEE 754 quiet NaN sentinels (0x7FC00000).
- Rationale: Verifies bit-exact preservation and stability on non-finite data. While WavPack achieves a smaller footprint by dedicating a single bit to flag a NaN and storing only its mantissa, FLAC stores the entire raw 32-bit float without exception, which triggers a fallback under high dropout rates. Although FLAC could adopt a scheme similar to WavPack for irregular numbers (such as NaNs and infinities), we deliberately decided not to. Avoiding special-case exceptions keeps the codec format specification simple, facilitating easier and faster adoption for third-party implementations beyond the reference codec.
A.5 Ablation Across Architectural Iterations
To evaluate the empirical impact of each design milestone detailed in Section 4, we systematically benchmarked all developmental iterations across every tier, format stratum, and sampling rate category in the evaluation corpus. Tables 6 and 7 document the resulting compression ratios under the Dual-Stage ADC and Complex DAW Master simulation models, respectively. These measurements trace the performance trajectory from the unoptimized raw float baseline through single-stream transforms and shift-normalized prediction, culminating in the current two-way split DPA architecture.
Table 6: Lossless Compression Ratios Across Architectural Variants for Dual-Stage ADC Simulation (-8 Preset; lower is better)
| Corpus Tier | Format Strata | Sampling Rate | Raw | CyclicShift | BitManip | Fallback | OneSubframe | DPA_SNP | DPA (Ours)(Mean ± 90% CI) |
|---|---|---|---|---|---|---|---|---|---|
| Tier 1: Canonical | 16-bit PCM | ≤ 48 kHz | 37.60% | 64.52% | 36.91% | 32.74% | 14.85% | 21.21% | 24.18 ± 1.08% |
| 24-bit PCM | > 48 kHz | 69.09% | 79.63% | 70.43% | 64.01% | 35.37% | 43.32% | 35.52 ± 0.25% | |
| Tier 2: Stratified Music | 16-bit PCM | ≤ 48 kHz | 58.48% | 85.39% | 59.90% | 49.30% | 32.30% | 40.16% | 34.43 ± 1.06% |
| 24-bit PCM | ≤ 48 kHz | 79.93% | 84.71% | 81.78% | 72.75% | 55.62% | 63.37% | 55.84 ± 8.76% | |
| > 48 kHz | 70.01% | 78.81% | 73.05% | 68.23% | 43.10% | 51.00% | 44.11 ± 2.93% | ||
| Tier 2 Macro-Mean (40 Tracks) | 64.66% | 83.02% | 66.69% | 58.27% | 38.42% | 46.27% | 39.96 ± 2.24% | ||
Table 7: Lossless Compression Ratios Across Architectural Variants for Complex DAW Master Simulation (-8 Preset; lower is better)
| Corpus Tier | Format Strata | Sampling Rate | Raw | CyclicShift | BitManip | Fallback | OneSubframe | DPA_SNP | DPA (Ours)(Mean ± 90% CI) |
|---|---|---|---|---|---|---|---|---|---|
| Tier 1: Canonical | 16-bit PCM | ≤ 48 kHz | 72.30% | 71.53% | 61.97% | 64.24% | 64.31% | 63.10% | 54.46 ± 1.55% |
| 24-bit PCM | > 48 kHz | 93.38% | 89.48% | 73.30% | 74.59% | 74.55% | 68.16% | 54.97 ± 0.24% | |
| Tier 2: Stratified Music | 16-bit PCM | ≤ 48 kHz | 93.73% | 89.64% | 78.59% | 79.12% | 79.08% | 82.02% | 70.71 ± 1.23% |
| 24-bit PCM | ≤ 48 kHz | 94.27% | 89.83% | 77.29% | 78.20% | 78.20% | 80.52% | 69.65 ± 5.67% | |
| > 48 kHz | 89.33% | 88.46% | 71.58% | 74.84% | 74.94% | 71.27% | 60.15 ± 2.03% | ||
| Tier 2 Macro-Mean (40 Tracks) | 92.25% | 89.25% | 76.01% | 77.53% | 77.54% | 78.11% | 66.91 ± 1.67% | ||