research: does a skip connection make deep fine-tuning pay off? (NinaPro, plain vs residual DS-CNN)

Open
#534 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
Mostly clear
Activity status
Active
Tech stack
python, pytorch

Research direction

Start by reading the earlier NinaPro runs and the existing DS-CNN training and evaluation entry points; the issue does not name specific files or tests. Implement and compare plain and residual models across the fine-tuning and normalization arms using the stated 8 people, 10 seeds, and balanced accuracy protocol. Done means reporting whether residual full fine-tuning exceeds last-2 fine-tuning by about 1 percentage point and what the normalization comparisons show.

Written by the indexing model from the issue text.

Description

research

Question

Does a skip connection make deep fine-tuning pay off? On the NinaPro DB2 personalization task, the plain DS-CNN gains only +0.59 pp from training deeper than the last 2 layers (deepest suffix that fits vs last-2, 8 people × 10 seeds). That is below a useful margin. One explanation is the architecture: a plain chain with BN folded passes little useful gradient to the early layers. Other explanations: too little adaptation data (10 windows per class per person), or the missing normalization during adaptation.

Hypothesis

A residual version of the same DS-CNN, with the same parameter count and pretraining split, gains clearly more from deep fine-tuning than the plain one.

Test (PyTorch, host only, no C)

  • Arms: plain vs residual model, each with no fine-tuning, last-2, deepest suffix that fits, and full fine-tuning.
  • Normalization arm: BN folded (today) vs BN kept with frozen statistics vs statistics re-estimated per person. This separates gradient flow from normalization.
  • Same protocol as the earlier NinaPro runs: 8 development people, 10 seeds, the same pretraining people, balanced accuracy.

Kill

If full fine-tuning minus last-2 stays under ~1 pp for the residual model too, the architecture is not the bottleneck on this task. Then too little adaptation data is the likely limit, and the residual work goes ahead for model coverage, not for this result.

Why now

It decides whether the dynamic-depth work (P6) gets a better testbed from the model-zoo epic, and which normalization policy the tier-2 models need.

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.