FedSTARACM TECS · 2022

Federated Self-training for Semi-supervised Audio Recognition

Turn unlabeled audio into shared learning

Vasileios Tsouvalas Aaqib Saeed Tanir Ozcelebi

At a glance

Most device audio has no labels. FedSTAR turns selected local predictions into training targets, combining them with known labels before sharing model updates. Optional public-audio pretraining supplies a stronger starting point.

One federated round · Audio
ServerGlobal model
Model weights
Client ALocal audio
Client BClient C
SERVER → CLIENTS

Shared model · Local audio

Shared model
ABC
Known labels2 clips
L1Known · go
L2Known · stop
Unlabeled2 clips
U1Unlabeled
U2Unlabeled
Client A · Equal input batches
Model broadcast → Equal labeled + unlabeled batches
ServerGlobal model
Local prediction
Client ALocal audio
Client BClient C
ON EACH CLIENT

Unlabeled audio → Predictions

Local modelT = 4Probabilities
U1Unlabeled
go94%
stop3%
other3%
Top classgo
U2Unlabeled
go14%
stop68%
other18%
Top classstop
Softer confidence · Same top class
Local model → Temperature 4 → Top class + confidence
ServerGlobal model
Global-round gate
Client ALocal audio
Client BClient C
GLOBAL ROUNDS → LOCAL GATE

Later rounds · Stricter gate

Global roundsCosine threshold
Early50%Current gate70%Late90%
THIS ROUND70%Minimum confidence
U1go94%
U2stop68%
Global-round cosine schedule · 50% → 90%
ServerGlobal model
Local filtering
Client ALocal audio
Client BClient C
ON EACH CLIENT

Pass → Learn · Defer → Wait

Confidence gate> 70%
U1Unlabeled
94%Predicted · go
Pass
Pseudo-label goUse in this update
U2Unlabeled
68%Predicted · stop
Defer
Still unlabeledSkip this update
U1 → Pseudo-label go · U2 → Still unlabeled
ServerGlobal model
Local update
Client ALocal audio
Client BClient C
ON EACH CLIENT

Two losses · One update

Known targets
L1Known · go
L2Known · stop
Supervised loss
Accepted target
U1Pseudo-label · go
0.5 × Pseudo-label loss
+
One joint updateSame local model
U2 · Still unlabeled · No pseudo-label loss
Known-label loss + 0.5 × Pseudo-label loss → Local model
ServerGlobal model
Weights ↑ · Model ↓
Client ALocal audio
Client BClient C
CLIENTS → SERVER → CLIENTS

Local models → Shared model

Client A
Client B
Client C
FedAvgData-weighted average
Next global model
Next roundSelected clients
Model parameters ↑ · Global model ↓
Model upload → Data-weighted FedAvg → Broadcast
Method diagram

Swipe across the diagram

What this adds

  • 01

    Local self-training brings unlabeled audio into the same update as labeled examples.

  • 02

    Temperature and confidence filtering limit which predicted targets influence learning.

  • 03

    Optional contrastive initialization improves early convergence; three audio tasks test label scarcity and client variation.

Abstract

Federated Learning is a distributed machine learning paradigm dealing with decentralized and personal datasets. Since data reside on devices such as smartphones and virtual assistants, labeling is entrusted to the clients or labels are extracted in an automated way. Specifically, in the case of audio data, acquiring semantic annotations can be prohibitively expensive and time-consuming. As a result, an abundance of audio data remains unlabeled and unexploited on users’ devices. Most existing federated learning approaches focus on supervised learning without harnessing the unlabeled data. In this work, we study the problem of semi-supervised learning of audio models via self-training in conjunction with federated learning. We propose FedSTAR to exploit large-scale on-device unlabeled data to improve the generalization of audio recognition models. We further demonstrate that self-supervised pre-trained models can accelerate the training of on-device models, significantly improving convergence within fewer training rounds. We conduct experiments on diverse public audio classification datasets and investigate the performance of our models under varying percentages of labeled and unlabeled data. Notably, we show that with as little as 3% labeled data available, FedSTAR on average can improve the recognition rate by 13.28% compared to the fully supervised federated model.

Read more ↗
How it works

FedSTAR

01

Joint local objective

The client learns from known labels and retained pseudo-labels in one update. β = 0.5 weights the unlabeled term in the reported experiments.

ℒk=ℒs+βℒu

ACM TECS §4.1–4.3, Eqs. 3 and 7. Both losses are computed before backpropagation.

02

Confidence-filtered pseudo-labels

Apply softmax to temperature-scaled logits, take the most likely class and retain predictions above τ. Temperature is 4; the cosine threshold increases from 0.5 to 0.9.

y^=argmaxcezc/T∑jezj/T

Eq. 5 and Table 2. Confidence filtering reduces exposure to uncertain targets; it does not guarantee correct labels.

03

Ordinary federated aggregation

A sampled set of clients trains locally and returns model parameters. FedAvg forms a data-weighted average; the self-training change is inside the client update.

Algorithm 1, PDF p. 12. Experiments simulate clients with the Flower framework.

04

Optional public-data initialization

Contrastive pretraining on FSD-50K supplies initial encoder weights. The projection layer is discarded before downstream learning.

§4.4 and Figure 6. Better performance after 10 rounds is distinct from final accuracy after 100 rounds.

Method details in the paper ↗

Original paper figures & sources
Federated server coordinates several clients, each combining labeled audio and confidence-filtered pseudo-labels from unlabeled audio in local self-training.Enlarge
Each device learns from the labels it has and the confident predictions it can make. The server combines local model updates into a shared audio recognition model. Figure 1 · ACM TECS article, p. 74:3
Evaluation

Results

Learning with 3% labels

15 clients · 100 rounds · accuracy (%)

Test accuracy (%) ↑ Higher is better

Supervised FLFedSTAR
Ambient Context
Supervised FL: 33.03 ± 0.002
FedSTAR: 49.54 ± 0.005
Speech Commands
Supervised FL: 62.98 ± 0.003
FedSTAR: 86.82 ± 0.006
VoxForge
Supervised FL: 54.26 ± 0.002
FedSTAR: 55.82 ± 0.011

With 3% labels, +23.84 accuracy points on Speech Commands; smaller gains on the other tasks.

Paper ↗

Does pretraining always help?

Speech Commands · 50% unlabeled pool · 100 rounds

Pretraining after 100 rounds. Speech Commands; 15 clients, 50% of the remaining unlabeled pool used; label budget varies by row. 100 rounds, one local epoch, 80% participation. Mean test accuracy (%) over three runs; higher is better.
LabelsRandom (%)Pretrained (%)
3%85.40 ± 0.00885.17 ± 0.001
5%88.52 ± 0.00588.28 ± 0.002
20%92.24 ± 0.01293.67 ± 0.005
50%92.26 ± 0.00593.83 ± 0.003

Pretraining improves the endpoint at 20% and 50% labels, but not at 3% or 5%.

Paper ↗
Reference

Cite this work

BibTeX
@article{tsouvalas2022fedstar,
  author = {Tsouvalas, Vasileios and Saeed, Aaqib and Ozcelebi, Tanir},
  title = {Federated Self-training for Semi-supervised Audio Recognition},
  journal = {ACM Transactions on Embedded Computing Systems},
  year = {2022},
  volume = {21},
  number = {6},
  articleno = {74},
  numpages = {26},
  doi = {10.1145/3520128},
  url = {https://doi.org/10.1145/3520128}
}

Keep exploring

FedSER

Learn speech emotions from audio kept on each device

FedCode

Exchange codebooks to make federated communication smaller

Figure preview

Open full-size image