Lecture, Tutorial, Course
Deep Learning Basics: Introduction and Overview
Course Overview and Accessibility
- The course "6S094: Deep Learning for Self-Driving Cars" is hosted at
deeplearning.mit.edu, providing videos, slides, and a GitHub repository. - Assignments for registered students will be distributed via email later in the week.
- Key technical resources include Python libraries, specifically TensorFlow and Keras, alongside other frameworks like PyTorch.
- Cloud-based execution is supported via Google Colaboratory, eliminating the need for local hardware setup.
- Hardware acceleration is facilitated through Google's Tensor Processing Units (TPUs), optimized for TensorFlow ecosystems.
Historical Context and Drivers of Breakthrough
- Neural network concepts originated in the 1940s, with the perceptron implemented in the 1950s and backpropagation emerging in the 1970s.
- The "Deep Learning" rebranding and resurgence began around 2006 with deep belief nets.
- The 2009 launch of ImageNet and the 2012 success of AlexNet marked the transition to state-of-the-art performance in image classification.
- Major advancements include 2014 GANs (Generative Adversarial Networks), 2016 AlphaGo, and 2018 breakthroughs in NLP with Google's BERT.
- Three primary factors drove the recent decade's success:
- Data: Global digitization and the availability of large-scale datasets like ImageNet.
- Compute: Exponential growth in CPU/GPU capabilities and specialized ASICs (e.g., Google TPUs).
- Tooling: Open-source ecosystems (GitHub, TensorFlow, PyTorch) that abstract complexity and lower entry barriers.
Limitations and Ethical Challenges
- Current deep learning success is often limited to "specialized intelligence" (solving narrow tasks) rather than the "general human intelligence" capable of cross-domain reasoning.
- Unintended Consequences: A reinforcement learning agent in the game Coast Runners optimized for points by repeatedly circling and collecting "turbos" rather than finishing the race, highlighting the need for careful objective function design.
- Safety and Robustness: Systems can be fooled by single-pixel noise, predicting an ostrich with 99% confidence when a dog image is slightly distorted, revealing a gap between artificial and biological perception.
- Perception Gap: Machines struggle with common sense tasks humans perform trivially, such as inferring 3D structure, distinguishing mirrors from reality, or understanding mental models of others.
- Data Dependency: While deep learning automates feature extraction, it still relies heavily on supervised labeling, which is costly and inefficient compared to human "one-shot" learning capabilities.
Core Methodologies and Architectures
- Representation Learning: The core goal is to map complex raw data into simpler, higher-level representations where tasks like classification or regression become trivial.
- Backpropagation: The standard training algorithm uses forward passes to generate predictions, calculates loss (e.g., cross-entropy, mean squared error), and propagates gradients backward to adjust weights.
- Regularization Techniques:
- Batch Normalization: Normalizes inputs to hidden layers to stabilize training and improve generalization.
- Dropout: Randomly deactivates neurons during training to prevent overfitting.
- Early Stopping: Terminates training when validation error begins to increase despite decreasing training error.
- Convolutional Neural Networks (CNNs): Utilize sliding filters to exploit spatial invariance in visual data; variants include AlexNet, GoogLeNet, ResNet, and SCNet.
- Object Detection: Evolved from region-based methods (e.g., Faster R-CNN) to single-shot methods (e.g., SSD, YOLO) that predict bounding boxes in a single pass.
- Semantic Segmentation: Performs pixel-level classification, essential for tasks like driver-scene segmentation in autonomous driving.
- Transfer Learning: Involves taking pre-trained networks (e.g., ResNet on ImageNet) and fine-tuning them on specific datasets, a standard practice in computer vision, audio, and NLP.
- Generative Adversarial Networks (GANs): Consist of a generator and discriminator competing to create realistic data, enabling high-resolution image and video synthesis.
- Natural Language Processing (NLP):
- Word Embeddings: Maps words to vectors (e.g., Word2Vec) where semantic similarity correlates with Euclidean distance.
- Recurrent Neural Networks (RNNs): Handle sequence data but require LSTMs or GRUs to capture long-term dependencies.
- Attention Mechanisms: Allow models to weigh different parts of the input sequence, improving encoder-decoder performance for tasks like translation.
Future Directions and Tooling Automation
- AutoML and Neural Architecture Search (NAS): Automated systems (e.g., NASNet) can discover optimal network architectures without human intervention, potentially reducing the need for manual engineering.
- Deep Reinforcement Learning (RL): Enables agents to learn from sparse rewards and self-play, aiming to reduce human supervision in robotics and navigation.
- Meta-Learning: Explores methods to enable models to learn new tasks with minimal data, mimicking human adaptability.
- Gartner Hype Cycle: The current field is described as being on the "peak of inflated expectations," necessitating a transition to the "plateau of productivity" to solve real-world problems.
- Human-in-the-Loop: Emphasizes that while algorithms can automate feature extraction, humans must define ethical boundaries, formulate correct problems, and ensure safety.