Skip to content
The Plain Paper

Experiment · Machine learning

Longer customer histories helped more than most model changes, but calendar effects remain unclear

In customer-activity forecasts, extending history from eight to sixteen weeks improved the score across the tested model families. For one transformer setup, the gain was +0.0731 on the full test set and +0.0959 when the same customers were scored at both window lengths.

In brief

  • Across the tested model families, the eight-to-sixteen-week window gain was +0.070 to +0.107 in log-space R² at the 1M tier.
  • Scoring both windows on the same customers made the transformer’s Huber gain larger: +0.0959 matched, compared with +0.0731 on the full test set.
  • A ridge model’s activity-based curves bent earlier for more active customers; the top activity decile’s fitted half-saturation point was 3.9 weeks.
  • The prediction that the pooled ridge model would keep gaining from weeks 24 to 32 failed: the observed change was -0.0004, against a registered prediction of +0.0142.
  • The main export ties longer windows to earlier calendar coverage, so the paper cannot say how much of the gain comes from extra history alone.

The background

A customer-activity forecast uses past events to estimate how active a customer will be later. A longer observation window gives the model more history, much as judging a shop’s usual busyness from several months of records gives more context than judging it from a few weeks.

The paper reports R², a score that compares a model’s predictions with a simple reference prediction; higher values indicate a better fit. Here it scores predictions after transforming the activity target into log space, which reduces the influence of very large totals.

Changing the window can also change which customers qualify for a test set. The authors therefore sometimes compare windows on a matched cohort: the same customer-and-week cases are scored at each window, so a change in who is tested does not drive the comparison.

What the researchers did

The researchers compared several modeling choices on customer-event data, including model family, population tier, model size, training objective and history length. They varied one factor at a time and forecast activity over the 364 days after each forecast date.

For matched comparisons, they evaluated each window’s already-trained model on the same customer-weeks. They also used a simpler ridge model—a linear model with a penalty that limits overly large fitted weights—to trace how forecast scores changed as history grew and to compare curves across customer-activity groups.

The team tested a physical-time version of rotary positional encoding, a way for a sequence model to represent when events occurred. They also committed predictions in advance about whether window gains would survive matching and how a simpler model’s gains would change at longer windows.

What they found

At the 1M tier, the eight-to-sixteen-week gain ranged from +0.070 to +0.107 in log-space R² across the tested families. The transformer’s full-test gain was +0.0731 with the Huber objective, +0.0800 with mean squared error, and +0.0701 with pinball loss.

Matching the test customers increased the measured transformer gain in the reported comparisons. With Huber, the matched gain was +0.0959, compared with +0.0731 on the full test set; with mean squared error, it was +0.0863 matched and +0.0800 full.

In the ridge analysis, the most active customer group reached its fitted half-saturation point at 3.9 weeks. The paper reports that the bottom half of customers showed no detectable bend within sixteen weeks, so the curve-based analysis suggests that history needs differ with activity.

The registered prediction of continued pooled ridge gains after week 24 did not hold. The observed change from week 24 to week 32 was -0.0004, with a 95% interval from -0.0014 to +0.0004; the registered prediction was +0.0142.

MS-RoPE, the physical-time encoding tested by the authors, reached 0.5716 in log-space R², compared with 0.5508 for their implemented rotary baseline. However, the advantage was specific to this recipe: under a different raw-target recipe, MS-RoPE scored lower than the baseline.

Changing population tier or model capacity produced much smaller observed changes than changing the window in the reported comparisons. The authors treat these scale and capacity results as unresolved, not proof that more data or a larger model cannot help.

Of 24 head-to-head comparisons the paper prints, 13 favour its own contribution, 3 go against it and 8 are level.

  • Compared with best affine correction, 2 results: 2 favour the paper, 0 go against it.
  • Compared with input-window extension, 2 results: 0 favour the paper, 0 go against it and 2 are level.
  • Compared with registered mixture prediction, 2 results: 0 favour the paper, 2 go against it.
  • Compared with RoPE, 2 results: 2 favour the paper, 0 go against it.
Results as the paper prints them, with the difference worked out for this page
What was measuredResultCompared withDifference
matched transformer evaluation
matched Δ(M16−M8) log-space R² at 1MMatched cohort; seed-42 evaluation · [0.094, 0.098]0.096registered threshold: +0.05+0.046 (+92.0%)
matched weekly-aggregate ridge
log-space R² at 24 weeksScored across a cohort shift0.4296saturating prediction; log-linear prediction: 0.4345; 0.4952
weekly-aggregate ridge
Δ(24→32) log-space R²Fully blind registered prediction; M32 extract · [-0.0014, +0.0004]-0.0004registered mixture prediction: +0.0142-0.0146 (-102.8%)Goes against the paper
transformer
matched Δ(24→32) log-space R²Single seed; checkpoints trained on different cohort extracts · [0.010, 0.013]+0.011saturating prediction; log-linear prediction: +0.012; +0.041
M16-minus-M8 log-space R² on full test split1M tier; three-seed paired means+0.0731Huber matched (3-seed): +0.0959-0.0228 (-23.8%)
M16-minus-M8 log-space R² on matched cohort1M tier; three-seed summary; the table notes the delta column is seed-42 paired+0.0959Huber full (3-seed): +0.0731+0.0228 (+31.2%)
M16-minus-M8 log-space R² on full test split1M tier; three-seed paired means+0.0800MSE matched (3-seed): +0.0863-0.0063 (-7.3%)
M16-minus-M8 log-space R² on full test split1M tier; three-seed paired means+0.0701pinball matched (seed 42): +0.0948-0.0247 (-26.1%)
transformer population-tier ladder
change in R² across training-population tiers at M163-seed means; full test split0.0025input-window extension: +0.111-0.1085 (-97.7%)
transformer capacity ladder
change in R² across width and depth at M163-seed means; full test split0.006input-window extension: +0.111-0.105 (-94.6%)
MS-RoPE versus RoPE
M16 log-space R² differenceThree-seed mean; full test split+0.0208RoPE
6-feature ridge
matched log-space R² at M81M tier0.4369full R²: 0.4373-0.0004 (-0.1%)
Show 26 more results
More results, as the paper prints them
What was measuredResultCompared withDifference
6-feature ridge
matched log-space MSE at M161M tier2.140M8 matched MSE: 2.627-0.487 (-18.5%)
GRU
full-test log-space R² change1M tier+0.076
LSTM
full-test log-space R² change1M tier+0.077
Ridge
full-test log-space R² change1M tier; six aggregate features+0.099
single-feature linear model
full-test log-space R² change1M tier; input-window activity total+0.107
transformer
full-test log-space R² at M16, 10M tierSeed 420.55101M-tier counterpart
ridge
full-test log-space R² at M16, 10M tierSeed 420.51461M-tier counterpart
transformer with MSE objective
full-test log-space R² at M161M tier; three-seed means0.5875GRU, own budget: 0.5863+0.0012 (+0.2%)
transformer minus GRU
full-test log-space R² difference at M16MSE objective; recurrent model retrained at transformer budget; three-seed means-0.0004zero differenceGoes against the paper
isotonic correction
fraction of MSE–pinball test-score gap closedSeed 42; isotonic fit on validation94.14 %best affine correction: 30.68+63.46
fraction of MSE–Huber test-score gap closedSeed 42; isotonic fit on validation89.90 %best affine correction: 28.58+61.32
RoPE
M16 log-space R²1M tier; Huber objective; full test split · population SD 0.00160.5508MS-RoPE: 0.5716-0.0208 (-3.6%)
Learnable per-frequency
M16 log-space R²1M tier; Huber objective; full test split · population SD 0.00700.5628RoPE: 0.5508+0.0120 (+2.2%)
MS-RoPE
M16 log-space R²1M tier; Huber objective; full test split · population SD 0.00120.5716RoPE: 0.5508+0.0208 (+3.8%)
MSE plus MS-RoPE transformer
M24 full-test log-space R²1M tier · population SD 0.0024 over 3 seeds0.6419
Transformer (MSE + MS-RoPE)
matched log-space R² at M161M tier; matched cohort · population SD 0.0007 over 3 seeds0.6052GBM: 0.5867+0.0185 (+3.2%)
GBM
matched log-space R² at M161M tier; seed 420.5867Transformer (MSE + MS-RoPE): 0.6052-0.0185 (-3.1%)
Taobao ridge
matched log-space R² contrast from D3 to D76,985 matched users; same two-day target · 95% user-level paired bootstrap CI [+0.0090, +0.0229]+0.0162
Taobao transformer with MSE objective
matched log-space R² contrast from D3 to D76,985 matched users; three seeds · 95% user-level paired bootstrap CI [+0.035, +0.059]+0.047Taobao ridge contrast: +0.0162+0.0308 (+190.1%)
Transformer
parameter countM16-1M checkpoint491248 parametersGRU (2-layer): 158851+332397 (+209.3%)
d512 transformer
test log-space R²Corrected inputs; 16-week 1M extract; selected learning rate · population SD 0.0012 over three seeds0.6405d128, 2 layers at 5×10^-4: 0.6387+0.0018 (+0.3%)
d128 transformer
test log-space R²Corrected inputs; 16-week 1M extract · population SD 0.0011 over three seeds0.6387d512, 8 layers at picked rate: 0.6405-0.0018 (-0.3%)
weekly-aggregate ridge instrument
pooled Δ(24→32) log-space R²M32 extract; customer-clustered bootstrap · 95% CI [-0.0014, +0.0004]-0.0004registered mixture prediction: +0.0142-0.0146 (-102.8%)Goes against the paper
top activity decile
fitted half-saturation pointMatched-cohort weekly-aggregate ridge analysis3.9 weeks
lowest three activity deciles
mean within-decile gain from week 24 to 32Per-decile refits; M32 extension+0.018mixture prediction: +0.045-0.027 (-60.0%)Goes against the paper
10M matched cohort
number of matched customer-weeks10M tier; three-window cohort4,069,475 rows

What to be careful about

The primary data come from one proprietary population and export. The test dates fall within a narrow calendar period, and longer windows reach further back into calendar time, so the study cannot separate the effect of extra history from the effect of which months that history covers.

Matching controls which test cases are scored, but not all differences between runs. Longer-window models can train on a larger eligible population, and the researchers note that this training-side change remains in their main window comparisons.

The saturation and activity-allocation results come from a weekly-aggregate ridge probe, not from the transformer. The paper says the bend was not shown to persist on holiday-free anchors or on the public datasets where it could be assessed.

The transformer’s 24-to-32-week comparison used one seed and models trained on different cohort extracts. The registered ridge prediction beyond 24 weeks failed, while the transformer result remains less certain because of that training-data mismatch.

The advantage of MS-RoPE is measured against the authors’ particular rotary implementation and training recipe. Its sign reversed under the paper’s different raw-target recipe, so the result is not a general claim that this encoding always improves forecasts.

Who can use it

For teams making customer-activity forecasts, the results suggest testing longer histories before assuming that a larger model or a different architecture will yield a comparable improvement. The authors’ ridge analysis also suggests considering customer activity when deciding how much detailed history to use.

The paper does not establish a universal best window. Its practical advice to allocate history by activity applies within the measured range, and the primary data cannot show how much of the transformer’s window gain comes from history rather than calendar coverage.

Terms explained

Observation window
The amount of past event history given to a model, measured here in weeks.
R²
A score comparing a model’s predictions with a simple reference; higher values mean a better fit on the same evaluation set.
Log-space R²
The paper’s R² score after transforming activity values with a logarithm, which reduces the influence of very large values.
Matched cohort
The same customer-and-week cases evaluated at each window length, so the comparison does not change who is being scored.
Ridge
A linear prediction method that penalizes large fitted weights to limit overfitting.
Half-saturation point
The fitted history length at which a saturation curve reaches half of its eventual increase.
Rotary positional encoding
A method for giving a sequence model information about event order by changing how it represents each position.
MS-RoPE
The paper’s multi-scale rotary encoding, which uses learned bands tied to physical time scales such as hours, days, weeks and years.
Seed
A setting used to initialize a model run; using several seeds checks whether results vary across training runs.

Questions this paper answers

Does a longer observation window improve customer-activity forecasting?

In the paper’s tests, extending history from eight to sixteen weeks improved log-space R² across the tested model families. The size of that gain cannot be attributed to history alone because longer windows also cover different calendar months.

Why did the matched-cohort comparison show a larger window gain?

Longer windows changed which customers appeared in the test set. When both windows were evaluated on the same customer-weeks, the transformer’s Huber gain was +0.0959, compared with +0.0731 on the full test set.

How does the useful history length vary with customer activity?

In the weekly-aggregate ridge analysis, the fitted bend came earlier for more active customers. The top activity decile’s half-saturation point was 3.9 weeks, while the bottom half showed no detectable bend within sixteen weeks.

Did the paper’s prediction of further ridge gains from weeks 24 to 32 hold?

No. The observed pooled change was -0.0004, while the registered prediction was +0.0142; the paper reports this as the fully blind prediction that failed.

Did MS-RoPE improve customer-activity forecasts?

Against the paper’s implemented rotary baseline, MS-RoPE improved log-space R² from 0.5508 to 0.5716 in the reported comparison. Under a different raw-target recipe, it scored lower than the baseline, so the improvement was recipe-specific.

The paper in detail

Everything below is recorded from the paper and matched against its text.

What the paper claims, in its own terms
  • Shown

    Among the tested levers, observation-window length moves accuracy most.

    Holds when: For the studied task, export, evaluation and tested configurations.

  • Shown

    Matching test customers across windows enlarges the measured 8-to-16-week gain for every measured objective and family.

    Holds when: Through 16 weeks on matched cohorts.

  • Shown

    The primary design does not identify a calendar-independent magnitude for the effect of additional history.

    Holds when: End-anchored export with fixed test anchors.

  • Shown

    Fitted saturation bends occur earlier for more active customers across the top five activity deciles.

    Holds when: Weekly-aggregate ridge analysis of activity deciles.

  • Shown

    The top activity decile has a fitted half-saturation point of 3.9 weeks.

    Holds when: Weekly-aggregate ridge probe.

  • Shown

    The registered mixture-tail prediction for the 32-week extension failed its preregistered falsifier.

    Holds when: Weekly-aggregate ridge instrument; registered 24-to-32-week test.

  • Shown

    Against the implemented RoPE baseline, the tested physical-time representation produced the largest measured model-side improvement.

    Holds when: Primary log-space recipe; the paper notes the result is recipe-specific.

  • Shown

    The paper does not claim novelty for multi-scale physical time itself.

Theorems and stated results
  • M8-to-M16 change in log-space R². Every family scored on the matched cohort increases log-space R² by +0.086 to +0.104 from M8 to M16. (1M tier; matched cohort)
  • half-saturation points of fitted activity-decile curves. The half-saturation points are 3.9, 5.2 and 10.0 weeks for deciles 10, 9 and 8, respectively. (Fitted per-decile curves on the matched cohort)
  • matched versus full-set window contrasts at 1M and 10M. At both population tiers the matched delta exceeds the full-set delta for every window contrast shown. (Transformer, Huber, seed 42)
  • matched log-space R² at D3, D5 and D7. Matched log-space R² rises from 0.0213 at D3 to 0.0305 at D5 and 0.0374 at D7. (6,985 users in all three test splits)
  • clipped-raw R² at 1M from M8 to M16. Clipped-raw R² changes from 0.648 at M8 to 0.718 at M16, a printed gain of +0.070. (Seed 42; winsorized raw-target recipe)
  • clipped-raw R² difference versus RoPE. MS-RoPE is lower than RoPE by 0.054 at M8 and 0.075 at M16 in the clipped-raw statistic. (Two-seed means; raw-target recipe)
The method, step by step
  1. Extract fixed customer-event cohorts at multiple observation-window lengths and population tiers from one primary export.
  2. Train transformer, recurrent, continuous-time, linear and boosted-tree configurations while sweeping one factor at a time.
  3. Evaluate log-space R² on each full test split and, for eligible comparisons, re-score models on test rows intersected by customer and target-week keys.
  4. Run registered tests of cohort-matching survival, saturation-form extrapolation, activity-mixture tails and a deep-model extension.
  5. Use a weekly-aggregate ridge probe to fit information curves and activity-decile curves.
  6. Compare positional encodings and training objectives, including validation-fit isotonic remapping of predictions.
  7. Check results across seeds, builds, a public Taobao dataset and four additional public datasets referenced in the supplied text.

New in this paper

  • A matched-cohort evaluation framework for window-length comparisons.
  • Four internally registered quantitative commitments with explicit falsifiers.
  • A measurement of the effect of structured physical-time rotary bands against the rotary implementation used in the study.
  • A validation-fit monotone-map screen applied to the objective menu.

Taken from earlier work

  • Uses rotary positional encoding and frequency-rescaling ideas from prior work; the paper explicitly claims no novelty for multi-scale physical time as such.
  • Uses ridge regression, GRU, LSTM, LightGBM and simplified continuous-time baseline implementations.
  • Uses customer-clustered bootstrap and isotonic regression as described in the paper.

Assumptions

  • The matched window comparison uses a fixed test population keyed on customer and target week; the paper notes this does not fix training-side eligibility.
  • The anchor-label permutation test assumes predictions are exchangeable within customers under the null.
  • Reported bootstrap intervals cover row-sampling uncertainty at the three test anchors, not calendar-anchor variation or training-seed variation.
  • One-factor-at-a-time scale and capacity comparisons do not characterize joint or compute-optimal scaling.
Terms as the paper defines them
extract
A fixed cohort sample cut from the platform’s raw event-stream export at a given window and tier.
run
One training or evaluation job at one grid point and one seed.
ladder
A sweep along one factor, with each setting constituting a point on it.
instrument
The measurement model from which a curve is estimated.
mismatch
Any difference in environment or data between compared runs.
model-side
A factor is model-side if it changes the model rather than the history, customer cohort or fitted target.
Methods, datasets and ideas it names
  • matched-cohort frameworkMethod · Introduced here

    The paper intersects test sets by customer and target week and evaluates each window on the resulting common cohort.

  • weekly-aggregate ridge probeInstrument · Used

    A ridge model on weekly aggregate features used to measure how predictive information changes with history length.

  • MS-RoPEMethod · Used

    A rotary positional encoding whose frequencies are tied to semantic physical-time bands.

  • Alibaba Taobao UserBehavior datasetDataset · Used

    A public dataset used for an external check of window effects on a nine-day time span.

  • GBMMethod · Compared against

    A 400-tree, 63-leaf gradient-boosted ensemble using six aggregate features.

  • eight trained model familiesObject of study · Studied

    The paper compares transformer, recurrent, continuous-time, boosted-tree and linear families.

  • internally registered commitmentsOther · Studied

    Four quantitative predictions with falsifiers were committed before their deciding evaluations.

  • 32-week extensionOther · Used

    An internally registered extension used to test predictions about gains beyond 24 weeks.

  • extractConcept · Used

    A fixed cohort sample cut from the platform’s raw event-stream export at a given window and tier.

  • runConcept · Used

    One training or evaluation job at one grid point and one seed.

  • ladderConcept · Used

    A sweep along one experimental factor.

  • instrumentConcept · Used

    The measurement model from which a curve is estimated.

  • mismatchConcept · Used

    Any difference in environment or data between compared runs.

  • model-side factorConcept · Used

    A factor that changes the model rather than history, the customers shown, or the fitted target.

Limits the authors state
  • The magnitude of the window gain remains confounded with calendar coverage and is not identified as a calendar-independent history effect.
  • The export does not permit recovery of a calendar-balanced transformer test set.
  • The holiday-free calendar check is a validation-style estimate from a linear probe, not from the transformer or test set.
  • Training recipes differ across model families, which limits direct cross-family comparisons.
  • Capacity and data were not grown together, so the study does not measure a compute-optimal configuration.
  • The three-seed detection floor is above the reported architecture band and close to the customer-scale and capacity bounds, leaving those effects unresolved.
  • The 32-week transformer comparison is single-seed and confounded by different training extracts.
  • The allocation result is optimistic because the greedy search and scoring use the same matched test rows.
  • On Taobao, the transformer magnitude is unresolved at three seeds; Huber results also involve collapsed runs and fewer non-collapsed seeds.
  • The isotonic-calibration analysis is limited to nine models in one recipe family and does not establish transfer across scale, capacity or objective family.
How the evidence was gathered
Samples or repeats
Primary transformer runs commonly use seeds 42, 123, 456; matched 1M three-window cohort n=407,338; matched 10M cohort n=4,069,475; Taobao matched cohort n=6,985. Bootstrap analyses commonly use B=1,000. Several baseline and anchor-control results are single-seed.
Uncertainty reported
For some results
Significance tested
Yes
Notes
The paper reports population standard deviations, paired customer-clustered bootstrap intervals, and some seed-level t intervals. It emphasizes that many intervals do not cover calendar-anchor or training-seed variability; the anchor-varying control is void under its preregistered criterion.
Questions the paper leaves open
  • What fraction of the transformer’s window gain is due to history rather than calendar coverage?
  • Would the observed scale and capacity effects resolve under experiments with greater precision or different recipes?
  • How would the transformer window gain behave on a calendar-balanced test set that separates window length from calendar coverage?
  • Would the activity-dependent saturation pattern persist on holiday-free anchors or other public datasets?
  • What would the 24-to-32-week transformer gain be without the training-extract mismatch?
  • Would the apparent capacity bound persist under broader joint scaling of data and model capacity?

Paper details

Title
The Window Lever: Longer Observation Windows Outweigh the Observed Effects of Data, Capacity, and Architecture in Customer Behavior Forecasting
Authors
Tara Sowrirajan, Yanqiao Wang
Published
19 November 2026
Version read
v1
Field
Machine learning
arXiv
2611.26521

This explanation was written for this site from the paper's own source. 97 passages and figures recorded from the paper were matched against its own text; 4 that could not be matched were left off this page. It does not judge whether the paper is right, and most papers on arXiv have not been peer reviewed. Read the paper before relying on a result.