Manuscript Offprint
arXiv:2611.09842Asymptotic Analysis of Data Deduplication Under a Constant Edit Model
Abstract
Data deduplication has become increasingly important in large-scale storage systems, driven by the rapid growth of digital data. By identifying and removing repeats in the data stream, deduplication saves storage space more efficiently than traditional compression methods. In this paper, we study the performance of variable-length deduplication and multi-chunk deduplication algorithms from an information-theoretic perspective, focusing on data streams where repeats are approximate rather than exact. We consider two probabilistic source models in which source strings consist of repeated blocks that are modified by either a constant number of substitution edits or burst-insertion edits per block, the latter capturing the localized edit patterns commonly observed in real-world data. For both models, we show that variable-length deduplication achieves asymptotically arbitrarily large compression ratios, and that multi-chunk deduplication achieves compression within a constant factor of the source entropy under mild conditions.
Index Terms
Data deduplication, data compression, source coding, substitution edits, burst insertions.
Data deduplication algorithms divide data into chunks using either fixed-length or content-defined variable-length schemes. Fixed-Length Deduplication (FLD) is simple but suffers from the boundary-shift problem: insertions or deletions shift all subsequent chunks, reducing effectiveness. In contrast, Variable-Length Deduplication (VLD) and Multi-Chunk Deduplication (MCD), introduced in [6] and studied in this paper, use content-defined chunking (CDC), where a sliding window sets chunk boundaries based on predefined patterns called markers. This makes chunking robust to local edits. VLD and MCD are described in detail in Section IV. CDC is widely used in practical deduplication systems, e.g., [3], [4], [7]–[14]. In CDC, a substantial fraction of the chunks can be extremely small or large. With large chunk sizes, duplicates in data tend to remain undetected, leading to ineffective deduplication. On the other hand, small chunks increase VLD's metadata overhead through dictionary pointers and indicator bits that distinguish new chunks from repeated ones. MCD can be regarded as a modification of VLD to address the problem caused by small chunks.
While data deduplication has been extensively studied from a practical standpoint (see [15] for a survey), its theoretical analysis from an information-theoretic perspective remains limited, despite the fact that, as a form of data compression, data deduplication is inherently an information-theoretic problem with fundamental lower bounds on performance. The first information-theoretic analysis of deduplication was presented in the seminal work of Niesen [6], where VLD and MCD were formalized and studied. Specifically, in [6], the performance of certain deduplication algorithms was studied using a probabilistic model for a data stream constructed as follows. The data stream is composed of blocks, each being an exact copy of a source symbol, where the source symbols belong to an alphabet consisting of random binary strings of average length bits. The effect of the marker length on the performance of VLD and MCD was studied, showing that VLD can achieve arbitrarily large compression ratios (expected input length divided by expected compressed length), but may be polynomially suboptimal relative to the source entropy. MCD was shown to be order optimal under mild conditions, meaning that its expected compressed length is within a constant factor of the source entropy.
While [6] considers blocks of data to be exactly repeated in the data stream, in real-world scenarios, copies of repeated data blocks are often approximate rather than exact, due to edits to the data. With this motivation, VLD was studied in [16] over a probabilistic source model where edits are modeled as random substitution, with each bit independently flipped with a given
This work was supported in part by the National Science Foundation under grants CIF-2312871 and CAREER-2144974. Earlier versions of this paper were presented in part at ISIT 2021 [DOI: 10.1109/ISIT45174.2021.9517909] and ISIT 2026 [DOI: 10.1109/ISIT62367.2026.11653996].
S. Motamen is with the Department of Electrical and Computer Engineering, University of Virginia, Charlottesville, VA, USA (e-mail: sarvin@virginia.edu).
H. Lou was with the Department of Electrical and Computer Engineering, University of Virginia, Charlottesville, VA, USA (e-mail: haolou@virginia.edu).
Farzad Farnoud is with the Department of Electrical and Computer Engineering and the Department of Computer Science, University of Virginia, Charlottesville, VA 22903 USA (e-mail: farzad@virginia.edu).
probability. Specifically, rather than being an exact copy, each of the blocks is generated by taking a source symbol and flipping each bit with a constant probability . The performance of VLD was characterized in terms of and the marker length . Under the asymptotic assumptions of that work, with fixed as , the compression ratio is upper bounded by a universal constant if or . This holds even for arbitrarily small fixed , although the limiting source entropy per input bit tends to zero as . On the other hand, with the optimal choice , VLD achieves arbitrarily large compression ratios as . However, the upper bound on the ratio of the length of the compressed sequence to entropy grows as decreases, suggesting that the gap to entropy may increase for smaller edit probabilities; whether this gap is fundamental or an artifact of the analysis remains an open question. Deduplication with approximate repeats was also analyzed in [17] from an information-theoretic point of view but with a different source model and algorithm. In their model, all source blocks have equal length and undergo a limited number of random substitution edits. We note that the problem of deduplication under edits was also considered in [18], which focused on performing deduplication on two files, one being an edited version of the other by insertions and deletions, where the edits are random and not localized. In this work, we focus on deduplicating one data stream, where symbols of various lengths are repeated.
While the analysis in [16] enhances our understanding of deduplication under edits and characterizes the dependence of the optimal marker length on the prevalence of edits, the edit model used, i.e., randomly distributed substitutions, does not fit real-world data, where edits that appear close to each other, referred to as burst or localized edits, are common in a wide range of applications, including file synchronization. The prevalence of burst edits is demonstrated in [19] by statistical analysis of real data, specifically, two versions of the Bash source code. The study found that the hypothesis of uniform edits was rejected for over 97% of the files in the dataset, using a p-value threshold of 5%. It is thus of interest to study deduplication under a burst edit model, deriving upper and lower bounds on the algorithms' performance and optimizing the parameters of the algorithms as a function of model parameters.
Beyond the choice of edit model, the bounds derived in [16] have another limitation. The analysis holds the edit probability fixed as the data length grows, so the expected number of edits grows linearly with the data length and the bounds do not directly characterize sparsely edited data. This also leads to a gap in our understanding, where the regimes with no edits and linear number of edits are studied, but the sublinear case that bridges them is not. When , the no-edit model has entropy . In contrast, the independent-substitution model with fixed has entropy [16, Lemma 2]. Deduplication in the first case can achieve compressed files whose length is of a different order than the uncompressed file, while in the second case, the compressed file is of the same order as the uncompressed file. It is thus of interest to analyze the regime where each source block undergoes a constant number of edits, which can be regarded as a bridge between the two regimes, and understand how the performance of deduplication algorithms changes as we transition from one regime to the other.
Lou and Farnoud [16] analyze deduplication under independent substitution edits, with the edit probability held fixed as the data length grows. Their results show that appropriately choosing the marker length allows VLD to achieve arbitrarily large compression ratios as the fixed edit probability becomes small. However, these fixed- asymptotic results do not directly characterize the sparse-edit regime , where the expected number of substitutions per block remains constant. This motivates studying sparse edits directly through source models in which each block undergoes exactly edits, with fixed independently of its length. We consider two such models: constant-number single-bit substitutions and constant-number burst insertions, each of length .
We focus on substitutions in the first model and insertions in the second rather than all edit types for the sake of simplicity. Under the respective conditions of Corollaries 3 and 4, we show that VLD with optimal marker length can have expected compressed length of greater order than the source entropy under both edit models while still achieving asymptotically arbitrarily large compression ratios. In the burst-insertion model, under these conditions, this gap occurs when , whereas VLD is order optimal when . Further, under mild conditions, MCD is shown to be order-optimal for both source models.
This paper extends our conference studies [20], [21], which analyzed VLD and MCD under constant substitutions and VLD under burst insertions, respectively. For constant substitutions, we derive a family of VLD lower bounds that accounts for the relationship between the alphabet size, source-symbol length, and number of source blocks. For burst insertions, we extend the analysis to MCD and establish its order optimality under the stated conditions. We also strengthen the VLD lower bounds to account explicitly for the inserted bits, obtaining matching asymptotic bounds under the conditions of Corollary 4 and identifying the insertion-length regimes in which VLD is order optimal. Finally, we provide complete proofs for results whose proofs were omitted or sketched in the conference papers.
The rest of the paper is organized as follows. Notation and preliminaries are given in the next section. In Section III, we describe the studied information source models and bound their entropies. In Section IV, we formally describe the deduplication algorithms VLD and MCD that are analyzed in the rest of the paper. Bounds on the performance of the algorithms are derived in Sections V and VI. In Section VII, we summarize the main results of this paper. Finally, we conclude the paper in Section VIII.

Fig. 1. Illustration of the constant-substitution source model with source symbols and source blocks, where and , and with substitutions per block. Here and . The bottom row shows the VLD chunking of by the marker , producing chunks . Chunks and are exact matches of and , respectively, and are encoded as dictionary pointers. Chunk is an approximate repeat of (differing only by a substitution) but is treated as new by VLD.
II. NOTATION AND PRELIMINARIES
All logarithms are to base 2. Binary strings are denoted by boldface lowercase letters, such as and , or by explicitly defined uppercase notation for particular string-valued objects, such as source symbols, source blocks, and chunks. Individual bits are denoted by plain lowercase letters or by their values 0 and 1. The term source symbol refers to an entire binary string, rather than an individual bit.
We consider the binary alphabet , denoted . The set of all finite strings over is denoted . For a positive integer , let be the set of all strings of length over . For strings , the concatenation of and is denoted . The length- substring of starting from the -th symbol is denoted . The length of is denoted . The cardinality of a set is also denoted . The Hamming distance between and is denoted .
For any , denotes the binary entropy function, i.e., . For any event , denotes the complement of , and we define the indicator variable to be 1 if is true, and 0 otherwise. The -runlength-limited (RLL) strings [22] are binary strings that do not contain consecutive zeros. For any non-negative integer , we denote the set of all -RLL strings of length by .
III. SOURCE MODELS
The two source models studied in this paper extend the one described in [6] by allowing a constant number of substitution or burst-insertion edits. In both models, each source block is an edited copy of a source symbol. The output data streams and are concatenations of source blocks under the constant-substitution and burst-insertion models, respectively. Since the source symbols are generated in the same way in both models, we describe their generation only once.
The source symbols, denoted , are i.i.d. binary strings generated in the following way. Fix a length distribution over positive integers with mean . For each , we draw from and draw uniformly from . The source symbols are drawn independently, and each is equally likely to be any binary string of its chosen length. The probability that given the lengths is , for any set of strings where has length . Let denote the source symbol alphabet, i.e., . The alphabet is thus a multiset. To simplify some of the derivations, we adopt the same assumption as [6] that is concentrated around its mean, specifically, . The parameters , and the burst length in the insertion model, are positive integers.
In both source models, are drawn independently and uniformly from , independently of the source alphabet. Conditional on the alphabet and these indices, the edit-position sets are selected independently across blocks, each uniformly among the -element subsets of .
In the constant-substitution source model, we flip the selected bits of . The number of flipped symbols will be referred to as the substitution number. The modified version of will be denoted and referred to as a source block. The source string is then constructed to be the concatenation of , i.e., . Note that given only , the boundaries between and are not known to us. The entropy of this source is denoted , with bounds provided in the next lemma.
In the burst-insertion source model, using the same index and position-selection rules, a string of length is inserted immediately after each selected bit of . All inserted strings are drawn independently and uniformly from , independently of the source alphabet, ancestor indices, and edit-position sets. The modified version of is denoted , and the source string is defined analogously, with entropy denoted .
Lemma 1. Assume . The entropy of the above source model satisfies
Proof: Let . For the lower bound, since , we have . Given , source blocks are conditionally independent and each has length , so
For the upper bound, since is a deterministic function of ,
Given , each is determined by choosing one of source symbols and substitution positions out of at most positions, so . The upper bound follows since by the assumption that .
Lemma 2. Assume . The entropy of the above source model satisfies
Proof: Let . For the lower bound, we have . Let be the event that all selected source bits have the majority value in (choosing 0 in a tie), and every inserted burst ends with the opposite bit. Complementing the source and output bits preserves the conditional entropy, so it suffices to describe the case in which has at least as many 0s as 1s. There are then at least zero-valued positions, and requires that all insertions be placed immediately after a 0 and end with a 1. Conditional on the source symbol, the last bits of the inserted bursts are independent and uniform, so the probability that all bursts end with the opposite of its majority bit is . In the majority-zero case, the conditional probability that all selected source bits are 0 is lower bounded by . The same bound holds for the majority-one case by bit complementation. Since the insertion locations and inserted bits are independent conditional on the source symbol, averaging this uniform bound gives . Thus,
Under , the insertion positions and inserted strings are uniquely recoverable by comparing the source and output from right to left. In the majority-zero case, whenever the bits disagree, the current output bit is the final 1 of a burst inserted after the current source bit, a 0. Remove and record the -bit burst ending at that output position, then resume matching source bits. When the bits agree, no insertion follows the current source bit, so consume the matching pair. The majority-one case is identical after bit complementation. This reconstruction shows that distinct choices of insertion positions and remaining bits yield distinct outputs. Conditional on each fixed source symbol and , the position sets among its majority-valued locations and the remaining inserted bits are uniformly distributed. Since there are at least such position sets and choices for the remaining bits, we have . Summing over all ,
For the upper bound, since is a deterministic function of ,
Given , each is determined by choosing one of source symbols, insertion positions out of at most positions, and inserted bits, so . The upper bound follows since by the assumption that .
For and fixed positive integer , the entropy bounds in Lemmas 1 and 2 simplify as follows.
Corollary 1. For and fixed positive integer ,
If also and , then
where the constants hidden by may depend on the fixed value of t.
Proof: For fixed and integer , . Since , , and , rounding these counts does not change the asymptotic expansions below.
Substitution model: Applying this to the lower bound in Lemma 1, . The upper bound gives . Since , , and the result follows.
Insertion model: The prefactor in the lower bound of Lemma 2 satisfies
while . This proves the lower bound in (1); the upper bound follows from Lemma 2 as in the substitution case. Under the two additional assumptions, , which is absorbed by for fixed . Combining the two sides gives (2).
For the subsequent asymptotic deduplication results and their appendix proofs, unless explicitly stated otherwise, we assume , , and a fixed positive integer . For both source models, we assume and . Furthermore, as in [16], we consider for a fixed . This polynomial relationship implies and, together with the alphabet-size assumptions, .
In the burst-insertion model, we additionally assume and . Thus, each burst contains at least logarithmically many bits, while the number of inserted bits per block remains sublinear in the source-symbol length.
Unlike the independent-substitution model [16], where a fixed edit probability gives substitutions per block on average, the constant-substitution model has only substitutions per block. The alphabet-size assumptions ensure that , so these additional terms in the entropy bounds do not change the asymptotic order. Corollary 1 therefore gives and . Since and , both entropies are . Other asymptotic regimes, including ones in which grows more slowly, are left to future work.
Throughout, the first half consists of the first source blocks, and the second half consists of the remaining blocks. We say is the ancestor of (or in the case of burst insertions, ) and ( ) is a descendant of . For each , let ( ) denote the set and ( ) denote the set . In other words, ( ) is the set of source block indexes of the descendants of and ( ) is the set of source block indexes of the descendants of among the first half of source blocks.
IV. DEDUPLICATION SCHEMES
We describe the variable-length and multi-chunk deduplication algorithms, both studied in [6] and restated below for completeness.
In the variable-length deduplication algorithm, a fixed all-zero string of positive integer length is used as the marker to split the source string into chunks. Starting at the first unparsed bit, the parser closes a chunk at the end of the first occurrence of wholly within that chunk and restarts immediately after this marker. Any nonempty suffix containing no marker is the final chunk. Thus .
The encoding begins by representing the length of using Elias gamma coding, which encodes a positive integer in bits. An empty dictionary, , is initialized to store chunks during the encoding process. The chunks are then processed sequentially. For each chunk, starting with , if appears for the first time, meaning for all , it is encoded with an indicator bit 1 followed by the chunk itself, and it is added to the dictionary.
If already exists in the dictionary, it is encoded with the indicator bit 0 followed by a pointer to the dictionary entry storing the same string. Dictionary indices start at zero, so the pointer uses bits, where is the dictionary right after processing . Dictionary-size logarithms are evaluated only for repeated chunks, when the dictionary is nonempty; inactive indicator terms in later encoding-cost formulas are defined as zero without evaluating these logarithms.
The total number of bits required for the variable-length deduplication algorithm to encode is denoted by . See Fig. 1 for an illustration of VLD chunking.
In the multi-chunk deduplication algorithm, the source string is again split into chunks using the marker , with the additional requirement that nonfinal chunks have length at least . Starting at the first unparsed bit, the parser scans forward until the current chunk has length at least and ends in , then closes the chunk and restarts. Earlier marker occurrences do not create boundaries. Any nonempty remaining suffix is the final chunk; it may be shorter than and need not end in a marker. We call the chunking process multi-chunking. We reuse for the MCD partition, although this notation was used above for the VLD partition.
The encoding starts with Elias gamma coding of the length of . Chunks are encoded sequentially using an initially empty dictionary , which stores distinct chunks in order of first appearance. Consider the chunk . We assume first that is new, i.e., it is different from any previously appeared chunk. Let be the largest integer such that the chunks are pairwise distinct and none appears among . These new chunks are bundled up and encoded as the bit 1, followed by an encoding of using Elias gamma coding, followed by the binary string . Moreover, are entered into the dictionary in order. The decoder identifies them by reapplying the multi-chunking rule to their concatenation, stopping after recovering chunks; the initial string length determines the end of any final unterminated chunk.
On the other hand, if is not new, let be the smallest integer satisfying . Consider the dictionary entry containing and the list of subsequent entries. Let be the largest integer such that the first entries in this list are equal to . Then the chunks through are bundled up and encoded together as the bit 0, followed by an encoding of using Elias gamma coding, followed by a zero-based pointer into the dictionary entry containing chunk , using bits, where is the dictionary before processing . After encoding either type of bundle, processing resumes at the first chunk not yet encoded.
The total number of bits for multi-chunk deduplication to encode is denoted . Throughout, the compression ratio is , where denotes the compressed length under the algorithm being considered. We call an algorithm order optimal if . An optimal marker length is a positive integer minimizing the expected compressed length for the given source parameters. It is chosen before observing the realized source string.
V. VARIABLE-LENGTH DEDUPLICATION
In this section, we analyze the VLD algorithm for the two source models.
In our asymptotic analysis, we assume and along with it, satisfying conditions described at the end of Section III. The constants in the asymptotic notation may depend on but not on , or .
A. Lower Bound
- Constant-Substitution Model: We start with a lower bound on the expected length of the compressed strings by variable-length deduplication under the constant substitution edit model.
Lemma 3. Consider the constant-substitution source model of Section III with , and variable-length deduplication with marker length satisfying . Let denote the total length of chunks that are stored in full at their first appearance, and set
For every integer , there is a constant depending only on such that
The proof of Lemma 3 is given in Appendix A. Here is an analysis parameter: each source block still has exactly t substitutions, and the lemma counts a segment according to how many of those substitutions fall inside it.
Theorem 1. Consider the constant-substitution source model of Section III. For any integer , if and , then for every marker length M, the expected length of the compressed string by variable-length deduplication satisfies
Proof: Fix . Since each chunk requires at least one indicator bit and each new chunk must be stored in full, , where is the total number of chunks and is the total length of chunks that are stored in full at their first appearance. We show that for every , at least one of or is .
Case 1: . Each source block has length and is an i.i.d. Bernoulli(1/2) process. Partition each into non-overlapping windows of length . Each window is all zeros with probability . Every all-zero window contains at least one accepted chunk endpoint: if no chunk ends earlier within the window, the entire window lies within the current chunk and its final bit closes that chunk. Since the windows are disjoint, they provide distinct endpoints. Therefore, by linearity of expectation,
Since in this case, (3) gives
Case 2: . Let . Since , dominates , so for all sufficiently large . Lemma 3 therefore applies. Moreover, for all sufficiently large , because both and are at least this large up to constant factors. Hence,
The assumption implies
Combining (4) and (5),
In both cases, .
Corollary 2. Consider the constant-substitution source model of Section III with . The following lower bounds hold for every marker length M:
- If , then
- If , then
Proof: The two claims follow from Theorem 1 by taking and , respectively.
- Burst-Insertion Model: Under the burst-insertion model, the performance of VLD depends on the chunk length, which is controlled by the marker length . We first show through Lemma 4, Lemma 5, and Theorem 2 that, in the regime , where insertion lengths are at least logarithmic, small values for lead to an oversized dictionary, resulting in a compression ratio upper bounded by a universal constant.
Lemma 4. Consider the burst-insertion source model of Section III, and let be positive integers. Let denote the event that at least half of the distinct strings of the form , where , appear among the first source blocks. If , then
The proof of this lemma can be found in Appendix A.
Lemma 5 (cf. [16, Lemma 13]). Consider variable-length chunking with positive integer marker length applied to , where . Suppose that each , conditional on its length, is an i.i.d. Bernoulli(1/2) string of length at least ; the source blocks need not be independent. If , then, with probability at least 5/6, at least
chunks are wholly contained in and have length exceeding . In particular, their number is .
Proof: Choose disjoint segments of length in each of the last source blocks. Their total number is the deterministic integer .
In any one segment, divide each outer quarter into two pieces of length . The expected waiting time for in fair bits is [23, Chapter 8], so Markov's inequality bounds the probability that a piece contains no by 1/8. The two pieces within a quarter are independent, so that quarter contains no with probability at most 1/64. Both outer quarters therefore contain with probability at least 1 - 1/32. Its leading 1 ensures that the final is accepted by the VLD parser regardless of the preceding context.
For , every complete chunk has length at least , so these two markers certify a complete chunk inside the segment. For , also require that no ends at any of consecutive positions around the segment's midpoint. A union bound gives a failure probability at most . On this event, a complete chunk between the outer-quarter markers bridges those positions and has length exceeding . Thus each segment fails to certify a qualifying chunk with probability at most .
Let be the number of failing segments. Linearity of expectation gives , without requiring independence between segments. Markov's inequality gives . Hence at least segments certify qualifying chunks with probability at least . These chunks are distinct occurrences, since they lie wholly inside disjoint segments. Finally, for yields the stated asymptotic order.
Theorem 2. Consider the burst-insertion source model of Section III, where . If
then the expected length of the compressed string by variable-length deduplication satisfies
Proof: If , then . Since the theorem assumption gives , Lemma 5 implies that, with probability at least , the second half of the data contains chunks. Each chunk contributes at least one bit to the VLD encoding, so .
It remains to consider . Set , which implies and . By Lemma 4, with probability , at least half of the marked patterns , where , appear in the first source blocks. Call this event . Each such pattern yields the chunk : the leading synchronizes the parser, and the RLL interior and following 1 prevent an earlier boundary. Distinct interiors yield distinct chunks, so the dictionary has at least entries. A union bound over possible runs of zeros gives
Thus, since , each dictionary pointer costs at least
bits.
By Lemma 5, with probability at least , the second half of the data contains chunks of length exceeding . Call this event . Although and concern disjoint halves of the data, they need not be independent because the two halves share the same source alphabet. By the union bound,
When both hold, each of the long chunks requires bits. Thus
since we have .
Next, using Lemma 6 and Theorem 3, we show how an oversized can lead to a large number of distinct chunks, each of which needs to be encoded in full, rendering VLD ineffective with a compression ratio upper bounded by a universal constant for .
Lemma 6. Consider the burst-insertion source string . Let denote its th bit and its length- substring starting at , where is a positive integer. Choose valid positions using only the source lengths, ancestor indices, and insertion locations, and suppose that one of the two windows lies wholly inside an insertion. Conditional on the source alphabet, ancestor indices, insertion locations, and all stream bits outside that selected window, the probability that is exactly .
The proof of this lemma can be found in Appendix A.
Theorem 3. Consider the burst-insertion source model of Section III, where . If , then the expected length of the compressed string by variable-length deduplication satisfies
Proof: When is large, chunks are long. We show that a random insertion in a source block is contained, with constant probability, in a new chunk of length .
Consider an insertion chosen uniformly from the length- insertions in a given source block, with the choice made independently of all bit values. Let be the event that the insertion is not placed after the last source bit and that the source bits immediately before and after the insertion are both 1. Since the insertion position is uniform and the source block has length at least , . On , one side of the insertion contains at least source bits; choose such a side, and set . This integer length fits beyond the flanking bit and satisfies for all sufficiently large , since . Consider the first output bits on that side beyond the flanking bit, including any other inserted bits that fall in this neighborhood. Require that the farthest bit is 1 and that the remaining bits are -RLL. Conditional on and the insertion locations, this neighborhood event has probability at least .
Condition on the source alphabet, ancestor indices, all insertion locations, the chosen neighboring interval, and all inserted bits outside the selected insertion. Its k-bit string remains uniform. By the conditional form of Lemma 6 and the union bound, the conditional probability that it appears elsewhere in the data is at most . Also, the conditional probability that it is not M-RLL is at most . Therefore, conditional on the flank and neighborhood events, the insertion is both new and M-RLL with probability at least .
When all these events hold, the two flanking 1 bits and the M-RLL insertion prevent a marker from crossing either insertion boundary. The neighboring interval contains no marker, and its outer 1 prevents a marker from crossing its far endpoint, including when the interval is on the left. Thus the full insertion and the neighboring interval lie in a single VLD chunk. Since the inserted k-bit string is new, this chunk is new and is encoded explicitly. Its length is at least . The charged intervals lie in distinct source blocks and are disjoint; if multiple successful blocks charge the same explicit chunk, these charges are disjoint subintervals of that chunk, so the sum does not double count. Each source block therefore contributes explicitly-encoded bits with probability , giving .
Finally, through Lemma 7 and Theorem 4, we derive an intermediate-marker lower bound that includes the storage forced by the inserted bits. Combined with the small- and large-marker lower bounds, this yields the optimal-marker characterization and entropy comparison in Corollary 4.
Lemma 7. Consider variable-length deduplication applied to the burst-insertion source model of Section III, where
Let denote the set of distinct chunks of the full-stream partition completed by the end of the first source blocks. There exists an absolute constant such that
The proof of this lemma can be found in Appendix A.
Theorem 4. Consider the burst-insertion source model of Section III, where . If , then there exist absolute constants such that the expected length of the compressed string by variable-length deduplication satisfies
Proof: In the full-stream VLD encoding, let be the cost of all chunks completed by the end of the first source blocks, together with the initial length prefix, and let be the cost of the remaining chunks. A chunk crossing the midpoint is assigned entirely to , so . Since every distinct chunk in the first half is stored explicitly when it first appears, Lemma 7 gives
Let
By Lemma 7, . Let denote the event that the second half contains at least chunks longer than . By Lemma 5, . Hence,
On , each such long second-half chunk costs at least
bits: a new chunk is stored explicitly and has length greater than , while a repeated chunk is represented by a pointer into a dictionary of size at least . Since , this lower bound is . Therefore, for a sufficiently small absolute constant ,
The desired result follows from adding the lower bounds on and .
Note that Theorems 2 and 4 cover the lower bound for all cases of with in the regime where : Theorem 2 applies below , while Theorem 4 applies from up to . The condition together with and implies . Since and is constant, . If , this is strictly below asymptotically; if , then gives . Therefore for all sufficiently large . The inequalities and follow from and , respectively, so the small and intermediate windows overlap.
B. Upper Bound
- Constant Substitution Model:
Theorem 5. Consider the constant-substitution source model of Section III. Using optimal marker length M, the expected length of the compressed string by variable-length deduplication satisfies
Proof: The variable-length deduplication partitions the source string as a random number of chunks, denoted . The length of can be encoded in at most bits by Elias gamma coding. Let denote the dictionary right after chunk is processed ( denotes the initial empty dictionary). We can write
We next consider a partition of into a random number of “edit blocks”. We first split at all the boundaries of source blocks. Each source block is further split in the following way. For each source symbol with at least one descendant, let its first descendant be , i.e., is the smallest index such that . For any other descendant of , we consider the mismatches between and . Suppose differs from in positions . Since both and are of Hamming distance from , we know that . We break into segments at these points. Specifically, for each , we split between the -th symbol and the -th symbol. The first segment is set to be empty if . These segments are referred to as edit blocks. As an example, if , , and
then we have , , and the edit blocks are 01, 1000, 00.
Thus, conditioned on the differences between each and its corresponding “first descendant” source block , we can partition the source string into a random number of edit blocks, denoted (the boundaries of source blocks are also breakpoints). Each first descendant has no mismatch with itself and is therefore an edit block by itself. For every observed source symbol , let be the index satisfying .
We define a similar notion of interior chunks and boundary chunks as in [6, Theorem 3] but with respect to edit blocks and the substitutions. Consider chunks whose first symbols are in edit block . Some of them are invariant under changes to the neighboring edit blocks and and under flipping the first bit of . In other words, replacing either neighboring edit block by an arbitrary binary string or flipping the first bit of does not change the existence or content of these chunks. They are referred to as “interior” chunks. We denote the set of indexes of interior chunks in by . The chunks that are not interior chunks are referred to as “boundary” chunks. Their existence or content may depend on the neighboring edit blocks and or on the first bit of . We denote the set of indexes of all boundary chunks that start in by . We give examples in the following of boundary chunks (indicated by underbrackets) and interior chunks (indicated by overbrackets) when marker length in various cases. Vertical bars indicate the boundaries of edit blocks. Different rows are independent examples.
By (8),
The Elias length-prefix term is retained below and absorbed by the logarithmic terms only in the final order bound.
We first consider the interior chunks that appear for the first time. Consider the edit block and the source block that contains . If is not the first source block among the descendants of , then equals the corresponding substring of at the same location except possibly at its first bit. It follows from the definition of interior chunks that any interior chunk of must have already appeared in that substring of . Thus, any interior chunk of that has not appeared in the dictionary is a substring of a first descendant . The total length of all first descendants is at most 2AL. Hence,
Secondly, we upper bound the lengths of boundary chunks. We adopt a similar approach as [6]. We call an occurrence of internal to an edit block if it is wholly contained in and starts after the first bit of . For an edit block , let head( ) denote the prefix of which ends at the last zero of the first internal in . Let tail( ) denote the suffix of which starts at the first zero of the rightmost in . Head or tail is defined to be itself if does not contain corresponding patterns. Consider a boundary chunk with starting position in edit block and ending position in edit block , . If , then at least one of the following two events must hold: i) the starting position of is in tail( ), ii) the ending position of is in head( ). The first internal ends at an accepted chunk endpoint and makes subsequent parsing independent of the preceding edit blocks and the first bit of . Moreover, the rightmost contains at least one accepted chunk endpoint. Thus, a chunk wholly inside that ends after the head and starts before the tail is interior. For a similar reason, when , the starting position of must be in tail( ) and the ending position of must be in head( ). Thus, the total length of boundary chunks that start in or after and end in or before is upper bounded by the total length of head( ), , head( ), tail( ), , tail( ). It follows that
Condition on the source-symbol lengths, ancestor indices, and all substitution locations. Under this conditioning, and the edit-block lengths are fixed, and the bits within each nonempty are independent Bernoulli variables, although different edit blocks need not be independent. In an infinite sequence of such bits, the expected waiting times for and are and , respectively [23, Chapter 8]. Searching for the head's defining pattern starts after the first bit, adding one bit to the first waiting-time bound. Since the head and tail are truncated at the edit-block boundaries, their conditional expected lengths are at most and , respectively. Summing these conditional bounds and then averaging gives
Finally, we upper bound the remaining terms in (9). Each chunk ends at a marker accepted by the parser, except possibly for a final markerless suffix. The expected number of occurrences of wholly inside source blocks is at most , since a source block of length has at most candidate starting positions, each yielding with probability . Accepted marker intervals are disjoint, so at most accepted markers cross source-block boundaries. Allowing one additional chunk for the final suffix gives . Therefore,
where the second inequality follows from .
Thus, by plugging (10), (11) and (12) in (9), we find that is upper bounded by
Writing , the two marker-dependent terms are minimized over positive real x at
Choose . Since , rounding increases the continuous minimum by at most a factor of 5/4. This integer choice gives the upper bound
Here under the standing polynomial regime, so the additive logarithmic term is absorbed by .
Corollary 3. Consider the constant-substitution source model of Section III with and . Then, for variable-length deduplication with optimal marker length,
Moreover, for constant t,
Under the standing assumption , up to polylogarithmic factors,
and
Since under the standing polynomial regime, , so VLD achieves an asymptotically arbitrarily large compression ratio while remaining polynomially larger than the entropy.
Proof: The lower bound in (13) follows from Corollary 2, and the upper bound follows from Theorem 5. The entropy estimate (14) follows from Corollary 1. Under the standing assumption , the additive 2AL term in (13) is within the stated polylogarithmic scale, and Lemma 1 together with (14) gives for constant t. The entropy-ratio bounds follow by dividing (13) by this entropy. Finally, and make the upper bound in (13) .
- Burst-Insertion Model:
Theorem 6. Consider the burst-insertion source model of Section III under the standing assumptions that t is fixed and . Using optimal marker length M, the expected length of the compressed string by variable-length deduplication satisfies
The proof of Theorem 6 is very similar to that of Theorem 5. The detailed proof can be found in Appendix B.
Corollary 4. Consider the burst-insertion source model of Section III, where
For variable-length deduplication with optimal marker length,
Under the standing regime , , and constant t, these bounds simplify to
Moreover, Corollary 1 gives
Consequently, this ratio diverges when and remains when .
Proof: The upper bound (16) is Theorem 6. The displayed bounds on k imply
and hence , as required by the small- and intermediate-marker coverage. For the lower bound, write . If , Theorem 4 gives the term . If also , then
so its remaining terms and the arithmetic-geometric mean inequality give
For , the term in Theorem 4 is . The small-marker coverage established after Theorem 4, together with Theorem 2, gives the same lower bound below the intermediate window, while Theorem 3 gives it for
. Since and under the hypotheses, implies (15). Thus the lower bound holds for every marker length and hence for the optimal one.
In the standing polynomial regime, and , which proves (17). Finally, (2) gives . Dividing (17) by this estimate proves (18) and the two stated regimes.
VI. MULTI-CHUNK DEDUPLICATION
In the following, we derive an upper bound on the expected compressed length of the multi-chunk algorithm under both edit models, using similar techniques as in [6, Theorem 3].
A. Constant Substitution Model
Theorem 7. The expected length of the compressed strings produced by multi-chunk deduplication with optimal marker length M under the constant substitution model satisfies
Proof: As in the proof of Theorem 5, we consider again the differences between each and (the first descendant of the ancestor of ), and break into edit blocks .
Next, we use the definitions of interior and boundary chunks from the proof of Theorem 5, adapted to multi-chunking, and treat any unterminated final chunk (one not ending at an accepted marker) as a boundary chunk. Interior chunks in an edit block form a consecutive run: once their parsing is independent of the incoming context and the first bit, each subsequent marker-terminated chunk ending inside the block has the same property. We first bound the cost of these runs, then bound the boundary cost using synchronizing heads and tails. We give examples in the following about boundary chunks (indicated by underbrackets) and interior chunks (indicated by overbrackets) in multi-chunking when marker length M = 3 in various cases. Vertical bars indicate the boundaries of edit blocks. Different rows are independent examples.
Splitting an encoded bundle into smaller bundles cannot decrease its encoding cost. We therefore obtain an upper bound on by splitting bundles as needed so that every boundary chunk is encoded individually.
We consider with ; the logarithmic choice below satisfies this for all sufficiently large parameters in the standing regime. Let denote the event that any two source alphabet substrings at distinct positions or in distinct source symbols, each of length , have Hamming distance at least . On this event, an interior chunk can equal an earlier chunk only at the corresponding position in a descendant of the same ancestor. Indeed, an interior chunk lies in one source block and has length at least . Consider the two length- halves of its length- prefix. In an equal earlier occurrence, the matching prefix crosses at most one source-block boundary, since every source block has length at least . Hence at least one of its halves lies wholly inside a source block. The corresponding ancestor substrings differ in at most bits, so separation forces the same ancestor and offset, which aligns the entire chunk.
Assume holds. We first consider the interior chunks. For every edit block with , let denote the index of its first interior chunk. Let be the set of observed source symbols for which . For every , in the edit block , all interior chunks are distinct and different from any other chunk that appeared previously. Thus, they can be encoded jointly using at most
bits, where is the first interior chunk in .
For any in with and , all its interior chunks must have appeared in the corresponding positions in . Moreover, those are the first times these chunks appeared and entered into consecutive dictionary entries. Let be the set of such indices for which . For , suppose the interior chunks in are ; they can be encoded jointly using at most
(20) bits, where denotes the dictionary right after chunk is encoded.
For the boundary chunks, as mentioned, we assume they are encoded individually. If a boundary chunk is new, then it takes at most bits. If has appeared before, it takes at most bits. For every nonfinal chunk, if ,
The final chunk costs at most bits, allowing for either a new chunk or a pointer. Together with the Elias length prefix, it requires at most additional bits beyond the length-based chunk costs. Thus, even if the complement of holds, encoding all chunks separately gives
(22)
where bounds the number of chunks, including the possibly shorter final chunk. The last inequality holds for all sufficiently large parameters, using .
Thus, by combining (19), (20), (21), (22), we get
\begin{aligned}\mathcal{L}_{MC}(\boldsymbol{s}_{sub})&\leq\sum_{a\in\mathcal{A}_{int}}\left(4+2\log\left|\mathcal{C}_{\iota(a)}^{o}\right|\right+\left|Z_{c_{\iota(a)}}\cdots Z_{c_{\iota(a)}+\left|\mathcal{C}_{\iota(a)}^{o}\right|-1}\right|\bigg)+\sum_{r\in\mathcal{R}_{rep}}\left(5+2\log|\mathcal{C}_{r}^{o}|+\log|T_{MC}^{c_{r}-1}|\right)\\ &\quad+\sum_{r=1}^{K}\sum_{c\in\partial\mathcal{C}_{r}}(5+|Z_{c}|)+\mathbb{1}_{\overline{\mathcal{E}}_{sep}^{sub}}\cdot12BL+3\log(2BL)+6\\ &\leq A(4+2\log(2L)+2L)+B(2t+1)(5+2\log(2L)+\log(2BL))\\ &\quad+\sum_{r=1}^{K}\sum_{c\in\partial\mathcal{C}_{r}}(5+|Z_{c}|)+\mathbb{1}_{\overline{\mathcal{E}}_{sep}^{sub}}\cdot12BL+3\log(2BL)+6,\end{aligned} \tag{23}where and . We upper bound both and by 2L, upper bound K by since there are at most edit blocks in each source block, and upper bound the dictionary size by 2BL.
It remains to bound the lengths of boundary chunks. Define as the suffix beginning bits before the rightmost wholly contained occurrence of , capped at the beginning of . Define as the prefix ending at the final zero of the first wholly contained occurrence of that begins strictly after the first bit of , where . If the relevant pattern does not appear, the corresponding head or tail is all of .
The longer RLL guard in the head forces synchronization. If this pattern begins at position , any earlier marker ends at or before : there is no marker wholly inside , and the following 1 prevents one from crossing into the terminal . The terminal marker ends at , at least bits later, so the parser must accept it, independently of the incoming context and the first bit of . Thereafter, all marker-terminated chunks ending inside are interior. At the other end, if the rightmost marker ends at position , either it is accepted, or the preceding accepted boundary is at least . In either case, any chunk continuing beyond , or an unterminated final chunk when is last, starts no earlier than the tail's first position . Consequently, every boundary-chunk portion inside is covered by its head or tail, even for chunks spanning several edit blocks. Hence,
Taking expectations in (23) and using (24), is at most
To handle the random edit partition, condition on the source-symbol lengths, ancestor indices, and substitution locations. Then K and the edit-block lengths are fixed, and the bits within each nonempty are i.i.d. Bernoulli(1/2); different edit blocks need not be independent.
We adapt the renewal argument of [6, Appendix F] to the longer head. After skipping the first bit of , extend its remaining bits to an infinite fair-bit sequence and split it at each first occurrence of , without a minimum-length requirement. The resulting subchunk lengths are i.i.d. with mean . A subchunk with at least bits before its terminal marker contains the required head pattern: the last such bit is 1, and the preceding bits contain no . By a union bound over the possible marker starts, the probability of such a subchunk is at least
The number of subchunks through the first such occurrence therefore has mean at most 2. Wald's identity bounds the expected head length by . Truncating the sequence at the end of can only shorten the head. The reverse waiting-time argument for the tail is unchanged. Thus, under this conditioning,
(26)
Moreover, every nonfinal chunk has length at least . Counting the final chunk separately and taking unconditional expectations gives
The two conditional bounds in (26) sum to at most , and also to at most . Since deterministically, averaging over the conditioning yields
On the other hand, by the same Hamming-ball and union-bound argument used to derive (32),
(28)
for all .
Thus, by plugging (27) and (28) into (25) and absorbing the prefix and final-chunk overhead using , we get
subject to the condition that .
Pick
Then is satisfied. In the standing regime, and , so the upper constraint and the condition on in (28) also hold eventually. With this choice of , (29) is further upper bounded by
By the preceding theorem and Lemma 1, when and are both , and ,
Note that the term depends on the substitution number . Therefore, under these assumptions, MCD's expected compressed length is within a constant factor of the source entropy.
B. Burst-Insertion Model
Theorem 8. The expected length of the compressed strings produced by multi-chunk deduplication with optimal marker length M under the burst-insertion model satisfies
The proof of Theorem 8 is very similar to that of Theorem 7. The detailed proof can be found in Appendix B. By Theorem 8 and (2), under the standing assumptions of Section III,
where the constant may depend on the fixed insertion number t.
VII. RESULTS
In this section, we summarize the main results of the paper.
A. Variable-Length Deduplication
Under the constant substitution source model, Theorem 1 gives a family of VLD lower bounds indexed by the analysis parameter . The choice recovers the broad lower bound when , while gives the sharper lower bound when . Combining this latter bound with the upper bound of Theorem 5, Corollary 3 shows that VLD has expected compressed length up to polylogarithmic factors under the standing assumption . Under the same conditions, while the entropy is , so VLD can achieve an asymptotically arbitrarily large compression ratio while remaining polynomially larger than the entropy.
Under the burst-insertion model, the performance of VLD depends on the chunk length, which is controlled by the marker length . In the following summary of the burst-insertion VLD results, we assume , in addition to the standing assumptions. The effect of on the performance of VLD is studied in Theorems 2, 3, and 4. Theorem 2 shows how, when and , small values of lead to an oversized dictionary, resulting in a compression ratio upper bounded by a universal constant. By Theorem 3, we observe that an oversized where can lead to a large number of distinct chunks, each of which needs to be encoded in full, rendering VLD ineffective with a compression ratio upper bounded by a universal constant. Corollary 4 combines the small-, intermediate-, and large-marker regimes and shows that, for the optimal marker length, VLD is larger than the entropy by a diverging factor when but is order-optimal when .
B. Multi-Chunk Deduplication
Under the standing assumptions and the additional condition , Theorem 7 shows that MCD with optimal marker length has expected compressed length within a constant factor of the source entropy. In contrast, Corollary 3 shows that VLD's expected compressed length exceeds the entropy by a factor tending to infinity, even with its optimal marker length. The MCD upper bound is obtained using , a smaller marker-length scale than the choice used to obtain the VLD upper bound.
Under the standing assumptions for the burst-insertion model, including and , Theorem 8 shows that MCD's expected compressed length is within a constant factor of the source entropy. As in the constant-substitution model, the marker length used to obtain the MCD upper bound is smaller in order than that used to obtain the VLD upper bound.
VIII. CONCLUSION
In this paper, we analyzed the performance of two deduplication algorithms, VLD and MCD, on data streams containing approximate repeats, which is a scenario frequently encountered in practice. To model such repeats, we assumed a constant number of either substitutions or burst insertions per source block. We showed that VLD can achieve arbitrarily large compression ratios but may also spend a number of bits larger than the entropy by an arbitrarily large factor over both proposed models. We also found that for both source models, MCD can achieve an expected compressed length within a constant factor of source entropy under mild conditions.
While this work highlights key aspects of the problem, the information-theoretic analysis of data deduplication remains rich with open questions. For instance, the source models considered here are limited to a constant number of substitutions or burst insertions, whereas real-world data often undergoes insertions, deletions, and substitutions of both single symbols and longer substrings. To develop a more comprehensive understanding, it is essential to analyze deduplication algorithms under more general source models and edit processes.
APPENDIX A
PROOF OF LEMMAS 3, 4, 6, 7
Lemma 3. Consider the constant-substitution source model of Section III with , and variable-length deduplication with marker length satisfying . Let denote the total length of chunks that are stored in full at their first appearance, and set
For every integer , there is a constant depending only on t such that
Proof: For the segment construction, round down to an even integer, which affects only constant factors in the bound; we continue to write for this segment length. For each source symbol , let be the number of its descendants among , and partition into
non-overlapping length- segments , discarding a possible shorter suffix. Since and , we have . Index these descendants by in their order of appearance in the source stream. For each descendant of , let denote the length- substring aligned with , for and ; see Fig. 2.

Fig. 2. A partition of and its descendants into aligned segments of length , with a possible shorter suffix. The labels and denote the remaining suffixes, which have length less than and may be empty. These suffixes are not among the full segments.
We call such a descendant segment eligible if it satisfies the following three conditions:
-
begins and ends with 1 and contains no run of M zeros;
-
no -substring of is within Hamming distance 2t of an -substring at a different position in the source alphabet;
-
is a first appearance among its siblings, i.e., for every .
The first condition ensures that the entire segment lies in one VLD chunk: no marker lies inside it, and the endpoint ones prevent a marker from overlapping either endpoint.
Suppose this chunk has appeared earlier. The matching length- segment in that earlier chunk crosses at most one source-block boundary, since every source block has length at least . Thus at least one of its two length- halves lies wholly in a source block. The corresponding ancestral half-substrings differ in at most 2t positions, so the second condition forces them to have the same ancestor and the same ancestral position. This alignment places the entire matching segment at the position of in that earlier descendant, because lies wholly in its ancestor. The matching segment is therefore an earlier sibling, contradicting the third condition. Hence every eligible segment lies in a chunk stored in full at its first appearance.
The eligible segments occupy disjoint positions, so even when several lie in the same new chunk, their combined lengths do not exceed that chunk's length. Consequently, W is at least times the number of eligible segments.
Let be the set of distinct strings among . Fix the source lengths, the indices , and all substitution locations, and average over the source bits. Two sibling segments are equal exactly when their substitution sets within the segment are equal. Thus the fixed choices identify exactly first appearances, regardless of the source bits. Each selected segment remains an i.i.d. Bernoulli string. Let and be uniform upper bounds on the conditional failure probabilities of the first and second conditions, respectively. Applying the union bound to each selected first appearance and then averaging over the fixed choices gives
For the first condition, the two endpoint bits are both 1 with probability 1/4. A run of zeros can start at at most positions inside , each with probability . Since , the union bound gives
For the second condition, fix an -substring of and an -substring at a different position in the source alphabet. Their coordinatewise differences are independent fair bits. This also holds for overlapping substrings of one ancestor: the comparison pairs at a fixed nonzero shift form disjoint paths, whose bit differences are independent. Their Hamming distance is therefore at most with probability at most
for all sufficiently large . There are at most choices inside and fewer than 2AL positions in the source alphabet, so
because gives even after rounding, while . Together with (31), this implies for all sufficiently large .
It remains to lower bound the expected number of distinct segment versions. Condition on , so that the numbers of segments are fixed. Fix and a set of positions within segment of . The conditional probability that a given source block selects and its substitution set intersects segment exactly in is
for a constant : since and , the numerator is at least while the denominator is at most .
When this event occurs, the corresponding descendant segment equals with exactly the bits in flipped. Distinct sets yield distinct strings, and all blocks realizing the same yield the same string. Hence , where the sum ranges over the subsets of size and indicates that at least one of the blocks realizes . The block choices are independent conditional on the lengths. Using ,
The lower bound in (33) is uniform over the source lengths, and for every realization of those lengths. Summing (34) over all segments and averaging over the lengths, then substituting into (30) with , gives
Here for , while . The positive constant can be chosen uniformly over and absorbs the factors depending only on and the initial rounding of , so the bound holds with as defined in the lemma statement. ■
Lemma 4. Consider the burst-insertion source model of Section III, and let be positive integers. Let denote the event that at least half of the distinct strings of the form , where , appear among the first source blocks. If , then
Proof: Among the first source blocks, partition only the k-bit insertions into non-overlapping pieces of length N. The number of such pieces satisfies
since and is fixed. Each piece is an i.i.d. Bernoulli string of length . For any fixed , let . Then is an -bit string, and the probability that a given piece equals is . Since the pieces are independent, the probability that does not appear in any piece is at most
The bounds and , as well as the fact that is constant, are part of the standing asymptotic regime stated in Section III. Hence the condition gives , so . In particular, the expected number of strings with that are missing is at most
By Markov's inequality, the fraction of missing patterns exceeds with probability . Hence .
Lemma 6. Consider the burst-insertion source string . Let denote its th bit and its length- substring starting at , where is a positive integer. Choose valid positions using only the source lengths, ancestor indices, and insertion locations, and suppose that one of the two windows lies wholly inside an insertion. Conditional on the source alphabet, ancestor indices, insertion locations, and all stream bits outside that selected window, the probability that is exactly .
Proof: Under the stated conditioning, the selected insertion window is uniform over possible strings. If the comparison window is disjoint, it is fixed, so exactly one choice matches it.
If the windows overlap, set . Equality of the windows requires bits separated by positions to agree. These equalities form chains across their union, each anchored at one of the fixed bits in the comparison window outside the selected window. They therefore determine every bit of the selected window uniquely. Exactly one of its possible strings satisfies all the equalities, again giving conditional probability . No independence among the outside bits is required.
Lemma 7. Consider variable-length deduplication applied to the burst-insertion source model of Section III, where
Let denote the set of distinct chunks of the full-stream partition completed by the end of the first source blocks. There exists an absolute constant such that
Proof: Set
Since is an integer and , we have . We call any -bit substring lying wholly inside an insertion a core. A core is anchored if its first and last bits are both 1 and it contains no run of consecutive zeros. An anchored core is fully contained in a single VLD chunk: a marker cannot lie inside it, and the endpoint ones prevent a marker from overlapping either endpoint.
To prove the distinct-chunk count, we first find many anchored cores that have not appeared earlier. We then show that many of their source blocks contain a marker and that a later marker closes their chunks before the midpoint. Each such chunk is new, and the markers limit how many selected blocks can contribute to one chunk. For the length bound, we will charge disjoint inserted cores and nearby bits to new, completed chunks.
If U is an i.i.d. Bernoulli(1/2) string of length q, then, for sufficiently large B,
For each possible internal occurrence of , the joint probability of that occurrence and both endpoint bits being 1 is . Occurrences touching an endpoint are impossible when that endpoint is 1. A union bound gives the first inequality, and under the hypothesis .
For , let be the first bits of the first insertion in source block , ordered by its position in the stream. Let be the sigma-field generated by all source-symbol lengths and bits, all ancestor indices and insertion locations, and all inserted bits strictly preceding . No bits of or future inserted bits are revealed. An earlier occurrence means a length- substring lying wholly before . Conditional on , the bits of remain i.i.d. Bernoulli, and all earlier candidate substrings are determined. Moreover, fewer than such substrings precede in the stream. Hence
Combining (35) and (36), the event that is anchored and fresh relative to the past has conditional probability at least 3/32.
Let denote this event, and set . The indicators need not be independent, but they satisfy
Every earlier , , is measurable, so the same conditional lower bound holds given the earlier indicators alone, by the tower property. Hence, the lower-tail Chernoff bound with stochastic domination [24, Lemma 24, Eq. (6)], applied with , , , and , gives
We next ensure that enough of these cores lie in marker-containing blocks. Before conditioning on the realized source alphabet, fix , the length , and the insertion locations. Averaging over the source and inserted bits, consists of independent fair bits and has length at least . The expected waiting time for the first occurrence of in fair bits is , so Markov's inequality gives
To justify concentration despite the shared source alphabet, condition on the source symbols. For each a, let
where the probability is over the insertion locations and inserted bits. Averaging over the random source symbol and its length, the law of total expectation gives
Let
Thus, is the conditional probability that a randomly selected source block is markerless after the source alphabet is fixed. The variables are independent and bounded in , so the one-sided Hoeffding inequality gives
(37)
By (37), the probability that the realized source alphabet has is at most . Fix a source alphabet with . Since the indices are i.i.d. uniform on and the insertion randomness is independent across source blocks, the indicators is markerless}, , are conditionally i.i.d. Bernoulli random variables with parameter . Let
Thus, conditional on this alphabet, is stochastically dominated by , whose mean is . Since , Chernoff's upper-tail inequality gives
Let . To bound its failure probability, split according to whether . On the favorable alphabet event, the preceding conditional Chernoff bound applies:
The blocks form a buffer after the selected cores. Let be the event that at least one of these blocks contains a marker; that marker closes any chunk still open after the first blocks. When , the conditional probability that every buffer block is markerless is at most . Adding the probability that gives
We now combine the three events. On , more than of the first blocks contain both a fresh anchored core and a marker. On , each chunk containing one of these cores is completed before the second half begins. Each such chunk is new when processed: if it had appeared earlier, its core would have appeared earlier as a substring.
A single VLD chunk can contain selected cores from at most two marker-containing blocks. If it contained cores from three, the marker in the middle block would occur between the first and third cores and terminate the chunk. Thus, on the intersection of the three events,
The three events hold simultaneously with probability , proving (6).
It remains to bound the total length of the distinct chunks. In each argument below, an anchored fresh core certifies that its chunk is new, and ensures that the chunk is completed before the midpoint. We charge disjoint substrings of such chunks, first from the insertions and then from neighboring bits.
Inserted-bit contribution. Partition every insertion in the first source blocks into consecutive, non-overlapping -bit cores, discarding the leftover bits. Each insertion retains at least bits.
For any one of these cores , the preceding conditional argument gives probability at least 3/32 of being anchored and fresh. Since , the union bound gives, for all sufficiently large ,
Each qualifying core can be charged to its new, completed chunk. The cores are disjoint, so their charged lengths do not exceed the total length of these distinct chunks, even when several lie in one chunk. Linearity of expectation therefore gives
Adjacent-bit contribution. Set . In each of the first source blocks, consider the first insertion. Since and the underlying source symbol has length at least , one side of this insertion contains at least output bits within the block for all sufficiently large ; choose that side deterministically from the source-block length and insertion locations. Let be the -bit end of the insertion nearest this side. Denote the next bit by , the following length- substring by , and the bit beyond by . The order is
Let be the event that is anchored and fresh relative to the preceding stream, , contains no run of zeros, and holds. Given the insertion locations, the chosen side, and the bits , the inserted core remains i.i.d. Bernoulli and independent of the preceding stream. The same conditional argument as above therefore gives probability at least that it is anchored and fresh. Also,
Requiring costs at most , so
On , the guarded, markerless pieces (or their reverse order) lie in one new chunk completed before the midpoint. Charge the bits of to that chunk. The intervals are disjoint across source blocks, so even if several lie in the same chunk, their charged lengths do not exceed its length. Thus
Taking expectations gives
Taking half the sum of (38) and (39), with a sufficiently small absolute constant, yields (7).
APPENDIX B
PROOF OF THEOREMS 6 AND 8
Theorem 6. Consider the burst-insertion source model of Section III under the standing assumptions that t is fixed and . Using optimal marker length M, the expected length of the compressed string by variable-length deduplication satisfies
Proof: The variable-length deduplication partitions the source string as a random number of chunks, denoted . The length of can be encoded in at most bits by Elias gamma coding. Let denote the dictionary right after chunk is processed ( denotes the initial empty dictionary). We can write
We next consider a partition of into a random number of “edit blocks”. We first split at all the boundaries of source blocks. Each source block is further split in the following way. For each source symbol with at least one descendant, let be its first descendant, i.e., is the smallest index such that . All expressions involving below range only over these observed source symbols, whose number is at most . For any other descendant of , let be the union of the source positions after which an insertion occurs in or ; then . Cut the source-derived bits of immediately after these positions, producing at most edit blocks. If has an insertion after , its inserted string forms the insertion block paired with the edit block ending at ; otherwise that insertion block is empty. The insertion block paired with the final edit block is also empty. We leave each first descendant as a single edit block. As an example, for , the edit and insertion blocks are specified in Fig. 3.

Fig. 3. An example of edit and insertion blocks for , , . The labels abbreviate . The black blocks are inserted bits. Consecutive source blocks in the source string are shown in separate lines. The first descendant is retained as the single edit block , including its inserted bits. Empty insertion blocks are omitted from the diagram.
Thus, conditioned on the differences between each and its corresponding “first descendant” source block , we can partition the source string into a random number of edit and insertion block pairs, denoted (the boundaries of source blocks are also breakpoints). For every observed source symbol , let be the index satisfying .
We define a similar notion of interior chunks and boundary chunks as in [6, Theorem 3] but with respect to edit and insertion blocks. Consider chunks whose first symbols are in edit block . Some of them are invariant under changes to the neighboring edit and insertion blocks. In other words, by replacing , , , or by any other strings, the existence or content of these chunks do not change. They are referred to as “interior” chunks. We denote the set of indexes of interior chunks in by . The chunks that are not interior chunks are referred to as “boundary” chunks. Their content depends on neighboring edit and insertion blocks , , , and . We denote the set of indexes of all boundary chunks that start in or .
by . Note that all chunks starting in an insertion block are considered boundary chunks. We give examples in the following of boundary chunks (indicated by underbrackets) and interior chunks (indicated by overbrackets) when marker length in various cases. Vertical bars indicate the boundaries of edit blocks. Different rows are independent examples.
By (40),
The Elias length-prefix term is and is absorbed by the final logarithmic term.
We first consider the interior chunks that appear for the first time. Consider the edit block and the source block that contains . If is not the first source block among the descendants of , then equals the corresponding source-derived substring of . It follows from the definition of interior chunks that any interior chunk of must have already appeared in that substring of . Thus, any interior chunk of that has not appeared in the dictionary is a substring of a first descendant . The sum of the lengths of all first descendants is at most . Hence,
Secondly, we upper bound the lengths of boundary chunks. We adopt a similar approach as [6]. We call an occurrence of internal to an edit block if it is wholly contained in and starts after the first bit of . For edit block , let head( ) denote the prefix of which ends at the last zero of the first internal in . Let tail( ) denote the suffix of which starts at the first zero of the rightmost in . Head or tail is defined to be itself if does not contain corresponding patterns. Consider a boundary chunk with starting position in edit block and ending position in edit block , . If , then at least one of the following two events must hold: i) the starting position of is in tail( ), ii) the ending position of is in head( ). The first internal ends at an accepted chunk endpoint and makes subsequent parsing independent of the preceding edit and insertion blocks. Moreover, the rightmost contains at least one accepted chunk endpoint. Thus, a chunk wholly inside that ends after the head and starts before the tail is interior. For a similar reason, when , the starting position of must be in tail( ) and the ending position of must be in head( ). Consider a boundary chunk with starting position in edit block and ending position in non-empty insertion block , . In this case, the starting position of is in tail( ). Similarly, if the starting position of is in the non-empty insertion block and the ending position is in , , then the ending position must be in head( ). Thus, boundary chunks spanning these blocks are covered by the heads and tails of the intervening edit blocks and by the intervening insertion blocks. Summing their lengths gives
Condition on the source-symbol lengths, ancestor indices, and all insertion locations. Under this conditioning, and the edit-block lengths are fixed, and the bits within each nonempty are independent Bernoulli variables, although different edit blocks need not be independent. In an infinite sequence of such bits, the expected waiting times for and are and , respectively [23, Chapter 8]. Searching for the head's defining pattern starts after the first bit, adding one bit to the first waiting-time bound. Since the head and tail are truncated at the edit-block boundaries, their conditional expected lengths are at most and , respectively. Summing these conditional bounds and then averaging, using and , gives
Finally, we upper bound the remaining terms in (41). Each chunk ends at a marker accepted by the parser, except possibly for a final markerless suffix. The expected number of occurrences of wholly inside source blocks is at most , since a source block of length has at most candidate starting positions, each yielding with probability . Accepted marker intervals are disjoint, so at most accepted markers cross source-block boundaries. Allowing one additional chunk for the final suffix gives . Therefore,
where the second inequality follows from .
Thus, by plugging (42), (43) and (44) in (41), we find that is upper bounded by
Minimizing the two M-dependent terms over positive real gives
Choose . Since , rounding increases the continuous minimum by at most a factor of . Since is fixed and , the resulting upper bound is
Here and . Moreover, and imply , so the term is absorbed by .
Theorem 8. The expected length of the compressed strings produced by multi-chunk deduplication with optimal marker length M under the burst-insertion model satisfies
Proof: As in the proof of Theorem 6, we compare each with the first descendant of its ancestor and use the resulting edit and insertion block pairs . For every observed source symbol , let satisfy . For brevity, set
so every source block has length at most and .
We use the interior and boundary multi-chunk definitions from the proof of Theorem 7, treating every chunk that starts in an insertion block , as well as any unterminated final chunk, as a boundary chunk. Here collects the boundary chunks starting in either or . Interior chunks in each again form a consecutive run. We bound the cost of these runs first, then the boundary cost, and finally the probability of an accidental collision.
Splitting an encoded bundle into smaller bundles cannot decrease its encoding cost. We therefore obtain an upper bound on by splitting bundles as needed so that every boundary chunk is encoded individually.
Let denote the event that there is at least one interior chunk in a first descendant of an observed source symbol (where ) and that is either equal to another interior chunk of a first descendant or equal to a boundary chunk that appears before .
Assume the complement of holds. Every interior chunk of a nonfirst descendant also occurs as an interior chunk at the corresponding position of its first descendant: the edit block is an unchanged substring there, and the chunk's parsing is invariant to its neighboring bits. Thus the absence of collisions between first-descendant interior chunks also excludes collisions with earlier interior chunks of nonfirst descendants. We first consider the interior chunks. For every edit block with , let denote the index of its first interior chunk. Let
For every , all interior chunks in are distinct and different from every chunk that appeared previously. Thus, they can be encoded jointly using at most
bits, where is the first interior chunk in .
For any that lies in some with and , all of its interior chunks must have appeared in the corresponding positions in . Moreover, those corresponding occurrences are the first times these chunks appeared and entered consecutive dictionary entries. Let be the set of such indices for which . For , suppose the interior chunks in are . They can be encoded jointly using at most
bits, where denotes the dictionary right after chunk is encoded.
For the boundary chunks, as mentioned, we assume they are encoded individually. If a boundary chunk is new, then it takes at most bits. If has appeared before, it takes at most bits. For every nonfinal chunk, if ,
The possibly shorter final chunk can instead be encoded separately using at most bits, allowing for either a new chunk or a pointer. If holds, encoding all chunks separately therefore gives
where bounds the number of chunks in from above, including a possibly shorter final chunk. Together, the separately treated final chunk and the Elias length prefix contribute at most additional bits to the ordinary-event bound below.
Thus, by combining (45), (46), (47), (48), we get
\begin{aligned}\mathcal{L}_{MC}(\boldsymbol{s}_{in})&\leq\sum_{a\in\mathcal{A}_{int}}\left(4+2\log\left|\mathcal{C}_{\iota(a)}^{\circ}\right|\right+\left|Z_{c_{\iota(a)}}\cdots Z_{c_{\iota(a)}+\left|\mathcal{C}_{\iota(a)}^{\circ}\right|}-1\right|\bigg)+\sum_{r\in\mathcal{R}_{rep}}\left(5+2\log|\mathcal{C}_{r}^{\circ}|+\log|T_{MC}^{c_{r}-1}|\right)\\ &\quad+\sum_{r=1}^{K}\sum_{c\in\partial\mathcal{C}_{r}}(5+|Z_{c}|)+\mathbb{1}_{\mathcal{E}_{col}^{in}}\cdot(6N+6+3\log N)+3\log N+6\\ &\leq A(4+2\log Q+Q)+B(2t+1)(5+2\log Q+\log N)+\sum_{r=1}^{K}\sum_{c\in\partial\mathcal{C}_{r}}(5+|Z_{c}|)\\ &\quad+\mathbb{1}_{\mathcal{E}_{col}^{in}}\cdot(6N+6+3\log N)+3\log N+6,\end{aligned} \tag{49}where , , we upper bound both and by , upper bound by since there are at most edit blocks in each source block, and upper bound the dictionary size by .
It remains to bound the lengths of boundary chunks. Use the head and tail defined in the proof of Theorem 7: the head ends at the first wholly contained beginning strictly after the first bit of , with , and the tail extends bits before the rightmost wholly contained , capped at the beginning of . If the relevant pattern is absent, the corresponding head or tail is all of . The synchronization and coverage argument proved there applies within each edit block unchanged. Every remaining boundary-chunk portion lies in an insertion block , so the total length of boundary chunks is bounded by the total length of the heads, tails, and insertion blocks:
(50)
Taking expectations in (49) and using (50), is at most
Condition on the source-symbol lengths, ancestor indices, and insertion locations. Then K and all edit-block lengths are fixed, and each nonempty has i.i.d. fair bits, although different edit blocks may be dependent. The head and tail estimates established in the proof of Theorem 7 therefore apply under this conditioning (and are trivial for empty blocks):
Moreover,
Each conditional head-plus-tail expectation is at most and at most . Averaging over the conditioning and using and gives
We next upper bound the probability of . Set . Since every interior chunk has length at least , a collision in implies equality of two length-n substrings: a substring of a first descendant and either (i) a substring at a different position of the same first descendant, (ii) a substring of a first descendant with , or (iii) a substring of a boundary chunk that appears before .
Condition on the ancestor indices, insertion locations, and source-symbol lengths, and then fix the two candidate starting positions. In case (i), is an i.i.d. Bernoulli(1/2) string under this conditioning. Equality of two distinct length-n substrings therefore has probability , including when the substrings overlap. In case (ii), the two first descendants use independent source symbols and independent insertion bits because , so the equality probability is again ; orient each pair by its later starting position when counting candidates. In case (iii), a boundary candidate beginning inside is already covered by case (i). Otherwise, no source block preceding has ancestor a, so the earlier bits are independent of this first descendant. Reveal those earlier bits first, then test the equality constraints from left to right. Each constraint fixes a fresh fair bit of u, giving probability even when the candidate crosses into the beginning of . There are at most AQ candidate starting positions for u. For each such position, there are at most Q other positions in the same first descendant and at most N earlier positions. A union bound therefore gives
Thus, by plugging (52) and (53) into (51), we get
(54) subject to the condition that .
Pick
Write . Then , so , and for all sufficiently large parameters in the standing regime. Since is fixed and , the last term in (54) is
Moreover, the ceiling in (55) gives , and hence . Retaining the final-chunk and length-prefix overhead until the final order bound, (54) is further upper bounded by
ACKNOWLEDGMENT
GPT-6 Astra was used to review all proofs and claims for correctness.
REFERENCES
[1] J. Gantz and D. Reinsel, “The digital universe in 2020: Big data, bigger digital shadows, and biggest growth in the far east,” IDC iView: IDC Analyze the future, vol. 2007, no. 2012, pp. 1–16, 2012.
[2] D. T. Meyer and W. J. Bolosky, “A study of practical deduplication,” ACM Transactions on Storage, vol. 7, no. 4, pp. 1–20, 2012.
[3] A. El-Shimi, R. Kalach, A. Kumar, A. Oltean, J. Li, and S. Sengupta, “Primary data deduplication—large scale study and system design,” in 2012 USENIX Annual Technical Conference (USENIX ATC 12), 2012, pp. 285–296.
[4] A. Muthitacharoen, B. Chen, and D. Mazières, “A low-bandwidth network file system,” in ACM SIGOPS Operating Systems Review, vol. 35, no. 5. ACM, 2001, pp. 174–187.
[5] S. Quinlan and S. Dorward, “Venti: A new approach to archival storage,” in FAST, vol. 2, 2002, pp. 89–101.
[6] U. Niesen, “An information-theoretic analysis of deduplication,” IEEE Transactions on Information Theory, vol. 65, no. 9, pp. 5688–5704, Sep. 2019.
[7] D. Bobbarjung, C. Dubnicki, and S. Jagannathan, “Fingerdiff: Improved duplicate elimination in storage systems,” in Proceedings of Mass Storage Systems and Technologies (MSST06), 2006, pp. 1–5.
[8] D. Teodosiu, N. Björner, Y. Gurevich, M. Manasse, and J. Porkka, “Optimizing file replication over limited-bandwidth networks using remote differential compression,” Microsoft Research, Tech. Rep. MSR-TR-2006-157, Nov. 2006. [Online]. Available: https://www.microsoft.com/en-us/research/publication/optimizing-file-replication-over-limited-bandwidth-networks-using-remote-differential-compression/
[9] B. Aggarwal, A. Akella, A. Anand, A. Balachandran, P. V. Chitnis, C. Muthukrishnan, R. Ramjee, and G. Varghese, “EndRE: An end-system redundancy elimination service for enterprises,” in Symposium on Networked Systems Design and Implementation (NSDI), April 2010, pp. 419–432.
[10] Y. Zhang, H. Jiang, D. Feng, W. Xia, M. Fu, F. Huang, and Y. Zhou, “AE: An asymmetric extremum content defined chunking algorithm for fast and bandwidth-efficient data deduplication,” in 2015 IEEE Conference on Computer Communications (INFOCOM). IEEE, 2015, pp. 1337–1345.
[11] C. Yu, C. Zhang, Y. Mao, and F. Li, “Leap-based content defined chunking-theory and implementation,” in 2015 31st Symposium on Mass Storage Systems and Technologies (MSST). IEEE, 2015, pp. 1–12.
[12] E. Kruus, C. Ungureanu, and C. Dubnicki, “Bimodal content defined chunking for backup streams,” in FAST, 2010, pp. 239–252.
[13] G. Lu, Y. Jin, and D. H. Du, “Frequency based chunking for data de-duplication,” in 2010 IEEE International Symposium on Modeling, Analysis and Simulation of Computer and Telecommunication Systems. IEEE, 2010, pp. 287–296.
[14] B. Zhou and J. Wen, “Hysteresis re-chunking based metadata harnessing deduplication of disk images,” in 2013 42nd International Conference on Parallel Processing. IEEE, 2013, pp. 389–398.
[15] W. Xia, H. Jiang, D. Feng, F. Douglis, P. Shilane, Y. Hua, M. Fu, Y. Zhang, and Y. Zhou, “A comprehensive study of the past, present, and future of data deduplication,” Proceedings of the IEEE, vol. 104, no. 9, pp. 1681–1710, 2016.
[16] H. Lou and F. Farnoud, “Data deduplication with random substitutions,” IEEE Transactions on Information Theory, vol. 68, no. 10, pp. 6941–6963, 2022.
[17] R. Vestergaard, Q. Zhang, and D. E. Lucani, “Generalized deduplication: Bounds, convergence, and asymptotic properties,” in 2019 IEEE Global Communications Conference (GLOBECOM), 2019, pp. 1–6.
[18] L. Conde-Canencia, T. Condie, and L. Dolecek, “Data deduplication with edit errors,” in 2018 IEEE Global Communications Conference (GLOBECOM). IEEE, 2018, pp. 1–6.
[19] Y. Tang, S. Motamen, H. Lou, K. Whritenour, S. Wang, R. Gabrys, and F. Farnoud, “Correcting a substring edit error of bounded length,” IEEE Transactions on Communications, vol. 73, no. 1, pp. 12–21, 2025.
[20] H. Lou and F. Farnoud, “Asymptotic analysis of data deduplication with a constant number of substitutions,” in 2021 IEEE International Symposium on Information Theory (ISIT). IEEE, 2021, pp. 3296–3301.
[21] S. Motamen and F. Farnoud, “Asymptotic analysis of data deduplication under a burst insertion edit model,” in 2026 IEEE International Symposium on Information Theory (ISIT), 2026, pp. 1–6.
[22] B. H. Marcus, R. M. Roth, and P. H. Siegel, An introduction to coding for constrained systems, (Lecture Notes), 2001. [Online]. Available: https://ronny.cswp.cs.technion.ac.il/wp-content/uploads/sites/54/2016/05/chapters1-9.pdf
[23] R. Sedgewick and P. Flajolet, An introduction to the analysis of algorithms, 2nd ed. Pearson Education India, 2013.
[24] M. Flin and M. M. Halldórsson, “Faster dynamic ( )-coloring against adaptive adversaries,” in 52nd International Colloquium on Automata, Languages, and Programming (ICALP 2025), ser. Leibniz International Proceedings in Informatics (LIPIcs), vol. 334. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025, pp. 79:1–79:21. [Online]. Available: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2025.79