Epic: model zoo — architectures for on-device training research

Open
#535 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c

Research direction

Start with the listed prerequisite issues, especially #329 for graph topology and #331 for residual blocks, then follow the tiered model list in this epic. The first work is research and implementation across model architectures and training support; no source files or tests are named. Done means ODT can support the prioritized architectures for on-device training research, with the open model-selection decisions resolved.

Written by the indexing model from the issue text.

Description

enhancement research

Goal

Make ODT train the model architectures that matter for on-device training research: residual networks, 2D mobile networks, and later small transformers and recurrent models. Do research on those, instead of on plain chain CNNs only.

Why

Every model ODT can train today is a plain chain of 1D layers. On those, deep fine-tuning is weak: on NinaPro personalization, training deeper than the last 2 layers adds only +0.59 pp. Results on training-memory techniques (remat, partial updates, dynamic depth) depend on the architecture. A testbed nobody else uses makes them hard to compare with related work, which is mostly 2D (MCUNetV3, PockEngine, TinyTrain).

Size rule: a model does not have to fit training on the Pico 2 (~387 kB heap) today. Models up to ~5-10× over (about 2-4 MB of training memory) are wanted. Making them fit is the research.

How the list was made

Two independent researchers (Claude and Codex gpt-6.2-astra) were given the same brief. Each ranked about 20 architectures by research value for on-device training, with sources. 16 entries overlap. The tiers below follow the building blocks both researchers ranked highest:

  1. normalization
  2. graph topology with Add
  3. Conv2d family
  4. small activations, Concat, attention, recurrence

Tier 1: skip connections, all 1D

Issue What
#329 Graph topology: forward, backward with fan-out accumulation, Add merge (FLOAT32 is enough for tier 1)
#331 Residual block (1D first)
#530 Remat for models with skip connections
#529 Causal Conv1d padding (for the TCN)
#531 TC-ResNet8 KWS (first residual model, reuses kws_mfcc)
#532 MatchboxNet KWS (depthwise residual 1D)
#533 Dilated residual TCN (sensors, later EMG)
#534 Research: plain vs residual DS-CNN for deep fine-tuning on NinaPro

Tier 2: 2D (issues to be cut when tier 1 lands)

  • #330: the Conv2d family. Dense, depthwise, 1×1, strides, 2D pooling, global average pool.
  • Normalization policy for fine-tuning:
    • BN 2D;
    • frozen statistics vs re-estimated;
    • fold vs GroupNorm swap;
    • BN for SYM/BFP.
  • ReLU6.
  • Models:
    • ResNet-8 and DS-CNN (MLPerf Tiny; full-training memory published by Nadalini 2023);
    • MobileNetV1-0.25 VWW;
    • the comparison set reviewers will ask for: MCUNet-5FPS, MobileNetV2-0.35, ProxylessNAS-0.3 (full int8 update 2.7-3.7 MB; sparse 135-173 kB in MCUNetV3).

Tier 3

  • Squeeze-excite and hardswish: MobileNetV3-Small / MbedNet.
  • Attention, GELU, reshape: a small time-series transformer (#333), and a compact conv transformer for images.
  • Concat: InceptionTime, DenseNet (#332).
  • Recurrence and backpropagation through time: GRU/LSTM.
  • EEGNet.

Not planned for now

EfficientNet-Lite, SqueezeNet, ShuffleNet, detection heads (SSD/YOLO), PatchTST forecasting. Both reports deferred these as too large or too far from the training literature.

Open decisions

  • Which of the 11 models picked by only one researcher join tier 2/3:
    • CCT, ResNet-20, TinyTL lite-residual, FCN/LITE, InceptionTime, FOMO, PhiNet;
    • a residual ECG CNN;
    • small MiniLearn CNNs.
Dominant language
C
Stars
2
Forks
3
Avg merge
13h 6m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from es-ude/OnDeviceTraining

All issues in es-ude/OnDeviceTraining

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.