InterviewStack.io LogoInterviewStack.io

Real Time and Online Learning Systems Questions

Designing machine learning systems that learn, adapt, and act in real time on streaming data. Topics include online learning algorithms (online gradient descent, incremental learners, contextual bandits), handling concept drift, model freshness versus computational cost trade offs, low latency model updates and serving, streaming feature engineering and feature stores, feedback loops, evaluation strategies for online learners, exploration versus exploitation, data labeling and delayed feedback, reliability and monitoring of models in production, and integration with streaming processing frameworks for both inference and continuous training.

EasyTechnical
57 practiced
Implement a Python function to compute running mean and variance for a stream of floating-point numbers using Welford's algorithm. The function should support processing one observation at a time and returning current mean and variance. Provide example usage for a stream [1.0, 2.0, 3.0].
HardTechnical
76 practiced
How can causal inference methods be applied in online learning systems to distinguish correlation from causation in feedback loops? Describe one practical approach (e.g., randomized encouragement, instrumental variables, or A/B tests) and limitations in streaming production.
HardTechnical
62 practiced
Propose a statistically sound evaluation strategy and hypothesis test for streaming A/B experiments where samples are temporally correlated and labels may be delayed. Explain how you would handle dependence and compute confidence intervals.
HardTechnical
77 practiced
You discover a production online model is exhibiting rapidly increasing false positives due to a feedback loop where the model's predictions influence subsequent training data. Walk through a root-cause analysis plan, immediate mitigations to stop the feedback loop, and long-term remedies.
HardTechnical
96 practiced
Compare on-device (edge) online personalization versus server-side streaming updates. Discuss trade-offs in privacy, latency, compute cost, model capacity, and how you would decide which approach fits a given product (e.g., keyboard suggestions vs ad ranking).

Unlock Full Question Bank

Get access to hundreds of Real Time and Online Learning Systems interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.