Levi Segal, Murari Ambati
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Retrieval-augmented generation (RAG) pipelines canonically return a ranked list of candidate passages. We argue this is a mismatch: the consumer is a language model that conditions on a set, not a list, and the selection problem is fundamentally geometric and distributional. We propose JKO-RAG, which frames reranking as minimising a free-energy functional F (p) = relevance + entropy + redundancy under the Wasserstein-2 gradient flow via the Jordan-Kinderlehrer-Otto (JKO) proximal scheme Jordan et al. [1998]. The ground metric is C ij = (1 -cos⟨z i , z j ⟩) 2 , encoding the semantic geometry of the embedding manifold. Our central contribution is a linear-response theory that explains why the Wasserstein geometry helps: a single-step sensitivity analysis shows that the Wasserstein and KL retrieval maps differ only in their proximal Hessian -a dense, geometry-aware entropic-OT operator for W 2 versus a diagonal, geometry-blind operator for KL -and that this difference damps the geometric mass transport that query paraphrase induces. The theory yields a sharp, falsifiable prediction: the stability advantage is monotonically decreasing in the step size h. We verify all of this empirically: free-energy descent, frequency-resolved perturbation response, the predicted h-dependence of the stability gap, and a new certified-radius analysis that cleanly decomposes what the geometry buys. We further introduce four extensions: NM-JKO (learned low-rank ground metric via InfoNCE), BW-JKO (Bregman-Wasserstein α-interpolation bridging W 2 and KL), SAM-JKO (relevance-aware hierarchical coarse-to-fine JKO for 2× speedup), and DUAL-RANK (Sinkhorn dual potentials as calibrated retrieval-confidence signals). Across five BEIR benchmarks, JKO-RAG significantly outperforms the cross-encoder reranker on all five and is statistically tied with a strong KL-proximal baseline on raw nDCG; the decisive, theory-predicted advantage appears on robustness -22-38% more stable under paraphrase and 2× fewer leaked hard distractors -which the linear-response theory both explains and predicts.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2607.24776")
get_code_for_paper("2607.24776")
have("2607.24776")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2607.24776.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2607.24776)
Connect an agent — have() is free.