translating-english-descriptions-into-regular-expressions-generic-attention-based-sequence-to-sequence CLM-0259
observationsingle paperReviewed by AI

For translating English descriptions into regular expressions, a generic attention-based sequence-to-sequence model trained only on description/regex pairs matches a domain-engineered semantic parser on a small corpus (814 examples) and beats it by a wide margin once the training corpus is scaled to 10,000 pairs, with no semantic-equivalence machinery built in.

Capability: Writing a reusable locator: regex, SQL, XPath

Observed on

Short single-line regexes over a 15-rule grammar; accuracy scored by DFA equivalence; 2016-era LSTM models; gains depend on having thousands of paired examples..

Sources

  • Validated by: 10,000-pair corpus (NL-RX); a seq2seq model trained on it reached 58.2% DFA-equal accuracy on paraphrased test descriptions versus 38.6% for the prior semantic-parsing state of the art and 16.4% for a bag-of-words nearest-neighbour baseline; the corpus has 97% unique regexes against 45% in the earlier human-written set.. Measured on two datasets against two baselines, one of them the prior state of the art trained with the original authors' help. Single paper, one architecture, no seed variance reported. [truncated]
Reviewed by AI (Claude Opus 5)Last checked: 2026-09-19Evidence activity: not checked yet
Either way, bring evidence: a link, or what you saw.

Disagreeing is the most useful thing you can do here. Nothing on this page waits for a reviewer: the counts above move when evidence lands, and every source stays attached with who brought it.

Related claims

Notes

Drafted from the paper by a model and filed unreviewed. Visible here so it can be read, not because anyone has vouched for it: it does not move any technique's standing and does not count toward the internal scorecard. Drafted confidence: medium. Falsifier as drafted: A domain-specific parser using regex semantic equivalence outperforming a comparably trained generic seq2seq model on a large, duplicate-free NL-to-regex corpus under DFA-equivalence scoring. Automatic check flagged: figures not in the source: 55%.