model: MatchboxNet keyword spotting (depthwise residual 1D)

Open
#532 1 comment 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
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
c, pytorch

Research direction

Start with the graph and Add merge work in #329 and the residual block in #331, then trace the existing grouped Conv1d support. Build the MatchboxNet 3×1×64 example with its PyTorch twin on the kws_mfcc data path using 64 MFCC bins. Done means comparing loss trajectories over at least 10 seeds and reporting test accuracy and the ODT_MEM_PROFILE breakdown.

Written by the indexing model from the issue text.

Description

enhancement

Model

MatchboxNet 3×1×64 (or 3×2×64), Majumdar & Ginsburg, Interspeech 2020. 64 MFCC features × time, about 77k parameters (3×1×64).

Layers: 1D time-channel separable conv (depthwise Conv1d with groups = C, then pointwise Conv1d), BatchNorm1d, ReLU, Dropout, a residual Add with a 1×1 Conv1d+BN projection per block, and a final pointwise conv plus global average pool.

Why

This is the second pure-1D residual model. It adds depthwise + pointwise blocks with residuals: the 1D form of the MobileNet-style blocks in tier 2. ODT's grouped Conv1d already covers the depthwise part. Estimated training memory at batch 1 is about 1.5–2 MB, about 4–5× the Pico 2 heap. That makes it the larger tier-1 target for remat and partial-update research.

Depends on

  • #329 (graph + Add merge, FLOAT32)
  • #331 (residual block)

Acceptance

  • An example with a PyTorch twin on the kws_mfcc data path (64 MFCC bins). Loss trajectory comparison over ≥10 seeds.
  • Report test accuracy and the ODT_MEM_PROFILE breakdown.
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.