Skip to content

Generative AI Engineer interview questions

100 real questions with model answers and explanations for Middle candidates.

See a Generative AI Engineer resume example

Practice with flashcards

Spaced repetition · Hunter Pass

Questions

They parameterize the same denoising problem differently, but redistribute target scale and error across noise levels.

  • Epsilon prediction estimates added noise and is simple, yet its effective emphasis can be uneven at very high and low signal-to-noise ratios.
  • x0 prediction estimates the clean sample directly, which can aid reconstruction but becomes numerically demanding when the input is mostly noise.
  • v prediction combines clean-sample and noise terms so target variance is better balanced across common schedules, but the scheduler and inference conversion must match the checkpoint.

Why interviewers ask this: The interviewer is checking whether the candidate connects prediction parameterization to noise-level conditioning and scheduler compatibility.

min-snr

SNR-based weighting controls how much each noise level contributes instead of letting easy or high-magnitude timesteps dominate the update.

  • The signal-to-noise ratio identifies whether a timestep is mainly reconstruction-like or noise-prediction-like under the chosen schedule.
  • Min-SNR weighting clips or caps the influence derived from SNR, reducing conflict between gradients from very different timesteps.
  • The formula depends on epsilon, x0, or v prediction, so I would validate the implementation and compare convergence plus prompt-aligned quality, not copy one gamma blindly.

Why interviewers ask this: A strong answer explains the optimization problem and why the weighting formula is parameterization-dependent.

sampling

DDPM sampling follows a stochastic reverse Markov chain, while DDIM can use a deterministic non-Markovian path for the same trained model.

  • DDPM injects variance at reverse steps, so repeated runs can diverge even from related intermediate states.
  • DDIM exposes an eta-style control where zero gives a deterministic path for a fixed initial latent and larger values restore stochasticity.
  • DDIM often reaches usable quality in fewer steps, but speed and quality still depend on the checkpoint, timestep spacing, and implementation.

Why interviewers ask this: The interviewer is evaluating whether the candidate distinguishes the training objective from the chosen reverse-time sampler.

I would compare them on the exact model, schedule, step budget, guidance range, and target prompt distribution because sampler rankings do not transfer reliably.

  • Euler methods are simple and can produce strong results at modest step counts, while ancestral variants deliberately add noise and increase run-to-run diversity.
  • DPM-Solver and DPM++ families use higher-order or data-prediction formulations that can be efficient, but multistep history and schedule choice affect stability at low step counts.
  • I would hold prompts, seeds, and the number of outputs per prompt constant, then measure latency, failure rate, preference wins, and diversity at several step budgets.

Why interviewers ask this: A strong answer treats sampler selection as a controlled model-specific evaluation rather than folklore.

They reduce artifacts caused by applying one large classifier-free guidance scale uniformly throughout denoising.

  • High CFG can improve prompt adherence but overexpose colors, collapse variation, or push the sample away from the model's trained distribution.
  • CFG rescale adjusts the guided prediction magnitude toward the conditional prediction's statistics, limiting excessive contrast without simply removing guidance.
  • Dynamic schedules vary guidance by timestep, often weakening it where conditioning is unhelpful, and must be tuned with both adherence and visual-quality slices.

Why interviewers ask this: The interviewer is checking whether the candidate can mitigate over-guidance while preserving conditioning strength.

flow-matching

Flow matching learns a time-dependent velocity field that transports samples between noise and data distributions, rather than directly fitting a denoising score objective.

  • The training target comes from a chosen probability path and its conditional velocity, with straight interpolation being a common simple path.
  • Rectified flow is flow matching on a straight interpolation between paired source and data samples; the learned marginal ODE is not guaranteed to be straight, while reflow can progressively straighten its coupling and reduce integration error.
  • The path, parameterization, data-noise coupling, and ODE solver still determine performance, so the label alone does not guarantee one-step generation.

Why interviewers ask this: A strong answer explains the learned vector field and avoids equating rectified flow with automatic low-step success.

system-design

A latent autoencoder moves denoising into a smaller spatial and channel representation, cutting attention and convolution cost compared with pixel-space diffusion.

  • The encoder compresses an image to latents and the decoder reconstructs pixels after sampling, so its downsampling factor largely sets the compute saving.
  • Aggressive compression can erase small text, faces, textures, or high-frequency detail before the diffusion model sees them.
  • I would evaluate reconstruction separately from generation because decoder artifacts and latent scaling errors cannot be fixed by changing the sampler.

Why interviewers ask this: The interviewer is evaluating whether the candidate understands both the efficiency boundary and the autoencoder's quality ceiling.

DiT applies transformer blocks to latent image patches, making generative capacity easier to scale with depth, width, tokens, and compute.

  • Patchifying latents turns spatial generation into a token sequence while timestep and class or text conditioning modulate transformer blocks.
  • Transformer scaling benefits from mature attention kernels and parallel training infrastructure, but token count still grows quickly with resolution.
  • More parameters or FLOPs are not sufficient by themselves, so I would track quality against training compute, data scale, autoencoder quality, and inference cost.

Why interviewers ask this: A strong answer connects DiT architecture to practical scaling while retaining the resolution and data constraints.

mm-dit

MM-DiT lets text and image latent tokens participate in joint attention while retaining modality-specific representations or projections.

  • Text and image streams can use separate weights for parts of the block, then exchange information through a shared attention operation.
  • Unlike one-way cross-attention, joint attention allows image tokens to influence text-token states as well as receive text conditioning.
  • Sequence length, masking, positional encoding, and modality balance become design constraints because both token sets consume the same attention computation.

Why interviewers ask this: The interviewer is checking whether the candidate can distinguish MM-DiT joint attention from ordinary text-to-image cross-attention.

lcmconsistencymodel-compression

LCM distillation trains a student to map points on a diffusion trajectory toward a consistent clean endpoint, so inference can skip most teacher steps.

  • Training uses teacher-derived transitions or a probability-flow trajectory and enforces consistency between appropriately paired noisy states.
  • A boundary condition anchors the consistency function near the data endpoint, preventing a trivial arbitrary mapping.
  • One to eight steps can be practical, but guidance distillation, scheduler compatibility, and prompt-distribution coverage determine how much quality survives.

Why interviewers ask this: A strong answer explains the consistency objective rather than describing LCM as an ordinary checkpoint quantization.

model-compression

Progressive distillation repeatedly halves the required denoising steps, while adversarial distillation can train a very low-step student using a discriminator or learned realism signal.

  • Progressive stages provide a controlled teacher-student path, but errors can accumulate after several rounds and every stage adds training cost.
  • Adversarial objectives sharpen perceptual realism at one or a few steps, yet may reduce diversity or introduce GAN-like instability and artifacts.
  • I would compare prompt fidelity, diversity, rare-concept failures, and latency at the exact deployment step count rather than report only FID.

Why interviewers ask this: The interviewer is evaluating whether the candidate recognizes distinct distillation mechanisms and their failure modes.

diffusioncontrolnet

ControlNet learns a parallel conditioning branch from a copied backbone and injects its features into a mostly frozen denoiser.

  • A pose, edge, depth, or segmentation map enters the control branch at matching spatial resolutions.
  • Zero-initialized connections make the added residuals start near zero, preserving the pretrained model at the beginning of training.
  • Control strength and start or end timesteps must be tuned because excessive residuals can overpower text conditioning or reproduce detector noise.

Why interviewers ask this: A strong answer identifies the trainable copy, zero-initialized residual path, and practical control schedule.

ip-adapter

IP-Adapter encodes a reference image into separate conditioning tokens and injects them through added attention paths alongside text conditioning.

  • A vision encoder and projection network convert the reference into tokens compatible with the denoiser's attention dimensions.
  • Separate image cross-attention weights let the base text pathway remain frozen and keep the adapter relatively small.
  • Adapter scale balances identity or style transfer against prompt adherence, and face-specific or composition-specific variants require matching evaluation data.

Why interviewers ask this: The interviewer is checking whether the candidate understands the decoupled image-attention mechanism and its control knob.

controlnetip-adapter

The adapters can compete for the same attention or residual capacity, so individually good settings may fail when their effects are summed.

  • A strong ControlNet can lock geometry while an IP-Adapter tries to impose reference composition, producing distorted subjects or ignored text.
  • Scales, timestep windows, injection sites, and normalization differ across adapters, so composition needs a joint grid rather than isolated tuning.
  • I would test every supported combination and order on conflict prompts, then cap incompatible pairs or route them to a specialized pipeline.

Why interviewers ask this: A strong answer treats adapter composition as interacting interventions rather than independent sliders.

fine-tuninglora

Rank sets the update capacity, alpha scales the low-rank update, and target modules decide where that capacity can change the model.

  • A higher rank can represent richer changes but increases trainable parameters, optimizer memory, file size, and overfitting risk.
  • Many implementations apply an effective scale related to alpha divided by rank, so changing rank without checking scaling changes optimization behavior.
  • Cross-attention projections are common targets, while adding self-attention, feed-forward, convolutional, or text-encoder modules should follow a measured capability gap.

Why interviewers ask this: The interviewer is evaluating whether the candidate can configure a LoRA stack beyond choosing a preset rank.

I would merge a validated fixed combination for simpler and faster serving, but keep runtime composition when users need independent adapter selection or scaling.

  • Merging removes adapter switching overhead and can simplify export, yet the resulting weights are tied to one base checkpoint and one set of merge coefficients.
  • Runtime composition preserves reversibility and per-request scales, but extra adapter reads or kernels consume memory bandwidth and complicate batching.
  • Multiple updates are not guaranteed to add cleanly, so both paths need conflict prompts and regression checks before deployment.

Why interviewers ask this: A strong answer connects LoRA composition strategy to serving flexibility, batching, and interference.

dreambooth

Prior preservation mixes instance examples with class examples so learning a subject does not collapse the broader class around that subject.

  • Instance loss teaches a rare identifier to reproduce the target person or object from a small dataset.
  • Class images and a class prompt provide a prior loss that discourages language drift and loss of diversity for ordinary class prompts.
  • The loss weight, class-image quality, duplicates, and subject coverage need tuning because an excessive prior can weaken identity learning.

Why interviewers ask this: The interviewer is checking whether the candidate understands the regularization goal and its practical balance.

Text-encoder tuning can bind a new concept more strongly, but it can also distort the language space used by every other prompt.

  • With few captions, token embeddings may absorb background, pose, or style correlations and cause prompt leakage.
  • Updating a large text encoder adds optimizer memory and can overfit faster than the denoiser, especially with an aggressive learning rate.
  • I would start frozen, then test a lower-rate partial update only if identifier binding remains weak, with general-prompt and compositional regressions.

Why interviewers ask this: A strong answer recognizes text-encoder tuning as a global semantic change rather than free extra capacity.

fine-tuning

I would curate for correct visual-text alignment, coverage of intended variation, and removal of shortcuts the model could memorize.

  • Deduplicate exact and near-duplicate assets, remove corrupt or low-resolution files, and balance subjects, styles, poses, backgrounds, and hard cases.
  • Captions should name attributes the model must control while avoiding confident labels for invisible details or boilerplate copied across every image.
  • I would version source rights, filtering rules, captioner and human edits, then inspect stratified samples rather than trust only automated scores.

Why interviewers ask this: The interviewer is evaluating whether the candidate treats captions as supervision and provenance-bearing data.

generators

Aspect-ratio bucketing groups similarly shaped images into batches so resizing wastes less content and padding wastes less compute.

  • Each bucket uses dimensions compatible with the autoencoder and patch stride while keeping pixel or token budgets bounded.
  • Sampling only by raw dataset frequency can overrepresent common shapes, so bucket probabilities may need balancing.
  • Too many buckets fragment batches and hurt throughput, while too few force crops or distortions, so I would profile utilization and composition quality together.

Why interviewers ask this: A strong answer connects bucketing to both data preservation and efficient batching.

Locked questions

  • 21

    Why maintain an EMA of generative-model weights?

  • 22

    How do mixed precision and loss scaling prevent failures in diffusion training?

    scaling
  • 23

    How do gradient checkpointing and gradient accumulation solve different memory limits?

    memorycheckpointing
  • 24

    How would you distribute training for a large diffusion transformer?

    nlpdit
  • 25

    What does temporal attention add to a video generation model?

    temporal-attention
  • 26

    Why factorize spatial and temporal modeling in video generation?

  • 27

    How would you condition a video generator on camera motion?

    generators
  • 28

    What role does a neural audio codec play in generative audio systems?

    system-designaudio-codec
  • 29

    How would you choose between autoregressive audio tokens and diffusion-based audio generation?

    tokens
  • 30

    What does a diffusion vocoder do in a speech pipeline?

    vocoderci-cd
  • 31

    How would you disentangle speaker identity from speaking style in TTS?

  • 32

    How would you stabilize GAN training for a generative component?

    components
  • 33

    What is posterior collapse in a VAE, and how would you detect it?

  • 34

    What are the covariance and sample-size limitations of FID?

    fid
  • 35

    When is KID useful compared with FID?

    fid
  • 36

    What do precision and recall mean for generative distributions?

    evaluationdistributions
  • 37

    How would you build a region-grounded VLM evaluator for defects in generated images?

    groundednessdefectsllm-eval
  • 38

    How would you evaluate temporal quality in generated video?

    llm-evaldecision-making
  • 39

    How would you run an audio MOS study or listener panel?

  • 40

    How can an aesthetic or reward model bias a generation pipeline?

    ci-cd
  • 41

    How can preference optimization be applied to image or audio generation?

    optimization
  • 42

    How would you define safety evaluation slices for a multimodal generator?

    llm-evalgenerators
  • 43

    What do C2PA assertions and Content Credentials prove?

    c2pa
  • 44

    What belongs in a robust watermark threat model?

    threat-modelingwatermark
  • 45

    How would you track training-data rights and provenance?

  • 46

    How would you design a cross-modality evaluation harness?

    llm-evaldesign
  • 47

    How would you build a per-asset cost model for a generative service?

  • 48

    Under what conditions does FP8 inference actually improve a generative runtime?

    inference
  • 49

    What is the difference between Triton language kernels and NVIDIA Triton Inference Server?

    inferencetriton-server
  • 50

    How would you design a multimodal model router across vendor APIs and self-hosted runtimes?

    procurementdesignapi
  • 51

    After enabling min-SNR weighting with gamma 5, an image diffusion fine-tune improves overall loss but collapses dark scenes. How would you debug it?

    fine-tuningmin-snr
  • 52

    A diffusion checkpoint trained with v-prediction is accidentally loaded into an epsilon-prediction pipeline. What symptoms and checks do you expect?

    ci-cd
  • 53

    A diffusers pipeline was trained with 1,000 noise steps but inference uses a scheduler configuration copied from another model. Images degrade only at 20-step inference. How would you investigate?

    configci-cddiffusers
  • 54

    An image model renders a red leather chair beside a blue velvet ottoman, but often swaps the colors or materials between objects. How would you evaluate attribute binding?

    bindingdecision-makingllm-eval
  • 55

    Images become low-contrast after replacing the VAE in an SDXL pipeline. How would you detect a latent scaling-factor mismatch?

    a11yscalingci-cd
  • 56

    Enabling VAE tiling allows 4K generation but leaves visible seams every 512 pixels. How would you fix it?

  • 57

    A multi-aspect image model produces strong square images but weak portraits even though portrait files are 35 percent of the dataset. How would you audit the aspect-bucket sampler?

  • 58

    A caption-dropout experiment was set to 10 percent, but the model starts ignoring text almost entirely. How would you find the bug?

    experiments
  • 59

    An instruction-based image editor changes a mug to matte black as requested, but also alters the table, logo, and lighting. How would you evaluate it?

    llm-evaldecision-making
  • 60

    A LoRA training run converges, but the saved adapter has almost no visual effect. You suspect it was attached to the wrong modules. How would you confirm that?

    fine-tuninglora
  • 61

    A product generator creates a 24-view turntable, but handles, seams, and proportions drift between angles. How would you measure geometry consistency?

    consistencygeneratorsiac
  • 62

    A material generator makes convincing product renders but exports baked textures that artists cannot edit. How would you generate and validate a usable PBR material?

    validationgenerators
  • 63

    An LCM-distilled image student reaches four-step latency targets but loses readable signs that the teacher renders correctly. How would you recover text rendering?

    latency
  • 64

    A distilled diffusion student diverges although the teacher is stable; the two pipelines use different scheduler parameterizations. How would you debug it?

    ci-cd
  • 65

    A diffusion fine-tune in fp16 develops zero gradients in early layers while fp32 is stable. How would you address the underflow?

    fine-tuningprecision
  • 66

    You need a 1024-pixel product editor that preserves logos, supports masked changes, and returns an interactive preview within two seconds. How would you choose between autoregressive visual tokens, masked-token generation, diffusion, and flow?

    tokens
  • 67

    Gradient checkpointing reduces memory by 30 percent but makes training 55 percent slower, more than expected. What would you profile?

    memorycheckpointing
  • 68

    Distributed video training hangs every few hundred steps when clips have variable frame counts. How would you isolate the collective mismatch?

    distributed
  • 69

    Eight A100s average only 35 percent utilization during video training, and CPU usage is saturated. How would you confirm and fix a decode bottleneck?

    tracking
  • 70

    A latent cache speeds training, but random samples decode as color noise after a partial rebuild. How would you detect and recover corrupted entries?

    caching
  • 71

    A 24-frame video diffusion run fits until temporal attention begins, then OOMs on an 80 GB GPU. What would you change first?

    temporal-attentionhardware
  • 72

    A generated character keeps the right clothes but their face changes after frame 20. How would you debug frame identity drift?

    iac
  • 73

    A text-to-video model renders the requested scene but ignores prompts such as slow dolly in or pan left. How would you investigate camera-motion conditioning?

    prompting
  • 74

    An audio generator was trained with 50 codec tokens per second, but the serving decoder expects 75. What failure do you expect and how would you fix it?

    tokensgeneratorsmodel-serving
  • 75

    A multi-speaker TTS model occasionally gives speaker A the accent and timbre of speaker B. How would you investigate speaker leakage?

    leakage
  • 76

    A neural TTS system is intelligible but has metallic ringing on fricatives. How would you determine whether the vocoder is responsible?

    vocodersystem-design
  • 77

    In a GAN training run, discriminator accuracy stays near 99 percent while generator samples stop improving. What would you change?

    generators
  • 78

    A generated 30-second video has plausible audio, but dialogue, Foley, ambience, and music cues drift relative to the shots. How would you synchronize and evaluate them?

    llm-evaldecision-makingiac
  • 79

    A new image checkpoint improves FID from 18 to 14, but human raters prefer it only 42 percent of the time. How would you decide whether to ship?

    fid
  • 80

    Model A has KID 0.012 and model B has 0.010 on 2,000 images. How would you tell whether B is actually better?

  • 81

    Optimizing an image model for CLIP score produces literal text overlays and repeated prompt objects. How would you handle the reward hacking?

    promptingoptimization
  • 82

    A listener panel strongly prefers a new music model, but its outputs average 4 LUFS louder than the baseline. How would you remove loudness bias?

  • 83

    An NSFW classifier with 94 percent recall on photography misses unsafe anime generations. How would you respond to the domain shift?

  • 84

    How would you choose NSFW thresholds for a children's avatar product and an adult creative tool operating in six locales?

    thresholding
  • 85

    Listeners prefer a music model on 12-second clips, but its four-minute songs wander, repeat sections, and end abruptly. How would you evaluate long-form structure?

    llm-evaldecision-makingforms
  • 86

    Generated music stems sound acceptable alone, but the summed mix has phase cancellation, clipping, and stem bleed. How would you diagnose and fix it?

    resilience
  • 87

    Your pipeline records provenance internally, but an external upscaling vendor returns only a URL and no signed transformation claim. What would you do?

    procurementci-cd
  • 88

    A rights holder identifies 600 unauthorized images in a 20-million-asset training corpus after a model has been trained. What removal process would you implement?

    concurrency
  • 89

    A multimodal release improves its aggregate quality score by 6 percent, but audio users complain immediately. How would you redesign the evaluation view?

    llm-evalaggregation
  • 90

    Design a low-latency speech-to-speech assistant with p95 first audio below 600 ms that supports barge-in while preserving an approved speaker identity and requested emotion.

    latencydesign
  • 91

    A custom Triton kernel is 22 percent faster than PyTorch attention but changes image colors on long prompts. How would you find the numeric mismatch?

    promptingpytorch
  • 92

    Triton Inference Server dynamic batching increases GPU throughput by 35 percent but doubles p95 latency for interactive video jobs. How would you tune serving?

    latencythroughputhardware
  • 93

    A 60-second, eight-shot generated product story changes the actor, prop state, and screen direction between shots. How would you maintain story state?

  • 94

    A 3D Gaussian Splatting reconstruction looks good on the training cameras but has floaters and holes on held-out views. How would you diagnose and improve it?

    splatting
  • 95

    A managed image API changes its safety policy and begins returning blurred outputs for prompts your product allows. How would you contain the change?

    promptingapi
  • 96

    One campaign request must produce a hero image, voiceover, music, and a 20-second video with all cues aligned. How would you route and orchestrate it?

    orchestration
  • 97

    How would you canary a new image checkpoint when generation is stochastic and unpaired traffic is noisy?

    deployment-strategies
  • 98

    Users receive an old-looking generated asset after switching LoRA styles because the cache key omits the adapter. How would you fix the cache contract?

    fine-tuningloracaching
  • 99

    Streaming TTS continues generating and billing for 30 seconds after a user barge-in or cancellation. How would you stop the wasted work?

    streamingresilience
  • 100

    You have one week to address a release that is 8 percent below the quality target and 40 percent over cost. How would you choose between the two fixes?