Skip to content

The Window Beats the Model: Two Production Papers on Customer Behavior Forecasting

#customer-behavior-forecasting #llm-embeddings #retrieval #recommendation-systems #production-ml

Doubling the history window bought more forecast accuracy than ten times the training data, a larger model, and a newer architecture. That's the finding from a long-horizon customer-behavior forecasting study, and the magnitudes are lopsided: +0.070 to +0.107 in log-space R² going from an 8-week window to a 16-week window, against roughly 0.006 for each of the other levers.

The practical version is blunter. Before you buy GPUs or rewrite the sequence encoder, check whether your feature store even retains four months of customer events. Most don't.

What the Window Lever measured ​

The setup is a weekly forecast. The window is the weeks of history a model sees before the week it predicts from. Feed in that history, predict the next week of customer behavior. Simple frame, expensive consequences.

The authors turned four knobs: window length (8 vs 16 weeks), training data volume (nominal 1M vs 10M customers), model capacity, and architecture (five sequence families). On five public datasets, four of them spanning more than a year, they ran both ridge regression and a transformer.

The window won by an order of magnitude. At the 1M tier, moving from 8 to 16 weeks added 0.070 to 0.107 in log-space R² across every family. The other levers came in at or below 0.006: 0.006 between the 1M and 10M data tiers, 0.0052 across five sequence architectures at 16 weeks, 0.006 for capacity on three-seed means.

Put 0.07 next to 0.006 and the budget conversation changes. That gap is wide enough that a team chasing a 2% model improvement with a new architecture is optimizing the wrong term.

One detail matters more than the headline number. The authors ran matched test cohorts, scoring the same customer-weeks at every window length. Under matching, the raw 8-vs-16 comparison understates the gain in every family it covers. Longer windows also pull in up to 10% more training customers, and colder ones, a composition shift that matching does not fix. Translation for anyone running this on their own data: a naive before/after on window length can move in either direction, because you're changing who's in the sample as well as how much history they carry.

Why the window beats the model ​

Customer behavior has long memory. Renewals run on annual clocks. Purchase cycles run quarterly. Churn risk accumulates over months of declining engagement. An eight-week window truncates all of it and leaves the model fitting recent noise.

That's the mechanism, and it's why the effect is structural rather than a quirk of one architecture. A transformer and a ridge regression both improve with more history, which is the paper's strongest internal check. If the gain only showed up for the transformer, you'd suspect capacity, not information.

There's an honest confound, and the authors flag it themselves. Every test anchor, meaning every week a forecast is made from, falls inside one eight-week band. So window length and calendar coverage move together, and you can't cleanly separate "more history helps" from "these particular weeks happened to be easier to forecast from further back."

They probed it. On training-period anchors, outside the holiday season, the weekly ridge probe keeps about 72% of the gain. That's evidence the effect survives outside a single calendar slice, not proof of a clean history effect. Their stated claim is deliberately narrow: a positive association, without a measured magnitude.

Key Numbers

  • +0.070 to +0.107 log-space R² from an 8 to 16 week window at 1M training customers
  • ≤ 0.006 for 10x data, more capacity, or a newer architecture
  • 72% of the ridge probe's gain retained outside the holiday season
  • 10% more training customers admitted by longer windows, plus colder ones
  • 5 public datasets, 4 spanning over a year
  • 1 fully blind prediction, and it missed

The blind prediction that failed ​

Four predictions were registered internally before the experiments. Three were informed by partial results. The one fully blind prediction assumed an activity-mixture model would gain +0.014 going from 24 to 32 weeks. The weekly-aggregate probe returned -0.0004.

That's the most useful paragraph in the paper for anyone planning a roadmap. The return on history is not linear, and it does not transfer across windows. Going from 8 to 16 weeks is not evidence that 16 to 24 will pay, and 24 to 32 may return nothing at all. Different probe, different data slice, but the direction of the miss is unambiguous.

Quick Take: If your weekly forecast model has less than a quarter of history behind it, the cheapest accuracy you will ever buy is more retention, not a bigger model.

Where retrieval picks up ​

The second paper attacks a different part of the same problem. Forecasting predicts what a customer will do. Retrieval has to guess what they want to see next, across a catalog that isn't homogeneous.

Autodesk's content recommendation spans customer stories, product pages, industry pages, and learning content. Those are wildly different item types with wildly different text. User behavior is sparse and moves fast. The paper's argument is that the retrieval stage has to represent user interest well, because the ranker downstream can't recover signal that never made it into the candidate set.

LSER, their production system, derives session-level and history-level embeddings from a pretrained LLM and adds them as auxiliary user-side features in the retrieval-stage user tower, sitting alongside the existing learned sequence encoders. Auxiliary is the operative word. The LLM doesn't replace the sequence encoder, which was trained on your click logs and knows your catalog. It adds a dense handle on what a session meant, not just that three page views happened in forty minutes.

An embedding of a session captures that a visitor read two customer stories about manufacturing and one industry page on supply chain. A learned encoder on item IDs captures the same events as a sequence of sparse integers. Neither view is complete, which is why they run both.

The serving path is the hard part ​

An LLM embedding that's four hours old describes an interest the user already abandoned. The paper spends real space on the nearline serving path, and that's the right emphasis. Their system asynchronously refreshes sequential and LLM-derived user vectors for the main content recommendation server.

Two properties matter here. Freshness, because session vectors get rebuilt asynchronously rather than on a nightly batch. And separation, because the LLM vector and the sequence vector are refreshed on independent schedules and joined at read time.

The ablation covers the full multi-content-type catalog, and the finding is directional: LLM-derived embeddings as extra retrieval signals improve model performance and the nearline path is technically feasible at production scale. The paper doesn't publish an effect size in the abstract, so treat the retrieval gain as "positive and real" rather than quantified.

What I ran into, and what the community says ​

The retention problem bites first. Our feature store shipped with a 30-day default TTL, which nobody questioned until we tried a 16-week window and found the backfill had to be reconstructed from cold storage. That's a two-week project nobody scoped. If you're planning the window experiment, price the storage and backfill before the modeling work.

Evaluation burned us next. Our offline comparison across window configurations scored different populations, because a longer window excludes customers who joined recently. Gains looked inflated in one direction and vanished in the other. Rerunning with fixed customer-weeks changed the answer. Anyone who has done this will tell you the same thing: match the cohorts or the number is fiction.

The LLM embedding side has its own trap. We bumped the embedding model version and the stored vectors were no longer comparable to the fresh ones, because different model versions put the same session in different places. Dual-write with versioned namespaces is the fix, and it doubles your vector storage for the migration window. The other complaint I keep hearing from teams running this is latency: a synchronous LLM call in the serving path is a nonstarter, so the async refresh isn't optional polish, it's the only version that ships.

Where to spend the next sprint ​

LeverObserved effect (log-space R²)What it costsVerdict
Window 8 → 16 weeks+0.070 to +0.107 rawFeature store retention, backfill, retraining data volumeDo this first
Training data 1M → 10M≤ 0.00610x data pipeline, longer runsDefer
Capacity~0.006~10x compute per runDefer
Architecture swap0.0052 spread across 5 familiesRewrite plus revalidationDefer
LLM session embeddings in retrieval towerPositive in ablation, size not publishedNearline serving, vector store, model versioningWorth it if retrieval is your bottleneck

The asymmetry is stark enough that it should reorganize how you sequence the work. Retention and evaluation hygiene first, model changes last.

Common Pitfalls ​

  1. Comparing window lengths on unmatched populations. The study's own matched cohorts showed the raw comparison understated the gain. Unmatched, customer-mix shifts do the talking and the direction can flip.

  2. Assuming the effect extrapolates. The single fully blind prediction expected +0.014 going from 24 to 32 weeks and got -0.0004. If you're already at 24 weeks, test the next doubling before you commit storage budget.

  3. Rebuilding the model when the real fix is retention. Ten times the parameters bought about 0.006. Sixteen weeks of retained events bought an order of magnitude more.

  4. Serving LLM embeddings without a freshness path or a version namespace. A stale session vector describes an interest the customer already dropped, and mismatched model versions make new vectors incomparable to stored ones.

  5. Treating LLM embeddings as a replacement for learned sequence encoders. LSER adds them alongside, because a pretrained model knows language and your encoder knows your catalog. You need both.

One Thing to Remember ​

The window result is an association, not an isolated causal effect. Every test anchor in the study falls inside a single eight-week band, so longer history and broader calendar coverage are tangled together, and the authors say so plainly. Their 72% retention on non-holiday anchors is evidence, not proof. The reason to act on it anyway is the size of the gap: an order of magnitude against levers you probably already tried.

The Bottom Line ​

If you're forecasting weekly customer behavior and your feature store trims history at 30 or 60 days, extend retention to 16 weeks before you touch the model architecture. That's where the measured gain lives, and matched-cohort evaluation will confirm it faster than any capacity sweep.

If you're building retrieval for a multi-type content catalog, add LLM session embeddings as auxiliary features in the user tower and ship the nearline refresh path in the same release. A synchronous LLM call in serving won't survive load, and a stale vector is worse than no vector.

One thing to watch: the return on history isn't linear. The only blind test in the study went from 24 to 32 weeks and gained nothing, so validate each additional doubling on matched cohorts before you sign off on the storage.