TxtAlign: Efficient Near-Duplicate Text Alignment Search via Bottom-k Sketches for Plagiarism Detection
Zhizhi Wang, Chaoji Zuo, Dong Deng
Abstract
In this paper, we study the near-duplicate text alignment search problem, which, given a collection of source (data) documents and a suspicious (query) document, finds all the near-duplicate passage pairs between the suspicious document and every source document. It finds applications in plagiarism detection. Specifically, the first two steps in plagiarism detection are source retrieval and text alignment. Source retrieval finds candidate source documents in a corpus that share content with the suspicious document while text alignment finds all the similar passage pairs between the suspicious document and every candidate source document. This problem is computation-intensive, especially for long documents. This is because there are O(n2m2) passage pairs between a single source document with n words and a suspicious document with m words, not to mention the large number of source documents in a corpus. Due to the high computation cost, existing solutions primarily rely on heuristic rules, such as the "seeding-extension-filtering" pipeline, and involve many hard-to-tune hyper-parameters. To address these issues, a recent work ALLIGN leverages the min-wise hash sketch for the text alignment problem. However, ALLIGN only works for two documents and leaves the source retrieval problem unattended. In this paper, we propose to leverage the bottom-k sketch (a.k.a. conditional random sampling) to estimate the similarity of two passages. We observe that many nearby passages in a document would share the same bottom-k sketch. Thus we propose to group all the passages in a document by their sketches. We prove that all the O(n2) passages can be partitioned into O(nk) groups in a document with n words and develop an algorithm to generate these groups in O(nlogn+nk) time. Then, to address the source retrieval problem, we only need to find groups of passages with "similar" bottom-k sketches. Every passage pair in two groups with "similar" sketches are near-duplicates. Experimental results on real-world datasets show that our techniques are highly efficient.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get efaf0ad0-e726-4a45-a24f-4c24077a8e9eCited by top-tier papers3
- Naive Bayes Classifiers over Missing Data: Decision and PoisoningSong Bian, Xiating Ouyang, Zhiwei Fan, Paraschos KoutrisICML 2024 · 5 citations
- Near-Duplicate Text Alignment under Weighted Jaccard SimilarityYuheng Zhang, Miao Qiao, Zhencan Peng, Dong DengVLDB 2026 · 1 citation
- 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
- Allign: Aligning All-Pair Near-Duplicate Passages in Long TextsWeiqi Feng, Dong DengSIGMOD 2021 · 13 citations
- LSHAlign: All-Pair Near-Duplicate Text Alignment via Locality-Sensitive HashingYuheng Zhang, Zhencan Peng, Miao Qiao, Wei Zhang et al.SIGMOD 2026
- Near-Duplicate Text Alignment with One Permutation HashingZhencan Peng, Yuheng Zhang, Dong DengSIGMOD 2025 · 5 citations
- minIL: A Simple and Small Index for String Similarity Search with Edit DistanceZhong Yang, Bolong Zheng, Xianzhi Wang, Guohui Li et al.ICDE 2022 · 2 citations
- GNAT: A General Narrative Alignment ToolTanzir Pial, Steven SkienaEMNLP 2023 · 3 citations
