RIVET: Regex-to-Indexable Keys via Neural Translation for Interactive LIMIT-k Retrieval
Dong Wang, Yingze Li, Zihang Yu, Ziqing Zeng, Zongdai Jiang, Yuhao ZHANG, Kaixin Zhang, Shuangshuang Cui, Hongzhi Wang
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Retrieval-Augmented LLM and Search Systems · Type: new method · Keywords: regex search, interactive retrieval, indexable keys, latency optimization, database query planning
Summary
RIVET is a column-specific translator that generates short indexable keys for interactive regex search, enabling low-latency LIMIT-k retrieval.
Explained to a 5-year-old
When you have a huge book of text and want to find a pattern quickly, you need to look at many pages. The new idea makes a small shortcut that picks a few special words that point to the right pages. It learns which shortcuts work best by looking at many searches. When you search, it first uses these shortcuts to narrow down where the answer might be. Then it checks only those pages to confirm the pattern. This makes the whole search much faster, like using a shortcut.
Explained to a 5-year-old, longer
Imagine you have a huge library of text and you want to find a special pattern quickly. Looking at every page one by one is slow and takes a long time. The new idea creates a small set of special words that act like clues to the right pages. It learns which clues are most useful by trying many searches. When you search, it first uses these clues to narrow down where the answer might be. Then it checks only those pages to confirm the pattern. This makes the whole search much faster, like using a shortcut. It also helps other kinds of searches, like checking data in databases quickly. The system can even handle new patterns it hasn't seen before. It works on many different kinds of data, like logs, records, and more. By using fewer checks, it saves time and computer power. Overall, it makes fast searching possible even on huge amounts of text.
For a technical reader
The paper addresses the latency bottleneck of interactive regex search on large text columns by generating short indexable keys that guide candidate retrieval. It formulates key generation as a constrained translation problem and trains a column-specific model that learns from successful regex-key hits. At query time, the model proposes keys, an existing index retrieves candidate rows, and a native regex engine verifies matches. Evaluations on four large datasets show median latency of 35.8 ms, 3.4-6× speedup over the best baseline, and up to 1773× improvement over sequential scans. The same mechanism also improves query planning, preview retrieval, and handling of out-of-distribution regex patterns, delivering end-to-end system gains.
Problem
Interactive regex search over large text columns needs exact matches under low latency, but indexes help only when a pattern exposes selective fragments. Selecting a few indexable keys that reach match-rich candidate buckets before regex verification is the core bottleneck.
Method
The approach casts regex-to-key generation as a constrained translation problem and trains a column-specific model that learns from successful regex-key hits. At query time, the model proposes keys, an existing index retrieves candidate rows, and a native regex engine verifies matches.
Results
The approach achieves a median latency of 35.8 ms, improves over the strongest baseline by 3.4-6×, and reaches up to 1773× speedup over sequential scan.
Contributions
It formulates regex-to-key generation as a constrained translation problem and learns a column-specific translator to produce short indexable keys, enabling faster interactive regex search. Additionally, it demonstrates improvements in query planning, preview retrieval, and handling out-of-distribution regex queries.
Practical relevance
It enables fast interactive regex search and improves database query performance, benefiting systems that require low-latency text search.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction