Papers › From Compression to Deployment: Real-Time and Energy-Efficient FastGRNN on...

From Compression to Deployment: Real-Time and Energy-Efficient FastGRNN on Ultra-Constrained Microcontrollers

15 Jun 2026arXiv:2606.17249added by Syntology

Emre Can Kizilates

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The dominant trajectory of modern machine learning has been to scale up: larger models, larger accelerators, larger memory budgets. Yet a multi-year global semiconductor supply constraint and the growing energy and carbon cost of always-online inference expose the fragility of this trajectory and motivate the opposite direction: refactoring AI and ML algorithms to fit the small, ubiquitous microcontrollers already in mass production in wearables, sensors, and edge appliances. We present an end-to-end open-source reproduction of FastGRNN, a compact gated recurrent cell, deployed on two bare-metal targets: the 8-bit Arduino (ATmega328P) and the 16-bit MSP430 (no hardware multiplier; 16 KB Flash; 512 B SRAM). Our compression pipeline combines low-rank weight factorization, iterative hard-thresholding sparsity, and per-tensor Q15 post-training quantization with explicit activation calibration. The deployed model occupies 566 bytes of weights and achieves macro F1 = 0.918 (seed 0; five-seed Q15 mean 0.853+-0.107) on the HAPT test set. It matches a PyTorch reference at 100% prediction agreement across 3,399 test windows (MCU seed 0; 99.91-100% C-equivalent across five seeds). Both platforms sustain real-time 50 Hz streaming inference (9.21 ms per sample on Arduino; 13 ms on MSP430), where a 256-entry sigmoid/tanh look-up table delivers a 30.5x speedup on the multiplier-less MSP430. Four contributions extend the original FastGRNN paper: (i) cross-platform bit-equivalent deterministic inference; (ii) characterization of recurrent warm-up latency (median 74 samples, 1.48 s; worst-case 125 samples, 2.50 s over 100 test windows); (iii) a deployable look-up-table recipe for multiplier-less embedded targets; and (iv) hardware energy characterization showing 17.7 mW active inference power, <0.09 mW idle power, and 96.7% energy reduction with the LUT.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.17249")

Code

Syntology Ran 16 of 17 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 17 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

emre1998/fastgrnn-har found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 16 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
1unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from emre1998/fastgrnn-har. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

arr emre1998/fastgrnn-har/analyze_best_route.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4efeadb2e29309c1 · report
dense emre1998/fastgrnn-har/analyze_ablation.py found in paper text by Syntology ran Apache-2.0 (permissive) · 0341425cb85fcd56 · report
fastgrnn_budget_seeds emre1998/fastgrnn-har/analyze_bootstrap.py found in paper text by Syntology ran Apache-2.0 (permissive) · 3b4ca8c62daf5f9f · report
fastgrnn_step emre1998/fastgrnn-har/fastgrnn_numpy.py found in paper text by Syntology ran Apache-2.0 (permissive) · 488a82fc1daf0672 · report
fp32_of emre1998/fastgrnn-har/analyze_deploy_budget.py found in paper text by Syntology ran Apache-2.0 (permissive) · b4cf7c1fad47f312 · report
load emre1998/fastgrnn-har/analyze_deploy_budget.py found in paper text by Syntology ran Apache-2.0 (permissive) · 23f107197e9436ff · report
load_f1 emre1998/fastgrnn-har/analyze_ablation.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5063afef902ba042 · report
make_loader emre1998/fastgrnn-har/train_fastgrnn.py found in paper text by Syntology ran Apache-2.0 (permissive) · 502d786e4b2355b6 · report
pair emre1998/fastgrnn-har/analyze_drift.py found in paper text by Syntology ran Apache-2.0 (permissive) · 57a18eb12b46f21f · report
params_dense emre1998/fastgrnn-har/analyze_footprint.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 7be47579340ddc69 · report
perclass emre1998/fastgrnn-har/analyze_perclass.py found in paper text by Syntology ran Apache-2.0 (permissive) · 86cf602e4a2a7bea · report
run_sequence emre1998/fastgrnn-har/fastgrnn_numpy.py found in paper text by Syntology ran Apache-2.0 (permissive) · e1054c18e8dbdcc6 · report
sigmoid emre1998/fastgrnn-har/fastgrnn_numpy.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 156855983d880ed5 · report
sparse_fp32 emre1998/fastgrnn-har/analyze_ablation.py found in paper text by Syntology ran Apache-2.0 (permissive) · 3952718869a58a08 · report
sram_working_set emre1998/fastgrnn-har/analyze_footprint.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 0a60651079a87d84 · report
tier1_seeds emre1998/fastgrnn-har/analyze_bootstrap.py found in paper text by Syntology ran Apache-2.0 (permissive) · f333f0e394a1a6c6 · report
jload emre1998/fastgrnn-har/analyze_bootstrap.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2a1e46172a51de87 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.17249, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections