Fisher-Rao Quantization-Aware Distance (FRQAD)
- The paper introduces FRQAD, a similarity metric that models quantization-induced uncertainty by representing each embedding as a diagonal Gaussian, ensuring a systematic preference for high-precision embeddings.
- It leverages the Fisher–Rao geodesic to jointly penalize differences in both the mean and variance of embeddings, ensuring a monotonic increase in distance with decreased bit-width.
- Empirical tests show FRQAD achieves 100% precision in mixed-precision retrieval, outperforming cosine similarity and standard Fisher–Rao methods in discriminating embedding quality.
Fisher-Rao Quantization-Aware Distance (FRQAD) is a principled similarity metric defined on the Gaussian statistical manifold, explicitly modeling quantization-induced uncertainty for neural embeddings. Developed in the context of local agent memory systems, FRQAD systematically discriminates between embeddings of varying bit-widths by inflating variance according to quantization error and evaluating true Fisher–Rao geodesic distance between the induced Gaussians. This construction guarantees monotonic preference for high-precision embeddings and seamlessly integrates with pipelines requiring mixed-precision nearest-neighbor comparisons (Bhardwaj, 6 Apr 2026).
1. Mathematical Formulation
Given two vector embeddings , each with potentially distinct quantization bit-widths , FRQAD assigns to each embedding a diagonal Gaussian:
Here, is the observation variance (reflecting model or measurement noise), is a learned or fixed sensitivity exponent (empirically suffices for discriminating bit-widths), and is the -dimensional identity matrix.
The FRQAD between two memories is the exact Fisher–Rao (Atkinson–Mitchell) geodesic between their Gaussians:
This form captures both mean displacement and variance mismatch, with the term ensuring strict increase in distance when precision decreases. The monotonicity property under bit-width degradation is thus guaranteed (Bhardwaj, 6 Apr 2026).
2. Theoretical Rationale and Derivation
The core tenet is that quantization error injects additive uncertainty, which is orthogonally represented as increased variance in the embedding's distributional model. Unlike cosine similarity or Mahalanobis distance, which ignore intra-vector reliability, FRQAD leverages the information-geometric structure of the Gaussian manifold, ensuring that both displacement in mean and mismatch in uncertainty are penalized.
- The observation variance 0 is interpreted as the base reliability of the embedding model.
- Quantization noise is modeled as multiplicative variance inflation: a lower 1 yields a higher 2, resulting in a "blurrier" representation and hence, higher distance.
- The Atkinson–Mitchell geodesic explicitly incorporates both types of deviation:
- 3 penalizes differences in deterministic embedding content.
- 4 penalizes disparities in uncertainty due to precision.
- The 5 parameter modulates the impact of bit-width scaling; a plausible implication is that 6 can be cross-validated for domain-specific optimality.
This structure is grounded in information geometry, where the Fisher–Rao metric is the unique Riemannian metric invariant under sufficient statistics transforms. For diagonal Gaussians, the Atkinson–Mitchell distance analytically quantifies mismatch in both location and scale (Bhardwaj, 6 Apr 2026).
3. Computation and Algorithmic Procedures
The FRQAD is computed as follows:
- For each embedding 7 (8 or 9), compute effective standard deviation:
0
- For each dimension 1:
- Compute 2
- Compute 3
- Denominator 4
- Compute 5
- Aggregate across dimensions:
6
To ensure numerical stability, the 7 argument is clamped at 8 (i.e. 9). The complexity is 0 per pairwise computation, making it tractable for reranking candidate sets.
4. Empirical Performance and Comparative Analysis
FRQAD was benchmarked using 768-dimensional embeddings from nomic-embed-text-v1.5, with 943 factual entries, each stored as both float32 and 4-bit TurboQuant, totaling 18,840 mixed-precision query-fact comparisons.
The key evaluation metric is "mixed-precision preference": the frequency with which the metric ranks the higher-precision (float32) embedding as closer to the query than its quantized version.
| Method | Prefers f32 | Precision (%) |
|---|---|---|
| Cosine | 16,127 | 85.6 |
| Fisher–Rao (no quant) | 13,316 | 70.7 |
| FRQAD | 18,840 | 100.0 |
FRQAD achieves perfect 100% precision for this task, while cosine similarity and standard Fisher–Rao fail to systematically penalize embedded noise due to quantization. Spearman correlation (1) of top-50 ranks is lower for FRQAD (2) compared to cosine (3); this reflects FRQAD's deliberate reordering to emphasize mean–variance reliability rather than pure similarity (Bhardwaj, 6 Apr 2026).
5. Theoretical Guarantees and Monotonicity
FRQAD possesses a monotonic degradation property:
- For any 4, 5.
- The variance-mismatch term in the Atkinson–Mitchell geodesic ensures that increasing 6 (i.e., reducing bit-width) results in strictly larger distance for all fixed queries.
- Empirically, this translates to perfect recall for higher-precision memories during retrieval in mixed-precision contexts.
6. Implementation and Operational Aspects
Key implementation notes include:
- FLOP count: On 768-dimensional embeddings, a few thousand FLOPs per comparison.
- Stability: Clamp 7 arguments; ensure 8 is not underestimated.
- 9 parameter can be cross-validated via held-out validation.
- 0 may be set to 1 (unit-norm assumption) or estimated from residual variance.
- Integration: FRQAD is primarily used as a secondary reranking step in k-NN or reciprocal rank fusion (RRF) stages, triggered only when comparing embeddings of different precisions.
- Storage: Embeddings are maintained in float32 until demoted; quantization-aware distances are only evaluated as necessary.
For uniform-precision datasets, FRQAD reduces to the standard Fisher–Rao or Mahalanobis metric and offers no systematic advantage (Bhardwaj, 6 Apr 2026).
7. Applications and Limitations
Applications:
- Mixed-precision vector databases and persistent memory systems managing embeddings of nonuniform bit-widths.
- Local agent memory systems that leverage progressive quantization (lifecycling old or less salient memories) yet require reliable retrieval and discrimination.
- Retrieval and clustering in domains where quantization uncertainty must be explicitly incorporated into similarity computations.
Limitations:
- The diagonal Gaussian assumption precludes off-diagonal covariance modeling within embeddings.
- Higher computational overhead than cosine similarity; advisable as a filtering/reranking stage rather than a global search metric.
- Performance is contingent on well-calibrated 2; improper scaling can result in skewed distance scales.
- For purely uniform-precision settings, the metric reverts to standard information-geometric comparisons, yielding minimal benefit relative to simpler alternatives (Bhardwaj, 6 Apr 2026).
8. Related Work and Extensions
The theoretical underpinnings of FRQAD connect to more general interpolating transport distances between optimal transport (3) and Fisher–Rao metrics, as developed by Chizat et al. (Chizat et al., 2015). The dynamic formulation allows for both mass transport and mass creation/annihilation, penalized by a Fisher–Rao–weighted source term, and interpolates between 4 (transport-dominated) and pure Fisher–Rao (variance-dominated) as the penalty parameter varies. Existence and uniqueness theorems hold, and practical algorithms based on first-order proximal splitting are available for the numerically efficient computation of FRQAD in the context of measure transport, with extensions to mixtures of Diracs and clustering. This suggests that further generalizations of quantization-aware metrics may adapt optimal transport frameworks for multi-modal or structured embedding spaces (Chizat et al., 2015).