NCA AI & Deep Learning Frameworks 4 — Questions and Answers
Question 1: What problem does gradient clipping solve during training of deep neural networks, particularly RNNs?
- Vanishing gradients caused by deep networks
- Exploding gradients that cause parameter updates to become excessively large (Correct answer)
- Overfitting due to large weight magnitudes
- Slow convergence caused by sparse gradients
Correct answer: Exploding gradients that cause parameter updates to become excessively large
Gradient clipping caps the norm or value of gradients before the optimizer step, preventing exploding gradients from destabilizing training.
Question 2: Which NVIDIA GPU architecture first introduced Tensor Cores for accelerating matrix multiply-accumulate operations?
- Pascal
- Maxwell
- Volta (Correct answer)
- Turing
Correct answer: Volta
NVIDIA Volta (V100) introduced the first generation of Tensor Cores, providing hardware acceleration for mixed-precision matrix operations used in deep learning.
Question 3: In ONNX (Open Neural Network Exchange), what is the primary purpose of the format?
- Providing a GPU-optimized runtime for model inference
- Enabling model interoperability across different deep learning frameworks (Correct answer)
- Defining a standard training loop for neural networks
- Specifying a compression standard for model weights
Correct answer: Enabling model interoperability across different deep learning frameworks
ONNX defines a common format for representing neural network models, allowing models trained in one framework to be deployed in another.
Question 4: What is 'knowledge distillation' in the context of deep learning model compression?
- Pruning redundant neurons from a large network to reduce size
- Training a smaller 'student' model to mimic the outputs of a larger 'teacher' model (Correct answer)
- Quantizing weight precision from FP32 to INT8
- Applying L1/L2 regularization to reduce weight magnitudes
Correct answer: Training a smaller 'student' model to mimic the outputs of a larger 'teacher' model
Knowledge distillation transfers knowledge from a large teacher model to a compact student model by training the student on the teacher's soft output probabilities.
Question 5: Which parallelism strategy in distributed training splits individual layers across multiple GPUs, with each GPU holding a subset of each layer's parameters?
- Data parallelism
- Pipeline parallelism
- Tensor parallelism (Correct answer)
- Expert parallelism
Correct answer: Tensor parallelism
Tensor parallelism (intra-layer model parallelism) partitions weight matrices across GPUs, with each GPU computing a portion of each layer's operation.
Question 6: What is the function of a learning rate scheduler in neural network training?
- Automatically selecting the optimizer algorithm based on loss behavior
- Adjusting the learning rate during training according to a predefined or adaptive schedule (Correct answer)
- Balancing learning rates across different layers with different gradient magnitudes
- Clipping learning rate updates to prevent parameter explosion
Correct answer: Adjusting the learning rate during training according to a predefined or adaptive schedule
A learning rate scheduler modifies the learning rate over training (e.g., cosine annealing, step decay) to improve convergence and final model performance.
Question 7: In the context of NVIDIA's deep learning ecosystem, what does the DALI library specifically accelerate?
- Distributed gradient synchronization across nodes
- GPU-accelerated data loading and augmentation pipelines (Correct answer)
- Dynamic batching for inference servers
- Automatic neural architecture search
Correct answer: GPU-accelerated data loading and augmentation pipelines
DALI (Data Loading Library) moves data preprocessing and augmentation operations to the GPU, eliminating CPU bottlenecks in training pipelines.
What problem does gradient clipping solve during training of deep neural networks, particularly RNNs?