Data Analysis (10%)
Official exam topics: exam-guide/nca-genm-exam-page.md ("Data Analysis"). NVIDIA defines this area as inspecting, cleansing, transforming and modeling data with the goal of discovering useful information, informing conclusions and supporting decision-making.
Expect questions that show a dataset, a chart or an attention map and ask which chart, which cleaning step, which conclusion is right, or what could be distorting a result. The reading list: What Is Data Visualization?, Essential Chart Types for Data Visualization, a guide to data cleaning, The Illustrated Transformer, and scikit-learn's Imputation of Missing Values.
Model metrics (accuracy, F1, FID, CLIP score, WER) are taught with model testing in D3.
Exam topics in this domain 1. 2.1 Extract insights from large datasets using data mining and visualization (awareness) 2. 2.2 Develop content for attention maps in multimodal settings 3. 2.3 Create graphs, charts or other visualizations to convey the results of data analysis 4. 2.4 Identify relationships, trends and factors that could affect the results of research
2.1 Exploring Large Multimodal Datasets
Exploratory data analysis (EDA) checklist
1. Inventory: how many items per modality, and how many items have all modalities (an image with no caption, a video with no audio track).
2. Metadata statistics in pandas: df.describe(), df.info(), value counts. A mean far from the median signals skew or outliers.
3. Per-modality checks:
| Modality | What to profile |
|---|---|
| Images | Resolution and aspect-ratio distribution, colour mode (RGB vs grayscale vs RGBA), file corruption, duplicates (perceptual hashes), class balance, near-blank or watermarked images |
| Text / captions | Length distribution (tokens), language, empty or boilerplate captions ("image0001.jpg"), toxicity, PII |
| Audio | Duration, sample rate (16 kHz for most speech models), channels, silence ratio, clipping, background noise, speaker and accent mix |
| Video | Frame rate, duration, resolution, codec, whether audio and subtitles are aligned |
| Time series / sensors | Sampling interval, gaps, timestamp alignment between sensors |
| Geospatial | Coordinate reference system, coverage of regions, cloud cover in satellite images |
- Pairing quality: does the caption describe the image? A CLIP similarity score per image–caption pair finds badly matched pairs quickly (D3).
- Class and group balance: labels, and also lighting, device, skin tone, accent or region where fairness matters (D7).
- Outliers: box plots and the IQR rule (beyond 1.5 × IQR from the quartiles) or z-scores. Decide whether each is an error, a real rare case, or a separate segment.
Data mining techniques
| Technique | Finds | Multimodal example |
|---|---|---|
| Clustering (k-means, DBSCAN, HDBSCAN) on embeddings | Natural groups | Grouping product photos by style; finding a cluster of mislabeled images |
| Dimensionality reduction (PCA, t-SNE, UMAP) | A 2D view of high-dimensional embeddings | Plotting CLIP embeddings coloured by label to see overlap |
| Anomaly detection (isolation forest, distance from cluster centre) | Rare, unusual items | Corrupted audio clips; off-topic images |
| Association rules (support, confidence, lift) | Items that occur together | Tags that co-occur on images |
| Embedding similarity search | Near-duplicates | Removing duplicate images across train and test |
Cleaning and imputation (data cleaning guide, scikit-learn imputation)
- Cleaning steps: remove duplicates, fix structural errors (inconsistent labels such as "Cat" and "cat"), filter outliers that are errors, handle missing data, validate (types, ranges, file integrity).
- Missing tabular values: SimpleImputer(strategy="mean" | "median" | "most_frequent" | "constant"), KNNImputer (average of nearest rows), IterativeImputer (models each feature from the others). Add a missing-indicator (add_indicator=True) when missingness itself carries information.
- Fit imputers on the training split only, inside a Pipeline.
- Missing modalities (a whole image or audio track absent) are a different problem: drop the item, use a model that tolerates missing inputs, or impute an embedding (D4).
Scaling the analysis
For large tables, RAPIDS cuDF (or cudf.pandas, which runs existing pandas code on the GPU) and cuML (GPU UMAP, k-means, DBSCAN); DALI decodes and augments images and audio on the GPU; Hugging Face Datasets streams large media datasets.
2.2 Attention Maps in Multimodal Settings
What attention is (The Illustrated Transformer) Each token creates a query, a key and a value vector. Attention weights = softmax(QKᵀ / √d): for each query, a row of weights over all keys that sums to 1. The output is the weighted sum of the values. Multi-head attention runs several of these in parallel, each free to attend to different relationships. An attention map is a picture of those weights.
Kinds of attention maps
| Map | Rows / columns | Shows |
|---|---|---|
| Self-attention, text | Token × token | Which words each word uses (for example a pronoun attending to its noun) |
| Self-attention, ViT | Image patch × image patch, plus the [CLS] token | Which regions the classification token uses; usually drawn as a heatmap over the image |
| Cross-attention, text-to-image | Image locations × prompt tokens | In a diffusion U-Net, where in the image each prompt word is applied ("dog" lights up the dog) |
| Cross-attention, VLM / captioning | Generated word × image patches | Which part of the image the model looked at when it produced each word |
Building one
1. Run the model with attention outputs on (Hugging Face: output_attentions=True).
2. Pick a layer and head, or average heads; for ViTs, attention rollout multiplies attention through the layers (adding the residual identity) to estimate how information flows from patches to the output.
3. Reshape the patch weights to the patch grid (a 224 × 224 image with 16 × 16 patches is a 14 × 14 grid), upsample to image size, and overlay as a semi-transparent heatmap (Matplotlib imshow with alpha).
4. For text, draw a token × token heatmap with labelled axes.
Related saliency methods - Grad-CAM: uses gradients of the target class with respect to the last convolutional feature maps to highlight important regions; common for CNNs. - Integrated gradients, SHAP, LIME: feature-attribution methods; LIME and SHAP perturb inputs and measure the effect (D3 explainability).
Reading attention maps with care - Attention shows where the model looked, not why it decided. Treat it as evidence for debugging, not proof of reasoning. - Maps differ by layer and head; one cherry-picked head can mislead. - Use them to find shortcuts: a classifier that attends to a watermark, a hospital tag or the background instead of the object is learning a spurious cue (D2.4, D7).
2.3 Visualization (What Is Data Visualization?, Essential Chart Types)
Match the chart to the message:
| Message | Chart |
|---|---|
| Trend over time or training steps | Line chart (loss curves, latency over time) |
| Compare categories | Bar chart (accuracy per model or per modality) |
| Distribution of one variable | Histogram, density plot, box plot (median, quartiles, outliers), violin plot |
| Relationship between two numeric variables | Scatter plot |
| Correlations across many variables | Heatmap of the correlation matrix |
| Classification errors | Confusion matrix heatmap |
| Threshold trade-offs | ROC curve, precision–recall curve |
| Embedding clusters | 2D scatter after PCA, t-SNE or UMAP |
| Where a model attends | Attention or saliency heatmap overlaid on the image |
| Audio content | Waveform (amplitude over time) and spectrogram (frequency over time, colour = energy) |
| Generated samples | Image grid with the prompt, seed and guidance scale under each image |
| Parts of a whole | Stacked bar (pie charts are hard to compare) |
| Locations | Map (choropleth or points) |
Tools: Matplotlib (plot, bar, hist, scatter, imshow, subplots), Seaborn (statistical plots and heatmaps), Plotly (interactive), TensorBoard and Weights & Biases (training curves and sample images during training), librosa (spectrograms).
Honest charts: label axes and units, start bar charts at zero, use the same scale across panels being compared, use a perceptually uniform colormap (viridis) for heatmaps and include a colour bar, and avoid 3D or dual-axis charts that distort.
2.4 Relationships, Trends and Confounding Factors
- Correlation: Pearson (linear) or Spearman (rank). It ranges from −1 to 1 and does not imply causation.
- Confounders: a third variable drives both. Images of a disease taken on one hospital's scanner can make the scanner, not the disease, predict the label. Stratify, control for it, or collect balanced data.
- Spurious correlations and shortcuts: watermarks, text overlays, backgrounds (cows on grass, camels on sand), recording equipment. Attention maps and slice analysis expose them.
- Simpson's paradox: a trend in every subgroup reverses when groups are pooled because group sizes differ. Check segment-level results.
- Selection and sampling bias: web-scraped image–text pairs over-represent some regions, languages and skin tones.
- Data drift (inputs change: new camera, new lighting) and concept drift (the input–output relationship changes).
- Train–test leakage: near-duplicate images, frames from the same video, or the same speaker on both sides of the split inflate scores.
- Benchmark contamination: test images or captions that were in the pretraining data.
- Noise vs signal: small gains may be run-to-run variance. Repeat over seeds and report intervals (D1.7).
Exam Tips - Attention weights = softmax(QKᵀ/√d); each row sums to 1. - Cross-attention maps show where each prompt word lands in the image; ViT maps show which patches the [CLS] token uses. - Attention shows where, not why; use it to find shortcut features. - Grad-CAM = gradient-weighted CNN feature maps. - Missing values: SimpleImputer / KNNImputer / IterativeImputer, fitted on the training split. - Time trend → line; distribution → histogram or box plot; relationship → scatter; correlation matrix → heatmap; audio → spectrogram. - Split by video, patient or speaker to avoid leakage.
References
- NVIDIA NCA-GENM certification exam page — checked Nov 11, 2026
Check your understanding
Does an attention map prove the model reasons correctly?Show answerHide answer
Answer
No. Attention shows where the model looked, not why. Use it to find shortcut features, such as a watermark.When should you fit an imputer for missing values?Show answerHide answer
Answer
After splitting, on the training data only. Fitting on the whole dataset leaks test information.How should you split a video dataset for training and testing?Show answerHide answer
Answer
By video (or patient, or speaker), not by random frames. Frames from one video in both sets cause leakage.Which chart fits training loss over epochs?Show answerHide answer
Answer
A line chart, which shows a trend over time. A pie chart shows parts of a whole and does not fit.