FlashNER: Outlier-Free Bidirectional Delta Memory for Structured Named Entity Recognition
Pretrained subword Transformers deliver strong bilingual Named Entity Recognition (NER) accuracy, yet their quadratic self-attention, subword sequence inflation on morphologically rich scripts, and heavy-tailed activation outliers hinder compact, low-bit deployment. Conversely, lightweight word-convolutional taggers achieve high throughput but lose accuracy to vocabulary hash collisions, order-invariant context pooling, and greedy span heuristics. We introduce FlashNER, a structured sequence-labeling architecture designed natively for linear-time, low-bit execution. FlashNER integrates four coupled mechanisms: (1) a hybrid backbone interleaving local rotary attention with spectrally contractive bidirectional gated delta memory of constant per-head state size, (2) bounded ReLU6 activations paired with orthogonal Cayley-Walsh-Hadamard rotations (offline-folded BlockCayley residual rotations and in-register FWHT-256) that suppress activation kurtosis for full 8-bit integer execution and 4-bit weight compression (retaining 99.8% of 8-bit F1 in 10.25 MiB), (3) collision-free minimal perfect lexical hashing (PtrHash) gated dynamically with character morphology, and (4) dual-mode exact Semi-Markov conditional random fields that jointly separate strict PII redaction from general NER on a single encoder pass. Evaluated across four Russian and English benchmarks, an 11.97 MiB 8-bit FlashNER model retains 98.6% of its 590 MB Transformer teacher's macro F1 while outperforming convolutional taggers by +15.2 F1 points on organizations and +21.4 F1 points on colloquial PII, running at sub-millisecond latency (0.34 ms full 6-layer pass; 0.17 ms with early-exit gating) within 16.4 MB of native memory on standard CPUs. Source code, Rust/SIMD runtime, Python SDK, and weights: https://github.com/mouzor/flashner
Authors
- Amin Magerramov (ORCID: https://orcid.org/0009-0002-0185-0106)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24652094
- Primary Topic
- Topic Modeling
- Type
- preprint