The Tempo 2 Algorithm: Adjusting Time-Delays By Supervised Learning

Ulrich Bodenhausen, Alex WaibelNeurIPS 1990

In the early days of neural networks for speech recognition, researchers faced a tedious bottleneck: architecture design. While networks could efficiently learn weights (the strength of connections), human engineers still had to manually decide the delays (how far back in time a neuron should look) and the window sizes (how much temporal context to grab).

In their classic paper, Ulrich Bodenhausen and Alex Waibel introduced Tempo 2, an algorithm that turns these structural decisions into learnable parameters. By making time-delays differentiable, they allowed neural networks to essentially "tune their own ears" to the rhythms of speech.

The Problem with Fixed Temporal Context

Processing sequences like speech or music requires "temporal context"—understanding that a sound at time t is heavily influenced by what happened at t-1 or t-5. Traditional Time-Delay Neural Networks (TDNNs) handled this by hard-coding specific delays.

However, determining the "right" delays was a matter of trial and error. If a window was too narrow, the network missed important context; if it was too wide, it lost temporal resolution. Furthermore, real-world signals have "jitter"—features don't always appear at the exact same millisecond. The authors sought a way to let the network discover the optimal temporal architecture automatically, reducing human labor and increasing robustness to timing variations.

The Tempo 2 Approach: Differentiable Windows

The core innovation of Tempo 2 is the shift from "hat-shaped" (binary) input windows to Gaussian input windows.

Gaussian input windows with delays and weights feeding into a hidden unit.

Instead of a connection simply looking at a single discrete point in the past, it uses a Gaussian function centered at a delay ($d$) with a specific width ($\sigma$). Because a Gaussian is a smooth, continuous function, the authors could derive learning rules for $d$ and $\sigma$ using the same backpropagation math used for standard network weights.

This continuous formulation enables three key adaptive mechanisms:

  1. Adaptive Delays: If the error signal suggests an important feature happened slightly earlier than expected, the learning rule shifts the center of the Gaussian window (the delay) to the left or right.
  2. Adaptive Widths: The network can expand the window to become more robust to temporal misalignment or shrink it to increase precision.
Adjusting delays and window widths based on derivatives.
  1. Connection Splitting: The algorithm starts with a minimal architecture. If a specific connection's delay starts "jittering" (moving back and forth during training), the algorithm interprets this as a need for two different delays. It then "splits" the connection into two independent ones, allowing the network to grow its complexity dynamically.

Experimental Results

The authors evaluated Tempo 2 on two primary tasks: an initial proof-of-concept rhythm classification task, and a more rigorous phoneme classification test involving the voiced stop consonants /b/, /d/, and /g/ (using 783 training tokens and 759 testing tokens from a single speaker).

The results demonstrated that automating the architecture didn't come at the cost of accuracy:

  • Performance Parity: Tempo 2 achieved 98.0% accuracy on the phoneme test set. This was comparable to the original TDNN, which was the state-of-the-art at the time but required extensive manual optimization.
  • Improved Generalization: When both delays and widths were adaptive, the gap between training and testing performance narrowed, suggesting that learning the temporal structure helps the model generalize better to unseen data.
  • Structural Importance: In a fascinating ablation study, a network with trained delays and widths—but random weights—could still classify 70% of phonemes correctly. This proved that the learned temporal structure itself carries significant discriminative information.

Key Insights and Future Work

Tempo 2 highlighted an inherent trade-off in temporal processing: a wide window is "blurry" but handles timing variations well, while a narrow window is "sharp" but fragile. By using gradient descent, Tempo 2 finds the mathematical "sweet spot" for this trade-off automatically. The authors also noted the neuro-physiological plausibility of this approach; in biological brains, axons have varying lengths and conduction speeds, creating a natural variety of time-delays that Tempo 2 mimics mathematically.

While the study was limited to a single speaker and a small subset of phonemes, it laid important groundwork. The authors suggested that future applications of these adaptive networks could tackle higher-level tasks like learning prosody (the rhythm and intonation of fluent speech), where optimal time windows are even harder for human engineers to guess.

Summary updated

BibTeX
@inproceedings{bodenhausen1990tempo,
  author = {Ulrich Bodenhausen and Alex Waibel},
  title = {{The Tempo 2 Algorithm: Adjusting Time-Delays By Supervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1990},
}
Figure