Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

Pattern matching is a key operation in unstructured data analytics, commonly supported by regular expression (regex) engines. Bit-parallel regex engines compile regexes into bitstream programs, which expose fine-grained parallelism and are well-suited for GPU execution. A straightforward strategy executes each bitstream instruction sequentially, processing all data blocks in a loop. However, this execution suffers from poor data reuse and high memory consumption, limiting throughput. Our key insight is to adopt an interleaved execution model, where all bitstream instructions are fused into a single loop and executed block-wise. While interleaved execution could improve data reuse, enabling it on GPUs is non-trivial due to cross-block data dependencies. To address this, we introduce 1) Dependency-Aware Thread-Data Mapping, which resolves cross-block dependencies via selective recomputation. We further improve interleaved execution performance with two additional optimizations: 2) Shift Rebalancing, which balances dependency chains to reduce synchronization barriers; and 3) Zero Block Skipping, which exploits bitstream sparsity to skip computation on zero blocks. Together, these techniques make interleaved execution practical and efficient. Experiments on real-world regex benchmarks demonstrate a 19.5 × geometric mean speedup over the state-of-the-art GPU regex engine.

Original languageEnglish
Title of host publicationMICRO 2025 - 58th IEEE/ACM International Symposium on Microarchitecture
Pages385-400
Number of pages16
ISBN (Electronic)9798400715730
DOIs
StatePublished - 17 Oct 2025
Event58th IEEE/ACM International Symposium on Microarchitecture , MICRO 2025 - Seoul, Korea, Republic of
Duration: 18 Oct 202522 Oct 2025

Publication series

NameProceedings of the Annual International Symposium on Microarchitecture, MICRO
VolumePart of 213862
ISSN (Print)1072-4451

Conference

Conference58th IEEE/ACM International Symposium on Microarchitecture , MICRO 2025
Country/TerritoryKorea, Republic of
CitySeoul
Period18/10/2522/10/25

Keywords

  • Bit Parallelism
  • Bitstream
  • Compiler
  • GPU
  • Regex Matching

Fingerprint

Dive into the research topics of 'Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs'. Together they form a unique fingerprint.

Cite this