Redesign a Spam Classifier for Production

Last updated: August 20, 2026

Quick Overview

The candidate is asked to redesign a spam classifier that performs well in production, despite having high offline accuracy but poor real-world results.

Indeed
ML System Design
Machine Learning Engineer
Indeed
August 20, 2026
Machine Learning Engineer
Technical Screen
ML System Design
Medium

0

0

6 solved


The candidate is asked to redesign a spam classifier that performs well in production, despite having high offline accuracy but poor real-world results.

This question is typically asked in the technical screen round for machine learning engineering roles to assess the candidate's ability to diagnose and improve machine learning models in a production environment. The interviewer is evaluating the candidate's understanding of model performance metrics, feature engineering, and the ability to analyze and iterate on a system based on real-world feedback.

What the Interviewer Expects
  • Identify potential reasons for the discrepancy between offline accuracy and production performance.
  • Discuss methods for exploratory data analysis (EDA) to understand false negatives.
  • Propose relevant features for training a new spam classifier.
  • Explain how to implement monitoring and continuous improvement for the classifier.
  • Address trade-offs in model complexity versus performance.
Key Topics to Cover
Model Evaluation
Exploratory Data Analysis
Feature Engineering
Production Monitoring
Model Improvement
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • What metrics would you prioritize for evaluating the spam classifier in production?
  • Can you describe a time you improved a machine learning model's performance?
  • How would you handle class imbalance in the training data?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

To redesign a spam classifier, we first need to understand the requirements for both offline and online performance. While offline accuracy is important, we must ensure that the model performs well in...

High-Level Design

I would start by analyzing the existing model's architecture and data pipeline. This includes reviewing how the model was trained, the features used, and the data quality. I would also look into the d...


Submit Your Answer
Markdown supported