Prism tables improve the classic time-memory tradeoff for inverting a function by a log N factor, the first asymptotic improvement on Hellman's 1980 bound. Experiments on AES-based functions confirm the gain at practical sizes.
Going deeper

Imagine you lost your key somewhere in a building with many identical corridors. A friend has walked every corridor and written down where each corridor ends, but not which turns she took. To find your key, you have to guess which corridor it is in and walk to the end to check the friend's list. Most guesses are wrong, and each one wastes a full walk.
Prism tables are like putting a security guard at several doors along each corridor. Each guard has a list of people who passed that door. When you walk a corridor looking for your key, the first guard checks whether anyone matching your trail came through. If not, you turn around immediately instead of walking the whole corridor. With enough guards, most wrong guesses end after just a few steps.
The authors prove this cuts the total walking by a factor that grows with the size of the building (log N), and they test it on real lock-and-key problems up to about four billion keys. With the same notebook space, the guarded version found the right key using two to three times fewer steps, and the advantage grew as the building got bigger.
The abstract, word for word, with the five densest phrases unpacked.
We introduce prism tables, which improve the time-memory tradeoff for inverting a function fcolon[N]→[N] by a factor of logN1. For a random function, it gives TM2=O(N2/logN)2, which is the first asymptotic improvement on Hellman’s classical 1980 tradeoff of TM2=O(N2). Here M counts the words of precomputed advice about f and T the expected number of online evaluations needed to find a preimage of a given challenge. For arbitrary functions the tradeoff becomes TM2=O(N3q(f)/logN), where q(f) is the collision probability of f, and TM3=O(N3/logN) in the worst case. We give rainbow tables (introduced by Oechslin in 2003) the rigorous worst-case guarantees that Fiat and Naor established for Hellman’s tables. Rather than relying on randomness assumptions, the tables use explicit pairwise independent functions, stored as part of the advice, and counted as part of their storage. Following Fiat and Naor, we store images with many preimages separately and let the chains bypass them. Prism tables extend this rainbow construction by storing compact information that tells the online search whether it is on the right track or on a path leading nowhere. Concretely, we place a Bloom filter at logN selected columns3, each including all the chain values in its column. The filters let the search identify and discard most wrong column (color) guesses well before the endpoint. This cuts the expected work on incorrect guesses, including false alarms, by a factor of logN, and with it the online cost. Since the filters have no false negatives, prism tables preserve the success probability4 of the underlying rainbow tables. The improvement is already visible in experiments on AES-based functions with N≈220 to 232: on average, prism tables used 1.92 – 2.95× fewer online evaluations than rainbow tables5 at equal storage and similar success rate, with the gain growing like logN.
Two lines of work merge here: making Hellman's tradeoff rigorous, and making it practical.
Read five parts, in this order.
Skip Section 2 if you know Bloom filters and Misra–Gries. Skip Section 3 if you accept the rigorous rainbow baseline.
If the log N gain is wrong, look at the checkpoint analysis and the experimental setup.
Let be the number of evaluations of used to reject an incorrect column guess (including false alarms). If and consecutive checkpoints are at most columns apart, then
We count memory in bits and charge each chain 2n bits, for its start and its endpoint, and we do not count the column functions and filter keys, which take far fewer bits than the chains. The rainbow table has mRb chains of length tRb=N1/3, with mRb=N/tRb, so its memory is S=2nmRb bits, and this is the budget for both schemes. A prism chain costs the same 2n bits, plus one point in each of the n filters, and a Bloom filter with false-positive probability 1/2 needs about 1/ln2≈1.44 bits per point, so a prism chain costs 2n+1.44n=3.44n bits. To stay within the memory of the rainbow table, the prism table must hold fewer chains, mPm=2/3.44·mRb≈0.58mRb, and we make them longer, tPm=N/mPm≈1.72tRb, so that both tables have mt=N and hence about the same success probability.
Before the candidate chain merges with a stored chain, its reached image at each checkpoint is absent from the corresponding stored set, so passing the checkpoint requires a false positive of the Bloom filter. The filters’ hash functions are independent of each other and of the column functions, so passing k checkpoints before a merge has probability at most 2-k, and each checkpoint interval contains at most d steps. Thus the expected number of steps until a merge or termination is at most
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
The constructions of prism tables and rigorous rainbow tables, together with their analysis, were developed by the authors over the past few years. AI tools, specifically Claude Opus 5.5 (Extra) and GPT-6 Astra (Extra High), were used to run the experiments and for comments on the writing.
More latest news
Read all