liveBook · Manning

Translation invariance

As explained in Natural Language Processing in Action, Second Edition

Translation invariance is the property of recognizing a pattern despite changes in its position within an input.

Translation invariance means recognizing a pattern even when its position changes within an input. In text, the same word pattern can appear near the beginning, middle, or end of a sentence. section 7.1

A pattern moving through a sentence

A fully connected network may fail to generalize when a phrase moves from the beginning to the end of a sentence. A convolutional neural network can recognize the pattern wherever it occurs. section 7.1

Translation invariance matters because it:

  • Lets convolutional neural networks detect patterns regardless of their location in text. section 7.1
  • Supports natural language processing tasks such as named entity recognition and other word-tagging problems. section 7.1
  • Differs from scale invariance, which concerns how spread out a pattern is. section 7.1

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Defines the property and contrasts it with fully connected networks, without detailing convolution or model training.
Examples
Uses word patterns moving from sentence beginnings to endings and CNN-based named entity recognition as examples.
What you can do after
Apply it via convolutional neural networks to recognize patterns across different text positions.
How it connects
Connects translation invariance with convolutional neural networks, natural language processing, scale invariance, and named entity recognition.

Also explained in

Compare how 5 books explain translation invariance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.