Breaking the Binary-Lifting Barrier for DNA Minimizer Density: Exact Optimization of a Native 4-ary Order at (w, k) = (12, 5)

Stefan G. Creadore, Peyton BerntsenarXiv 2026

TL;DR

When indexing massive DNA sequences, computer scientists use "minimizers"—algorithms that create a compact fingerprint of a genome by picking out representative short DNA snippets. Current state-of-the-art tools take a mathematical shortcut by optimizing these rules in binary (0s and 1s) before translating them to the four-letter DNA alphabet, accidentally hitting an artificial performance ceiling. By skipping the binary middleman and optimizing directly in the native four-letter space, the authors discover a remarkably compact, record-breaking DNA sampling order that shrinks memory footprints further than previously thought possible.

What Problem Does This Paper Address?

Imagine trying to index a library of billions of genetic letters ($A, C, G, T$). Storing every single overlapping $k$-letter word (a $k$-mer) takes far too much RAM. Instead, bioinformatics pipelines slide a window of $w$ consecutive $k$-mers along the DNA and pick just one winner per window based on a pre-decided ranking table. Adjacent windows often pick the exact same winner, dramatically compressing the index. The goal is to minimize density: the probability that shifting the window by one base forces you to pick a new $k$-mer. Lower density directly translates to smaller indexes and faster queries.

Finding the absolute best ranking table is a combinatorial nightmare. Even for modest parameters—like a window of $w=12$ and $5$-letter words ($k=5$)—there are $4^5 = 1,024$ possible DNA words, meaning $1,024!$ (factorial) ways to rank them. To survive this scaling explosion, top existing tools (OptMini and GreedyMini) simplify DNA into binary ($2^5 = 32$ possibilities), find a great binary ranking, and "lift" it back to DNA by breaking ties alphabetically. However, this convenience locks sets of 32 DNA words into rigid, contiguous blocks, leaving potential compression gains on the table.

Methods

Instead of relying on binary projections or tweaking published tables, the authors tackle the parameter pair $(w, k) = (12, 5)$ from scratch in pure C, directly optimizing a native 4-ary ranking of all $1,024$ DNA $5$-mers:

  1. Exact De Bruijn Graph Scoring: Rather than guessing density via random simulations, they formulate an exact dynamic program over a 256-state de Bruijn graph (a network mapping how 4-letter prefixes overlap into 5-letter words). This evaluates the exact mathematical density across all $4^{17}$ ($\approx 17.18$ billion) possible window transitions in microseconds.
  2. Cold-Start Greedy Initialization (SetCover4): They build an initial ranking in $0.1$ seconds by greedily picking DNA words with the best ratio of "newly covered sequence volume" to "boundary cost."
  3. Bitmask-Sparse Simulated Annealing: Using 64-bit CPU bit-scanning tricks, they run four reheated cycles of simulated annealing (nearly a million exact evaluations in 180 seconds) to shake the ranking into a deeper optimum.
  4. Two-Pass $O(N)$ Sweeps & Ruin-and-Recreate: Finally, a clever two-pass dynamic programming trick lets them test moving a single $5$-mer to every possible rank in linear time, paired with large-neighborhood "ruin-and-recreate" kicks to polish the order to convergence.

Datasets

Because this is an exact combinatorial optimization problem over uniform random sequences, no biological training datasets are used. Instead, the authors evaluate exact expected densities over the entire universe of $4^{17} = 17,179,869,184$ possible 21-base DNA contexts. They benchmark their native ranking table (w12_k5_4ary.gm, released as a compact $1,280$-byte bit-packed artifact) against published state-of-the-art lookup tables from OrensteinLab's Minimizers, GreedyMini, and 10-minimizers repositories, alongside Monte Carlo sliding-window checks ($10^7$ and $2 \times 10^7$ random windows).

Key Insights and Ideas

  • The Tail Doesn't Matter (Zero-Cost Tail Invariance): Once your top-ranked $U$ words are sufficient to guarantee at least one appears in every 12-step walk (forming a Universal Hitting Set, or UHS), the relative order of all remaining $1,024 - U$ words has zero effect on density. This drastically prunes the search space.
  • Starting Fresh Beats "Fixing" Binary: When the authors tried "warm-starting" their optimizer from the best existing binary-lifted table (OptMini), the search got stuck in a local structural rut ($U = 379$). Building natively from scratch yielded a 30% smaller active prefix ($U = 314$) and a lower final density.
  • Shattering Binary Symmetry: Binary lifting groups DNA words into 32 neat blocks. The authors' cold-start solution shatters all 32 out of 32 blocks across every possible two-letter nucleotide pairing, yielding near-zero rank correlation with prior tables—proving true DNA minimizers look nothing like lifted binary ones.

Key Results

Comparison of exact DNA minimizer densities at (w, k) = (12, 5)

Table 1: Exact and table-listed expected DNA minimizer densities at (w, k) = (12, 5) over Σ = {A, C, G, T}. Exact values denote integer charged contexts out of 417 = 17,179,869,184.
  • New Exact Density Record: At $(w, k) = (12, 5)$, the native 4-ary order achieves an exact expected density of $2,234,289,615 / 2^{34} \approx \mathbf{0.13005277}$ (density factor $1.690686$).
  • Cutting Millions of Charged Contexts: This eliminates $11,924,929$ "charged" (index-triggering) contexts compared to OptMini ($-\mathbf{0.531\%}$ relative reduction) and $14,689,005$ contexts compared to GreedyMini ($-\mathbf{0.653\%}$), while outperforming constant-space schemes like mod-minimizers by over $\mathbf{15.1\%}$.
  • Compact Storage & Fast Execution: The full optimization pipeline runs in roughly 5.5 minutes on a standard CPU, and the resulting lookup table requires just $1,280$ bytes when bit-packed at 10 bits per rank.

Limitations and Future Work

The authors are transparent about the scope of their claims:

  • No Proof of Global Optimality: While the density evaluation is 100% exact, searching $1,024!$ permutations heuristically means they cannot prove this is the single lowest-density order mathematically possible.
  • Specific Parameters & Assumptions: Claims are strictly restricted to $(w, k) = (12, 5)$ under leftmost tie-breaking on uniform random i.i.d. DNA sequences (real genomes have GC biases and repeats not modeled here).
  • Lookup Table Overhead: Unlike constant-space formulas (like syncmers or mod-minimizers), this method requires storing an explicit table in memory—trivial at $k=5$ ($1.28\text{ KB}$), though scaling exact transfer-matrix evaluations to large $k$ would quickly blow up the $4^{k-1}$ de Bruijn state space. Future directions are not explicitly discussed in the paper.

Summary updated

Abstract

Minimizer schemes sample at least one $k$-mer from every window of $w$ consecutive $k$-mers via a total order $π$ on $Σ^k$. For DNA ($σ= 4$), state-of-the-art lookup schemes such as GreedyMini and OptMini optimize a binary order ($2^k$ ranks) and lift it to $Σ^k$ by ranking one bit-plane primarily and breaking $2^k$-way ties lexicographically on the other bit-plane. At $(w, k) = (12, 5)$, this projection locks sets of $32$ DNA $5$-mers into contiguous blocks and restricts the active universal hitting set (UHS) prefix to $448$ of $1024$ $5$-mers, giving exact expected DNA density $2246214544 / 2^{34} \approx 0.1307468945$ for OptMini (k5-w12-13.txt) and $2248978620 / 2^{34} \approx 0.1309077849$ for GreedyMini (w12_k5.gm). We bypass binary lifting and optimize directly over native $4$-ary permutations ($|Σ^k| = 1024$) from scratch via: (i) an exact de Bruijn endpoint transfer-matrix dynamic program over $B(4, 4)$ ($256$ states), (ii) a weighted set-cover ratio initializer (SetCover4) producing a compact $U = 314$ UHS prefix, (iii) bitmask-sparse simulated annealing preserving the zero-cost $w$-walk-free tail invariant, and (iv) two-pass $O(N)$ exact best-insertion sweeps with large-neighborhood ruin-and-recreate search. The resulting explicit $4$-ary order achieves exact expected DNA density $2234289615 / 2^{34} \approx 0.130052772292$ (density factor $1.690686$), cutting charged windows by $11924929$ contexts ($-0.530890\%$ relative) below OrensteinLab/Minimizers and $14689005$ ($-0.653141\%$) below w12_k5.gm at $8200$-byte lookup storage ($1280$ bytes bit-packed). Warm-start relaxation stalls at $U = 379$ ($0.1301728789$), whereas native $4$-ary initialization breaks $32/32$ high-bit blocks across all $2+2$ nucleotide partitions.
BibTeX
@misc{creadore2026breaking,
  author = {Stefan G. Creadore and Peyton Berntsen},
  title = {{Breaking the Binary-Lifting Barrier for DNA Minimizer Density: Exact Optimization of a Native 4-ary Order at (w, k) = (12, 5)}},
  year = {2026},
  eprint = {2611.32159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32159},
}
Figure