YoVDO

Neural Nets for NLP 2020 - Efficiency Tricks for Neural Nets

Offered By: Graham Neubig via YouTube

Tags

Neural Networks Courses Natural Language Processing (NLP) Courses

Course Description

Overview

Explore efficiency tricks for neural networks in natural language processing through this lecture from CMU's Neural Networks for NLP course. Delve into tips for training on GPUs, parallel training techniques, and softmax approximations including negative sampling and hierarchical softmax. Learn about the practical aspects of matrix-matrix multiplication, memory considerations, and three types of parallelism: within-operation, operation-wise, and example-wise. Discover how to implement data parallelism using modern libraries like PyTorch DistributedDataParallel. Examine methods for computation across large vocabularies, including noise contrastive estimation, mini-batch based negative sampling, class-based softmax, and binary code prediction. Gain insights into the glamorous life of an AI scientist and explore improvements to binary code prediction techniques.

Syllabus

Glamorous Life of an Al Scientist
A Simple Example • How long does a matrix-matrix multiply take?
Practically
What About Memory?
Three Types of Parallelism
Within-operation Parallelism
Operation-wise Parallelism
Example-wise Parallelism
Implementing Data Parallelism • Many modern libraries make data parallelism relatively easy, eg PyTorch DistributedDataParallel
Computation Across Large Vocabularies
Noise Contrastive Estimation (Mnih & Teh 2012)
Mini-batch Based Negative Sampling
Class-based Softmax (Goodman 2001) • Assign each word to a class • Predict class first, then word given class
Binary Code Prediction (Dietterich and Bakiri 1995, Oda et al. 2017)
Two Improvement to Binary Code Prediction


Taught by

Graham Neubig

Related Courses

Natural Language Processing
Columbia University via Coursera
Natural Language Processing
Stanford University via Coursera
Introduction to Natural Language Processing
University of Michigan via Coursera
moocTLH: Nuevos retos en las tecnologías del lenguaje humano
Universidad de Alicante via Miríadax
Natural Language Processing
Indian Institute of Technology, Kharagpur via Swayam