arXiv:2610.25898cs.CEOct 2026

Manuscript Offprint

arXiv:2610.25898

HP-GSBS: Accelerating greedy state boundary search with reusable interval statistics

Yanzhe Zhao, Yongzhang Ji

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Greedy State Boundary Search (GSBS) identifies transitions between relatively stable neural activity patterns, but repeated candidate evaluation makes large analyses expensive. HP-GSBS is an open-source Python package that reorganizes the search around reusable interval contributions and correlation statistics. Streaming candidate reduction and local refinement further reduce repeated work; CPU, PyTorch CUDA and Triton backends share sequential segmentation decisions. Across seven controlled workloads with two realizations each, median same-input speedups range from 154 to 1730 times. All 168 optimized executions reproduce original boundaries and selected state counts, with maximum absolute t-distance difference 1.88×10−111.88 \times 10^{-11}. Four frozen EEG recordings provide complementary validation, including a complete input-to-segmentation application example. Batch processing, versioned result persistence and optional low-memory execution support recording collections and longer inputs. By removing redundant computation, HP-GSBS makes established neural-state segmentation faster while preserving its scientific outputs.

Keywords: neural state segmentation, GSBS, EEG, GPU computing

Required metadata