Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

615 bites

Test yourself: Top 30 intermediate AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Intermediate everything in AI & ML, page 8

intermediate1 min read

Feature detector vs feature descriptor.

A detector finds where interesting points are, a descriptor encodes the local appearance around each so points can be matched.

intermediate1 min read

How is an HDR radiance map constructed from exposures?

Recover the inverse camera response function from corresponding pixels, linearize each exposure to radiance, then merge with confidence weights into a floating-point radiance map.

intermediate1 min read

CPU vs GPU vs Edge TPU for inference.

CPU is flexible but slow, GPU offers massive parallelism at high power, Edge TPU gives efficient low-power int8 inference but is constrained; choose by latency, power, cost, and model fit.

intermediate1 min read

How do you train and evaluate on imbalanced defect data?

Resampling, class weighting, focal loss, and anomaly framing for training; evaluate with precision, recall, PR-AUC, and F-beta, not accuracy.

intermediate1 min read

How do you speed up a slow detection model?

Quantization, pruning, distillation, lighter backbones, and resolution or batching tweaks, each trading some accuracy or effort for speed.

intermediate1 min read

Compare Gray World and White Patch white balance.

Gray World assumes average scene color is gray, White Patch assumes the brightest pixel is white, both fail on dominant colors or clipping; learning predicts illuminant from data.

intermediate1 min read

How does smartphone Portrait Mode produce bokeh?

Estimate per-pixel depth via dual-pixel or stereo or learning, segment the subject, then apply depth-dependent blur.

intermediate2 min read

Prototypical Networks for few-shot classification

An encoder embeds support examples, each class prototype is the mean embedding of its support examples, and a query is classified by nearest prototype using a distance like Euclidean via softmax.

intermediate2 min read

Contrastive self-supervised learning with SimCLR

Two augmentations of one image form a positive pair, other images in the batch are negatives; an encoder plus projection head and the NT-Xent loss pull positives together and push negatives apart.

intermediate2 min read

Camera intrinsics, extrinsics, and the essential matrix

Intrinsics map camera coords to pixels, extrinsics are camera pose in the world; the essential matrix relates normalized points across two views, encoding relative rotation and translation up to scale…

intermediate2 min read

Unpaired image translation with CycleGAN

CycleGAN uses two generators and two discriminators with a cycle-consistency loss that forces translating to the other domain and back to reconstruct the input, removing the need for paired data.

intermediate2 min read

How text prompts guide Stable Diffusion

A frozen text encoder turns the prompt into token embeddings, which feed the U-Net via cross-attention at each denoising step so the prompt steers generation; classifier-free guidance amplifies the…

intermediate1 min read

Why U-Net skip connections matter for denoising

Skips carry high-resolution spatial detail from encoder to decoder, preserving fine structure lost in downsampling and easing gradient flow, which lets the model restore detail while removing…

intermediate2 min read

Evaluating generative models with FID versus IS

FID compares Inception feature distributions of real and fake images via Frechet distance between two Gaussians; it uses real data as reference and detects diversity issues, unlike IS which uses no real…

intermediate2 min read

Mode collapse in GAN training

Generator produces few outputs ignoring data diversity, caused by chasing whatever fools the current discriminator; mitigate with minibatch discrimination, unrolled GANs, or Wasserstein loss.

intermediate2 min read

Why ViTs need positional embeddings

Self-attention is permutation invariant so patch order is lost; positional embeddings restore spatial location. CNNs encode position implicitly via the fixed convolution grid.

intermediate1 min read

Cross-attention for visual question answering

In cross-attention queries come from one modality and keys/values from the other, e.g. text queries attend over image features so the question selects relevant regions.

intermediate2 min read

How Swin Transformer achieves linear attention

Swin computes attention within local non-overlapping windows of fixed size, making cost linear in patches, then shifts windows between layers so information crosses boundaries.

intermediate1 min read

Inductive biases of ViT versus CNN

CNNs bake in locality and translation equivariance; a plain ViT has almost none beyond patch structure, so it must learn spatial relations from data, needing large datasets or strong pretraining.

intermediate1 min read

Re-identification in multi-object tracking

Re-ID matches an object to its prior id using appearance embeddings, not just position; store track features and match re-entering detections by embedding similarity.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles