Skip to main content
QUICK REVIEW

[Paper Review] Few-shot learning with attention-based sequence-to-sequence models

Bertrand Higy, Peter Bell|arXiv (Cornell University)|Nov 8, 2018
Domain Adaptation and Few-Shot LearningComputer Science20 references7 citations
TL;DR

This paper proposes using an attention-based sequence-to-sequence model for few-shot keyword recognition in low-resource, small-vocabulary settings. It achieves 68.8% accuracy with only 10 few-shot examples per class using a fast adaptation strategy, outperforming retraining and demonstrating strong potential for accessible, end-to-end speech command systems.

ABSTRACT

End-to-end approaches have recently become popular as a means of simplifying the training and deployment of speech recognition systems. However, they often require large amounts of data to perform well on large vocabulary tasks. With the aim of making end-to-end approaches usable by a broader range of researchers, we explore the potential to use end-to-end methods in small vocabulary contexts where smaller datasets may be used. A significant drawback of small-vocabulary systems is the difficulty of expanding the vocabulary beyond the original training samples -- therefore we also study strategies to extend the vocabulary with only few examples per new class (few-shot learning). Our results show that an attention-based encoder-decoder can be competitive against a strong baseline on a small vocabulary keyword classification task, reaching 97.5% of accuracy on Tensorflow's Speech Commands dataset. It also shows promising results on the few-shot learning problem where a simple strategy achieved 68.8\% of accuracy on new keywords with only 10 examples for each new class. This score goes up to 88.4\% with a larger set of 100 examples.

Motivation & Objective

  • To evaluate end-to-end attention-based sequence-to-sequence models for small-vocabulary keyword recognition tasks.
  • To address the limitation of fixed vocabulary in small-data systems by enabling few-shot learning for new keywords.
  • To compare retraining and fine-tuning strategies for adapting models to new classes with minimal data.
  • To assess the performance of end-to-end models in low-resource settings where traditional systems may underperform.
  • To explore the feasibility of using sequence-to-sequence models with arbitrary-length inputs in keyword spotting without time-warping or HMMs.

Proposed method

  • Employ an encoder-decoder architecture with additive attention for end-to-end speech recognition, using raw audio as input and phoneme or grapheme sequences as output.
  • Train the model using cross-entropy loss on fixed-length audio clips from the Tensorflow Speech Commands dataset.
  • Implement two few-shot learning strategies: (1) retraining from scratch with augmented new keyword examples, and (2) fine-tuning the pre-trained model on new classes with a reduced initial learning rate.
  • Apply data augmentation via oversampling new keywords up to 3000 examples to balance class frequency during training.
  • Use a hybrid CTC/attention mechanism to stabilize training and improve alignment between input and output sequences.
  • Evaluate performance using classification error on original, unknown, and new keywords, with results averaged over 10 random runs to reduce variance.

Experimental results

Research questions

  • RQ1Can an end-to-end attention-based sequence-to-sequence model achieve competitive performance on a small-vocabulary keyword recognition task compared to a strong DNN-HMM baseline?
  • RQ2How effective is a simple retraining strategy for few-shot keyword learning when only 10 or 100 examples per new class are available?
  • RQ3Does a fast fine-tuning (adaptation) strategy outperform retraining in terms of accuracy and training efficiency for few-shot keyword recognition?
  • RQ4How does the performance on original keywords degrade as the model is adapted to new classes using fine-tuning?
  • RQ5What is the impact of using phoneme vs. grapheme outputs on few-shot learning performance with limited data?

Key findings

  • The attention-based sequence-to-sequence model achieved 97.5% accuracy on the original Speech Commands dataset, outperforming a strong DNN-HMM baseline.
  • The retraining strategy reached 40.5% accuracy with 10 few-shot examples per class and 81.5% with 100 examples, demonstrating feasibility in low-data regimes.
  • The fine-tuning (adapt) strategy achieved 68.8% accuracy with 10 examples and 88.4% with 100 examples, significantly outperforming retraining while being much faster to train.
  • Performance on original keywords degraded with increasing learning rate during adaptation, with a sharp drop in accuracy when overfitting occurred.
  • The use of phoneme or grapheme replacement rules in the adaptation strategy did not degrade performance on new keywords, indicating robustness to output representation choice.
  • The hybrid CTC/attention mechanism showed different training dynamics in small-vocabulary tasks compared to large-vocabulary ASR, suggesting unique behavior in low-resource settings.

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.