mlsanityData to 14 Oct 2026

Memoization Without Keys: Compact, Out-of-Core Tables for Functions of Sorted Arguments

arXiv 2609.20276 ↗First posted 29 Jul 2026cs.DS cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Memoizing an expensive function of a sorted score vector is a data-structure problem before it is a numerical one: at a billion gridpoints, a hash map or a search tree spends most of its space on keys the grid already determines. We describe an implemented memo table that stores none. An entry's address is computed in closed form from the sorted argument itself, so N values occupy N slots, the argument is recoverable from the index, and the table can be memory-mapped and served from a file larger than RAM. Against a chained hash map it uses 5.7× less memory at 37M entries and 10.2× less at 1.9B, answers queries up to 2.9× faster and builds up to 250× faster; on 64 threads its construction needs no coordination; a sharded hash gains only 1.17×. Against an open-addressing table with inline keys it is 4--7× smaller and 100× faster to build but 1.5× slower to query, a deficit we trace to the O(d) index arithmetic. At 22 GB on a 16 GB desktop it serves each query in one disk access, where no key-storing container can be built; and its order-preserving addressing keeps a perturbation workload on the same pages that a hashed layout scatters. The closed form exists because the key set is the multiset combinations, whose index is the combinatorial number system. Memoizing Plackett--Luce normalization runs 25--55× faster than Newton's method; memoizing α-entmax thresholds does not pay. The contrast says when this structure is worthwhile.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 4 of its 41 references that are in the map. First posted on arXiv 29 Jul 2026.

Builds on

4 of 41 references.

References · 4

  1. 2019Sparse Sequence-to-Sequence Modelscited by 170
  2. 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 150
  3. 2025AdaSplash: Adaptive Sparse Flash Attentioncited by 12
  4. 2022Tight Bounds for Monotone Minimal Perfect Hashingcited by 2

Built on by

Not cited yet.