Lune

ICML2026顶会

SoftMatcha 2: A Fast and Soft Pattern Matcher for Trillion-Scale Corpora

Masataka Yoneda, Yusuke Matsushita, Go Kamoda, Kohei Suenaga, Takuya Akiba, Masaki Waga, Sho Yokoi

摘要

We present SoftMatcha 2, an ultra-fast and flexible search algorithm that enables search over trillion-scale natural language corpora in under 0.3 seconds while allowing semantic variations in the form of substitution, insertion, and deletion. Our approach employs string matching based on suffix arrays that scales well with corpus size, and represents words as vectors, which underpin its semantic flexibility. To mitigate the combinatorial explosion induced by the semantic relaxation of queries, our method is built on two key algorithmic ideas: dynamic corpus-aware pruning and fast exact lookup enabled by a disk-aware design. We theoretically analyze the efficiency of the proposed method, indicating that it can mitigate exponential growth in the search space. Empirically, on FineWeb-Edu (Lozhkov et al., 2024) (1.4T tokens), it achieves substantially lower search latency than existing methods: infini-gram (Liu et al., 2024 ), infini-gram mini (Xu et al., 2025 ), and SoftMatcha (Deguchi et al., 2025) . As a practical application, our method uncovers benchmark contamination in training corpora that existing approaches miss, and it also benefits information retrieval and paraphrase detection. We also provide an online demo of fast, soft search across corpora in seven languages. 1,2

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Dense Passage Retrieval for Open-Domain Question Answering 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • Towards Tracing Knowledge in Language Models Back to the Training Data 引用了 Dense Passage Retrieval for Open-Domain Question Answering
  • Towards Tracing Knowledge in Language Models Back to the Training Data 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings 引用了 Dense Passage Retrieval for Open-Domain Question Answering
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper12

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 等NeurIPS 2020 · 19,162 次引用
  2. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
  3. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 次引用
  4. Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis 等EMNLP 2020 · 142 次引用
  5. Towards Tracing Knowledge in Language Models Back to the Training DataEkin Akyürek, Tolga Bolukbasi, Frederick Liu, Binbin Xiong 等EMNLP Findings 2022 · 30 次引用

相关 Paper

  1. SoftMatcha: A Soft and Fast Pattern Matcher for Billion-Scale Corpus SearchesHiroyuki Deguchi, Go Kamoda, Yusuke Matsushita, Chihiro Taguchi 等ICLR 2025
  2. Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-IndexHao Xu, Jiacheng Liu, Yejin Choi, Noah A. Smith 等EMNLP 2025 · 1 次引用
  3. 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
  4. DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set QueriesJoshua Engels, Benjamin Coleman, Vihan Lakshman, Anshumali ShrivastavaNeurIPS 2023 · 27 次引用
  5. SOLAR: Sparse Orthogonal Learned and Random EmbeddingsTharun Medini, Beidi Chen, Anshumali ShrivastavaICLR 2021 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖