TL;DR
Researchers at Princeton evaluated the "accuracy tax" of new 4-bit microscaling formats (MXFP4 and NVFP4) on small wearable activity recognition models. They found that while standard 8-bit quantization costs almost nothing, 4-bit formats diverge significantly: NVIDIA’s NVFP4 remains highly accurate, while the reference conversion for the Open Compute Project’s MXFP4 suffers due to aggressive value clipping caused by its scale-rounding rules.
What Problem Does This Paper Address?
As deep learning moves to the "edge"—specifically onto wearable devices like smartwatches or sports sensors—memory and power become extreme bottlenecks. Reducing the precision of model weights and activations from 32-bit floats to 4-bit formats can drastically cut memory traffic and storage.
However, most research on these new 4-bit "microscaling" formats has focused on massive Large Language Models (LLMs). We don't know if these formats work for the tiny, specialized models used in Human Activity Recognition (HAR), which process low-rate sensor data (like accelerometers) rather than text or images. This paper quantifies that cost for a small 1D CNN designed to recognize basketball actions.
Methods
The authors trained a 159,492-parameter 1D CNN and evaluated it using a rigorous five-fold cross-validation grouped by player. This ensures the model is tested on "unseen" athletes, a much harder and more realistic task than standard random splits.
To test 4-bit precision, they used fake quantization (simulation). Since current commodity CPUs don't have hardware support for 4-bit floating-point math, the researchers rounded the numbers to the 4-bit format and back to 32-bit to measure the accuracy loss caused by rounding errors and clipping. They compared:
- MXFP4 (Open Compute Project): Uses 32-value blocks sharing a power-of-two scale.
- NVFP4 (NVIDIA): Uses 16-value blocks with an 8-bit floating-point scale and a global tensor scale.
- Baselines: FP32 (full precision), FP16, and INT8 (the current industry standard).
Datasets
The study uses the Hang-Time HAR dataset, which contains wrist-accelerometer data (50 Hz) from 24 basketball players. The task is to classify four specific actions: dribbling, shooting, passing, and laying up. The authors also mention using this as a proxy for ice-hockey stick-sensor data, which they plan to target in future work.
Key Insights and Ideas
- The "Rounding Down" Trap: The most striking finding is that MXFP4's accuracy loss isn't inherent to the 4-bit format itself, but rather the conversion recipe. The reference MXFP4 conversion rounds scales down to the nearest power of two. This often makes the scale too small, causing the largest values in a block to be "clipped" (cut off).
- Clipping is Common: In their model, roughly 43% of weight blocks experienced clipping under the MXFP4 round-down rule.
- Scale Matters More Than Block Size: While NVFP4 uses smaller blocks (16 vs 32), the ablation study showed that the choice of scaling rule (how you pick the multiplier for the block) is the dominant factor in maintaining accuracy.
- NVFP4 is Robust: By using a more flexible 8-bit scale (E4M3) and a per-tensor scale, NVFP4 avoids the heavy clipping seen in the reference MXFP4 implementation, making it much more suitable for these small, sensitive models.
Key Results
The researchers found that moving from full precision (FP32) to 8-bit (INT8) resulted in a negligible loss of less than 0.2 percentage points in Macro-F1 score. However, the jump to 4-bit was more dramatic:
- Weights-only quantization (W4): MXFP4 lost 1.45 points; NVFP4 lost only 0.72 points.
- Weights and Activations (W4A4): The gap widened significantly. MXFP4 dropped by 5.14 points, while NVFP4 dropped by only 0.75 points.
The ablation study (Figure 2) confirmed that simply changing the MXFP4 scaling rule from "round-down" to "round-up" (which is allowed by the OCP specification) recovered most of the lost accuracy.
Limitations and Future Work
- Simulation vs. Hardware: The 4-bit results are simulated. Real-world performance (speed and energy) can only be measured once hardware with native 4-bit support is widely available.
- Optimistic Activations: The simulator picks activation scales for every single window. In real hardware, these scales are often fixed in advance based on calibration data, which might lead to slightly higher losses than reported here.
- Narrow Scope: The study focuses on one specific 1D CNN architecture and one dataset. The authors plan to expand this to ice-hockey data and test on physical hardware like the Raspberry Pi in the future.
Summary updated