Home Lex Fridman Notes
Lex Fridman · 2016-09-27 · 1h 29m

Deep Learning for Natural Language Processing (Richard Socher, Salesforce)

Richard Socher explains deep learning for NLP: word vectors, recurrent networks, and dynamic memory networks for general question answering.

Deep Learning for Natural Language Processing (Richard Socher, Salesforce)
The guest

Richard Socher — Deep learning and NLP researcher, then Chief Scientist at Salesforce, formerly a Stanford PhD; creator of the GloVe word vectors and dynamic memory network work.

The gist

Richard Socher delivers a lecture on deep learning for natural language processing, structured from basics to cutting-edge research. He covers the two core building blocks: word vectors (word2vec and GloVe, which capture co-occurrence statistics) and recurrent neural networks including GRUs for sequence modeling. He then introduces dynamic memory networks (DMNs), an architecture that reframes many NLP tasks as question answering and uses an episodic memory module with attention to reason over inputs across multiple passes. He shows the same architecture achieving state-of-the-art on logical reasoning, sentiment analysis, part-of-speech tagging, and even visual question answering by swapping the input module to CNN image features.

Big reveals

  • Socher points listeners to his Stanford course CS224d for the full details on optimizing word2vec rather than covering it all in the talk.
  • He previews an unpublished 'pointer sentinel mixture model' to be released the following week, letting language models predict words never seen at training time.
  • The pointer sentinel model pushes language-model perplexity down to 70, a 10+ point improvement in roughly two years driven by deep learning.
  • Socher proposes reducing nearly all NLP tasks to question answering, motivating the dynamic memory network architecture.
  • The dynamic memory network achieves state of the art on Facebook's bAbI logical-reasoning dataset, sometimes 100% accuracy.
  • A computer-vision researcher (Zhiming) adapted the DMN to visual question answering just by changing the input module to CNN region features, achieving state of the art.
  • Live demo: the visual QA model correctly answers a journalist's improvised question and a string of Socher's own unscripted questions about an image.

Things worth remembering

  • The four-word sentence 'I made her duck' has at least four distinct meanings, illustrating language ambiguity.
  • Word analogies fall out of simple vector arithmetic: vector(woman) - vector(man) + vector(king) yields a vector whose nearest word is 'queen'.
  • GloVe vectors were trained on Common Crawl, a dataset covering most of the internet with many billions of tokens.
  • Language modeling is described as nearly 'AI complete' since perfect next-word prediction would disambiguate almost everything.
  • The DMN's episodic memory parallels human episodic memory and the hippocampus's role in transitive inference (connecting A to B to C).
  • More passes over the input help reasoning and counting tasks, but for sentiment analysis accuracy hurts after more than two passes.
  • Visual QA models can exploit language priors: a model is right ~95% of the time answering 'yellow' for banana color without seeing the image.
  • The QA systems are not robust to false-premise questions because they were never trained with adversarial examples, raising security concerns.