Time-Delay Neural Network (TDNN)

Motivation

Ensure shift-invariance

  • The model should produce the same output regardless of the position of the considering object
截屏2020-08-19 11.45.55

Overview

  • Multilayer Neural Network: Nonlinear Classifier

  • Consider Context (Receptive Field)

  • Shift-Invariant Learning

    • All Units Learn to Detect Patterns Independent of Location in Time
    • No Pre-segmentation or Pre-alignment Necessary
    • Approach: Weight Sharing
  • Time-Delay Arrangement

    • Networks can represent temporal structure of speech
  • Translation-Invariant Learning

    • Hidden units of the network learn features independent of precise location in time

Structure

截屏2020-08-19 11.50.41
  • Input: spectrum of a speech
    • $x$-axis: time
    • $y$-axis: frequency

How TDNN works?

Input layer $\to$ Hidden layer

截屏2020-08-19 11.53.08 截屏2020-08-19 11.53.12

Hidden layer 1 $\to$ Hidden layer 2

截屏2020-08-19 11.54.03
  • As this input flows by, we have these hidden units generated activations over time as activation patterns.
  • Then we can take a contextual window of activation patterns over time and feed them into neurons in the second hidden layer

Hidden layer $\to$ Output layer

截屏2020-08-19 11.54.37
  • We assemble all the evidence from activations over time and integrate them into one joint output

Shift-Invariance Training

截屏2020-08-19 12.00.24 img

Connections with the same color share the same weight.

Demo

TDNN / Convolutional Nets - Demo

TDNN’s→Convolutional Nets

In Vision the same problem:

  • Local Contexts – Global Integration – Shared Weights
截屏2020-08-19 12.05.36

TDNN is equivalent to 1-dimensional CNN

TDNN Parameters Calculation

Exam WS1819, Task 4.1

截屏2020-08-25 22.02.27
  • Input: matrix of the dimension 16 × 15
    • Chunks of a sequence of 15 frames
    • Each frame is a feature vector of 16 real numbers
  • 3 subsequent frames are connected to a 1 frame in the first hidden layer in a shift-invariant path, i.e. these connection weights of this shift-invariant matrix are shared.
  • A similar approach is used for the second hidden layer
  • No bias for the first and second hidden layer
  • The output layer is a layer that connects each row of outputs from the previous layer, followed by a soft-max that calculates the probabilities of each letter.
  • Possible output: 26 letters (a - z) , <blank>, <space>

Question: Number of parameters?

15
15
1
1
16
16
13
13
1
1
8
8
1
1
9
9
28
28
1
1
3
3
16
16
\tim…
1
1
5
5
\tim…
8
8
Input layer
Input layer
1. Hidden layer
1. Hidden layer
2. Hidden layer
2. Hidden layer
28
28
1
1
9 \times 28 + \under…
(1 \times 5) \times 8 \t…
(\underbrace{1}{\text{filter height}} \tim…
Ouput layer
Ouput layer
A layer of TDNN equals a Conv1D in modern deep learning
A layer of TDNN equals a Conv1D in mo…
\ast
\ast
#Parameters =
#Parameters =
+
+
+
+
Viewer does not support full SVG 1.1

Reference

Next