Skip to content
NVIDIA Generative AI Multimodal Associate (NCA-GENM) Exam Prep

Lesson 1 of 7 · 21 min

x
1/7

Core Machine Learning and AI Knowledge (20%)

Video lesson: NCA-GENM Domain 1: Core Machine Learning and AI Knowledge

Official exam topics: exam-guide/nca-genm-exam-page.md ("Core Machine Learning and AI Knowledge"). NVIDIA defines this area as knowledge of algorithms, conventions and techniques that allow computers to learn from and make predictions or decisions. For NCA-GENM that means the deep learning building blocks behind multimodal models: CNNs and residual networks, transformers, contrastive learning, multimodal losses, transfer learning and prompting. Expect short technical scenarios: which architecture, which loss, which fix for unstable training, which way to reuse a pretrained model. The associate works with senior engineers, so the right answer is usually the standard, well-understood technique. Shared topic: "Develop content for multimodal-specific transfer learning" is listed under both D1 and D5. The ideas are taught here (1.6); D5 covers using transfer learning to save compute and raise accuracy.

Exam topics in this domain 1. 1.1 Apply machine learning fundamentals: feature engineering, model comparison, cross-validation 2. 1.2 Work with deep learning frameworks such as TensorFlow or PyTorch 3. 1.3 Explain nonsequential neural networks and residual connections 4. 1.4 Develop content introducing multimodal loss functions 5. 1.5 Control training stability in multimodal settings 6. 1.6 Develop content for multimodal-specific transfer learning 7. 1.7 Design statistical analyses for evaluating multimodal pipelines 8. 1.8 Apply prompt engineering principles to craft prompts that achieve desired results 9. 1.9 Track emerging multimodal trends; contribute to energy-efficient, trustworthy multimodal models

Built from the exam page's reading list (checked November 2026): the Hugging Face LLM course chapter 1, How Transformers Work, TensorFlow's Overfit and Underfit and Image Classification tutorials, What Is a GAN?, the Dive into Deep Learning ResNet and CNN chapters, the Prompt Engineering Guide, Baltrušaitis et al. Multimodal Machine Learning: A Survey and Taxonomy, Lilian Weng's Contrastive Representation Learning, and the scikit-learn cross-validation and model-evaluation guides. The recommended DLI courses are Fundamentals of Deep Learning and Building AI Agents With Multimodal Models.

1.1 Machine Learning Fundamentals

The vocabulary

TermMeaningExam angle
ModalityOne kind of data: text, image, audio, video, time series, geospatial, tabularA multimodal model uses two or more
FeatureAn input variable the model uses (pixel values, a spectrogram bin, an embedding dimension)Deep models learn features; classic models need them engineered
Label / targetThe known answer the model learns to predictSupervised learning needs labels
Training / validation / test setLearn / tune and choose / report once at the endNever tune on the test set
Parameters vs hyperparametersLearned weights vs settings you choose (learning rate, batch size, number of layers)Hyperparameters are tuned on validation data
EmbeddingA dense vector that represents an input so similar inputs sit close togetherThe common currency of multimodal models

Learning paradigms

ParadigmDataMultimodal example
SupervisedInputs with labelsImage classification; speech-to-text with transcripts
UnsupervisedInputs onlyClustering image embeddings; PCA
Self-supervisedLabels made from the data itselfMasked-word or masked-patch prediction; contrastive image–caption matching (CLIP)
Reinforcement learningRewardsAligning generators with human preference

Feature engineering - Scaling (standardization, min–max) for distance-based models and faster gradient descent; tree models don't need it. For images, normalize pixels (divide by 255, or subtract the dataset mean and divide by the standard deviation per channel). - Encoding categories: one-hot for unordered categories. - Missing values: impute (mean, median, constant, or a model) and add a "was missing" flag; scikit-learn's SimpleImputer and KNNImputer do this (D2, D4). - Hand-crafted features by modality: TF-IDF for text; MFCCs and mel spectrograms for audio; edges or colour histograms for images. Deep networks largely replace these with learned features, but spectrograms remain the standard audio input. - Data leakage: a feature unknown at prediction time, or preprocessing fitted on all the data before the split. Fit preprocessing on the training split only (scikit-learn Pipeline). In multimodal data, leakage also happens when the same item appears in train and test under another modality (the photo in train, its caption in test).

Overfitting and underfitting (TensorFlow Overfit and Underfit)

SymptomDiagnosisRemedies
Training loss low, validation loss highOverfittingMore data, data augmentation, dropout, weight decay (L2), smaller model, early stopping
Both losses highUnderfittingBigger model, train longer, better features, less regularization
Validation loss falls, then risesOverfitting starts at the turnStop at the lowest validation loss

Model comparison and cross-validation (scikit-learn guides) - k-fold cross-validation averages k train/validate splits; stratified k-fold keeps class proportions; group k-fold keeps all items from one group (one patient, one speaker, one video) in the same fold so the model cannot memorize the person; TimeSeriesSplit never trains on the future. - cross_val_score(model, X, y, cv=5, scoring="f1_macro") returns one score per fold; report the mean and the spread. - Compare models on the same folds and metric, and always include a baseline (majority class, logistic regression, a unimodal model). A multimodal model that can't beat its best single modality isn't earning its cost. - Hyperparameter search: grid, random or Bayesian, scored on validation folds.

1.2 Deep Learning Frameworks

FrameworkWhat to know
PyTorchThe dominant research and production framework; NeMo, Hugging Face and most multimodal models (CLIP, diffusion, VLMs) build on it. Tensors, autograd, nn.Module subclasses with a forward method, DataLoader, explicit training loop
TensorFlow / KerasKeras is the high-level API: Sequential for a plain stack of layers, the functional API for multi-input, multi-output and skip-connection models; model.compile(optimizer, loss, metrics) then model.fit
Hugging Facetransformers (AutoProcessor, CLIPModel, pipeline("zero-shot-image-classification")), diffusers (StableDiffusionPipeline, UNet2DModel, schedulers), datasets, evaluate

The PyTorch training loop (from Fundamentals of Deep Learning):

1for images, labels in train_loader:2    images, labels = images.to(device), labels.to(device)3    optimizer.zero_grad()            # clear old gradients4    logits = model(images)           # forward pass5    loss = loss_fn(logits, labels)   # e.g. nn.CrossEntropyLoss()6    loss.backward()                  # backpropagation7    optimizer.step()                 # update weights

model.train() turns on dropout and batch-norm updates; model.eval() with torch.no_grad() turns them off for validation and inference. Forgetting model.eval() is a classic bug that makes validation scores noisy.

CNN essentials (Dive into Deep Learning, Image Classification) - A convolution slides small learned filters over the image, sharing weights across positions: far fewer parameters than a dense layer and built-in translation equivariance. - Kernel size, stride, padding set the output size: out = (in − kernel + 2 × padding) / stride + 1. - Pooling (max or average) downsamples; deeper layers see a larger receptive field and detect more abstract features (edges → textures → parts → objects). - Batch normalization normalizes activations per batch, which stabilizes and speeds up training. - Images in PyTorch are tensors shaped (batch, channels, height, width); Keras defaults to channels-last.

Transformers and vision transformers - Self-attention lets each token weigh every other token: softmax(QKᵀ / √d) V. Transformers process all positions in parallel and capture long-range context. - Encoder-only (BERT: understanding), decoder-only (GPT: generation), encoder–decoder (T5, Whisper: sequence to sequence). - A vision transformer (ViT) cuts an image into fixed-size patches (for example 16 × 16 pixels), embeds each patch as a token, adds position embeddings, and runs a transformer encoder. CLIP's image encoder is usually a ViT. - Cross-attention lets one modality attend to another: queries from the text, keys and values from the image (or the reverse). Diffusion U-Nets use cross-attention to condition images on text.

GANs (What Is a GAN?) A generator turns random noise into samples; a discriminator tries to tell real from fake. They train against each other (a minimax game). Known problems: mode collapse (the generator produces only a few kinds of output) and unstable training. Diffusion models have largely replaced GANs for image generation because they train more stably and cover the data distribution better, at the cost of slower sampling.

1.3 Nonsequential Networks and Residual Connections

A sequential network is a single chain: each layer feeds only the next. A nonsequential network has branches: several inputs, several outputs, shared layers or skip connections. Every multimodal model is nonsequential: a text branch and an image branch merge somewhere.

1# Keras functional API: two inputs, one output2img_in  = keras.Input(shape=(224, 224, 3))3txt_in  = keras.Input(shape=(128,))4img_vec = keras.layers.GlobalAveragePooling2D()(backbone(img_in))5txt_vec = keras.layers.Dense(256, activation="relu")(txt_in)6merged  = keras.layers.Concatenate()([img_vec, txt_vec])7out     = keras.layers.Dense(5, activation="softmax")(merged)8model   = keras.Model(inputs=[img_in, txt_in], outputs=out)

Residual connections (ResNet, He et al. 2015) - Very deep plain networks trained worse than shallower ones: not from overfitting but from optimization difficulty (the degradation problem), including vanishing gradients. - A residual block learns a correction F(x) and adds the input back: y = F(x) + x. If the best thing a block can do is nothing, it only has to push F(x) to zero. - The identity shortcut gives gradients a direct path backward, so networks with 50, 101 or 152 layers train well. - If shapes differ (more channels, smaller feature map), the shortcut uses a 1 × 1 convolution to match them. - A bottleneck block (1 × 1 → 3 × 3 → 1 × 1 convolutions) keeps deep ResNets affordable. - Residual connections are everywhere now: every transformer layer adds the attention output and the feed-forward output back to its input, and the diffusion U-Net combines residual blocks with long skip connections from encoder to decoder (D6).

Connection typeWhereWhat it does
Residual (additive) shortcutResNet blocks, transformer layersy = F(x) + x; eases optimization of deep stacks
Long skip (concatenation)U-Net encoder → decoderPasses fine spatial detail to the decoder
Dense connectionsDenseNetEach layer receives all earlier feature maps

1.4 Multimodal Loss Functions

LossFormula ideaUsed for
Cross-entropy−log p(correct class)Classification; next-token prediction in captioning and VLMs
Binary cross-entropyPer-label sigmoid + log lossMulti-label tagging; image–text match yes/no; GAN discriminators
MSE (L2) / L1Squared / absolute errorRegression; diffusion noise prediction (predict the added noise, MSE against the true noise); autoencoder reconstruction
Contrastive (InfoNCE)Pull matching pairs together, push non-matching pairs apart, softmax over a batchCLIP, audio–text (CLAP) and other aligned embedding spaces
Triplet lossanchor–positive distance + margin < anchor–negative distanceRetrieval and face embeddings
CTC lossSums over all alignments of an output sequence to the audio framesSpeech recognition without frame-level labels
Adversarial lossGenerator fools discriminatorGANs
KL divergenceDistance between distributionsVAEs (with reconstruction loss); distillation

CLIP's contrastive loss in detail (Contrastive Representation Learning, CLIP: Connecting Text and Images) 1. A batch has N image–caption pairs. The image encoder and text encoder each produce N embeddings, which are L2-normalized. 2. Compute the N × N matrix of cosine similarities, multiplied by a learned temperature (logit scale). 3. The N diagonal entries are the true pairs; the N² − N off-diagonal entries act as negatives. 4. Apply cross-entropy across each row (image → text) and each column (text → image) and average the two: a symmetric loss.

Consequences worth knowing: larger batches give more negatives and usually better embeddings; the temperature controls how sharply the softmax separates pairs; CLIP was trained on about 400 million image–text pairs from the internet.

Combining losses Multimodal models often add several losses: L = λ₁L_task + λ₂L_contrastive + λ₃L_reconstruction. The weights λ are hyperparameters. If one loss is much larger in scale it dominates the gradients; balance them (normalize, tune λ, or use uncertainty-based weighting).

1.5 Training Stability in Multimodal Settings

Unstable training shows as loss spikes, NaN losses, oscillating loss, or one modality being ignored.

ProblemCauseFix
Loss explodes or becomes NaNLearning rate too high; exploding gradients; FP16 overflowLower LR, learning-rate warmup, gradient clipping (clip the global norm, e.g. 1.0), BF16 or loss scaling (D5)
Loss oscillatesLR too high, batch too smallLower LR, larger batch or gradient accumulation, LR decay schedule (cosine)
Modality imbalance (the model relies on the "easy" modality, the other branch barely learns)Modalities converge at different speeds; one gives a shortcutPer-modality learning rates, modality dropout (randomly drop a modality in training), auxiliary unimodal losses, loss re-weighting, pretrain each encoder
Pretrained encoder forgets what it knewLarge updates from a random new headFreeze the pretrained encoders first and train only the new layers, then unfreeze with a lower LR
Activations drift between branchesFeatures on very different scalesNormalization (LayerNorm, BatchNorm) and projection to a shared dimension before fusion
Contrastive loss collapses (all embeddings similar)Too few negatives; bad temperatureLarger batch, tuned or learned temperature (CLIP clamps it), normalized embeddings
GAN mode collapse or divergenceGenerator and discriminator out of balanceTwo time-scale update rule (TTUR): separate learning rates for generator and discriminator; spectral normalization

Monitoring stability: plot training and validation loss per step, the gradient norm, and the loss of each modality's branch separately. A healthy multimodal run shows both branches improving.

1.6 Multimodal Transfer Learning

Transfer learning reuses a model pretrained on a large dataset for a new task with less data and compute.

StrategyWhat trainsWhen to use
Zero-shotNothingCLIP classifies images by comparing them with prompts such as "a photo of a {label}"; no task data at all
Linear probe / feature extractionOnly a small head on frozen embeddingsLittle labeled data; fast; a strong baseline
Fine-tune the last layersTop layers + headModerate data; target domain differs somewhat
Full fine-tuningEverything, with a small LRPlenty of data; domain far from pretraining (medical scans, satellite images)
Parameter-efficient fine-tuning (PEFT)Small adapters or LoRA matricesLarge models; many tasks sharing one base; limited GPU memory
Projection to another modalityA projection layer (linear or small MLP) that maps one encoder's embeddings into another model's input spaceGive an LLM eyes: a frozen vision encoder (often CLIP's ViT) + projector + LLM, as in LLaVA-style VLMs. Train the projector first, then optionally fine-tune the LLM on instruction data

Typical recipe: start from a pretrained encoder per modality (ResNet or ViT for images, BERT for text, a speech encoder for audio), freeze them, train the fusion and head, then unfreeze gradually with discriminative (smaller) learning rates for lower layers. Use the same preprocessing (resolution, normalization, tokenizer) that the encoder was pretrained with.

The Building AI Agents With Multimodal Models course covers this: early and late fusion with camera and LiDAR data, contrastive pretraining for a shared embedding space, and converting a pretrained model to accept a different data type through projection.

1.7 Statistical Analyses for Evaluating Multimodal Pipelines

  • Define the comparison first: the hypothesis (adding audio improves F1), the metric, and the test set, before running anything.
  • Ablation: evaluate each modality alone, then combined. Report the gain from fusion over the best single modality.
  • Missing-modality tests: evaluate with one modality removed or corrupted to see how gracefully the pipeline degrades.
  • Repeat over seeds or folds and report a mean with a confidence interval (or standard deviation). A gain smaller than the run-to-run spread is not evidence.
  • Bootstrap confidence intervals: resample the test set with replacement many times and recompute the metric.
  • Paired tests compare two models on the same items: McNemar's test for two classifiers' right/wrong outcomes; a paired t-test or Wilcoxon signed-rank test for per-item scores.
  • Correct for many comparisons (Bonferroni) when testing many variants.
  • Slice the results: by class, image source, accent, lighting, device. Aggregate metrics hide weak subgroups (D2, D7).
  • Human evaluation for generative output: rating scales or pairwise preferences, several raters, and inter-rater agreement (Cohen's or Fleiss' kappa).

1.8 Prompt Engineering (Prompt Engineering Guide)

General principles - Be specific: task, context, constraints, output format. - Zero-shot (instructions only) → few-shot (add examples) → chain-of-thought (ask for reasoning steps) for harder reasoning. - Give a role or system message, delimit inputs clearly, and ask for structured output (JSON) when software consumes it. - Iterate: change one thing at a time and evaluate on a fixed set of test inputs.

Text-to-image prompts - Describe subject, setting, style, composition, lighting and medium ("a watercolor illustration of a lighthouse at dusk, wide shot, soft light"). - Negative prompts list what to avoid ("blurry, extra fingers, text"). - The guidance scale (classifier-free guidance, D6) sets how strongly the image follows the prompt: higher = more literal but less varied, and artifacts at very high values. - Fix the seed to reproduce an image while changing one prompt word.

Prompts for vision language models (VLMs) - Ask about specific regions or objects ("Read the total on the receipt"), request a format ("Return the items as a JSON list"), and include image examples for few-shot when the model supports multiple images. - For zero-shot CLIP classification, the label prompt matters: "a photo of a {label}" beats the bare label; averaging several templates (prompt ensembling) improves accuracy.

Prompting risks Hallucination (describing objects that are not in the image), prompt injection through text inside an image or document, and over-reliance on prompts where fine-tuning or RAG is needed (D4, D7).

1.9 Emerging Trends and Energy-Efficient, Trustworthy Models

Trends to recognize | Trend | Examples | |---|---| | Vision language models (VLMs) | Models that take images (and video) with text and answer in text: LLaVA-style architectures, NVIDIA's VILA and NVLM families, Llama 3.2 Vision | | Diffusion and diffusion transformers | Latent diffusion (Stable Diffusion); DiT replaces the U-Net with a transformer backbone | | Video and world models | Text-to-video generation; NVIDIA Cosmos world foundation models for physical AI (robotics, autonomous vehicles) | | Speech and audio | ASR and TTS models (Whisper; NVIDIA Riva, Parakeet and Canary models), audio–text embeddings | | Any-to-any and agents | Models that accept and produce several modalities; multimodal agents built from NVIDIA AI Blueprints (for example video search and summarization) | | Multimodal RAG | Retrieval over images, tables and PDFs, often with OCR and image captioning (D4) |

Following research: read the abstract, method diagram and results tables; check the datasets and baselines, whether code and weights are released, and whether results were reproduced. arXiv, Hugging Face Papers (its Trending Papers page replaced Papers with Code, which shut down in July 2025) and Hugging Face model cards are the usual sources.

Energy-efficient, trustworthy design - Reuse pretrained models (transfer learning) instead of training from scratch; pick the smallest model that meets the requirement; distill; quantize; use mixed precision (D5). - Document data sources, licences and limitations (model cards), test for bias across groups (D7), and keep humans in the loop for high-impact uses.

Exam Tips - Residual connection: y = F(x) + x. It fixes the degradation problem of very deep networks and gives gradients a shortcut. - Nonsequential = branches, multiple inputs or outputs, skip connections (Keras functional API). - CLIP = two encoders + symmetric contrastive (InfoNCE) loss over a batch; bigger batches give more negatives. - Diffusion training loss = MSE between predicted and true noise. - Unstable training: lower LR, warmup, gradient clipping, normalization, BF16. - Modality imbalance: modality dropout, per-modality LRs, auxiliary losses. - Little data: freeze the pretrained encoder and train a head (linear probe); zero-shot CLIP needs no data. - Compare against the best single modality and report spread across seeds.

References

  1. NVIDIA NCA-GENM certification exam page — checked Nov 11, 2026

Check your understanding

  • Adding more layers to a plain deep network made it worse. What fixes this?Show answer

    Answer

    Residual connections (y = F(x) + x). Very deep plain networks degrade; skip connections give gradients a shortcut.
  • Is CLIP trained with mean squared error between image and text embeddings?Show answer

    Answer

    No. It uses a symmetric contrastive (InfoNCE) loss over the similarities in a batch, so bigger batches give more negatives.
  • You have very little labelled data. What is a sensible starting point?Show answer

    Answer

    Freeze the pretrained encoder and train a small head on top (a linear probe). Zero-shot CLIP needs no labelled data at all.
  • Is a multimodal model better simply because it uses more data?Show answer

    Answer

    Only if it beats the best single-modality baseline. Compare against it and report the spread across seeds.

Progress is saved in this browser.

Next Lesson