Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Airbnb Engineering 14 min read Case study mediumAdept

How we knew COVID was over (and what our models had to unlearn)

Airbnb's forecasting team splits "retrain" into three distinct decisions: refit (same model, new data), respecify (change structure, features or priors), and hold (leave the model alone). Each one has a matching failure: refitting on one-off spikes, carrying stale COVID-era assumptions through routine refits, and rebuilding in panic after temporary shocks such as FX swings. The triage rule is to hold if the miss sits inside the model's normal range, respecify if errors are one-sided and persistent or refits go unstable, and otherwise refit. In the COVID recovery, refitting a hierarchical pooled model left error about 3x the pre-shock baseline. Respecifying it to borrow strength by geographic adjacency and shared recovery dynamics cut error by over half.

Assumes: time-series forecastingBayesian priorshierarchical models

Related posts

  • Unlocking Earth AI’s planetary geospatial foundation models for global public health

    Google Research easyNovice

    Google's Population Dynamics Foundation Model (PDFM) produces monthly location embeddings from aggregated search trends, mobility, built-environment density and environmental data, which can be dropped into existing epidemiological models without task-specific fine-tuning. Five partner evaluations show the embeddings matching or beating conventional inputs. MMR coverage explained variance rose from 16% to 22% using cross-border Canadian embeddings. County cardiovascular mortality nowcasts matched census-based models (MAE 18.7 vs 19.1) on far fresher data. One-month dengue forecasts improved when combined with TimesFM, postpartum depression risk prediction gained small but transferable AUC improvements, and 4–8 week cholera outbreak shortlists in the DRC improved by about 18% in Precision@5. Gains are modest and task-dependent, with little benefit for short-horizon cholera forecasts where recent case counts dominate.

  • TimesFM-3: A zero-shot foundation model for multivariate forecasting

    Google Research hardMaster

    TimesFM-3 is a 330M-parameter decoder-only transformer pre-trained on over 1 trillion real and synthetic time points that does zero-shot multivariate forecasting, supporting multiple targets, past-only covariates and known-future covariates. Series are split into 32-step patches with per-series normalization. Future-known covariates use lookahead tokens that concatenate the current patch with future patches. Layers alternate causal temporal attention within each series with full cross-variate attention at each time step. Contiguous Patch Masking replaces autoregressive patch-by-patch decoding, producing the whole horizon and 9 quantiles in one forward pass. It ranks first among pre-trained foundation models on Gift-Eval, FEV-Bench and Time against Chronos-2, Toto 2.0 and TimesFM-2.5, even in univariate mode, and is available on GitHub, Hugging Face and BigQuery's AI.FORECAST.

  • Shopify's Playbook for Scaling Machine Learning

    Shopify Engineering easyNovice

    Shopify's approach to scaling machine learning grew out of its first ML product, an order fraud detector that replaced a rule-based system with a high false-positive rate. Teams should pick a problem users care about, confirm the data is trustworthy and accessible, account for downstream dependencies such as fulfillment, and optimize for product outcomes rather than raw model scores. Shopify shipped a simple logistic regression model, built in Python, serialized to PMML, scheduled with Airflow and served in real time from Rails. To scale to hundreds of models, Shopify relies on input/output reconciliation, shadow backtesting, drift monitoring, platform-enforced best practices and automated model operations.

  • AI Changed How Spotify Builds. What We Learned (and Fixed) About Quality at Higher Velocity

    Spotify Engineering easyNovice

    Spotify's quality regressions during its AI ramp-up came not from AI-authored code but from change volume outpacing verification, plus AI-driven compute scarcity that made regional failovers visible to users. Fixes include end-to-end monitoring and scheduler/priority changes for content processing, stronger safeguards and working-hours scheduling for automated fleet updates, doubled reserved edge capacity with tiered failover, and broader long-term quality signals for mobile releases. Internal data shows merged PRs doubling (8,100 to 17,000) with quality work rising from 27% to 31% and no rise in a rebuilt, age-weighted rework rate, though growing PR size and complexity remain open warning signals.

  • Degrade gracefully: designing AI features that keep working when the model doesn't

    incident.io easyNovice

    AI features that have quietly become part of engineers' workflows need designed fallbacks for both outright model outages and silent quality regressions. Model failover is harder than database failover. Prompts are tuned per model, legal and subprocessor constraints limit rerouting, fallback granularity is a design tradeoff, and unexercised fallbacks go stale. Skyscanner tames some of this with an LLM gateway and model tiers. Recommended principles: give every AI feature a deterministic or manual floor, compose features so failure is partial, keep models off the critical path, avoid models where determinism is required, exercise fallbacks with real traffic, and detect quality drops via LLM-as-judge metrics and user feedback signals.

The quest for software engineering knowledge.

Look:
Layout: