Skip to main content
QUICK REVIEW

[Paper Review] ImKWS: Test-Time Adaptation for Keyword Spotting with Class Imbalance

Hanyu Ding, Yang Xiao|arXiv (Cornell University)|Mar 6, 2026
Speech Recognition and SynthesisComputer Science0 citations
TL;DR

ImKWS introduces decoupled entropy minimization and multi-view consistency for test-time adaptation in keyword spotting under severe class imbalance, improving macro F1 while maintaining keyword sensitivity.

ABSTRACT

Keyword spotting (KWS) identifies words for voice assistants, but environmental noise frequently reduces accuracy. Standard adaptation fixes this issue and strictly requires original or labeled audio. Test time adaptation (TTA) solves this data constraint using only unlabeled test audio. However, current methods fail to handle the severe imbalance between rare keywords and frequent background sounds. Consequently, standard entropy minimization (EM) becomes overconfident and heavily biased toward the frequent background class. To overcome this problem, we propose a TTA method named ImKWS. Our approach splits the entropy process into a reward branch and a penalty branch with separate update strengths. Furthermore, we enforce consistency across multiple audio transformations to ensure stable model updates. Experiments on the Google Speech Commands dataset indicate ImKWS achieves reliable adaptation in realistic imbalanced scenarios. The code is available on GitHub.

Motivation & Objective

  • Motivate robust keyword spotting (KWS) under environmental noise and distribution shifts without access to labeled target data or source data.
  • Address severe keyword vs. background class imbalance during test-time adaptation.
  • Develop a method that preserves minority keyword detection while avoiding background overconfidence.
  • Evaluate the approach on standard KWS benchmarks with realistic noise and imbalance scenarios.

Proposed method

  • Decoupled Entropy Minimization (DEM): split entropy into a reward term with a temperature-controlled distribution and a penalty term with a tunable scaling to throttle majority-class updates.
  • Penalty term Q_alpha(z) uses a scaled log-sum-exp to reduce overconfidence toward the background class.
  • Gradient analysis shows how alpha < 1.0 reduces aggressive suppression of non-target logits.
  • Multi-view Consistency Loss enforces predictions to be consistent across augmented audio views via Symmetric Cross-Entropy.
  • Two-stage sample selection filters samples before loss updates using DEM and pseudo-label consistency (PKC) thresholds.
  • Overall objective combines DEM loss with a weighted consistency loss for selected samples, plus a sample-dependent weight w(x).
  • Implementation uses a lightweight BC-ResNet-3 KWS backbone with MFCC features and standard audio augmentations like time/frequency masking during TTA.
Figure 1: Overview of the Proposed ImKWS Method, including Two-stage Sample Selection, Decoupled Entropy Minimization and Multi-view Consistency Loss.
Figure 1: Overview of the Proposed ImKWS Method, including Two-stage Sample Selection, Decoupled Entropy Minimization and Multi-view Consistency Loss.

Experimental results

Research questions

  • RQ1Can test-time adaptation (TTA) for KWS be robust to extreme keyword-background imbalance without source data access?
  • RQ2Does decoupling entropy minimization into reward and penalty branches reduce background overconfidence while preserving keyword sensitivity?
  • RQ3Does enforcing multi-view consistency stabilize gradient updates and improve performance under noisy, imbalanced conditions?
  • RQ4How does ImKWS perform compared with existing TTA baselines across varying SNRs and imbalance ratios?

Key findings

  • ImKWS consistently improves macro F1 over strong baselines under imbalanced, noisy conditions, especially at -10 dB SNR.
  • The decoupled penalty prevents excessive suppression of non-target logits, mitigating majority-class collapse.
  • Multi-view consistency stabilizes gradient norms and enhances adaptation robustness in streaming, low-SNR settings.
  • Under imbalance ratios from 1:4 to 1:8, ImKWS maintains or improves Macro F1 and Micro F1 compared with AdaKWS and other baselines.
  • Ablation shows removing DEM or consistency degrades performance, confirming both components are essential.
  • Results indicate ImKWS achieves stable TTA that scales with imbalance severity.
Figure 2: Keyword F1 and Non-keyword F1 on MS-SNSD nvironmental noise at -10 dB.
Figure 2: Keyword F1 and Non-keyword F1 on MS-SNSD nvironmental noise at -10 dB.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.