Lune

SIGMOD2021Top-tier venue

Allign: Aligning All-Pair Near-Duplicate Passages in Long Texts

Weiqi Feng, Dong Deng

Abstract

In this paper, we study the problem of aligning all-pair near-duplicate passages in two long texts. A passage is a sequence of consecutive words in a text. It can begin and end with any word in the text, whether around a period or not. Due to the high computation cost of this problem, existing work all compromise to heuristic alignment methods, which can harm the recall of downstream applications, such as deduplication and plagiarism detection. To address this problem, in this paper, we propose a min-hash based method Allign to find all near-duplicate passage pairs in two long texts. Allign generates a few min-hash values for each passage in the texts and reports all the passage pairs sharing enough common min-hash values. However, for a pair of texts with n and m words, there are in total O(n2m2) passage pairs (each text contains O(n2) and O(m2) passages respectively). Thus it is prohibitively expensive to enumerate all passage pairs in two texts and count their common min-hash values. To address this issue, Allign packs a large number of nearby and overlapping passages with the same min-hash to a "compact window". In total, Allign generates O(n) compact windows to represent all the O(n2) passages in a text with n words. Next, a pair of compact windows in two texts are matched if they have the same min-hash. The rest of unmatched compact windows are removed. Finally, Allign reports all the passage pairs contained by enough number of matched compact window pairs, which must share the same enough number of min-hash values. In this way, Allign avoids enumerating the enormous number of passage pairs. Last but not least, to make the reported near-duplicate passages more relevant and Allign more efficient, we show how to support a few practical constraints efficiently, including reporting only longest near-duplicates and sentence-level near-duplicates. Experimental results on real-world datasets show that Allign significantly outperforms the state-of-the-art text alignment methods.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. R2D2: Reducing Redundancy and Duplication in Data LakesRaunak Shah, Koyel Mukherjee, Atharv Tyagi, Sai Keerthana Karnam et al.SIGMOD 2024 · 8 citations
  2. Naive Bayes Classifiers over Missing Data: Decision and PoisoningSong Bian, Xiating Ouyang, Zhiwei Fan, Paraschos KoutrisICML 2024 · 5 citations
  3. AbstractExplorer: Leveraging Structure-Mapping Theory to Enhance Comparative Close Reading at ScaleZiwei Gu, Joyce Zhou, Ning-Er (Nina) Lei, Jonathan K. Kummerfeld et al.UIST 2025 · 3 citations
  4. Near-Duplicate Text Alignment under Weighted Jaccard SimilarityYuheng Zhang, Miao Qiao, Zhencan Peng, Dong DengVLDB 2026 · 1 citation
  5. SeDA: Bridging the Gap between Efficient Syntactic and Precise Semantic Search of Similar Passages in Large Text CorporaPranay Mundra, Daniel Kocher, Martin Schaeler, Nikolaus AugstenVLDB 2026

Related papers

  1. TxtAlign: Efficient Near-Duplicate Text Alignment Search via Bottom-k Sketches for Plagiarism DetectionZhizhi Wang, Chaoji Zuo, Dong DengSIGMOD 2022 · 14 citations
  2. LSHAlign: All-Pair Near-Duplicate Text Alignment via Locality-Sensitive HashingYuheng Zhang, Zhencan Peng, Miao Qiao, Wei Zhang et al.SIGMOD 2026
  3. Near-Duplicate Text Alignment with One Permutation HashingZhencan Peng, Yuheng Zhang, Dong DengSIGMOD 2025 · 5 citations
  4. MASH: Evading Black-Box AI-Generated Text Detectors via Style HumanizationYongtong Gu, Songze Li, Xia HuACL Findings 2026
  5. DotHash: Estimating Set Similarity Metrics for Link Prediction and Document DeduplicationIgor Nunes, Mike Heddes, Pere Vergés, Danny Abraham et al.KDD 2023 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines