NewsCrawler.org

Efficient Lempel-Ziv Prediction with the Run-Length BWT

Efficient Lempel-Ziv Prediction with the Run-Length BWT
Image: arxiv.org

A new paper on efficient string prediction, written during the PIBBSS 2026 summer fellowship under the mentorship of Vanessa Kosoy, builds on her polynomial-time algorithm for predicting repetitive sequences and further reduces its runtime with other algorithmic techniques. The author frames the challenge as a 'prediction trinity' — power, efficiency, and formal guarantees — and notes that no existing framework satisfies all three: deep learning is powerful and efficient but lacks formal guarantees, while Solomonoff induction[1] and AIXI have guarantees but cannot run in practice. The research targets the third edge, efficient algorithms with formal guarantees that learn compositional structure, unlike classical methods such as linear regression, which only learn numerical parameters of a hypothesis whose shape is fixed in advance.

Strings are modeled with straight-line programs (SLPs)[2], which use only two instruction types: assigning a symbol to a variable and concatenating two previously defined variables; the size of the smallest such program defines the string's Straight-Line Complexity. Small programs generate repetitive strings, with Fibonacci words — whose lengths grow exponentially in the number of rules — given as the example. Prediction relies on the Lempel-Ziv factorization[3]: the Lempel-Ziv Plurality (LZP) algorithm takes the last LZ phrase as its context and predicts the symbol that most often followed earlier occurrences of that phrase. Kosoy proved that for a constant-size alphabet LZP makes only a bounded number of mistakes, and each predict and update step runs in polynomial time in the string's complexity.

LZP works as a reduction from predicting the next symbol to querying how often a substring appeared in the past. Kosoy's implementation uses a static index by Kempa and Kociumaka that must be rebuilt for every new symbol, though it builds fast on repetitive strings — polynomially in the compressed size rather than the full string length. The new paper instead uses the Burrows-Wheeler Transform[4], a permutation of the string in which occurrences of a substring form a contiguous interval, so counting a candidate next symbol takes two rank queries; for repetitive strings it consists of a small number of long runs, giving the compact run-length representation RLBWT, and an example adapted from Langmead's lectures shows a 64-symbol string whose BWT has only a few runs.

Read the original arxiv.orgDiscussion on LessWrong

Sources

  • LessWrong

    Efficient Lempel-Ziv Prediction with the Run-Length BWT

    30 points8 votes0 comments

Published: First seen: Читать по-русски

Open as a page