case study 8 min read

How Meta Broke the Fat Row Scaling Wall for 64K RecSys Sequences

Ludovico Bessi

By Ludovico Bessi

Senior Machine Learning Engineer at Google · Zurich

Inside Meta's Versioned Late Materialization architecture for HSTU recommenders: cutting write bandwidth 46.2% and scaling user histories to 16K–64K events.

Meta HSTU recommendation systems data infrastructure MVCC
Meta Hybrid UIH Storage and Versioned Late Materialization architecture for O2O-consistent RecSys training
Meta's Hybrid User Interaction History (UIH) storage decouples immutable long-term history from logged training rows, reconstructing exact O2O-consistent sequences at training time via version timestamps.

TL;DR

  • Snapshotting full user interaction histories into every training row ('Fat Rows') causes K-fold storage duplication and overtakes GPU compute past ~4,000 events.
  • Meta's Versioned Late Materialization stores long-term history once in an immutable tier and reconstructs exact O2O-consistent sequences at training time via timestamp <= T.
  • The architecture cut primary training write bandwidth by 46.2%, slashed multi-tenant read amplification, and scaled HSTU sequences to 16K–64K events.

Direct answer: Meta broke the storage and I/O wall in long-sequence generative recommenders (like HSTU) by replacing "Fat Row" history snapshotting with Versioned Late Materialization. Instead of duplicating a user's full interaction history into every logged training sample, Meta stores long-term history once in an append-only, immutable tier and reconstructs exact point-in-time sequences at training time using lightweight version timestamps (timestamp <= T). In production, this cut primary dataset write bandwidth by 46.2%, reduced multi-tenant read amplification, and scaled training sequences to 16K–64K events without stalling GPUs.

This is a public engineering breakdown of Meta's paper — read the full paid Substack deep dive for the storage-tier implementation details and trade-offs at How Meta broke the Fat Row scaling wall.

Why "Fat Rows" Collapse Beyond 4,000 User Events

Modern recommendation systems have shifted from candidate-dependent attention (DIN, SIM) toward generative sequential architectures like Meta's HSTU that run causal self-attention over a user's full interaction history. Just like LLM scaling laws, longer sequences produce reliable power-law gains in model quality.

The bottleneck is no longer GPU FLOPs — it is data infrastructure:

  • K-fold data duplication: To guarantee online-to-offline (O2O) consistency and avoid future label leakage, teams traditionally snapshot a user's entire interaction history directly into each logged training row (the "Fat Row" pattern). If an active user triggers K ranking requests over N days, N - 1 days of history are physically duplicated K times.
  • Data overhead overtakes GPU compute: Around 4,000 historical events, storage, ingestion, feature logging, and preprocessing consume more power and infrastructure capacity than the GPU cluster running forward and backward passes.
  • Multi-tenant read amplification: Retrieval, pre-ranking, and ranking models often read from a shared union training log. A lightweight retrieval tower needing 100 events ends up scanning massive payloads materialized solely for the flagship ranker.

The Key Insight: O2O Consistency Is a Database Problem

Meta's paper starts from a clean systems invariant: physical pre-materialization is sufficient for O2O consistency, but it is not necessary.

Because a user's historical interaction stream is strictly append-only, temporally ordered, and immutable once compacted, the exact sequence visible at ranking time T is deterministically defined by a point-in-time predicate:

UIH(user, T) = { event ∈ ImmutableUIH(user) | event.timestamp <= T } ∪ RecentMutableUIH(user, T)

Borrowing Multi-Version Concurrency Control (MVCC) and late materialization from database engines, Meta splits user interaction storage into two tiers:

Layer What It Stores Why It Matters
Mutable UIH Storage (Hot) Very recent user interactions tailed directly from the live event stream Keeps fresh session signals available for low-latency online serving and logged inline with small footprint
Immutable UIH Storage (Cold/Compacted) Normalized, compacted long-term user histories (thousands to 64K events) Stored once per user instead of K times across every training row
Training Data Logger Label + small mutable tail + version timestamp Shrinks logged training rows dramatically while preserving exact O2O reproducibility
Batch & Streaming Loaders Versioned point-in-time queries with pushed-down length projections Lightweight models fetch only 100 events; flagship HSTU rankers materialize 16K–64K on demand

Production Results

Treating sequence reconstruction as a versioned storage join instead of an inline logging problem delivered immediate fleet-level wins:

  • 46.2% reduction in primary training dataset write bandwidth
  • Lower multi-tenant read amplification, because storage pushdown only reads the sequence horizon each model actually needs
  • 16K–64K sequence scaling in production training without GPU data-loader stalls

Engineering Takeaways for ML Infra Teams

  1. Audit your training row byte breakdown before buying more GPUs. In long-sequence RecSys and Ads stacks, repeated sequence serialization silently dominates storage and network cost long before compute saturates.
  2. Exploit immutability. Any append-only historical feature (watch history, click stream, search history) can be version-referenced by timestamp rather than copied per request.
  3. Push sequence-length projections to storage when multiple funnel stages share one training pipeline.

Read the full storage architecture breakdown in the complete Substack edition: How Meta broke the Fat Row scaling wall.

Go deeper: Sequential & Generative Recommenders (Free Book Chapter) · User Behavior Modeling · Kuaishou OneRec Generative Recommendation.

Frequently Asked Questions

What is the Fat Row problem in recommendation system training?

The Fat Row pattern serializes a user's entire historical interaction sequence directly into every logged ranking sample to prevent future leakage. When an active user makes K requests, their history is duplicated K times—causing storage and ingestion costs to exceed GPU compute past ~4,000 events.

How does Meta preserve online-to-offline (O2O) consistency without Fat Rows?

Because user interaction history is strictly append-only and immutable once compacted, Meta logs only a lightweight version timestamp plus recent mutable events per training row, then reconstructs the exact point-in-time sequence (timestamp <= T) from an immutable storage tier at training time.

How much bandwidth did Meta save with Versioned Late Materialization?

Meta reported a 46.2% reduction in primary dataset write bandwidth, lower multi-tenant read amplification through pushed-down length projections, and stable training up to 16K–64K sequence lengths.

Get the Machine Learning at Scale newsletter

Join 13k+ ML engineers reading weekly deep dives on production ML systems and growing your ML career to Senior and beyond. Free on Substack.

Subscribe Free on Substack
Ludovico Bessi, Senior ML Engineer at Google

Ludovico Bessi

Senior Machine Learning Engineer at Google in Zurich. Previously worked on large-scale abuse ML systems, end-to-end YouTube Ads, YouTube Shopping recommendations, CERN, and Volvo. Writes the weekly Machine Learning at Scale newsletter.

Related Articles