1,228 research outputs found
InfeRE: Step-by-Step Regex Generation via Chain of Inference
Automatically generating regular expressions (abbrev. regexes) from natural
language description (NL2RE) has been an emerging research area. Prior studies
treat regex as a linear sequence of tokens and generate the final expressions
autoregressively in a single pass. They did not take into account the
step-by-step internal text-matching processes behind the final results. This
significantly hinders the efficacy and interpretability of regex generation by
neural language models. In this paper, we propose a new paradigm called InfeRE,
which decomposes the generation of regexes into chains of step-by-step
inference. To enhance the robustness, we introduce a self-consistency decoding
mechanism that ensembles multiple outputs sampled from different models. We
evaluate InfeRE on two publicly available datasets, NL-RX-Turk and KB13, and
compare the results with state-of-the-art approaches and the popular tree-based
generation approach TRANX. Experimental results show that InfeRE substantially
outperforms previous baselines, yielding 16.3% and 14.7% improvement in DFA@5
accuracy on two datasets, respectively. Particularly, InfeRE outperforms the
popular tree-based generation approach by 18.1% and 11.3% on both datasets,
respectively, in terms of DFA@5 accuracy.Comment: This paper has been accepted by ASE'2
Recommended from our members
Chirality-enabled unidirectional light emission and nanoparticle detection in parity-time-symmetric microcavity
Achieving unidirectional emission and manipulating waves in a microcavity are crucial for information processing and data transmission in next-generation photonic circuits (PCs). Here we show how to impose twin microcavities with opposite chirality by incorporating parity-time (PT) symmetry to realize unidirectional emission. Our numerical calculation results show that the opposite chirality in microcavities stems from the asymmetric coupling of the clockwise (CW) and counterclockwise (CCW) components carried by the attached waveguide to the left- or right-sided microcavities, respectively. Notably, by engineering PT symmetry in the coupled system via the gain-loss control, the clockwise component of the lossy cavity could be selectively suppressed, which leads to the unidirectional emission with an extinction ratio of up to -52 dB. Furthermore, the chirality and PT-symmetry breaking enabled unidirectional emission is extremely sensitive to external scatters, allowing the detection of nanoparticles with an ultrasmall radius of 5-50 nm by recording the extinction ratio change. The proposed system provides a simple yet general way to manipulate the standing waves in a microcavity and will be essential for advancing the potentials of the microcavity in PCs.This item from the UA Faculty Publications collection is made available by the University of Arizona with support from the University of Arizona Libraries. If you have questions, please contact us at [email protected]
- …