NVIDIA NCA-GENM - NVIDIA Generative AI Multimodal
What is a common method to reduce the computational cost of deep learning models during inference?
Pruning weights or neurons.
Adding more convolutional filters.
By replacing activation functions in some neurons with simpler ones.
Increasing the batch size.
The Answer Is:
AExplanation:
Pruning removes weights, neurons, or entire filters/channels that contribute minimally to model output — identified via magnitude-based criteria (removing near-zero weights), sensitivity analysis, or more sophisticated importance scoring — producing a smaller, sparser model that requires fewer computations and less memory at inference time while aiming to preserve accuracy through careful selection and, often, a fine-tuning step after pruning to recover any lost performance. Structured pruning (removing entire filters/channels) yields hardware-friendly speedups on standard accelerators, while unstructured pruning (removing individual weights) achieves higher sparsity ratios but requires specialized sparse-computation hardware or libraries to realize actual speed gains.
The remaining options move in the wrong direction or address a different concern: adding more convolutional filters (B) increases model capacity and parameter count, which increases computational cost, the opposite of the stated goal. Increasing batch size (D) affects training throughput and memory usage per step but does not reduce the per-sample computational cost of inference — a larger batch does more total work, not less per inference call, and batch size at inference is often constrained by latency requirements rather than optimization goals. Option C's premise — selectively replacing activation functions with simpler ones in "some neurons" — is not a standard or well-defined optimization technique; activation function choice is typically uniform within a layer and driven by training dynamics, not a piecemeal inference-cost lever.
How does CLIP understand the content of both text and images?
By converting text and images into a frequency domain for comparison.
Using contrastive learning to match images with text descriptions.
By translating images into text and comparing them with the prompt.
Through a database of predefined images with their descriptions.
The Answer Is:
BExplanation:
CLIP (Contrastive Language-Image Pretraining) trains a vision encoder and a text encoder jointly on large-scale image-caption pairs using a contrastive objective. For each batch, the model computes cosine similarity between every image embedding and every text embedding, then optimizes so that the similarity between correctly paired image-text embeddings is maximized while similarity between all mismatched pairs in the batch is minimized (an InfoNCE-style loss). The result is a shared embedding space where semantically related images and text land close together, regardless of modality.
This is why CLIP generalizes to zero-shot classification: given a new image and a set of candidate text labels (e.g., "a photo of a dog," "a photo of a cat"), the model simply picks the label whose embedding is closest to the image embedding — no task-specific fine-tuning required. This same mechanism underlies CLIP's role as the text-image alignment backbone in generative pipelines like Stable Diffusion's guidance mechanism.
Options A and C describe mechanisms CLIP does not use — there is no frequency-domain transform or image-to-text translation step — and D describes a static lookup system, which would not generalize beyond its predefined database. Contrastive learning's dual-encoder, shared-embedding-space design is the defining architectural feature to remember.
What are some methods to overcome limited throughput between CPU and GPU?
Increase the clock speed of the CPU.
Increase the number of CPU cores.
Using techniques like memory pooling.
Upgrade the GPU to a higher-end model.
The Answer Is:
CExplanation:
CPU-GPU data transfer over the PCIe (or NVLink) bus is frequently a throughput bottleneck in ML pipelines, particularly when small, frequent transfers dominate rather than large batched ones — each transfer incurs fixed overhead independent of data size, so many small transfers waste a disproportionate amount of time on overhead rather than useful data movement. Memory pooling techniques — pre-allocating and reusing pinned (page-locked) host memory buffers rather than repeatedly allocating and freeing memory for each transfer — reduce this overhead and enable faster, more predictable DMA transfers between host and device. Related software-level techniques include using CUDA streams to overlap data transfer with computation (so the GPU keeps computing while the next batch transfers in the background), and batching transfers to amortize fixed per-transfer overhead across more data.
Options A, B, and D each propose hardware upgrades that address a different bottleneck than the one described: increasing CPU clock speed (A) or core count (B) improves CPU-side compute throughput, not the data-transfer bandwidth or latency between CPU and GPU specifically. Upgrading the GPU (D) increases GPU compute capability but does nothing to address a PCIe/interconnect bandwidth limitation — a faster GPU sitting idle waiting for data across the same bottlenecked bus would not see meaningfully improved end-to-end throughput. The question specifically asks about *throughput between* CPU and GPU, which points to interconnect/transfer-management optimization rather than raw compute upgrades on either side.
In large-language models, what is the purpose of the attention mechanism?
To measure the importance of the words in the output sequence.
To assign weights to each word in the input sequence.
To determine the order in which words are generated.
To capture the order of the words in the input sequence.
The Answer Is:
BExplanation:
The attention mechanism computes a set of weights over the tokens in the input (or context) sequence for each step of processing, reflecting how relevant each input token is to the computation currently being performed — for instance, how relevant each word in a source sentence is to correctly translating a given target word, or how relevant each prior token is to predicting the next one in an autoregressive model. Mechanically, this is computed via query, key, and value projections: a query (representing the current focus) is compared against keys (representing each input token) to produce attention scores, which are normalized (typically via softmax) into weights and used to compute a weighted sum over the corresponding values — allowing the model to dynamically focus more on relevant tokens and less on irrelevant ones, rather than treating all input tokens with equal importance.
Option D describes positional encoding's role (covered directly in an earlier question in this set) — capturing token order — which is a distinct mechanism from attention; attention operates on token *content and relevance*, while positional encoding separately supplies *order* information as an input feature, since self-attention itself is permutation-invariant without it. Option A misdirects the weighting toward the output sequence specifically, when attention weights are computed primarily over the input/context tokens being attended to. Option C describes the decoding/generation procedure (autoregressive sampling), not attention's mechanism.
You are conducting an experiment to evaluate the performance of different AI models. What is the purpose of AI model evaluation?
To determine the best AI model architecture.
To determine the ethical implications of AI model usage.
To study the impact of AI models on human behavior.
To analyze the cost-effectiveness of AI model development.
The Answer Is:
AExplanation:
In the context described — comparing the performance of different AI models against each other — the purpose of evaluation is to systematically measure each candidate model's performance on relevant metrics (accuracy, F1, WER, BLEU, latency, or task-specific measures) using held-out data, in order to determine which architecture, configuration, or training approach performs best for the target task. This is the immediate, operational purpose of the evaluation experiment being described: comparative performance measurement that informs model-selection decisions.
The other options describe legitimate but distinct concerns that belong to different domains within a full AI development lifecycle rather than to the "evaluate performance of different models" activity specifically described in the question: ethical implications (B) fall under Trustworthy AI governance — fairness audits, bias assessments, and impact reviews — conducted alongside, not as a substitute for, performance evaluation. Studying impact on human behavior (C) belongs to human-computer interaction or longitudinal deployment studies, a separate research activity from a controlled model-comparison experiment. Cost-effectiveness analysis (D) is a business/engineering consideration weighing performance gains against compute, infrastructure, and development cost — relevant to deployment decisions, but not what "evaluating model performance" itself measures.
Rigorous evaluation in this context requires a held-out test set the models were not trained or tuned on, appropriate metric selection for the task, and often statistical significance testing when comparing close results.
What is the correct order of steps in an ML project?
Data preprocessing, Data collection, Model training, Model evaluation
Data collection, Data preprocessing, Model training, Model evaluation
Model evaluation, Data preprocessing, Model training, Data collection
Model evaluation, Data collection, Data preprocessing, Model training
The Answer Is:
BExplanation:
The standard ML project lifecycle proceeds: data collection first, since you need raw data before anything else can happen; data preprocessing next, to clean, transform, and prepare that raw data (handling missing values, normalization, encoding, splitting into train/validation/test sets) into a form a model can consume; model training next, where the algorithm learns patterns from the preprocessed training data; and model evaluation last, where the trained model's performance is measured on held-out data it did not see during training. Each stage depends on the output of the one before it — you cannot preprocess data you haven't collected, train on data that hasn't been cleaned and split, or evaluate a model that hasn't been trained — which is what makes B the only internally consistent ordering among the four options.
Options A, C, and D each place a downstream step before its prerequisite: A attempts preprocessing before collection (nothing to preprocess yet); C and D both place evaluation before training and, in D's case, before data even exists — evaluation requires a trained model to assess, so it cannot logically precede training or the data-collection/preprocessing steps that training itself depends on.
In practice this pipeline is iterative rather than strictly linear — evaluation results often send you back to preprocessing (feature engineering) or even data collection (targeted collection to address weak subgroups) — but the canonical forward sequence for a first pass remains collection → preprocessing → training → evaluation.
Which of the following best describes the purpose of GAN (Generative Adversarial Networks)?
To produce new data that is similar to the training data.
To optimize decision-making processes based on historical data.
To classify and categorize data based on patterns and features.
To optimize search algorithms for faster data retrieval.
The Answer Is:
AExplanation:
A GAN consists of two networks trained in an adversarial minimax game: a generator that learns to produce synthetic samples from random noise, and a discriminator that learns to distinguish those generated samples from real training data. As training progresses, the generator improves at producing increasingly realistic samples in an attempt to fool the discriminator, while the discriminator improves at detecting fakes — at convergence (ideally), the generator produces samples statistically indistinguishable from the real training distribution. This generative objective — producing new, realistic data resembling the training distribution — is GAN's defining purpose, applied to images, audio, tabular data, and other domains.
The remaining options describe fundamentally different task categories that GANs are not designed for: decision optimization based on historical data (B) describes reinforcement learning or classical decision-theoretic optimization, not generative modeling. Classification and categorization (C) is a discriminative task — GANs' discriminator component performs a real-vs-fake discrimination internally as a training mechanism, but the discriminator is not GAN's end product or purpose; the generator is. Search algorithm optimization (D) is an information-retrieval concern entirely outside generative modeling's scope.
GANs are one of several generative model families tested in this domain alongside diffusion models (which power the U-Net-based denoising questions elsewhere in this set) and variational autoencoders, each with different training dynamics and stability characteristics.
Which of the following is a disadvantage of the ReLU activation function?
It is computationally expensive.
It is prone to vanishing gradient problem.
It is not suitable for deep neural networks.
It can cause dead neurons.
The Answer Is:
DExplanation:
Reviewer note: Marked answer (C) is factually incorrect — ReLU is well suited to deep networks and specifically helps mitigate vanishing gradients. The genuine, well-established disadvantage is the 'dying ReLU' problem (D).
I need to flag this one as well: the marked answer (C) does not hold up, and stating otherwise would misrepresent a fairly foundational deep learning fact. ReLU (Rectified Linear Unit, f(x) = max(0, x)) is, if anything, particularly well suited to deep neural networks — it was widely adopted specifically *because* it mitigates the vanishing gradient problem that plagued earlier activation functions like sigmoid and tanh in deep architectures: ReLU's gradient is a constant 1 for all positive inputs, rather than the saturating, near-zero gradients that sigmoid/tanh produce for large-magnitude inputs, which allows gradients to propagate more effectively through many layers.
The genuine, well-documented disadvantage of ReLU is option D: the "dying ReLU" problem. Because ReLU's gradient is exactly zero for any negative input, a neuron whose weighted input becomes consistently negative — often due to a large negative gradient update or an unfavorable initialization — will always output zero and will never receive a gradient large enough to recover, effectively "dying" and no longer contributing to learning. This is a real, practically significant issue that motivated variants like Leaky ReLU, Parametric ReLU (PReLU), and ELU, which allow a small non-zero gradient for negative inputs specifically to prevent neurons from dying.
Options A and B are also factually incorrect characterizations of ReLU — it is computationally cheap (a simple thresholding operation, part of its original appeal over sigmoid/tanh) and it specifically helps *avoid* vanishing gradients rather than causing them.
During the process of data cleansing, which of the following steps is NOT typically performed?
Identifying and handling missing values
Transforming data into a different format
Collecting additional data
Removing duplicates
The Answer Is:
CExplanation:
Data cleansing (or data cleaning) operates on data you already have: it identifies and resolves quality issues within an existing dataset — handling missing values (A), removing duplicate records (D), correcting formatting or type inconsistencies (B), fixing structural errors, and standardizing units or encodings. Collecting additional data (C) belongs to a conceptually earlier and separate phase of the pipeline: data acquisition or data collection, which determines what data enters the pipeline in the first place, rather than what is done to improve the quality of data already collected.
This distinction matters operationally: a cleansing step is typically deterministic and reversible against the existing dataset (you can inspect, log, and audit exactly which rows were dropped or imputed), whereas collecting more data is a scoping decision that may require new labeling budgets, new consent/privacy review, or new data-source integration — a materially different workflow with different stakeholders.
That said, insufficient data volume discovered *during* cleansing (e.g., after removing corrupted records the sample size becomes too small for the target class) can trigger a decision to go back and collect more — but that action itself is not classified as a cleansing step; it is the trigger for restarting an earlier pipeline stage.
Hyperparameter tuning is used for what purpose in machine learning experimentation?
Adjusting the weights and biases of a neural network to optimize its performance.
Selecting the best ML algorithm for a given task.
Collecting and preprocessing data to improve the accuracy of the model.
Selecting the optimal values for non-trainable parameters, such as learning rate or batch size.
The Answer Is:
DExplanation:
Hyperparameters are configuration values set *before* training begins and are not updated by the optimization process itself — learning rate, batch size, number of layers, regularization strength, and number of training epochs are canonical examples. Hyperparameter tuning is the systematic search for the combination of these values that yields the best model performance on a validation set, using strategies such as grid search, random search, or more sample-efficient approaches like Bayesian optimization and population-based training.
This is explicitly distinct from option A, which describes the *training* process itself — weights and biases are trainable parameters, updated automatically via backpropagation and gradient descent, not selected through hyperparameter search. Option B describes algorithm selection, a higher-level modeling decision that may precede hyperparameter tuning but is not what tuning itself accomplishes (you tune hyperparameters *within* a chosen algorithm/architecture). Option C describes data engineering work that happens upstream of model training entirely, unrelated to parameter search.
In practice, hyperparameter tuning requires careful experimental design to avoid overfitting to the validation set — techniques like k-fold cross-validation, held-out test sets, and tracking tools (e.g., experiment trackers logging each trial's configuration and resulting metric) are standard practice, connecting this topic directly to the Experimentation domain's broader emphasis on rigorous, reproducible model evaluation.
