All models

Prototypical keyword spotting

A prototypical network that spots new spoken keywords from a small number of samples.

Audio and speech · 51 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (40 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
51.4K
Operations
51
Framework
PyTorch
Recurrent
No
Published
ICMLT 2022
Cited by
32 (as of 27 October 2026)
Authors
Archit Parnami, Minwoo Lee
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19514
Graph hash
def0402a4c3894d353b4e54226258bf4e9a079e035325c46cee07a7b6607da87
Skeleton hash
e770643b2389afd22c416b16c74bf777e4e31abc26ba8fdfe5dc1488d24aa210
Architecture hash
82160fbb3678fecba7ddd1508185d62bc309aecf4ab08a9776b704e2f4fe8fbf
Diagram SHA-256
980abf3a9ffbe6f52c9dfe3750b7487aed1855c0a2a1a6d707e7dd687bd87ed4
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model applies prototypical networks to few-shot keyword spotting, where new keywords are recognized from just a small number of samples. Keyword spotting, recognizing a particular command or keyword, is widely used in voice interfaces such as Amazon's Alexa and Google Home. Most deep learning approaches of the time trained a network on a large number of samples to identify certain pre-defined keywords, which, the paper points out, keeps a system from recognizing new, user-defined keywords.

The authors formulate the problem as few-shot keyword spotting and approach it with metric learning. Their solution uses temporal and dilated convolutions on prototypical networks. To support the research they also synthesized and published a Few-shot Google Speech Commands dataset.

The official repository trains by the number of classes (ways) and the number of samples per class (shots), and its experiment types range from a simple N-way K-shot setup to ones that include background, silence and unknown keywords. Its results compare the test accuracy of different embedding networks on 4-way few-shot keyword spotting as the number of support examples grows.

Key idea. The paper formulates few-shot keyword spotting as a metric learning problem and solves it with prototypical networks that use temporal and dilated convolutions.

  • few-shot keyword spotting
  • fs-kws
  • prototypical keyword spotting
  • few-shot kws prototypical network
  • keyword spotting
  • kws
  • few-shot learning
  • metric learning
  • user-defined keywords
  • speech commands

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{parnami2020fewshotkeywordspottingprototypical,
      title={Few-Shot Keyword Spotting With Prototypical Networks}, 
      author={Archit Parnami and Minwoo Lee},
      year={2020},
      eprint={2007.14463},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      doi={https://doi.org/10.1145/3529399.3529443},
      url={https://arxiv.org/abs/2007.14463}, 
}