arXiv:2609.00522cs.ITSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.00522

Capacity Achieving Torn Paper Codes

Junsheng Liu, Netanel Raviv

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In the torn paper channel, a codeword is cut at random locations, and the resulting error-free fragments are delivered to the decoder as an unordered multiset. Although the capacity of this channel can be achieved using random codebooks, decoding such codes generally requires exponential time, whereas existing structured schemes with efficient decoding and provable vanishing error remain strictly below the capacity. The interleaved-pilot construction of Shomorony and Vahid embeds a De Bruijn sequence among the symbols of a shifted erasure code and aligns only fragments that are sufficiently long for the pilot to be distinguished from the information symbols through global statistical uniqueness. A subsequent local-alignment scheme by Liu and Raviv employs run-length-limited constraints and exclusive all-zero markers to identify pilot positions from local structure, substantially reducing the minimum fragment length that can be aligned. Although the second method improves the achievable rate, it still falls short of the torn-paper-channel capacity.

We further improve the method of Liu and Raviv by replacing its fixed pilot sequence with a multilevel successive local alignment and pilot-recycling procedure. In Liu and Raviv, the pilot sequence is chosen once and must simultaneously balance the length of the pilot sequence against the ability to align short fragments, which prevents the achievable rate from reaching capacity. Our construction removes this limitation by reusing pilot sequences across successive decoding levels. A pilot sequence with an independent random linear code is first used to align and decode the longest fragments. The information recovered at this stage is then recycled as a larger pilot sequence for the next stage. This process is repeated over multiple levels, so that progressively shorter fragments are recovered while the length of the pilot sequence remains small, and thus reaches a higher achievable rate. Our construction depends on choosing a series of random linear codes, and we show that for any ε>0\varepsilon > 0, there exists a choice of such codes which attains rate of at least ε\varepsilon below the capacity, with high probability as the block length goes to infinity. Therefore, our construction achieves the capacity of the torn-paper channel.

I. INTRODUCTION

Consider a simple reconstruction problem. An information sequence is written on a long strip of paper, the strip is torn at random locations, and the resulting pieces are shuffled before reaching the receiver. Although every bit on each individual fragment remains intact and readable, all information about the original order of the fragments is lost. Recovering the message therefore requires not only error correction, but also determining where every useful fragment originated in the transmitted sequence. This is the central difficulty of torn paper coding.

The problem is motivated by storage and identification systems in which physical fragmentation can destroy positional context without necessarily corrupting the symbols themselves. DNA storage, for example, has emerged as a promising medium for large-scale archival data [1, 3–5], while DNA molecules are inherently vulnerable to strand breaks. A similar issue arises when identifying 3D-printed objects from information embedded in their physical structure [14]: once an object is broken, the embedded sequence is distributed among separate pieces whose original locations are no longer apparent. These applications lead naturally to a coding-theoretic abstraction in which a codeword is cut randomly into error-free fragments and the decoder observes only their unordered multiset.

The torn paper channel was introduced by Shomorony and Vahid [11]. If a break occurs independently between consecutive codeword symbols with probability pnp_n and α=lim⁡n→∞pnlog⁡n\alpha = \lim_{n \to \infty} p_n \log n, they showed that the channel capacity is e−αe^{-\alpha}. They also proved that purely random code achieves this capacity. Random coding, however, generally requires exponential decoding complexity and is therefore impractical for efficient alignment and reconstruction.

This work was supported in part by NSF grant CNS-2223032.

Several works have studied coding specifically for the torn paper channel. Shomorony and Vahid [11] developed a structured interleaved-pilot construction with a rigorous proof of vanishing decoding error and a provable achievable rate. Building on their framework, Liu et al. [7] introduced a local alignment method that reduces the minimum usable-fragment length and consequently achieves a strictly higher provable rate. Nevertheless, both structured constructions remain strictly below the torn paper channel capacity. Some experimental results using nested constructions have been proposed in [6, 9] and are shown to achieve favorable empirical rates. However, these works do not address large codeword length nn and large break probability α\alpha, and their performance evaluations are primarily experimental, without rigorous analytical proofs of the achievable rates or decoding reliability. Beyond the original model, a number of related fragmentation settings have also been considered. These include the torn paper channel with lost pieces, in which fragments are deleted according to length-dependent probabilities [10]; break-resilient coding for forensic 3D printing [13]; reconstruction from a single sufficiently long fragment [8]; adversarial torn paper coding [2]; and the sliced channel [12]. In this paper, we focus on the original torn paper channel and aim to close the gap between its known capacity and the achievable rates of coding constructions with provable reliability.

The first provable coding scheme was proposed by Shomorony and Vahid [11]. Their construction regularly inserts known pilot symbols into the codeword. When a fragment is received, the decoder first searches for these pilot symbols and uses them to determine where the fragment came from in the original codeword. This works reliably only when the fragment is long enough to contain a sufficiently long enough pilot subsequence. Shorter fragments cannot be positioned with confidence and are therefore discarded. As a result, fragments shorter than the required alignment length are discarded, and the loss of these fragments prevents the construction from achieving capacity. We improved the achievable rate in our previous work [7] by allowing the decoder to use much shorter fragments. The main idea was to place special all-zero markers at known locations in the pilot sequence and to encode the information symbols using a Run-Length-Limited code so that the same marker could not appear inside the data. Therefore, when a fragment contains one of these markers, the decoder can quickly identify the pilot symbols from the fragment itself. It can then use the nearby pilot pattern to determine where the fragment belongs in the original codeword. Unlike the earlier method, this local alignment approach does not require a long fragment to distinguish the pilot from the data, so fewer received fragments are discarded. This leads to a higher provable rate while still guaranteeing that the decoding error probability vanishes. However, the construction uses only one fixed pilot throughout the codeword. Using more pilot symbols helps recover shorter fragments but leaves less space for information, whereas using fewer pilot symbols reserves more space for information but causes more short fragments to be discarded. Because of this remaining tradeoff, the method improves the rate but still does not achieve the torn paper channel capacity.

The present work improves the previous local alignment method through successive local alignment with pilot recycling. Instead of using one fixed pilot pattern to align all fragments, our construction works in several decoding levels. A modified De Bruijn pilot sequence is inserted to begin the decoding process. At first, this pilot sequence is used to align the longest received fragments, which provide enough information to decode the first information level. The main improvement is that the decoded information is not used only as message data. Once a level has been recovered, its known symbols are reused as additional pilot symbols for the next level. The decoder therefore has many more known positions than it had at the beginning. Using these newly available positions, it can align fragments that are too short to be aligned by the original pilot sequence. After another information level is decoded, its symbols are also recycled as pilots. Repeating this process allows the decoder to use progressively shorter fragments without inserting a large number of fixed pilot symbols throughout the codeword. In this way, the construction avoids the main tradeoff of the previous method: it uses only the initial pilot sequence while still recovering many of the short fragments that would otherwise be discarded. The advantage of the multilevel construction is that different groups of fragments are recovered at different stages. The first stage uses the longest fragments, and each later stage adds progressively shorter ones. By increasing the number of levels and making the difference of fragment length threshold in adjacent levels scales sufficiently small, the total recovered information approaches the capacity of the channel. To be more specific, the construction can be chosen to achieve a rate for any desired gap from capacity while maintaining vanishing maximal decoding error.

The remainder of the paper is organized as follows. Section II formally defines the torn paper channel, recalls its capacity, reviews the interleaved pilot construction of [11] and the local alignment construction of [7]. Section IV introduces the proposed coding method and explains how the codeword is divided into several information levels together with an initial pilot sequence. Section V describes the decoding process, beginning with the longest fragments and then reusing the recovered information as new pilot symbols to align progressively shorter fragments. Section VI proves that the proposed method is reliable, shows that the loss caused by ambiguous fragments becomes negligible, and establishes that the achievable rate approaches the torn-paper-channel capacity.