Manuscript Offprint
arXiv:2611.00660A Mixed-Precision CNN-LSTM Accelerator Featuring Long-Kernel Memory Reuse and Dynamic Quantization for Sleep Staging
Author's accepted manuscript. Published in IEEE Solid-State Circuits Letters, Early Access, 2026. X. Chen, Y. Xu, Y. Hou, B. Liu, A. G. Richardson, and X. Liu, "A Mixed-Precision CNN-LSTM Accelerator Featuring Long-Kernel Memory Reuse and Dynamic Quantization for Sleep Staging." DOI 10.1109/LSSC.2026.3746976. IEEE Xplore https://ieeexplore.ieee.org/document/11753942.
A Mixed-Precision CNN-LSTM Accelerator Featuring Long-Kernel Memory Reuse and Dynamic Quantization for Sleep Staging
Xinyu Chen*, Yaqian Xu*, Yuhan Hou, Bowen Liu, Andrew G. Richardson, and Xilin Liu
Abstract—This letter presents a mixed-precision CNN-LSTM accelerator for EEG-based sleep staging. To efficiently execute long temporal convolutions, a serpentine dataflow propagates activations between neighboring processing elements, reducing memory accesses by 6.2× and 2.25× compared with output- and weight-stationary dataflows, respectively. A hybrid quantization scheme applies runtime dynamic quantization to the LSTM and MLP layers and assigns mixed precision on a layer-by-layer basis, reducing model size by 4.16×. Combined with a bit-flexible MAC architecture and channel-grouped memory scheduling, the accelerator supports INT2/4/8/16 inference. Fabricated in 65 nm CMOS, the accelerator consumes 0.40 mW and achieves a 258× speedup over an iso-frequency 32b RISC-V processor. Evaluated across all 62 subjects in the public MASS-SS3 dataset using 31-fold leave-two-subject-out cross-validation, the mixed-precision approach with hybrid quantization maintains 5-class accuracy within 0.15% of the floating-point baseline when optimized for general sleep staging and N3 sensitivity within 0.51% when optimized for deep-sleep detection. The developed techniques are broadly applicable to EEG-based DL workloads.
Index Terms—DL accelerator, CNN, LSTM, dynamic quantization, bit-flexible multiplier, sleep staging, neuromodulation
This work addresses these challenges through the development of three design techniques. First, a serpentine dataflow is
proposed to efficiently map long kernels to the processing element (PE) array through local memory reuse. Second, dynamic quantization with mixed precision is utilized to reduce model size while preserving inference accuracy. Third, a bit-flexible multiplier and memory scheduling scheme are developed to efficiently support mixed-precision computation. This design was initially introduced as part of a sleep modulation SoC in [4]. This letter focuses exclusively on the DL accelerator, providing detailed architectural analysis, an expanded evaluation across all subjects in the dataset, further optimization of the quantization strategy, and experimental characterization.
II. DL MODEL AND ACCELERATOR OVERVIEW
A hybrid CNN-LSTM model is developed and trained on the public MASS-SS3 dataset [5] for 5-class sleep staging using two EEG channels near the forehead, directly relevant to forehead-based wearable sleep monitoring. Each input comprises a 30s EEG epoch, with one sleep-stage prediction generated per epoch. The model features two parallel, complementary coarse-fine feature-extraction CNN branches, followed by a bidirectional LSTM and a multilayer perceptron (MLP) layer (Fig. 1). The coarse CNN branch employs long kernels of up to 1280 samples to extract low-frequency temporal features over a large receptive field, while the fine-grained branch uses shorter kernels to capture local waveform characteristics.
The accelerator has a 1 mm² area budget within a wearable SoC targeting 1 mW average power. The 30 s inference interval enables PE reuse to reduce footprint and local data reuse to limit memory traffic. The developed CNN-LSTM accelerator (Fig. 2) consists of a controller, an output FIFO, and an interconnected 8-PE array. Each PE features a router, a register file, and a bit-flexible multiplier. Two of the PEs, designated

Fig. 1. Overall operational principle and the developed dual-path hybrid CNN-LSTM model for sleep staging with key parameters highlighted.
*These authors contributed equally to the work.
Xinyu Chen, Yaqian Xu, Yuhan Hou, Bowen Liu, and Xilin Liu are with the Edward S. Rogers Sr. Department of Electrical and Computer Engineering, University of Toronto, Toronto, ON M5S 2E4, Canada.
Andrew G. Richardson is with the Department of Neurosurgery, University of Pennsylvania, Philadelphia, PA 19104, USA.
© 2026 IEEE. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Fig. 2. Overall architecture of the developed DL accelerator and data paths of the Super PE in different operation modes.
as Super PEs, integrate enhanced functions, including pooling, activation, and quantization. This architectural partitioning simplifies control logic and minimizes hardware overhead. The total on-chip memory capacity is 1.8 KB.
III. ACCELERATION TECHNIQUES
A. Serpentine Dataflow for Long Kernels
Memory accesses typically dominate accelerator energy consumption, making on-chip data reuse critical [3]. While prior weight- and output-stationary methods effectively maximize data reuse, they primarily target CNNs with small kernels (e.g., , ) commonly found in computer vision tasks, providing poor support for the long temporal convolutions required in sleep staging and many EEG-based DL models.

Fig. 3. (a) Proposed serpentine dataflow for long-kernel CNNs, highlighting inter-PE activation reuse. (b) Input-stationary dataflow for LSTM computation, using the forget gate as an example.
To address this limitation, the proposed accelerator employs a serpentine dataflow, as illustrated in Fig. 3(a). Rather than reloading overlapping activation windows, activations are propagated directly between neighboring PEs, enabling continuous reuse as they traverse the array. Consequently, only the new activations dictated by the convolution stride are fetched from SRAM during each computation cycle, while partial sums are accumulated along the PE chain until the final output is generated by the Super PE.
For short-kernel convolutions, a weight-stationary dataflow maximizes weight reuse. Conversely, LSTM layers utilize an input-stationary dataflow (Fig. 3(b)) to efficiently share the input vector and hidden state across all four LSTM gates (forget, input, candidate, output) [4]. In both modes, Super PEs handle partial-sum accumulation and final activation processing, minimizing memory accesses.
B. Hybrid Static-Dynamic Mixed-Precision Quantization
Quantization reduces accelerator memory footprint and power. However, conventional static quantization often degrades accuracy in recurrent networks since fixed activation ranges cannot adapt to time-varying distributions. To address this challenge, the proposed accelerator employs a hybrid static-dynamic mixed-precision quantization scheme. Static quantization is applied to layers with stable activation distributions, whereas runtime dynamic quantization adapts to layers with highly variable distributions. Furthermore, individual layers are assigned 2b, 4b, 8b, or 16b precisions based on their quantization sensitivity.
Fig. 4(a) shows the affine quantization and de-quantization mapping. Weights are quantized during training and stored in low-precision formats, using per-tensor scaling (or per-channel-/group-wise scaling for highly sensitive 2b layers). Activations utilize a per-tensor affine mapping. To prevent
Operational Principles (Quantization & De-Quantization Functions)
(a)
Static Quantization obtained offline

(b)
Dynamic Quantization obtained offline, obtained online in hardware

(c)
Fig. 4. Proposed hybrid quantization scheme: (a) affine quantization and de-quantization mapping and key equations; (b) static quantization with offline-calibrated parameters for CNN layers; and (c) runtime dynamic quantization used for the LSTM and MLP layers, utilizing a histogram observer. The datapath supports INT2/4/8/16 operands with higher-precision accumulation.
overflow during computation, partial sums are accumulated at higher precision. In the static datapath (Fig. 4(b)), activation scales and zero-points are calibrated offline. High-precision accumulators are directly re-quantized to the output precision using a combined rescaling factor. This allows results to be written directly to memory without explicitly reconstructing intermediate values, minimizing inter-layer data traffic. For dynamic quantization (Fig. 4(c)), the observer tracks each activation tensor's extrema range, then computes one scale and zero-point pair before quantizing that tensor using the equations in Fig. 4(a). Parameters are updated at each MLP layer input and separately for and at every BiLSTM time step in each layer and direction. Observer state is reset for each inference, while CNN quantization parameters remain fixed after offline calibration. To balance accuracy and hardware overhead, these two modes are assigned per layer: CNNs use static quantization for stable activations, while LSTM and MLP use dynamic quantization to track varying distributions and limit recurrent error propagation.
C. Bit-Flexible MAC and Memory Scheduling
Prior work has explored hardware support for various quantization schemes [6]. However, to fully exploit the mixed-precision quantization scheme, the accelerator should support hardware-level mixed-precision MAC operations with dynamic quantization. Although various bit-flexible designs have been proposed [7], [8], they often incur area overhead, control complexity, or memory fragmentation from varying bit-widths. To overcome these limitations, this work co-designs the bit-flexible MAC engine with memory scheduling. The proposed bit-flexible multiplier (Fig. 5(a)) accepts two 16b inputs that are partitioned by an allocation network to execute eight 2b, four 4b, two 8b, or one 16b multiplication in parallel. The generated partial products are then shifted and accumulated to produce the final result. Compared with a state-of-the-art design [7], this work delivers identical throughput while
reducing the area (CMOS process scaled using [9]) for 8b and 16b multiplications by 54.5% and 77.3%, respectively.
Variable bit widths cause memory fragmentation and complex alignment in conventional memory layouts. This work proposes channel-grouped memory scheduling (Fig. 5(b)), which packs multiple channels into each 16b memory word according to operand precision. Consequently, each access fetches a complete, aligned computation group, eliminating cross-word remapping and maximizing bandwidth utilization.
IV. EXPERIMENTAL RESULTS
A micrograph of the fabricated chip in 65 nm CMOS and a summary of key chip specifications are shown in Fig. 6.

| Item | Value | Item | Value |
|---|---|---|---|
| CMOS (Area) | 65 nm GP (0.95 ) | Supply Voltage | 0.55-1.2 V |
| Model Size | 1.86 MB w/ hybrid quant. | DL Efficiency (peak) | 635 GOPS/W @ 2-bit |
| Latency | 2.47 s @ 1 V, 8 MHz | Inference Power | 0.40 mW (avg. over 30 s) |
Additional specifications provided in Tables 1.
Fig. 6. Micrograph of the fabricated SoC with key blocks highlighted and a summary of key chip specifications.
Fig. 7 shows the measured voltage-scaling performance. Increasing the supply from 0.55 V to 1.2 V scales the maximum frequency from 2 MHz to 10 MHz and power from 0.24 mW to 10.48 mW (Fig. 7(a)). Evaluated at maximum frequencies across 2b to 16b modes, the power efficiency peaks at 635 GOPS/W during 2b operation at 0.55 V (Fig. 7(b)). All reported power measurements include the power consumed by the on-chip memory and peripheral modules, which is also accounted for in the reported power efficiency.

(a)
Fig. 5. (a) Architecture of the developed bit-flexible multiplier. (b) Conventional and proposed channel-grouped memory scheduling.

(a)

(b)
Fig. 7. Voltage-scaling characteristics. (a) Maximum operating frequency and power consumption. (b) Peak power efficiencies at different precisions.
Next, we evaluated the memory movement efficiency of the proposed serpentine dataflow. For the long CNN kernels in our model, the proposed dataflow reduces SRAM accesses by and compared to conventional output- and weight-stationary dataflows on the same PE array (Fig. 8(a)). Benchmarked against an iso-frequency, single-core 32b RISC-V processor with a four-stage pipeline (execution latency obtained through cycle-accurate simulation), the proposed accelerator achieves speedups of , , and for the CNN, LSTM, and MLP layers, respectively (Fig. 8(b)), yielding an overall model speedup of . Without a dedicated accelerator, inference would either fail to meet real-time requirements or require a high clock frequency with prohibitive power.
The conference version evaluated the model on two held-out subjects excluded from training [4]. This work extends

(a)

(b)
Fig. 8. (a) Memory access reduction vs. mainstream dataflows for long-kernel convolutions. (b) Execution latency of the developed accelerator compared to a baseline 32b RISC-V processor across network layers.
TABLE I
KEY MODEL PERFORMANCE METRICS AND COMPARISON WITH RECENT SLEEP-STAGING DESIGNS EVALUATED ON MASS-SS3
| Publication | This work | OJCAS 26 [2] | NEJ 26 [10] | Brain Sci. 25 [11] | EUSIPCO 24 [12] | ||
|---|---|---|---|---|---|---|---|
| Hardware | ASIC | FPGA | ASIC (sim.) | No | No | ||
| Input signal | EEG 2 | EEG 1 | EEG 1 | EEG 1 | EEG 8 | ||
| Architecture | CNN-LSTM | CNN-LSTM | Modified ViT | FNN + Trans. Vec. | 2-stage Trans. | ||
| Ver-Gen | Ver-N3 | Yes | Yes | No | No | ||
| Quantization | 2/4/8/16b Static+Dyn. | 16b Static | 8/16b Static | No | No | ||
| Accuracy | 86.14% (w/ Quant) | 84.87% (w/ Quant) | 83.7% (w/ Quant) | 82.90% | 84.1% | 84.40% | |
| Deep sleep (N3) | Sensitivity | 84.90% (w/ Quant) | 95.75% (w/ Quant) | - | - | - | - |
| Per class F1 score | 84.28% (w/ Quant) | 84.56% (w/ Quant) | - | 62.92% (Est.) | 72.1% | - | |
| Specificity | 98.10% (w/ Quant) | 96.60% (w/ Quant) | - | - | - | - | |
the evaluation to all 62 subjects in the MASS-SS3 dataset using 31-fold leave-two-subject-out cross-validation. To assess both general sleep-staging and N3 detection for auditory stimulation, two model variants are reported: Ver-Gen (maximizing overall 5-class accuracy) and Ver-N3 (maximizing N3 sensitivity). Table I compares this work with recent sleep-staging designs evaluated on MASS-SS3, highlighting its combination of ASIC implementation and hybrid static-dynamic quantization while achieving competitive accuracy. Numerical accuracy differences should be interpreted in the context of each study's input configuration, classification settings, and evaluation protocol.
Fig. 9 shows the experimental results of the mixed-precision hybrid quantization scheme compared with the floating-point (FP32) baseline. Applying full static INT4/8 quantization to the model degrades the accuracy of Ver-Gen by 4.01% and the N3 sensitivity of Ver-N3 by 5.81%, averaged across the 31 folds. Incorporating dynamic quantization at the same precision reduces the degradation to 2.89% and 2.1%, while the full INT2/4/8/16 mixed-precision dynamic quantization almost completely recovers the performance, leaving a negligible degradation of only 0.15% and 0.51%, respectively. The mixed-precision approach reduces the model size to below 1.86 MB (4.16× reduction from baseline). The 2b, 4b, 8b, and 16b groups account for approximately 0.007%, 2.7%, 90.8%, and 6.5% of the total operations, respectively, excluding max-pooling. At 8 MHz and a 1 V supply, inference takes 2.47 s, with an average power consumption of 0.40 mW when performed once every 30 s (matching the labeled epoch duration of the dataset).

(a)
(b)
Fig. 9. Experimental results of the mixed-precision hybrid quantization over 31 folds for (a) Ver-Gen and (b) Ver-N3, respectively. Conventional static quantization causes significant performance degradation, whereas the proposed mixed-precision dynamic quantization retains the accuracy and N3 sensitivity with a negligible degradation of 0.15% and 0.51%, respectively.
V. CONCLUSION
This letter presents a 65 nm mixed-precision CNN-LSTM accelerator for EEG-based sleep staging. A serpentine dataflow reduces long-kernel memory overhead, while hybrid mixed-precision quantization cuts model size by over at negligible performance cost. Achieving a speedup and N3 sensitivity of 95.75%, it enables stage-specific sleep modulation, with techniques broadly applicable to EEG-based workloads.
REFERENCES
[1] M. Wunderlin, M. A. Züst, K. D. Fehér, S. Klöppel, and C. Nissen, "The role of slow wave sleep in the development of dementia and its potential for preventative interventions," Psychiatry Research: Neuroimaging, vol. 306, p. 111178, 2020.
[2] A. Zhou, Y. Xu, C. Chen, J. Yen, W. Zheng, M. Zhao, M. Sun, N. Yang, A. G. Richardson, and X. Liu, "FPGA acceleration of CNN-BiLSTM for EEG-based sleep staging featuring FFT-based non-unit stride fast convolution," IEEE Open Journal of Circuits and Systems, 2026.
[3] Y.-H. Chen, T. Krishna, J. S. Emer, and V. Sze, "Eyerriss: An energy-efficient reconfigurable accelerator for deep convolutional neural networks," IEEE Journal of Solid-State Circuits, vol. 52, 2017.
[4] Y. Xu, X. Chen, Y. Hou, J. Xu, H. You, Y. Huang, B. Liu, A. Hung, A. G. Richardson, R. Genov, and X. Liu, "An In-Ear Sleep Modulation SoC Featuring a CNN-LSTM Accelerator with Long-Kernel Memory Reuse and Runtime Dynamic Quantization," 2026 IEEE/JSAP Symposium on VLSI Technology & Circuits, 2026.
[5] C. O'reilly, N. Gosselin, J. Carrier, and T. Nielsen, "Montreal archive of sleep studies: an open-access resource for instrument benchmarking and exploratory research," Journal of sleep research, vol. 23, no. 6, 2014.
[6] S. Moon, H.-G. Mun, H. Son, and J.-Y. Sim, "Multipurpose Deep-Learning Accelerator for Arbitrary Quantization With Reduction of Storage, Logic, and Latency Waste," IEEE Journal of Solid-State Circuits, vol. 59, no. 1, pp. 143–156, Jan. 2024.
[7] S. Ryu, H. Kim, W. Yi, E. Kim, Y. Kim, T. Kim, and J. J. Kim, "BitBlade: Energy-efficient variable bit-precision hardware accelerator for quantized neural networks," IEEE Journal of Solid-State Circuits, vol. 57, no. 6, pp. 1924–1935, Jun. 2022.
[8] Y. Chen, J. Meng, J.-S. Seo, and M. S. Abdelfattah, "BBS: Bi-directional bit-level sparsity for deep learning acceleration," in IEEE/ACM Annual International Symposium on Microarchitecture, 2024, pp. 551–564.
[9] S. Sarangi and B. Baas, "DeepScaleTool: A tool for the accurate estimation of technology scaling in the deep-submicron era," in IEEE International Symposium on Circuits and Systems (ISCAS), 2021.
[10] T. Robitaille and X. Liu, "SleepViT: a compact vision transformer accelerator for sleep stage classification in wearable devices," Neuroelectronics, vol. 3, no. 1, pp. 1–18, 2026.
[11] D. Wijesinghe and J. Lima, Ivan T., "A lightweight neural network based on memory and transition probability for accurate real-time sleep stage classification," Brain Sciences, vol. 15, no. 8, p. 789, 2025.
[12] M. Seraphim, A. Lecheryv, F. Yger, L. Brun, and O. Etard, “Structure-preserving transformers for sequences of SPD matrices,” in European Signal Processing Conference (EUSIPCO), Aug. 2024.