Does Leaky Validation Pick Oversized Embeddings?

Most models that learn from interaction data, such as recommenders, temporal graph networks, and flight-delay predictors, represent each user, item, or node as a vector of $d$ numbers called an embedding. Practitioners usually pick $d$ by trying a few sizes and keeping the one that scores best on a held-out validation set. This proposal asks whether that habit is quietly biased by time.

When the validation data is drawn from the same period as training, or even from the period immediately after it, a large embedding can score well by memorizing patterns that will no longer hold when the model is deployed further in the future. Our hypothesis is that standard selection procedures systematically choose embeddings that are too large. The size of that overshoot should be predictable from how much the graph changes between the validation period and the deployment period. A selection procedure whose validation window sits as far from the training cutoff as deployment will actually be should remove most of the overshoot.

Two findings motivate this. First, splitting data at random, or holding out each user's last interaction, inflates measured performance and reshuffles which models look best. On the 54.67-million-flight Aeolus benchmark, random splitting raised AUC by 0.057 on average over a chronological split. Across 230 recommender variants, Meng et al. found a Kendall rank correlation of only 0.5284 between leave-one-last-item and temporal global splits. Second, large embeddings tend to memorize rather than generalize. Hata et al. and Nested Subspace Arrangement show near-perfect training reconstruction (F1 0.993 in 20 dimensions on WordNet) alongside weak link prediction. Wang et al. report that large ID embeddings hurt stock-trend prediction under chronological evaluation. No paper in our search connects the two findings by measuring how the choice of split shifts the chosen $d$.

Core Claim

We define a protocol $P$ as a way of constructing the validation set: random, leave-last, chronological-adjacent, or horizon-matched. Let $d_P$ be the embedding size it selects from a grid $D$, and let $M_{\text{test}}(d)$ be the test metric at size $d$. The quantity we study is the selection regret:

$$R(P) = \max_{d \in D} M_{\text{test}}(d) - M_{\text{test}}(d_P),$$

together with the dimension inflation $\log_2(d_P / d_{\text{oracle}})$, where $d_{\text{oracle}}$ is the size that scores best on test.

The claim has three parts. Leaky protocols produce positive inflation and nonzero regret. Ordinary chronological validation, with the validation window placed directly after training, still inflates $d$, because that window shares more edges with training than the test period does. Inflation grows with the gap in "surprise," which TGB defines as the fraction of evaluation edges never seen in training, measured between the validation and test windows.

The middle part is what separates this from the obvious "chronological splits are better" result. It predicts that inserting a gap between training and validation equal to the deployment horizon matters for choosing $d$ specifically. This borrows two ideas: the buffer gaps used in climate forecasting by Yan et al., and the treatment of labeling and deployment delays as a form of look-ahead bias in Simonetto et al..

Relation to Prior Work

Some papers supply the evaluation machinery. TGB and Yu's DyGLib study provide streaming chronological evaluation, negatives drawn from past edges that are inactive at test time, and the surprise index. Both treat $d$ as a fixed default and never ask whether the poor showing of neural models on high-surprise or node-level tasks reflects excess capacity. Meng et al. and Aeolus supply the leaky-versus-chronological contrasts we reuse, but neither isolates $d$.

Other papers constrain the design. MinGE and the power-law saturation criterion choose $d$ from a static graph snapshot, and MinGE's authors flag dynamic graphs as unsolved. Because they look only at structure, we expect them to be blind to temporal drift and use them as baselines rather than as the method. CustomizE assigns larger sizes to frequent entities on static knowledge graphs. Under chronological evaluation, past frequency may mislead, since frequent entities can go dormant. We test this only as a secondary question.

IMPaCT is closest in spirit. It shows that GNNs trained under chronological splits overfit to connectivity patterns from the training years, and it fixes this by aligning the mean and variance of messages across time steps. It holds hidden size fixed, so whether a smaller $d$ is a cheaper fix for the same failure is open. We test that directly.

Research Program

We will train each model across a grid $d \in \{16, 32, 64, 128, 256, 512\}$ on every dataset, with three seeds. The same trained checkpoints are scored under every validation protocol, so the protocols differ only in which points they look at, not in compute. There are four protocols:

  1. Random: edges or interactions shuffled before splitting.
  2. Leave-last: each user's last interaction held out, following Meng et al.
  3. Chronological-adjacent: the validation window begins at the training cutoff.
  4. Horizon-matched: an unused gap equal to the test horizon is inserted before the validation window.

We will also slide the test window forward in time. At each position we record $d_{\text{oracle}}(t)$ and the surprise gap between validation and test, then fit how inflation depends on that gap. This regression is the project's main analytical result. If inflation does not track the surprise gap, the mechanism we propose is wrong even if inflation exists.

Baselines

The naive reference point is the dimension each library ships with by default, as used in Yu under Adam with learning rate 0.0001. That is the $d$ most published TGB numbers reflect. For the strongest TGB link-prediction comparison, the file reports a DyGFormer test MRR of 79.83 on tgbl-wiki (Yu) and a NAT MRR of 0.749 (TGB). Horizon-matched selection beats the default if it improves test MRR beyond seed variance, or matches it at a smaller $d$. We have no reported result on Lacuna for tgbl-review, so we will establish our own default-$d$ numbers there.

The strongest existing selection procedure is grid search with chronological-adjacent validation. Practitioners who already avoid leakage use exactly this, and it is the method our second claim says still overshoots. It uses the same checkpoints as our protocol, so the comparison is exactly fair. Our protocol wins if its regret is significantly lower, measured by a paired test across datasets, models, and test-window positions.

The structure-only selectors MinGE and power-law saturation get one run each on the training graph. They are the cheap, principled alternative, and they win only if their chosen $d$ lands near $d_{\text{oracle}}$.

The ablation that isolates our key ingredient fixes $d=256$ and gives weight decay and dropout the same tuning budget as the $d$ grid under the horizon-matched protocol. If this closes the regret, the effect is about total capacity, and $d$ is not special.

On node-affinity tasks, the zero-parameter heuristics stay as reference points throughout. The file reports Persistent Forecast at NDCG 84.69 against DyGFormer's 38.78 on tgbn-trade (Yu), and Moving Average at NDCG@10 0.559 against TGN's 0.315 on tgbn-reddit (TGB).

Why not just…?

Why not just do grid search on a chronological validation split, which everyone already recommends? This is the main threat. If chronological-adjacent and horizon-matched validation choose the same $d$, our second claim fails and the contribution reduces to confirming Meng et al. for one hyperparameter. The sliding-window regret comparison settles this directly, and we will report it whichever way it comes out. There is reason to expect a difference. Simonetto et al. found that ignoring a 38-day operational delay overstated drift-mitigation gains by up to 39.86%, which suggests that the distance between validation and deployment is itself a source of bias.

Why not just tune weight decay or dropout at a fixed size? CustomizE's evidence against uniform capacity control comes from static knowledge graphs, so it does not settle the temporal case. The fixed-$d$ regularization ablation does. If it matches tuning $d$, we will say the finding concerns capacity in general. Even then, $d$ remains the setting that also determines memory and latency, which regularization does not reduce.

Why not just use Persistent Forecast or EdgeBank? On node-affinity tasks with little structural change, these heuristics do win, and we do not dispute that. Our main tests are on link prediction and on Aeolus, where the file reports neural or relational models leading on high-surprise data (tgbl-review) and on multimodal data (AFM + VGAE AUC 67.94%). As a secondary check on tgbn-trade and tgbn-reddit, we will measure whether shrinking $d$ narrows the gap to the heuristics.

Why not just run MinGE? MinGE sees only one static graph, so by construction it cannot respond to the evaluation horizon. Its inflation against $d_{\text{oracle}}$ across window positions will show whether that blindness matters in practice.

Proposed Experiments

The datasets are tgbl-wiki, tgbl-review, tgbl-coin, and tgbl-comment, using TGN, TGAT, GraphMixer, and DyGFormer through DyGLib, scored by MRR against past-edge negatives. We add Dunnhumby with BPR, NeuMF, and NGCF under Meng et al.'s splits, scored by NDCG. We add Aeolus with VGAE embedding sizes swept on its 6:2:2 chronological split, with the COVID-19 slice analyzed separately as a shock period. As an extension, we will test IMPaCT on ogbn-arxiv to see whether a smaller $d$ substitutes for moment alignment.

The decisive checks are four. Random and leave-last protocols should show positive inflation. Regret under horizon-matched selection should fall below regret under chronological-adjacent selection. Inflation should rise with the surprise gap. The fixed-$d$ regularization ablation should fail to match tuning $d$. The first result alone is a useful warning to the field. The first three together establish horizon-matched selection as the correct way to choose embedding size for any model that will be deployed forward in time.