Epic: model zoo — architectures for on-device training research
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
- Domain
- machine-learning
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
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:
- normalization
- graph topology with Add
- Conv2d family
- 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from es-ude/OnDeviceTraining
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
es-ude/OnDeviceTraining#549 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
es-ude/OnDeviceTraining#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
es-ude/OnDeviceTraining#536 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
es-ude/OnDeviceTraining#478 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
es-ude/OnDeviceTraining#459 ·
Maintainers usually reply within 1 day
All issues in es-ude/OnDeviceTraining
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day