InterviewStack.io LogoInterviewStack.io

Novel and Emerging ML Techniques Questions

Stay current with recent advances: transfer learning and fine-tuning, meta-learning, few-shot learning, federated learning, continual learning, adversarial robustness. Understand their applications, benefits, and limitations. Be prepared to discuss how these could solve real problems.

MediumTechnical
136 practiced
In PyTorch, implement a concise function that performs the MAML inner-loop update for a single classification task. Given a base model, a support set (x_s, y_s), a loss function, and an inner learning rate inner_lr, compute the adapted parameters after one gradient step and return the updated parameter dictionary or a cloned model that allows outer-loop gradients to flow through the update.
MediumTechnical
80 practiced
Design an experiment suite to evaluate the adversarial robustness of a production NLP classifier (for example, intent classification). Specify the attack types you would consider (character-level, synonym substitution, paraphrase-based), how to generate or source test data, evaluation metrics (attack success rate, accuracy drop, confidence calibration), and how to integrate these tests into CI to prevent regressions.
HardSystem Design
149 practiced
For a global app with 100M users across regions, design a federated learning orchestration layer that handles heterogeneous device capabilities, legal constraints (data must remain in-region), asynchronous updates, adaptive client sampling, and per-jurisdiction privacy budgets. Explain model versioning, how to simulate large-scale federation in staging, replay for testing, and mechanisms to ensure reproducible rollouts across regions.
HardTechnical
103 practiced
With a constrained GPU budget, design a prioritized 6-month roadmap to adopt parameter-efficient tuning (adapters/LoRA), mixed-precision training, and dataset distillation to accelerate model updates. For each initiative provide the required infrastructure changes, estimated cost or time savings, expected impact on model quality, and metrics you would track to evaluate success.
MediumTechnical
87 practiced
Implement in Python (PyTorch) a function `prepare_finetune_model(model_name: str, num_classes: int, freeze_until: Optional[str]) -> torch.nn.Module` that loads a pretrained model from torchvision.models (for example resnet50), freezes parameters up to `freeze_until` (layer name or None), replaces the final classifier head to match `num_classes`, and returns a model ready for training. Make sure to handle BatchNorm layers appropriately when freezing.

Unlock Full Question Bank

Get access to hundreds of Novel and Emerging ML Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.