potentialpaper

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 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. RIVET learns column-specific regex-to-key translation so database indexes reach match-rich candidate buckets before exact regex verification.

Abstract. Interactive regex search over large text columns needs exact matches under low latency, but indexes help only when a pattern exposes selective fragments. For LIMIT-k queries, the immediate bottleneck is choosing a few indexable keys that reach match-rich candidate buckets before regex verification. RIVET casts this step as constrained regex-to-key generation: a column-specific translator emits short keys, an existing index retrieves candidates, and the native regex engine verifies every output record. Training from repeated regex-key hits moves probability mass toward effective keys, so finite online sampling spends fewer regex checks before collecting the requested matches. Across four large datasets, RIVET reaches 35.8 ms median latency, improves over the strongest baseline REI by 3.4–36×, and reaches up to 1773× speedup over sequential scan. The same mechanism improves TPC-H query plans, preview retrieval under latency budgets, and 80 human-authored OOD regex queries, showing that regex-to-key generation translates into end-to-end system gains.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

RIVET reformulates regex retrieval as constrained regex-to-key generation, training a column-specific translator to emit short indexable keys that reach match-rich candidate buckets, achieving 3.4–36× speedup over the strongest baseline and up to 1773× over sequential scan.

The problem framing is clean and creative, the empirical speedups and supporting ablations are strong, and the theoretical hit-probability and verification-cost bounds are convincingly validated in-distribution.

The central claim that column-specific training is necessary would benefit from stronger isolation (e.g., pooled or cross-column baselines), the requirement to retrain per column is a real limitation for evolving or cold-start data, and the writing and figures could be polished further.

Cross-column generalization experiments together with a recall-latency Pareto comparison in the out-of-distribution setting would directly address the two most important open questions and could move this toward a clearer accept.

Final justification

The rebuttal directly answered the two most important open questions from initial review: a non-neural column-aware baseline (which RIVET beats decisively, 0.338 vs. 0.985 Recall@64) and cross-column/pooled-training controls (specialists outperform pooled models by 21–43 points). Cold-start curves, OOD recall-latency tables, and CPU-only deployment numbers were also added. All three assessments engaged with this material; two explicitly maintained a positive score citing partial-to-full resolution of their concerns, and the third did not return to raise further objections. I am maintaining Accept.

Area Chair exkW · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

RIVET reformulates regex retrieval as constrained regex-to-key generation, training a column-specific translator to emit short indexable keys that reach match-rich candidate buckets, achieving 3.4–36× speedup over the strongest baseline and up to 1773× over sequential scan.

The problem framing is clean and creative, the empirical speedups and supporting ablations are strong, and the theoretical hit-probability and verification-cost bounds are convincingly validated in-distribution.

The central claim that column-specific training is necessary would benefit from stronger isolation (e.g., pooled or cross-column baselines), the requirement to retrain per column is a real limitation for evolving or cold-start data, and the writing and figures could be polished further.

Cross-column generalization experiments together with a recall-latency Pareto comparison in the out-of-distribution setting would directly address the two most important open questions and could move this toward a clearer accept.

Final justification

The rebuttal directly answered the two most important open questions from initial review: a non-neural column-aware baseline (which RIVET beats decisively, 0.338 vs. 0.985 Recall@64) and cross-column/pooled-training controls (specialists outperform pooled models by 21–43 points). Cold-start curves, OOD recall-latency tables, and CPU-only deployment numbers were also added. All three assessments engaged with this material; two explicitly maintained a positive score citing partial-to-full resolution of their concerns, and the third did not return to raise further objections. I am maintaining Accept.

1 comment
Authors · CommentOpenReview ↗

Response to AC

W1 (Column specialization vs. cross-column/pooled training):

We completed the requested controls using the same architecture, decoder, key budget, and test queries. Compute-matched pooling uses the same total training budget as a specialist; exposure-matched pooling uses 4× total training to match each specialist’s per-column exposure. Specialist values below are the paper’s Exp.1 Recall@64; other columns are measured percentage-point differences from the corresponding specialist.

Target Specialist Best cross-column Δ Pooled, compute Δ Pooled, exposure Δ
IMDB 0.986 −21.3 pp −5.2 pp −1.6 pp
Wiki 0.985 −17.4 pp −4.3 pp −1.3 pp
TPC-H 0.985 −34.8 pp −8.7 pp −2.8 pp
US-Acc 0.985 −42.6 pp −10.4 pp −3.5 pp

Best cross-column transfer is 29.0 pp lower on average; compute- and exposure-matched pooling are 7.2 and 2.3 pp lower. Every specialist remains best. In the IMDB control, shuffling only regex-prefix pairs while holding training volume, column data, architecture, and key budget fixed reduces Recall@64 by 39.1 pp. Thus, correct column-specific mappings matter. Pooled training is a viable maintenance tradeoff, but does not match specialist retrieval quality.

W2 (OOD recall–latency tradeoff):

We measured matched-output and full-coverage OOD operating points. For matched output, h(q)h(q) is the verified-match count returned by RIVET without fallback; every baseline runs the same LIMIT h(q) under the same end-to-end timing protocol.

Dataset RIVET SeqScan REI BLARE
IMDB 54.37 ms 19,393.28 ms 651.42 ms 2,013.67 ms
US-Acc 67.18 ms 46,179.54 ms 1,257.36 ms 5,959.81 ms
Wiki 48.26 ms 6,665.47 ms 286.15 ms 910.63 ms
TPC-H 92.41 ms 145,176.32 ms 3,105.58 ms 13,471.74 ms

At this point RIVET’s Recall@64 is 0.622--0.878. With identical output targets, SeqScan, REI, and BLARE are 138.1--1,571.0×, 5.9--33.6×, and 18.9--145.8× slower, respectively; the speedup therefore does not come merely from returning fewer results.

For full coverage, RIVET + residual scan scans the remaining data when the key path is insufficient:

Dataset RIVET only (R/ms) + residual scan (R/ms) REI (R/ms) BLARE (R/ms) SeqScan (R/ms)
IMDB .866/54.37 1/1,100.03 .750/651.42 1/2,099.84 1/20,904.40
US-Acc .804/67.18 1/3,549.65 1/1,304.51 1/6,182.62 1/49,156.60
Wiki .622/48.26 1/1,913.80 .950/285.72 1/927.78 1/6,904.69
TPC-H .878/92.41 1/4,597.69 1/3,232.83 1/14,060.80 1/155,890.07

Residual scan restores Recall@64 to 1 and is 3.6--33.9× faster than full SeqScan. It is the fastest full-coverage path on IMDB; REI is faster on US-Acc and TPC-H, and BLARE on Wiki. A full-coverage router should therefore choose the estimated cheapest path; RIVET without fallback remains the low-latency point.

W3 (Retraining, cold start, and presentation):

We add a Wiki cold-start curve; RIVET generates supervision from column records and needs no historical query log.

Available records Recall@64 Relative to Full
100 0.180 18.3%
1K 0.345 35.0%
10K 0.714 72.5%
Full 0.985 100%

Recall rises monotonically with available data; 10K recovers 72.5% of Full. We enable RIVET only after held-out field Recall@64 reaches the application target, using REI or SeqScan beforehand. Full per-column training costs about 2,300 s; under gradual drift, a 119 s FastUpd restores Recall@64 from 0.87--0.89 to 0.90--0.94. For abrupt shifts, we claim only fallback after detecting quality loss, not an untested recovery time. We will add these boundaries to a dedicated Limitations section, introduce REI before Evaluation, present Recall@64 beside latency, and redraw the inconsistent figures.

Reviewer 2o4qOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes RIVET, a learned approach to accelerate interactive LIMIT-k regex retrieval over large text columns. Instead of extracting index keys directly from the regex surface form (e.g., prefixes, literals, trigrams), RIVET trains a column-specific neural translator that generates indexable keys likely to hit match-rich buckets, based on the data distribution of the target column. The generated keys are used to probe a standard index, and a regex engine verifies all retrieved candidates to guarantee exact semantics. This is an important problem with broad applications — regex search is fundamental in log analysis, data exploration, and information systems, where low latency matters. Experiments across four large datasets show RIVET achieves 35.8 ms median latency, 3.4–36x speedup over the strongest baseline (REI), and up to 1773x over sequential scan.

Strengths and weaknesses

Strengths:

  1. Strong results. RIVET achieves 3.4–36× speedups over the strongest baseline and up to 1773× over sequential scan, representing a substantial and practically meaningful improvement.
  2. Important and broadly applicable problem. Regex search is widely used in log analysis, data exploration, database systems, and agent tools (e.g., grep). Improving the latency of interactive regex retrieval has clear practical value.
  3. Solid experimental evaluation. The paper evaluates on four large datasets, providing strong evidence of robustness and generality. And ablation is solid.

Weaknesses:

  1. Presentation quality could be improved. Several figures appear AI-generated; carefully designed figures would improve readability and presentation.
  2. (nit): The ML contribution is relatively limited. Fine-tuning a translator from regexes to indexable keys seems fairly straightforward, with the main novelty coming from the application and system design rather than the learning method itself.
Questions
  1. The reported latency assumes a co-located GPU setup. How does RIVET perform under more realistic deployment settings, such as CPU-only inference, separate model/database hosts, or smaller datasets where sequential scan is already fast? Can the authors provide some concrete numbers, such as CPU latency or the RPC overhead when the model and database are deployed separately?
  2. What are the main limitations or failure cases of the method? For example, how does RIVET perform on OOD regex queries or workloads that differ significantly from the training distribution?
  3. How sensitive is RIVET to the scale and quality of the training data? Does performance degrade significantly when the available training data is limited?
  4. Several figures in the paper appear to be AI-generated, which weakens the overall presentation quality.
Limitations

I guess the author missed a separate individual limitation section.

Formatting concerns

Overall, good format.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1 (CPU inference, separated deployment, and small-table crossover):

We added CPU-only inference and small-table scaling experiments, and quantify the data transferred when the translator and database are separated.

Deployment question Result
CPU-only translator Median 153.6 ms (p90 181.9 ms)
Translator separated from database Median 296 B and maximum 607 B total request/response payload; added network latency is approximately one RPC RTT
RIVET/true-SeqScan latency on the paper Wiki-W4 workload (5K--2M rows) The measured latency crossover lies between 5K and 10K rows

The CPU number measures translator inference only. In the separated setting, the sub-kilobyte payload contributes less than 0.005 ms of transmission time at 1 Gbps, so the deployment-specific network RTT dominates. We therefore report the reproducible payload/RTT sensitivity instead of presenting one network topology as a universal RPC cost. The small-table experiment varies only the number of table rows while holding all other query and execution settings fixed, and compares RIVET with a true SeqScan end to end. SeqScan has lower latency at 5K rows, whereas RIVET has lower latency at 10K rows, placing the measured crossover between 5K and 10K rows. This gives a direct deployment rule: use SeqScan below the crossover and enable RIVET above it. We will add these results and the corresponding latency-aware routing guidance to System Setup and Limitations in the camera-ready version.

Q2 (OOD limitations and failure cases):

In the main paper, we evaluated OOD regexes across all four datasets; the results show that degradation is concentrated in queries lacking predictable prefix signal. RIVET’s main limitation follows directly from its fixed key budget: its key path is most effective when matching records concentrate in a small number of prefix buckets that are predictable from the regex. Its advantage diminishes when the regex provides little information about the prefixes of matching records or when matches are dispersed across many prefix buckets. Typical cases include pure character classes, suffix or infix conditions, and queries whose discriminative content occurs late in the pattern.

This failure affects recall rather than result correctness: every candidate undergoes exact regex verification, so the precision of returned results remains guaranteed. If an application must fill LIMIT kk whenever at least kk matches exist, it can invoke sequential-scan fallback when the key path is insufficient. This restores complete Recall@kk. We will make this operating condition, failure mode, and fallback cost explicit in a dedicated Limitations section in the camera-ready version.

Q3 (Sensitivity to training-data quantity and quality):

Limited training data directly affects cold-start performance for a new column. RIVET does not need to wait for historical user queries: its training pairs are generated directly from records in the target column. On Wiki, we evaluate training sets of 100, 1K, and 10K records while fixing the model, training budget, and decoder, and compare them with the Full model on the same held-out Wiki field workload:

Available column records Recall@64 Relative to Full
100 0.180 18.3%
1K 0.345 35.0%
10K 0.714 72.5%
Full 0.985 100%

Recall@64 increases strictly monotonically with available column data. Increasing the data from 1K to 10K records improves Recall@64 by 36.9 percentage points, and 10K recovers 72.5% of Full. This shows gradual degradation under sparse data, while limited column data already lets the model learn a useful distribution. To separate data quantity from supervision quality, we also add a matched/mismatched-supervision control on IMDB. It preserves the training volume, column data, and key budget while shuffling only the regex-prefix pairing. In this IMDB control, Recall@64 drops by 39.1 percentage points. This shows that, at least on IMDB, performance comes from the correct regex-prefix mapping rather than merely observing more records.

For deployment, we recommend using held-out field Recall@64 as the per-column activation criterion: enable RIVET once it reaches the application's target; otherwise retain REI or SeqScan. We will add this cold-start curve, supervision-quality control, and activation criterion to the camera-ready version.

Limitations (Adding a dedicated limitations section):

In the camera-ready version, we will add a dedicated Limitations section immediately before the Conclusion. It will consolidate fixed-budget OOD coverage and fallback, per-column data and retraining, CPU and RPC deployment, small-table crossover, tested row scale, and the in-distribution theory boundary.

W1 / Q4 (Redrawing the AI-assisted figures and unifying presentation):

Figures 1 and 2 are conceptual illustrations whose visual design used AI assistance; all other experimental figures were generated directly by our plotting scripts from measured results. In the camera-ready version, we will redraw Figures 1 and 2 as author-created vector diagrams, standardize typography, spacing, axes, legends, and labels across all figures, and fix the existing label overlaps.

W2 (Scope and positioning of the machine-learning contribution):

We agree that RIVET does not introduce a new neural architecture and that the main novelty does not lie in model fine-tuning itself. The learning problem is instead how to choose a set of high-yield keys for a regex under a bounded access budget, rather than predicting one target string.

A regex can have several effective prefix keys, and their candidate buckets can have different match yields; online execution can probe at most tmax⁡t_{\max} keys. Whether one key is predicted correctly therefore does not directly capture the final Recall@kk or verification cost. RIVET constructs multi-positive supervision directly from target-column records and then uses sampling, dictionary filtering, and deduplication to form a budgeted key set that covers complementary candidate regions. The Key+Verify path applies exact verification, while the coverage-cost analysis explains how probability mass on effective keys affects final coverage and verification cost.

The component results show that these choices matter. At the same tmax⁡=32t_{\max}=32, random dictionary keys achieve Recall@64 of only 0.002--0.116, one greedy decode reaches 0.45--0.69, beam search reaches 0.945--0.961, and the full diverse key-set decoder reaches 0.985--0.986. Under the same supervision, generic ByT5-Small reaches 53.6% prefix-key accuracy versus 98.9% for the RIVET translator and is about 15 times slower at inference.

We will revise the contribution statement accordingly. We do not claim a new neural architecture; the learning component consists of execution-aligned supervision, budgeted multi-key generation, set-level decoding, and the coverage-cost analysis, while system design and query execution remain the paper’s primary contributions.

Authors · CommentOpenReview ↗

To Reviewer 2o4q

Dear Reviewer 2o4q,

Thank you again for the detailed and constructive review, and in particular for clearly identifying which aspects required further evidence or clarification. That made our response much easier to target.

We posted our response on July 28 and wanted to check in, as the discussion period closes on August 3 AoE. We addressed the questions and concerns you raised along the lines you suggested, and we would greatly value your view on whether our responses are satisfactory. If anything remains unclear or unconvincing, we are glad to provide further clarification while the discussion window is open.

Thank you for your time and engagement.

Best regards, The Authors

Reviewer 2o4q · CommentOpenReview ↗

I have read the authors’ rebuttal. I appreciate the additional experiments provided in response to my comments, which partially address my concerns and strengthen the paper. Overall, I will maintain my original score.

Reviewer t8eFOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper focuses on the interactive LIMIT-K regular expression retrieval scenario. By proposing a constructive approach of combining single-column data distribution learning to build a learned index, an effective acceleration method has been designed. Compared with the existing baseline, it shows significant improvement. Moreover, through a series of extensive experiments, the RIVET's performance, stability, and robustness have been demonstrated.

Strengths and weaknesses

Strengths: The main text and appendix contain abundant descriptions, formula proofs, etc. The experimental part is extensive, covering basic performance analysis, various retrieval scenarios, different regular expression inputs, and performance tests in updated settings, making it quite comprehensive. Weaknesses: (1) The description of real-world applications of interactive limit-k retrieval is limited. Some recent references are missed (Citations in the first paragraph are too old). (2)The motivation is not solid and lacks data support. (3) The strongest baseline you discuss in the evaluation is not discussed in the introduction or background (how it works, why it performs best). (4) What is the limitations of your work? Does it perform well under all scenarios? It needs a discussion.

Questions

(1)) Your research topic is the Limit-k retrieval, but there are very limited relevant discussions and recent references for real-world applications. Is this problem really worth addressing? You also mentioned: "When the pattern contains wildcards, character classes, alternation or repetition, it becomes more difficult to directly read useful index entries from the surface form of the regular expression; even in the LIMIT-k query, the system may spend a lot of time verifying inefficient candidate options." How slow is this situation? How long does the application need to wait for a response? This information will help readers assess the importance of your work. (2) There is a lack of discussion and description regarding the strongest benchmark REI. (3) What are the limitations of RIVET? Is it effective in all situations? (4) Some minor suggestions: In the evaluation section, for instance, in Exp.1, a figure or table showing the recall rate should be included. The word "RIVET" in Figure 3a has overlapping parts.

Limitations

I think the paper should discuss under what circumstances RIVET is effective. Perhaps a theoretical or heuristic criterion could be proposed to determine whether to use it. One possible scenario is: if the sample size in the column is insufficient, or there is a cold start problem, would RIVET still be effective?

Formatting concerns

No, I haven't found any issues with the formatting.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

W1–W2 / Q1 (Real LIMIT-k regex applications, recent references, and absolute waiting time):

The submission did not sufficiently explain the practical motivation for interactive LIMIT-kk text-regex retrieval. LIMIT-kk itself is a long-studied database query objective: Carey and Kossmann (1997, 1998) studied query optimization under result-cardinality limits, and Bonifati et al. (2022) found that 14.9% of queries with at least two triple patterns use LIMIT in a corpus of over 560M real Wikidata queries. Recent database work also documents real and interactive regex workloads: BLARE (Zhang et al., 2023) analyzed approximately 200K distinct regexes from 14.5M public GitHub notebooks and approximately 9K regexes from two production applications, and notes that data scientists often experiment with different patterns in human-in-the-loop analysis; REI (Zhang et al., 2025) further studied regex indexing on production logs.

A more direct application appears in Microsoft Purview eDiscovery's Advanced Review Set Explorer. The system operates on large legal and compliance review sets, supports matches regex over text fields, and explicitly recommends take to validate query logic before full analysis (Microsoft, 2026). In Kusto, take and limit are equivalent; without ordering, they return up to kk arbitrary records (Microsoft, 2024). Analysts therefore filter large text collections with regex and first inspect a small number of satisfying results to validate and iterate on the query—precisely the interactive LIMIT-kk text-regex retrieval studied here.

To quantify the waiting time in this workflow, we use the public requirement in Stack Overflow question #60224177 to filter Wikipedia titles beginning with List(s) of ..., and evaluate a concrete subpattern, List of X in Y: List of [A-Z][A-Za-z0-9 ,:'-]+ in [A-Z][A-Za-z0-9 ,:'-]+. This regex contains the explicit literals List of and in. Every method runs with the same LIMIT 64 and returns 64 exactly verified matches:

Method End-to-end latency
RIVET 123.9 ms
REI 658.4 ms
BLARE 1,527.7 ms
SeqScan 7,025.3 ms

On this concrete query instance of the real requirement, RIVET is 5.3×, 12.3×, and 56.7× faster than REI, BLARE, and SeqScan, respectively. Because users rerun the query after each regex revision, this delay recurs throughout interactive iteration. We will add these recent references, the real product use case, and the absolute waiting times to Background and Motivation in the camera-ready version.

W3 / Q2 (How REI works and why it is the strongest baseline):

REI (Zhang et al., 2025) is the lowest-latency baseline across all dataset–workload combinations in the submitted evaluation. It constructs an indexed n-gram bitmask from the regex's literal components, uses each record's n-gram bit-vector to eliminate records that cannot match, and applies exact regex verification to the survivors. When the query contains selective indexed n-grams, this lightweight filter can substantially reduce verification cost.

The core distinction is that REI uses query-derived necessary n-gram conditions to eliminate candidates, whereas RIVET learns the target-column distribution to prioritize candidate buckets with higher match yield, obtaining kk matches faster under a bounded budget. When a regex cannot produce a nonzero indexed-bigram mask, REI follows the full-table-verification path; this occurred for 41 of the 80 human-authored queries in the submitted evaluation. In the camera-ready version, before REI first appears in Evaluation, we will add its mechanism, the empirical basis for treating it as the strongest baseline, and this distinction from RIVET to Background and Motivation.

W4 / Q3 (RIVET applicability, failure modes, and cold start):

RIVET is not effective in every scenario. Its fixed-budget key path is most effective when matches concentrate in a small number of prefix buckets that can be predicted from the regex. Recall can decrease for pure character-class patterns, suffix or infix conditions, patterns whose discriminative content occurs late, or matches dispersed across many buckets. This affects coverage rather than correctness because every returned record still passes exact regex verification. Applications that must fill LIMIT kk can enable scan fallback.

Cold start is a second operating boundary. RIVET does not require historical user queries because it constructs training pairs directly from target-column records. We compare 100, 1K, 10K, and Full available-column-data settings on Wiki. For the three small-data settings, we fix the model architecture, training budget, and decoder, and evaluate all four on the same held-out Wiki field workload:

Available column records Recall@64 Relative to Full
100 0.180 18.3%
1K 0.345 35.0%
10K 0.714 72.5%
Full 0.985 100%

Recall@64 increases strictly monotonically with available column data. Increasing the data from 1K to 10K records improves Recall@64 by 36.9 percentage points, and 10K recovers 72.5% of Full. Thus, sparse data causes gradual degradation, while limited column data already lets the model learn a useful distribution. In deployment, we recommend enabling RIVET when held-out field Recall@64 reaches the application’s target and using REI or SeqScan before that point. We will add these failure modes, the cold-start curve, and this activation/fallback criterion to the camera-ready version.

Q4 (Presenting Recall@64 alongside latency and fixing Figure 3a):

Under the same Exp.1 setting, RIVET achieves Recall@64 of 0.986, 0.985, 0.985, and 0.985 on IMDB, WIKI, TPC-H, and US-Acc, respectively. In the camera-ready version, we will present these Recall@64 results alongside the Exp.1 latency results so that retrieval quality and performance can be compared directly. We will also redraw Figure 3a to remove the overlapping “RIVET” label and use consistent typography, spacing, and label placement.

References:

Carey, Michael J., and Donald Kossmann. “On Saying ‘Enough Already!’ in SQL.” SIGMOD Record 26(2), 1997.

Carey, Michael J., and Donald Kossmann. “Reducing the Braking Distance of an SQL Query Engine.” VLDB, 1998.

Bonifati, Angela, et al. “Threshold Queries in Theory and in the Wild.” Proceedings of the VLDB Endowment 15(5), 2022.

Zhang, Ling, et al. “Exploiting Structure in Regular Expression Queries.” Proceedings of the ACM on Management of Data, 2023.

Zhang, Ling, Shaleen Deep, Jignesh M. Patel, and Karthikeyan Sankaralingam. “Regular Expression Indexing for Log Analysis.” Proceedings of the ACM on Management of Data 3(6), 2025.

Microsoft. “Search Content in a Review Set with the Advanced Review Set Explorer (Preview).” Microsoft Learn, 2026.

Microsoft. “take operator.” Microsoft Learn, 2024.

“How to Filter Wikipedia Petscan API Results Using Regex?.” Stack Overflow, 2020.

Authors · CommentOpenReview ↗

To Reviewer t8eF

Dear Reviewer t8eF,

Thank you again for the detailed and constructive review, and in particular for clearly identifying which aspects of the motivation, baseline discussion, applicability, and evaluation required further evidence or clarification. That made our response much easier to target.

We posted our response on July 28 and wanted to check in, as the discussion period closes on August 3 AoE. We addressed the points you raised along the lines you suggested, and we would greatly value your view on whether our responses are satisfactory. If anything remains unclear or unconvincing, we are glad to provide further clarification while the discussion window is open.

Thank you for your time and engagement.

Best regards, The Authors

Reviewer Tn1qOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

RIVET reduces latency for interactive regex search over large text columns, especially in cases where only LIMIT-k results are needed, by learning a column-specific mapping from regex patterns to a set of keys that prioritize high-yield candidate buckets. To do this, it reformulates regex retrieval as a key generation problem: given a regex, a column-specific model generates a set of index keys that are likely to retrieve matching records. At query time, it uses these keys to retrieve candidate records, and then verifies exactness with an exact regex verifier. The authors provide an analysis connecting probability mass on useful keys to reduced verification cost, and empirically report 3.38×–36.15× latency speedups over REI.

Strengths and weaknesses

Strengths:

  • Problem Motivation: Conceptually, the idea is timely and relevant! The authors identify a systems bottleneck that is present in real world workloads, and the formulation as a key generation problem is clean and creative.

  • Empirical results & strong ablations: The latency gains compared to baselines are very strong (3.4–36× speedup over the strongest REI baselines) and the authors provide helpful ablations to motivate their design choices. There are also very good microbenchmarks provided to understand the cost-decomposition of the method (Appendix I).

-Good and detailed theory: The theory is also well-motivated and validated on in-distribution tests. The hit-probability formula matches empirical observation within 0.0006 across all four columns and the NHG verification cost bound holds within 5% on all 97 qualifying queries.

Weaknesses:

  • Latency-recall tradeoffs: In the OOD setting, it’s unclear whether RIVET’s speed boost is partly from operating at a fixed prefix-key budget without scan-backed fallback. Additionally, under this regime, though it’s substantially faster, it has lower recall than competitors with scan-backed paths. To clarify the tradeoff, I’d recommend presenting the two jointly, maybe as matched-recall/latency curves or Pareto frontiers, both with and without scan-backed fallback.

  • Brittle: For every new column of text, the model has to be trained from scratch. There are important read-only workloads but, text columns may change or grow over time, receive new templates, or begin with little to no data, such as in a newly created log. The authors discuss gradual distribution shifts, which is useful, though it can be strengthened with more analysis on more severe or sudden distribution shifts. I would also like to understand the cold-start regime: how much data is required before training produces a useful model, and how does performance degrade as the available training data becomes sparse?

  • Column Specific Claims: A central thesis for the paper is that column-specific training is required for good performance, but I would like to see stronger evidence for this. The paper shows this by comparing their model to pretrained language models (which are clearly slower in this case). Some interesting things that could make this claim more robust are: train RIVET on column A → test on column B. Train one pooled multi-column model → compare against per-column models. Train on shuffled/random-column prefixes → compare against real column-specific supervision. Would also be good to compare against column-specific baselines.

  • Scaling: Since the paper is motivated by retrieval over large text columns, a clearer scaling analysis is necessary (theoretical + empirical), as well as a comparison to the bounds for competing methods. The current validation is limited to datasets of 2M–24M rows and mostly fixed key budgets, so it is unclear how verification cost and recall scale (ie with dataset size, match sparsity, etc).

  • Generalization: Additionally, the experiments are mainly on in-distribution workloads over the four evaluated columns. The surrogate analysis assumes i.i.d. sampling, while the deployed decoder includes deterministic methods. It would be great to clarify how tightly the theoretical coverage/cost guarantees apply to the actual deployed decoder, and whether they can bound or empirically estimate the gap under OOD query distributions.

Questions

Latency-recall tradeoff: What is the latency-recall tradeoff for this method (especially in the OOD case)? It would be helpful to see recall-latency curves or Pareto frontiers for RIVET, REI, BLARE, and scan-backed variants, both with and without fallback. It would be especially compelling if RIVET remains faster at matched recall.

How much data is required before the per-column translator becomes useful? Relatedly, how much can distribution drift be before the model needs retraining or updating?

Column Specific claims: How much of RIVET’s gain comes from column-specific training? Useful tests could include training on one column and testing on another, training a pooled multi-column model and comparing it to per-column models, or training with shuffled/mismatched column-prefix supervision.

Column-aware non-neural baselines: How does RIVET compare against a simple non-neural, column-aware key-selection baseline? For example, a baseline using prefix bucket statistics, sampled regex matches, regex/AST features, or estimated bucket yield to rank executable keys under the same LIMIT-k objective would help clarify how much of the gaim comes from the neural translator vs column-specific statistics.

Scaling and generalization: How does the method scale with dataset size, key-space size, match sparsity, query difficulty, or larger key budgets? It would also be helpful to compare the cost analysis to cost models or bounds for competing methods. Lastly, how well do the theoretical coverage/cost predictions match the actual system, especially under OOD distributions?

Limitations

Some limitations are addressed throughout the paper (OOD behavior, workload drift and deployment costs). However, it would help if they were consolidated into a dedicated Limitations section so that readers can better understand the method’s applicability. In particular, it would be great to more explicitly discuss: The conditions under which the latency advantage holds, given the recall-latency tradeoff in the OOD setting The cold-start problem for new columns with little or no training data The gap between the

Formatting concerns

n/a

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

W1 / Q1 (OOD recall–latency tradeoff with and without fallback):

We measured matched-output and full-coverage OOD operating points. For matched output, h(q)h(q) is the verified-match count returned by RIVET without fallback; every baseline runs the same LIMIT h(q) under the same end-to-end timing protocol.

This comparison separates recall from the time needed to produce the same number of matches. RIVET exact-verifies every returned row, so its candidate budget affects recall, not precision.

In particular, matching every baseline to RIVET's per-query output count removes the advantage that could arise if RIVET simply stopped with fewer answers; the remaining latency difference measures how efficiently each method reaches those verified answers.

Dataset RIVET SeqScan REI BLARE
IMDB 54.37 ms 19,393.28 ms 651.42 ms 2,013.67 ms
US-Acc 67.18 ms 46,179.54 ms 1,257.36 ms 5,959.81 ms
Wiki 48.26 ms 6,665.47 ms 286.15 ms 910.63 ms
TPC-H 92.41 ms 145,176.32 ms 3,105.58 ms 13,471.74 ms

RIVET’s Recall@64 is 0.622--0.878. With identical output targets, SeqScan, REI, and BLARE are 138.1--1,571.0×, 5.9--33.6×, and 18.9--145.8× slower, respectively; the speedup therefore does not come merely from returning fewer results.

For full coverage, RIVET + residual scan scans the remaining data when the key path is insufficient:

Dataset RIVET only (R/ms) + residual scan (R/ms) REI (R/ms) BLARE (R/ms) SeqScan (R/ms)
IMDB .866/54.37 1/1,100.03 .750/651.42 1/2,099.84 1/20,904.40
US-Acc .804/67.18 1/3,549.65 1/1,304.51 1/6,182.62 1/49,156.60
Wiki .622/48.26 1/1,913.80 .950/285.72 1/927.78 1/6,904.69
TPC-H .878/92.41 1/4,597.69 1/3,232.83 1/14,060.80 1/155,890.07

Residual scan restores Recall@64 to 1 and is 3.6--33.9× faster than full SeqScan. It is the fastest full-coverage path on IMDB; REI is faster on US-Acc and TPC-H, and BLARE on Wiki. Full coverage should therefore route to the estimated cheapest path; RIVET without fallback remains the low-latency point.

These measured points expose the requested tradeoff without interpolation: fixed-budget RIVET supports low-latency preview, while full coverage uses residual scan or the estimated cheapest of REI, BLARE, and SeqScan. We will make this policy explicit.

W2 / Q2 (Cold start and drift):

We add a Wiki cold-start curve. Regex--key pairs are generated from target-column records, so cold start depends on available column data rather than a historical user-query log.

Available records Recall@64 Relative to Full
100 0.180 18.3%
1K 0.345 35.0%
10K 0.714 72.5%
Full 0.985 100%

Recall rises monotonically; 10K records recover 72.5% of Full performance, directly showing degradation under sparse data. We enable RIVET only after held-out field Recall@64 reaches the application target, using REI or SeqScan beforehand. A column with no records cannot train a specialist, but also contains nothing to retrieve.

For drift, retrieval quality is more meaningful than a universal distribution-distance threshold. In the gradual-drift experiment, NoUpd gives 0.87--0.89; FastUpd costs 119 s/partition and restores 0.90--0.94; LongUpd costs 1,170 s and restores 0.98--0.99. Periodic SeqScan audits trigger FastUpd below the application target and LongUpd if needed. The 500-query window and 0.92 threshold are workload-specific. For abrupt shifts, we claim fallback after detected quality loss, not an untested recovery time.

This defines tolerable drift operationally: drift is tolerated while audited Recall@64 remains above the application's target. Once it falls below that target, RIVET is paused for the affected column and queries are routed to a verified fallback during updating.

W3 / Q3 (Column specialization):

We completed cross-column, pooled, and mismatched-supervision controls using the same architecture, decoder, key budget, and test queries. Compute-matched pooling uses the specialist’s total training budget; exposure-matched pooling uses 4× total training to match each specialist’s per-column exposure. Specialist values are the paper’s Exp.1 Recall@64; other columns are measured percentage-point differences.

Target Specialist Best cross-column Δ Pooled, compute Δ Pooled, exposure Δ
IMDB 0.986 −21.3 pp −5.2 pp −1.6 pp
Wiki 0.985 −17.4 pp −4.3 pp −1.3 pp
TPC-H 0.985 −34.8 pp −8.7 pp −2.8 pp
US-Acc 0.985 −42.6 pp −10.4 pp −3.5 pp

Best cross-column transfer is 29.0 pp lower on average; compute- and exposure-matched pooling are 7.2 and 2.3 pp lower. Every specialist remains best. In the IMDB control, shuffling only regex-prefix pairs while holding training volume, column data, architecture, and key budget fixed reduces Recall@64 by 39.1 pp. Thus, correct column-specific mappings matter. Pooled training is a viable maintenance tradeoff, but does not match specialist retrieval quality.

Cross-column transfer tests direct reuse on another column; pooled training tests one joint model. Extra exposure closes much of the pooled gap but does not eliminate it, ruling out fewer per-column updates as the sole explanation.

This matches RIVET’s design: the same regex can map to different high-yield buckets under different column distributions, while pooling makes that distribution more complex. The IMDB shuffle keeps column marginals fixed but destroys the regex--prefix mapping, ruling out mere frequency memorization. Pooled training remains a maintenance tradeoff; specialists give the best quality.

The two pooled settings also separate training budget from specialization: compute matching reflects equal total cost, while 4× exposure matching gives every column the specialist's number of updates. The remaining 2.3 pp average gap therefore persists even after equal per-column exposure.

W3 / Q4 (Column-aware non-neural baseline):

We implemented a non-neural, column-aware ranker using prefix-bucket cardinality, sampled regex hit rate, AST compatibility, and estimated yield. It uses target-column statistics and the same key budget, but has no learned parameters.

Method Key selection Recall@64
RIVET Learned regex-to-key proposal 0.985
Non-neural Column statistics + AST/yield ranking 0.338

The 0.338 versus 0.985 result shows that column statistics and hand-designed ranking do not reproduce RIVET. We therefore attribute the gain jointly to target-column statistics and the learned query-conditioned proposal, not to the neural model alone.

W4 / W5 / Q5 (Scaling and generalization):

RIVET performs translator inference, at most tmax⁡t_{\max} index probes, and at most ∑p∈P(q)∣Bp∣≤tmax⁡Bmax⁡\sum_{p\in P(q)}|B_p|\le t_{\max}B_{\max} verifications. SeqScan may inspect all NN rows; REI/BLARE may approach NN under nonselective or scan-backed execution. Table growth therefore affects RIVET through selected-bucket cardinality rather than forcing a full scan.

In a controlled Wiki-W4 experiment that changes only row count from 5K to 2M, SeqScan is faster at 5K and RIVET at 10K, placing the crossover at 5K--10K. Across the paper’s 2.0M--24.0M-row tables, RIVET takes 26.3--71.3 ms with mean Recall@64 ≈0.986.

tmax⁡t_{\max} Mean Recall@64
4 0.900
16 0.984
32 0.985
64 0.991

Increasing tmax⁡t_{\max} from 4 to 64 raises Recall@64 from 0.900 to 0.991 while latency changes by <10%; most gain occurs by 16. Finer key spaces reduce bucket size but make prediction harder, while sparse or difficult regexes reduce bucket yield.

These results separate the scaling factors: row count determines when avoiding a scan pays off; density controls bucket cardinality; regex difficulty controls match concentration; and tmax⁡t_{\max} trades probes for coverage. Most measured gain occurs by 16 keys. We report measured ranges, not table-size-independent latency.

The controlled Wiki-W4 sweep isolates row count by holding the regex workload, model, key budget, and execution paths fixed. The 5K--10K crossover therefore identifies the measured point at which RIVET's fixed inference and index costs are outweighed by the scan work it avoids.

The hit-probability formula covers i.i.d. temperature sampling, not deterministic beam/greedy proposals. In distribution, mean error is ≤0.0006 and the NHG cost bound is within 5% on all 97 eligible queries. We claim no theorem for the complete decoder or OOD queries; those cases are measured above. We will state this boundary explicitly.

Limitations (Consolidated section):

We will add a section before the conclusion covering fixed-budget OOD recall and full-coverage routing; unavailable models for empty new columns; per-column training/update costs; theory limited to stochastic in-distribution sampling; evaluated row-count/key-budget ranges; and colocated inference.

Authors · CommentOpenReview ↗

To Reviewer Tn1q

Dear Reviewer Tn1q,

Thank you again for the detailed and constructive review, and in particular for stating so clearly which additional analyses and comparisons would help address your concerns. That made our response much easier to target.

We posted our response on July 28 and wanted to check in, as the discussion period closes on August 3 AoE. We addressed the main concerns and questions you raised along the lines you suggested, and we would greatly value your view on whether our responses are satisfactory. If anything remains unclear or unconvincing, we are glad to provide further clarification while the discussion window is open.

Thank you for your time and engagement.

Best regards, The Authors

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

Summary from the authors (near end of discussion period)

Dear Area Chair and Reviewers,

As the discussion period closes, we briefly summarize its outcome relative to the initial metareview. Everything below is in our responses posted on 28–29 July; this note adds no new material. We thank the Area Chair and reviewers for their feedback.

The Area Chair's main concerns. Specialists are best on all four columns: cross-column transfer is 29.0 points lower on average, 4× pooled training remains 2.3 points lower, and shuffled IMDB supervision loses 39.1 points. Pooling reduces maintenance, but the best quality still depends on the target-column distribution. OOD matched-output evaluation confirms RIVET's latency advantage at equal output. Fixed-budget RIVET provides the low-latency point; full coverage restores Recall@64 to 1 through residual scan and routes by cost among RIVET + residual scan, REI, BLARE, and SeqScan.

Revisions before final submission. Based on the completed experiments and analyses, we will:

  • Motivation: add regex-workload and unranked-LIMIT literature and a Microsoft Purview regex + take/limit workflow; report 123.9/658.4/1,527.7/7,025.3 ms for RIVET/REI/BLARE/SeqScan on a query instantiated from a public Wikipedia-title filtering requirement.
  • Cold start and deployment: add the Wiki 100/1K/10K/Full curve (Recall@64: 0.180/0.345/0.714/0.985), clarify that supervision uses column records, specify activation/audit/update/fallback, and report CPU inference, deployment payload, and the 5K–10K-row crossover.
  • Baselines and evaluation: explain REI before Evaluation, add the column-aware non-neural comparison, show Recall@64 beside latency, and clarify that exact verification preserves precision while fixed budgets affect coverage.
  • Limitations and presentation: add a dedicated section covering OOD, cold start, full coverage, deployment, and theory boundaries; redraw figures; and position the contribution as execution-oriented learning and system design rather than a new architecture.

RIVET targets LIMIT-kk retrieval over large text columns when a regex identifies a few high-yield prefix buckets. For small tables, sparse cold start, difficult OOD patterns, and full coverage, the revision specifies activation, fallback, and cost-aware routing. Both meta-review questions now have experimental results; remaining revisions will be completed before final submission.

We again thank the Area Chair and reviewers for their time and constructive feedback.

Best regards, The Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…