Lune

PLDI2022Top-tier venue

Software-hardware codesign for efficient in-memory regular pattern matching

Lingkun Kong, Qixuan Yu, Agnishom Chattopadhyay, Alexis Le Glaunec, Yi Huang, Konstantinos Mamouras, Kaiyuan Yang

Abstract

Regular pattern matching is used in numerous application domains, including text processing, bioinformatics, and network security. Patterns are typically expressed with an extended syntax of regular expressions. This syntax includes the computationally challenging construct of bounded repetition or counting, which describes the repetition of a pattern a fixed number of times. We develop a specialized in-memory hardware architecture that integrates counter and bit vector modules into a state-of-the-art in-memory NFA accelerator. The design is inspired by the theoretical model of nondeterministic counter automata (NCA). A key feature of our approach is that we statically analyze regular expressions to determine bounds on the amount of memory needed for the occurrences of bounded repetition. The results of this analysis are used by a regex-to-hardware compiler in order to make an appropriate selection of counter or bit vector modules. We evaluate our hardware implementation using a simulator based on circuit parameters collected by SPICE simulation in TSMC 28nm CMOS process. We find that the use of counter and bit vector modules outperforms unfolding solutions by orders of magnitude. Experiments concerning realistic workloads show up to 76% energy reduction and 58% area reduction in comparison to CAMA, a recently proposed in-memory NFA accelerator.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism cites BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions
  • HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism cites CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories
  • HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism cites Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism cites Regular Expression Matching using Bit Vector Automata
  • HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism cites Efficient Matching of Regular Expressions with Lookaround Assertions
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites Regex matching with counting-set automata
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern Matching
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites Regular Expression Matching using Bit Vector Automata
  • BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions cites Efficient Matching of Regular Expressions with Lookaround Assertions
  • CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories cites Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern Matching
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs cites HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs cites BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded Repetitions
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs cites Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs cites Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern Matching
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs cites Regular Expression Matching using Bit Vector Automata
  • Regular Expression Matching using Bit Vector Automata cites Regex matching with counting-set automata
  • Efficient Matching of Regular Expressions with Lookaround Assertions cites Regular Expression Matching using Bit Vector Automata
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Regular Expression Matching using Bit Vector AutomataAlexis Le Glaunec, Lingkun Kong, Konstantinos MamourasOOPSLA 2023 · 22 citations
  2. Efficient Matching of Regular Expressions with Lookaround AssertionsKonstantinos Mamouras, Agnishom ChattopadhyayPOPL 2024 · 19 citations
  3. BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded RepetitionsZiyuan Wen, Lingkun Kong, Alexis Le Glaunec, Konstantinos Mamouras et al.ASPLOS 2024 · 11 citations
  4. HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit ParallelismAlexis Le Glaunec, Lingkun Kong, Konstantinos MamourasOOPSLA 2024 · 6 citations
  5. Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUsTianao Ge, Xiaowen Chu, Hongyuan LiuMICRO 2025 · 4 citations

Builds on4

  1. Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern MatchingElaheh Sadredini, Reza Rahimi, Marzieh Lenjani, Mircea Stan et al.HPCA 2020 · 43 citations
  2. Why GPUs are Slow at Executing NFAs and How to Make them FasterHongyuan Liu, Sreepathi Pai, Adwait JogASPLOS 2020 · 31 citations
  3. Regex matching with counting-set automataLenka Turonová, Lukás Holík, Ondrej Lengál, Olli Saarikivi et al.OOPSLA 2020 · 22 citations
  4. CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable MemoriesYi Huang, Zhiyu Chen, Dai Li, Kaiyuan YangHPCA 2022 · 12 citations

Related papers

  1. RAP: Reconfigurable Automata ProcessorZiyuan Wen, Alexis Le Glaunec, Konstantinos Mamouras, Kaiyuan YangISCA 2025 · 2 citations
  2. Sunder: Enabling Low-Overhead and Scalable Near-Data Pattern Matching AccelerationElaheh Sadredini, Reza Rahimi, Mohsen Imani, Kevin SkadronMICRO 2021 · 11 citations
  3. New Regular Expressions on Old AcceleratorsJackson Woodruff, Michael F. P. O'BoyleDAC 2021 · 3 citations
  4. Counting in Regexes Considered Harmful: Exposing ReDoS Vulnerability of Nonbacktracking MatchersLenka Turonová, Lukás Holík, Ivan Homoliak, Ondrej Lengál et al.USENIX Security 2022
  5. FlexAmata: A Universal and Efficient Adaption of Applications to Spatial Automata Processing AcceleratorsElaheh Sadredini, Reza Rahimi, Marzieh Lenjani, Mircea Stan et al.ASPLOS 2020 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines