Machine Learning Engineering · Workspace
Case studies
How real teams built their systems, and what broke along the way, each tied to the module that teaches its ideas. 14 case studies.
Case: ShareChat’s trees versus neural rankersSooner or later someone on your team reads that a big company moved from boosted trees to a neural network and asks whether you should too. This case shows how to read such a result: what was compared, on how much data, at what cost, and what was never measured.Covers: CatBoostMMoEYetiRank+1 more: TPUsClassical ML: regression and classification
Case: Flipkart’s visual search across 50M productsAny store with photos ends up wanting “more like this”. This case shows the two halves of that feature, a vector that captures what shoppers mean by similar and a search that finds neighbours among millions of items, and what one team measured when it built both.Covers: VisNetImage embeddingsResNet+2 more: LSH, MapReduceDeep learning architectures
Case: Meesho’s feature store at 1M reads a secondOnce a model scores users while they browse, its features must be read in milliseconds, at sale-day peaks, without the cost growing as fast as the traffic. Meesho’s engineers wrote down what broke in their first feature store and what they changed, with numbers.Covers: RedisCassandraScyllaDB+2 more: Dragonfly, InferflowData preparation and feature engineering
Case: PhonePe’s real-time fraud check on transfersEvery payments product must decide whether to stop a transfer while the user waits or flag it afterwards, and where its fraud labels come from. PhonePe’s engineers wrote down how they made both choices at 100 million transactions a day.Covers: KratosYodaProfile Store+1 more: Real-time featuresDeploying ML models
Case: Pinterest’s user embeddings served on GPUsAny team that adds a sequence model to ranking meets the same two questions: what can be computed ahead of time, and where the rest should run. Pinterest published how it answered both for its Homefeed and ads.Covers: PinnerFormerGPU servingUser embeddings+1 more: TransformersDeploying ML models
Case: Uber’s automatic drift checks on key datasetsMost models read tables their own team doesn’t own. When one of those tables goes partly wrong without failing, nothing alerts. Uber wrote down how it checks hundreds of key tables for exactly that, with almost no work from their owners.Covers: D3ProphetAnomaly detection+1 more: SparkMonitoring and retraining
Case: Zalando’s weekly demand forecasts for 5M itemsForecasts that order stock are judged weeks later, by the sales they helped cause. Zalando wrote down how it runs one such system for millions of items, with a new model every week; the questions it leaves open are the ones you will face with your own.Covers: LightGBMMLForecastConformal prediction+2 more: AWS Lambda, Amazon S3Monitoring and retraining
Case: Spotify’s graph model for audiobook picksEvery store that adds a new type of product meets the same gap: the model needs history, and the new items have none. Spotify published how it closed that gap for audiobooks, with offline tables and an A/B test you can read side by side.Covers: Graph modelTwo-tower modelEmbeddingsRecommendation and ranking systems
Case: Swiggy’s ranking that lifts revenue per orderMost ranking teams are asked to lift revenue or margin without losing orders. Swiggy’s researchers published one way to do it that leaves the ranker’s loss alone, with an online test you can read day by day.Covers: Gradient-boosted treesSample-RankNDCG+1 more: Multi-objective rankingRecommendation and ranking systems
Case: Meta’s ads model trained on thousands of GPUsFew teams train on thousands of GPUs, but every team that grows past one machine meets the same questions Meta answers here: how to split the model, how to keep each GPU busy, and how to make one expensive model pay for itself.Covers: GEMFSDPHybrid sharding+2 more: NVLink, PyTorchDistributed training and scalable ML systems
Case: Uber’s deep learning model for trip timesTrip times are a common first model, and most teams start with gradient-boosted trees. Uber wrote down why it moved its busiest model to a deep network and what it did to keep that network within a few milliseconds.Covers: DeepETAXGBoostLinear transformer+1 more: Quantile regressionApplied ML problems
Case: Razorpay’s foundation model for paymentsPayment companies, marketplaces and banks run many models over the same records. Razorpay wrote down how it moved four of them onto one shared model, how it tests that model, and what sharing still doesn’t give for free.Covers: VulcanSet TransformerMasked-field prediction+1 more: CalibrationApplied ML problems
Case: Stripe’s fraud model, from trees to deep netsMost fraud and risk teams start with gradient-boosted trees, and many later ask whether a neural network would do better. Stripe wrote down why it switched its payment fraud model, what the switch nearly cost, and what it gained.Covers: RadarXGBoostResNeXt+1 more: Wide and deep modelsApplied ML problems
Case: Myntra’s discount pricing from demand forecastsAny team that prices a large catalogue turns a forecast into a decision under business limits. Myntra published its method and its mixed results, including a test where revenue rose and margin fell, which is the mistake most pricing systems make first.Covers: XGBoostPrice elasticityDemand forecasting+2 more: SciPy, LSTMApplied ML problems