TL;DR
ReFloat introduces a novel block-based floating-point data format and accelerator architecture designed to enable high-precision scientific computing on Resistive RAM (ReRAM) hardware. By exploiting exponent value locality within matrix blocks, ReFloat drastically reduces hardware crossbar overhead and processing cycles while guaranteeing solver convergence. This approach achieves up to an $84.28\times$ speedup in solver time compared to previous state-of-the-art ReRAM designs.
What Problem Does This Paper Address?
Resistive Random Access Memory (ReRAM) has emerged as a powerful technology for processing-in-memory (PIM), performing low-cost, in-situ matrix-vector multiplication (MVM) directly within the analog domain. While ReRAM has been highly successful in accelerating machine learning workloads—which tolerate low-precision, fixed-point math—it struggles with scientific computing.
Scientific computing relies heavily on solving partial differential equations (PDEs) through iterative linear solvers (like Conjugate Gradient). These algorithms demand high-precision floating-point (FP64) math. Directly mapping FP64 to ReRAM crossbars is prohibitively expensive: the required hardware scales exponentially with the number of exponent bits. Prior attempts to mitigate this by truncating exponents suffered from severe non-convergence issues because they failed to properly account for dynamically changing vector values across solver iterations.
Methods
The authors propose ReFloat, a co-designed data format and accelerator architecture tailored to ReRAM constraints.
- The ReFloat Format: Represented as $ReFloat(b, e, f)(e_v, f_v)$, where $b$ defines the matrix block size ($2^b$), $e$ and $f$ represent the matrix exponent and fraction bits, and $e_v$ and $f_v$ represent the vector exponent and fraction bits.
- Exponent Base Optimization: Instead of storing absolute exponents, ReFloat exploits exponent value locality—the observation that numbers clustered within a local matrix block share similar exponent values. ReFloat calculates an optimal shared exponent base ($e_b$) for each block by minimizing the mean squared error of the exponents, storing only small, low-bit offsets from this base.
- Processing Engine Architecture: The fraction parts of the matrix and vector are mapped to ReRAM crossbars to execute fixed-point MVM via standard shift-and-add operations. Peripheral digital logic then handles the exponent additions and sign bits to reconstruct the final floating-point output.
- Block-Major Layout: To prevent the memory bandwidth bottlenecks associated with sparse matrices, ReFloat organizes non-zero matrix elements into a block-major layout, ensuring data can be streamed sequentially into the crossbars.
Datasets
The architecture was evaluated using 12 sparse matrices from the SuiteSparse Matrix Collection (formerly the UF Sparse Matrix Collection). These matrices represent real-world scientific computing problems, with sizes ranging from 4,875 to 204,316 rows and varying degrees of sparsity and conditioning numbers. The format was tested on two primary iterative workloads: Conjugate Gradient (CG) and Stabilized BiConjugate Gradient (BiCGSTAB).
Key Insights and Ideas
- Iterative Solvers Tolerate Aggressive Truncation: Instead of relying on lossless compression, ReFloat aggressively discards exponent and fraction bits. Because iterative solvers naturally refine their solutions over multiple rounds, they possess an inherent resilience to early precision loss, absorbing the truncation errors without sacrificing final accuracy.
- Vector Precision Tracking is Mandatory: Prior hardware accelerators failed to converge because they only optimized the static matrix data. ReFloat recognizes that vector values change dynamically at every iteration; explicitly defining and tracking vector precision ($e_v, f_v$) is what guarantees solver convergence.
- Fraction Bits Matter Less Than Expected: While conventional wisdom kept all 52 fraction bits of FP64 intact, the authors discovered that reducing fraction bits has a minimal impact on the total iteration count, unlocking massive hardware savings.
Key Results
- Drastic Bit Reduction: Evaluation shows that just 3 bits for the exponent offset and 8 to 16 bits for the fraction are sufficient to guarantee convergence, a massive reduction from standard FP64.
- Significant Speedups: ReFloat achieves a $5.02\times$ to $84.28\times$ speedup in solver time compared to the state-of-the-art Feinberg ReRAM accelerator design.
- Reduced Memory Footprint: On average, the ReFloat format consumes only $0.192\times$ the memory of standard double-precision storage.
- Robustness to Analog Noise: When subjected to simulated Random Telegraph Noise (RTN) up to 25%, ReFloat maintains a $6.85\times$ speedup over a baseline GPU, proving that the algorithmic error-correction naturally mitigates physical hardware imperfections.
Limitations and Future Work
While ReFloat excels on matrices exhibiting strong value locality, its efficiency could degrade on highly chaotic matrices where exponents within a single block are widely scattered, potentially requiring a larger, less efficient exponent window ($e$). Additionally, while the paper provides rigorous architectural simulations and accounts for noise, a physical hardware implementation is required to fully validate the power overhead of the peripheral DAC/ADC conversions at scale.
Summary updated