Experimentation (25%)
Official exam topics: exam-guide/nca-genm-exam-page.md ("Experimentation"). NVIDIA defines this area as the study of how to perform, evaluate and interpret experiments, including AI model evaluation and the evaluation of various model architectures. It is the largest area of the exam.
Expect scenarios about the experiment loop: how to preprocess this modality, which augmentation is safe, how to test data quality, which metric judges this model, how to explain a prediction. The reading list: the Hugging Face Diffusion Models Course (units 1–2), A Complete Guide to Data Augmentation, the FID paper (GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium), Hugging Face's Fine-Tuning a Masked Language Model and LLM course chapter 7, Christoph Molnar's Interpretable Machine Learning, the Dive into Deep Learning transformers chapter, and the Hugging Face Evaluate documentation.
Exam topics in this domain 1. 3.1 Assist in developing and testing multimodal AI models 2. 3.2 Manage and preprocess data from various sources 3. 3.3 Test data quality and consistency in a multimodal setting 4. 3.4 Test AI models to ensure their accuracy and effectiveness 5. 3.5 Use multimodal models to improve explainability
3.1 Developing and Testing Models: the Experiment Loop
- State the hypothesis and metric ("adding audio raises macro-F1 on the event classifier").
- Build a baseline: a pretrained model used zero-shot, a linear probe, or the best single-modality model.
- Change one thing at a time: architecture, fusion strategy, augmentation, learning rate.
- Track every run: code version, data version, hyperparameters, seed, metrics and sample outputs. MLflow (parameters, metrics, artifacts, model registry) and Weights & Biases or TensorBoard (curves and images) do this.
- Evaluate on a fixed held-out test set once you have chosen, and report variance across seeds.
- Inspect failures: look at the worst-scored images, clips and captions, not just the average.
Fine-tuning recipes from the reading list
*Masked language modeling (Hugging Face Fine-Tuning a Masked Language Model): domain-adapt a BERT-style encoder by continuing its pretraining on in-domain text. `DataCollatorForLanguageModeling(tokenizer, mlm_probability=0.15)` randomly masks about 15% of tokens; the model predicts them. Evaluate with perplexity* on held-out text. Useful before fine-tuning the text encoder of a multimodal model on specialist text (medical reports, legal captions).
Task fine-tuning (LLM course chapter 7): token classification, translation, summarization and question answering with Trainer or Seq2SeqTrainer, a task-specific head, and evaluation through the evaluate library.
Diffusion models (Hugging Face Diffusion Models Course, units 1–2):
- Unit 1: load a dataset, apply transforms (resize, random flip, normalize to [−1, 1]), create a noise scheduler (DDPMScheduler(num_train_timesteps=1000)), a UNet2DModel, and train it to predict the noise added at a random timestep with MSE loss. Sampling starts from pure noise and steps backward through the scheduler.
- Unit 2: fine-tune an existing pretrained diffusion model on a new dataset (few steps, small learning rate, gradient accumulation); guidance (steer sampling with a loss, for example toward a colour or toward a CLIP text prompt); class-conditioned diffusion (feed the class label to the U-Net). Faster samplers such as DDIM take fewer steps.
Testing during development - Overfit one small batch first: if the model can't drive the loss near zero on 10 examples, there's a bug. - Check shapes and value ranges at each stage; visualize a batch after preprocessing (wrong normalization and swapped colour channels show up immediately). - Unit-test preprocessing functions (a 48 kHz clip comes out at 16 kHz; an image comes out 224 × 224 × 3).
3.2 Managing and Preprocessing Data from Various Sources
Managing the sources - Keep a manifest: one row per item with IDs, file paths for each modality, labels, source, licence and split. Store large media in object storage and versioned datasets (DVC, Hugging Face Datasets, NeMo Curator for large-scale curation). - Align modalities by ID and timestamp (subtitles to audio, sensor readings to video frames). Check the clocks: different devices drift. - Record provenance and consent for each source (D7). - Split by group (video, patient, speaker, product) before any augmentation so related items never cross the train–test boundary.
Preprocessing by modality
| Modality | Standard steps |
|---|---|
| Images | Decode, convert to RGB, resize and center-crop to the model's input size (224 × 224 for many CLIP and ResNet models), scale to [0, 1], normalize with the pretrained model's mean and standard deviation; channels-first tensors in PyTorch |
| Text | Clean, tokenize with the model's own tokenizer, pad and truncate to a maximum length, attention masks |
| Audio | Resample to the model's rate (16 kHz for most speech models), convert to mono, trim silence, normalize loudness, compute a log-mel spectrogram or feed the raw waveform as the model expects |
| Video | Sample frames (for example 1–8 frames per second, or uniformly N frames per clip), resize, and keep the audio track and timestamps |
| Documents and PDFs | Extract text, tables and images; OCR for scanned pages; keep page and position metadata (D4) |
| Time series / sensors | Resample to a common rate, fill short gaps, normalize per channel, window into fixed-length segments |
Use the model's processor (AutoProcessor, CLIPProcessor) to get exactly the resizing, normalization and tokenization the model was trained with. Mismatched preprocessing is one of the most common causes of poor accuracy.
Data augmentation (A Complete Guide to Data Augmentation) Augmentation creates label-preserving variations to reduce overfitting. Apply it to the training set only.
| Modality | Augmentations |
|---|---|
| Images | Flips, random crops, rotation, scaling, colour jitter, blur, noise, cutout; Mixup (blend two images and their labels) and CutMix (paste a patch from one image into another) |
| Text | Synonym replacement, random insertion or deletion, back-translation, paraphrasing with an LLM |
| Audio | Add background noise, time shift, speed and pitch change, SpecAugment (mask time and frequency bands of the spectrogram) |
| Multimodal pairs | Augment consistently: a horizontal flip of an image captioned "the cup on the left" makes the caption wrong; crop out the object and the label is wrong |
Augmentation must not change the meaning: don't flip text images or road signs, don't rotate digits so a 6 becomes a 9, and don't pitch-shift when pitch is the label. Synthetic data (generated images, TTS audio) can fill gaps for rare classes, but check quality and keep a real-data test set.
3.3 Testing Data Quality and Consistency
| Check | How |
|---|---|
| Schema and integrity | Every file opens; expected types, sizes, sample rates and channel counts; no empty captions |
| Completeness | Share of items with each modality present; missing-modality rate per source |
| Cross-modal consistency | The caption matches the image (CLIP similarity below a threshold flags mismatches); the transcript matches the audio; timestamps line up; the label agrees across modalities |
| Duplicates and leakage | Exact hashes, perceptual hashes for images, embedding similarity for near-duplicates; check across splits |
| Label quality | Inter-annotator agreement (Cohen's kappa); confident-learning tools (for example cleanlab) flag likely mislabels; review a random sample |
| Distribution and balance | Class counts, resolution, duration, language, demographic and environmental coverage; compare train vs test vs production |
| Safety and privacy | NSFW and toxicity filters; faces, licence plates and PII; licences and consent (D7) |
| Consistency over time | Re-run the checks on each new data batch; alert on drift in statistics (D4 monitoring) |
Automate the checks as data validation tests in the pipeline (Great Expectations or plain assertions) so a bad batch fails fast instead of silently degrading the model.
3.4 Testing Models for Accuracy and Effectiveness
Metrics by task (Hugging Face Evaluate: evaluate.load("accuracy").compute(predictions=..., references=...))
| Task | Metrics |
|---|---|
| Classification (image, audio, multimodal) | Accuracy, precision, recall, F1 (macro for imbalance), ROC-AUC, PR-AUC, confusion matrix |
| Object detection / segmentation | IoU, mAP (mean average precision), Dice |
| Image captioning | BLEU, METEOR, ROUGE-L, CIDEr (consensus with several reference captions), SPICE; CLIPScore (reference-free) |
| Visual question answering | VQA accuracy (agreement with human answers) |
| Speech recognition | Word error rate: WER = (substitutions + deletions + insertions) / words in the reference; lower is better; can exceed 100%. Character error rate (CER) for languages without spaces |
| Text-to-speech | MOS (mean opinion score from listeners), intelligibility (WER of an ASR model on the output) |
| Cross-modal retrieval | Recall@k, MRR, nDCG |
| Image generation | FID, Inception Score, CLIP score, human preference |
FID (the TTUR paper, Heusel et al. 2017) - Pass real and generated images through an Inception-v3 network and take a feature layer. - Fit a Gaussian (mean and covariance) to each set of features and compute the Fréchet distance between the two Gaussians. - Lower is better. FID measures both quality and diversity: mode collapse raises it. - It is biased at small sample sizes; compare models with the same number of images (commonly 10,000–50,000) and the same reference set. - Inception Score (IS) uses class predictions only: higher is better, but it ignores the real data distribution. - CLIP score measures prompt alignment: the cosine similarity between the CLIP embeddings of the prompt and the generated image. FID says nothing about whether the image matches the prompt, so text-to-image evaluation reports both.
Beyond the headline metric - Slice tests: per class, per source, per demographic group, per lighting or noise level. - Robustness tests: noise, blur, compression, accents, a missing or corrupted modality, adversarial or out-of-distribution inputs. - Behavioural tests: fixed suites of cases the model must get right (regression tests) before each release. - Human evaluation for generative output: side-by-side preference with several raters and agreement statistics. - Effectiveness, not just accuracy: latency, cost per prediction and user outcome. A model 0.3 F1 points better but 5× slower may not be the better choice (D5).
3.5 Explainability with Multimodal Models (Interpretable Machine Learning)
Interpretability toolkit (Molnar)
| Method | Type | What it gives |
|---|---|---|
| Interpretable models (linear models, decision trees) | Intrinsic | Coefficients or rules you can read |
| Permutation feature importance | Model-agnostic, global | How much the score drops when a feature is shuffled |
| Partial dependence plots (PDP) | Global | Average effect of one feature on the prediction |
| LIME | Local | Fits a simple surrogate model around one prediction (for images, on superpixels) |
| SHAP | Local and global | Shapley values: each feature's fair share of the prediction |
| Counterfactual explanations | Local | The smallest input change that flips the prediction |
| Saliency maps (Grad-CAM, integrated gradients, attention maps) | Local, for images and text | Which pixels or tokens mattered (D2.2) |
Using multimodal models to explain - Vision language models describe what they see and can be asked to justify an answer in natural language ("The scan is flagged because of the shadow in the upper left"). These rationales are helpful but can be unfaithful (plausible but not the real reason); check them against saliency maps. - CLIP as a concept probe: score an image against concept prompts ("striped", "rusty", "blurry") to describe which concepts drive a classifier's errors; concept-based explanations report predictions in human terms. - Cross-attention maps in text-to-image models show which prompt word shaped which region. - Captioning failure cases in bulk with a VLM to summarize what the model gets wrong ("most errors are night-time images"). - Ablating a modality shows how much each one contributes to a decision.
Explainability supports debugging, user trust, and regulatory transparency (D7); pick the explanation type for the audience: a developer needs saliency and SHAP, an end user needs a short reason in plain language.
Exam Tips - Use the model's own processor: same resize, normalization and tokenizer as pretraining. - Audio: resample to 16 kHz mono, log-mel spectrogram; augment with noise and SpecAugment. - Augment the training set only, and keep image and caption consistent. - Split by video, patient or speaker before augmenting. - WER = (S + D + I) / N; lower is better. - FID: Inception-v3 features, Fréchet distance between Gaussians, lower is better, needs many samples; CLIP score measures prompt alignment. - MLM fine-tuning masks about 15% of tokens. - Diffusion training: random timestep, add noise, U-Net predicts it, MSE loss. - LIME = local surrogate; SHAP = Shapley values; Grad-CAM = CNN saliency.
References
- NVIDIA NCA-GENM certification exam page — checked Nov 11, 2026
Check your understanding
Should you augment the test set to make it harder?Show answerHide answer
Answer
No. Augment only the training set, and keep images and captions consistent, for example no horizontal flips when a caption says left or right.Is a higher FID score better?Show answerHide answer
Answer
No. Lower FID is better. It measures how close generated images are to real ones, needs many samples, and says nothing about matching the prompt; CLIP score measures prompt alignment.How is word error rate calculated?Show answerHide answer
Answer
WER = (substitutions + deletions + insertions) / number of words in the reference. Lower is better.Why use the pretrained model's own processor for preprocessing?Show answerHide answer
Answer
The model expects the same resize, normalization and tokenizer it was pretrained with; your own statistics shift its inputs.