How do memory access and cache behavior affect real-time KNN latency compared to logistic regression?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how memory access patterns and CPU cache behavior shape real-time k-nearest neighbors inference latency, compared with a parametric model like logistic regression. Tests reasoning about bytes read per query, index traversal, tail latency and practical ways to speed up KNN serving.