Rank as an Amdahl Knob: Measuring and Shrinking the Ingest Tax on Milliwatt Multi-Core Sensors

Small battery-powered sensor chips (EEG headbands, nano-drones, IoT nodes) now often pair one always-on control core with a cluster of eight parallel cores. The cluster finishes neural-network inference in a few milliseconds and then goes to sleep. Published energy figures for these chips usually count only that compute burst. They leave out the serial work around it: the control core buffering samples from the sensor, filtering them, and moving each window through the memory hierarchy into the cluster's small scratchpad. On servers, that same "everything but inference" work is known to take up to 56% of end-to-end latency, and 88–97% for large inputs (Beyond Inference). We propose to measure this ingest cost on a parallel ultra-low-power chip for the first time. We then test whether a low-rank factorization of the multichannel input can shrink it.

The factorization has two parts. The first is a spatial basis shared across the population of users. The second is a small per-user correction fitted on the device. The idea is that the chip moves and processes $k$ latent channels instead of $C$ raw ones, and the shared part of the basis is folded into the cluster's first-layer weights so it never has to be reconstructed. The rank $k$ then works as a dial. It shifts work out of the serial stage, which keeps the chip awake, and into the parallel stage, which lets it sleep. The question we can answer cleanly is where that dial should be set, and whether the projection should run on the control core or on the cluster.

Core Claim

On a cluster chip where parallel compute is already fast, end-to-end energy per inference is limited by the serial stage. Q-EEGNet's 64× cluster speedup (Q-EEGNet) leaves almost nothing left to gain in the network itself. Our claim is that energy per window is governed by the bytes and cycles the serial stage spends per window. A rank-$k$ spatial factorization, applied at the right place in the pipeline, reduces that cost roughly in proportion to $k/C$ while keeping accuracy within a fixed tolerance.

Pure compression ratio does not decide the right place. It depends on whether the projection's arithmetic is cheaper than the memory traffic it removes. The optical-flow work on GAP8 found that recomputing values locally beat precomputing and storing them, because memory access dominated (Parallelizing Optical Flow Estimation). Arithmetic-for-traffic is therefore a real trade here and cannot be assumed.

The idea is new as a combination. One part is a measured ingest-tax accounting on a milliwatt chip. The other is a shared-plus-personal latent split carried over from server recommendation caches (CollectiveKV) to sensor streams under integer arithmetic. If the split's personal part adds nothing over a fixed population basis, the contribution reduces to the measurement and the placement model. We say so up front.

Research Program

Stage-resolved energy model and measurement. We first instrument a GAP8-class chip. It has one control core and an 8-core cluster with a 64–128 KB shared scratchpad. We split each inference period into four parts: control-core ingest (sample buffering, band-pass filtering, windowing), the DMA transfer from the larger L2 memory to the cluster scratchpad, cluster compute, and sleep. Per sensing window of period $T$, we model energy as

$$E(k) = P_{fc}\,T_{ser}(k) + P_{cl}\,T_{par}(k) + P_{sl}\,\big(T - T_{ser}(k) - T_{par}(k)\big),$$

where $P_{fc}$, $P_{cl}$ and $P_{sl}$ are the measured power draws of the control core, the active cluster and sleep, and $T_{ser}$ and $T_{par}$ are the serial and parallel stage durations as functions of rank $k$. This follows the analytical-model approach of the Occamy offload study, which predicted runtimes within 15% error (Taming Offload Overheads). That study, however, treated offloaded data as opaque buffers, and we instead make the data volume a modeled variable. Fathom made the same kind of point at datacenter scale: once the core kernels are accelerated, secondary stages dominate (Fathom).

The factorization. For a window $X \in \mathbb{R}^{C \times T_w}$, with $C$ channels and $T_w$ time samples, we compute latent channels $Z = (B + a_s b_s^\top)^\top X$. Here $B \in \mathbb{R}^{C \times k}$ is a population basis learned offline. The rank-one (or rank-$r$) term $a_s b_s^\top$ is a per-subject correction with $a_s \in \mathbb{R}^{C}$ and $b_s \in \mathbb{R}^{k}$. This mirrors CollectiveKV's split into a shared global pool and a small user-specific part, which it found carries over 90% of the information. The difference is that CollectiveKV compresses cached server state on an A100, whereas we compress a live sensor stream on a chip without floating-point hardware.

The correction is fitted on the device from a handful of calibration trials. We update only $a_s$ and $b_s$ with factored gradient steps, following Learning Preferences from Assortment Choices, whose factored parameterization cuts the parameter count from $m \times n$ to $(m+n)r$. This keeps on-device training to $O((C+k)r)$ parameters. QLR-CL (A TinyML Platform for On-Device Continual Learning) also learns on such chips, but it stores intermediate activations and runs dense updates. Our update touches a few hundred numbers.

All projection arithmetic is INT8 with 32-bit accumulators. On FPU-less clusters, software floating point costs a large factor: DNN is not all you need reports up to 32× between emulated and native floating point. The basis is learned offline in floating point and quantized afterwards, so no on-device SVD is needed.

Placement variants. We compare three placements of the projection. In P1, full $C$-channel windows are sent to the cluster, which projects them in its first layer. In P2, the control core projects each sample as it arrives, so L2 storage and DMA payload shrink by $C/k$, but the serial stage gains $Ck$ multiply-accumulates per sample. In P3, the cluster wakes briefly to project each small ingest chunk, then sleeps until the window is complete.

The model predicts which placement wins as a function of $C$, $k$ and the sampling rate. The measurements test those predictions. Because EEGNet-style networks apply the same temporal filters to every channel, a spatial projection commutes with the first temporal convolution. The downstream network can therefore be trained directly on $k$ channels with no reconstruction step, which resolves the "where to expand the factors" tension by never expanding them.

Baselines

The naive reference point is the unmodified full-channel pipeline. That means Q-EEGNet on BCI Competition IV-2a, and the pruned Extra-Trees detector on the TUH artifact corpus. Both run with ingest and filtering on the control core and a plain DMA transfer, and we measure them end to end on our hardware.

The strongest reported compute-side results we must not regress are as follows. Q-EEGNet reports 70.9% accuracy, 5.82 ms latency and 0.627 mJ per inference (Q-EEGNet). The tree detector reports 93.95% accuracy, 0.838 F1 and 4.03 µJ per inference (Energy-Efficient Tree-Based EEG Artifact Detection). These figures cover inference only. We found no reported result on Lacuna for end-to-end energy including ingest on any parallel ultra-low-power chip, so our first deliverable is that missing number for the baselines themselves.

The strongest system-level competitor moves the serial preprocessing onto the parallel cores instead of compressing it. This is the approach of Parallax, which parallelizes host fallback work across cores and saves up to 30% energy through race-to-sleep on phones. We reimplement it on the cluster with the same filters, the same data and the same tuning effort for tiling and double-buffering.

Two ablations isolate the latent ingredient. The first is a fixed population basis with no per-subject correction, which is plain offline PCA or common spatial patterns. The second is a $k$-channel subset chosen by greedy selection at the same $k$. Both downstream networks receive the same hyperparameter search budget as ours.

Beating the baselines means two things. Ours must lower measured end-to-end energy per window against both the naive pipeline and the parallelized-ingest baseline at accuracy within 0.5 points of 70.9% on IV-2a. And the personal correction must recover a statistically significant gain over the fixed basis on cross-subject evaluation.

Why not just…?

Why not just parallelize ingest on the cluster? Doing so keeps the cluster, which draws far more power than the control core, awake for the whole acquisition window instead of for a short burst. That works directly against the race-to-sleep effect that makes these chips efficient. It is still a genuine competitor when sampling is slow and the cluster can be duty-cycled per chunk. Our P3 variant and the Parallax-style baseline measure exactly this, and if parallel ingest wins at every $k$, we will report that.

Why not just use fewer channels or a fixed PCA front end? This is the most serious threat, because spatial filtering is a classical EEG technique. A fixed population basis may capture most of the gain. The ablation decides it: the personal correction must beat the fixed basis on held-out subjects, where inter-subject variability is largest. If it does not, we drop the personalization claim and keep the measurement and placement model. A further constraint comes from The Persona Fidelity Gap, which shows that low-dimensional approximations wear away rare behaviors. Artifacts in TUAR are exactly such rare events, so we report per-class F1 rather than accuracy alone.

Why not just quantize the input stream to 4 bits? Uniform quantization cuts bytes by 2–4× with no change to the computation. Rank reduction from 22 channels to, say, 4 cuts bytes by about 5× and also removes first-layer work. We compare the two at matched bytes per window, and we also test their combination, since they are not mutually exclusive.

Why not just batch several windows to amortize setup cost? Batching adds latency in direct proportion to the number of windows, which closed-loop brain–machine interfaces cannot tolerate. We plot energy against latency for batch sizes 1–8 so readers can see where batching alone is enough.

Proposed Experiments and Decisive Checks

The main experiments run on BCI IV-2a (22 channels) with rank $k \in \{2,4,6,8,11,22\}$. Evaluation is within-subject and leave-one-subject-out, with the per-subject correction fitted from 5, 10 and 20 calibration trials. Metrics are accuracy, end-to-end energy per window measured at the supply rail, the split of that energy across the serial, parallel and sleep stages, and peak L2 memory.

TUAR, with only 4 channels, serves as a planned negative control. The model predicts small or no gains when $C$ is already small. Observing large gains there would indicate a measurement artifact rather than a real effect.

The decisive checks are as follows. First, the measured serial share of energy for the naive pipeline must be large, roughly a quarter or more. If it is small, the motivation fails, and we report that milliwatt chips do not suffer the server "AI tax". Second, the analytical model must predict the winning placement and energy within 15% across $k$ and sampling rates. Third, at matched accuracy, the best placement must beat the parallelized-ingest baseline. Fourth, the personal correction must beat fixed PCA and channel selection across subjects.

A compact on-device training check confirms that factored calibration of $a_s$ and $b_s$ fits in the scratchpad and costs less energy than a single full-network inference.