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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 17 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 9 honoured, 1 violated, 4 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 17 samples from 1 repository, 16 ran (14 with no instrument failure; 2 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

emre1998/fastgrnn-har found in paper text by SyntologySyntology: 17 samples, 16 ran (2 instrument-failed) · 1 unverified 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 (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 9 honoured, 1 violated, 4 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

9ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
4ran
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

emre1998/fastgrnn-har found in paper text by Syntology 17 samples, 16 ran (2 instrument-failed) · 1 unverified
arr analyze_best_route.py ran · violated contract fingerprinted Apache-2.0 (permissive) · 4efeadb2e29309c1 · report fixture: signature vals:list/1/int · returned ndarray · level recorded 2026-09-24
dense in 22 papers analyze_ablation.py ran · honoured contract Apache-2.0 (permissive) · 0341425cb85fcd56 · report fixture: signature ds:str/0/str · returned ndarray · level recorded 2026-09-24
fastgrnn_budget_seeds analyze_bootstrap.py ran · honoured contract Apache-2.0 (permissive) · 3b4ca8c62daf5f9f · report fixture: signature ds:str/0/str · returned ndarray · level recorded 2026-09-24
fastgrnn_step fastgrnn_numpy.py ran Apache-2.0 (permissive) · 488a82fc1daf0672 · report fixture: signature x_t:ndarray/1/float, h_prev:ndarray/1/float, W:ndarray/2/float, U:ndarray/2/float, b_z:ndarray/1/float, b_h:ndarray/1/float, zeta:float/0/float, nu:float/0/float · returned ndarray · level recorded 2026-09-24
fp32_of analyze_deploy_budget.py ran · honoured contract Apache-2.0 (permissive) · b4cf7c1fad47f312 · report fixture: signature cell_res:dict/0/? · returned float · level recorded 2026-09-24
load in 392 papers analyze_deploy_budget.py ran · honoured contract Apache-2.0 (permissive) · 23f107197e9436ff · report fixture: signature ds:str/0/str · returned list · level recorded 2026-09-24
load_f1 analyze_ablation.py ran · honoured contract Apache-2.0 (permissive) · 5063afef902ba042 · report fixture: signature pattern:str/0/str, key:NoneType/0/? · returned ndarray · level recorded 2026-09-24
make_loader in 12 papers train_fastgrnn.py ran Apache-2.0 (permissive) · 502d786e4b2355b6 · report fixture: signature X:ndarray/2/float, y:ndarray/1/int, batch_size:int/0/int, shuffle:bool/0/bool · returned DataLoader · level recorded 2026-09-24
pair in 101 papers analyze_drift.py ran · our draft was wrong Apache-2.0 (permissive) · 57a18eb12b46f21f · report fixture: signature old_pat:str/0/str, new_pat:str/0/str, field:callable/0/? · returned dict · level recorded 2026-09-24
params_dense analyze_footprint.py ran fingerprinted Apache-2.0 (permissive) · 7be47579340ddc69 · report fixture: signature kind:str/0/str, H:int/0/int, C:int/0/int · returned int · level recorded 2026-09-24
perclass analyze_perclass.py ran · our draft was wrong Apache-2.0 (permissive) · 86cf602e4a2a7bea · report fixture: returned dict · level recorded 2026-09-24
run_sequence fastgrnn_numpy.py ran Apache-2.0 (permissive) · e1054c18e8dbdcc6 · report fixture: signature X:ndarray/2/float, h0:ndarray/1/float, W:ndarray/2/float, U:ndarray/2/float, b_z:ndarray/1/float, b_h:ndarray/1/float, zeta:float/0/float, nu:float/0/float, return_all:bool/0/bool · returned ndarray · level recorded 2026-09-24
sigmoid in 216 papers
census: 36 implementations from 56 papers, 7 distinct outputs across 3 buckets, one shared input per bucket
fastgrnn_numpy.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 156855983d880ed5 · report fixture: signature x:float/0/float · returned float64 · level recorded 2026-09-24
sparse_fp32 analyze_ablation.py ran · honoured contract Apache-2.0 (permissive) · 3952718869a58a08 · report fixture: signature ds:str/0/str · returned ndarray · level recorded 2026-09-24
sram_working_set analyze_footprint.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 0a60651079a87d84 · report fixture: signature kind:str/0/str, H:int/0/int, C:int/0/int · returned int · level recorded 2026-09-24
tier1_seeds analyze_bootstrap.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · f333f0e394a1a6c6 · report fixture: signature ds:str/0/str, cell:str/0/str · returned ndarray · level recorded 2026-09-24
jload in 59 papers analyze_bootstrap.py 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