InterviewStack.io LogoInterviewStack.io

On-Device and Edge ML Questions

Running models on resource-constrained and privacy-sensitive devices. Covers model optimization for mobile and embedded hardware, on-device inference and privacy architecture, and dedicated neural accelerators. Focuses on the size, latency, power, and privacy tradeoffs of moving inference off the server and onto the edge.

MediumTechnical
59 practiced

Design an A/B testing framework for model variants running on iOS devices that respects Apple privacy guidelines. Describe how devices are assigned to experiment buckets, what metrics should be collected locally and how to aggregate them server-side (while limiting PII), and how to determine statistical significance given sampling and privacy-related noise.

EasySystem Design
44 practiced

Describe the lifecycle of a Core ML model from training to shipping: training and export from frameworks (PyTorch/TensorFlow), conversion to Core ML (.mlmodel), compilation to optimized .mlmodelc, embedding in the app bundle versus downloading at runtime, and strategies for versioning and rollback. What are key considerations at each step for mobile constraints?

MediumTechnical
41 practiced

Compare standard convolutions with depthwise-separable convolutions and inverted residual blocks (as used in MobileNet family) for deployment on edge devices. Discuss the tradeoffs in FLOPs, parameter count, memory access patterns, actual latency on CPU vs GPU, and expected accuracy per FLOP. When in production would you choose each option?

EasyTechnical
60 practiced

Describe how you would profile inference latency, memory usage, and power consumption of a Core ML model running on a physical iOS device. Include which Xcode Instruments you would use, how to capture Core ML runtime details, and any coremltools or Python utilities that help benchmark models outside the device.

MediumTechnical
59 practiced

You need to reduce on-device latency. Compare structured pruning (e.g., filter/channel pruning) and unstructured pruning (sparse weights) for achieving latency gains on mobile hardware like ANE or GPU. Explain why one often yields better real latency improvements, and describe the toolchain or runtime support required to realize benefits from each approach.

Unlock Full Question Bank

Get access to all On-Device and Edge ML interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.