Exact Forward-in-Time Validation for Federated Partial Least Squares

Many regression problems where data cannot leave its owner are small, wide, and changing over time. Examples include spectrometers at several labs predicting chemical content, multi-site brain-imaging studies, and agricultural sensors at different farms. Each owner has a few hundred samples, thousands of strongly correlated measurements, and instruments, crops or populations that drift. The usual tool here is partial least squares regression (PLSR), a linear method that compresses the inputs into a few "latent components" chosen to covary most with the target, then regresses on those components. Two separate literatures already exist. One shows that PLS can be run across sites without pooling raw data. The other shows that randomly shuffled evaluation on time-ordered data badly overstates real performance. Nobody has joined them. The result is that the decisions that matter most for PLSR are still tuned with leaky random cross-validation, if they are tuned at all. Those decisions are how many components to keep, how much history to remember, and which other sites' data to trust.

This note proposes a simple observation and tests it. Everything PLSR needs is a sum of per-sample products: the input cross-products $X^\top X$ and the input–target cross-products $X^\top y$. Those sums split cleanly across sites and across time blocks. The same holds for the squared prediction error of any fixed linear model on a future block. So a federation can run exact forward-chaining validation without any site revealing a raw sample. In forward-chaining validation, a model is fit on the past and scored on the next block whose labels have actually arrived. The federation can therefore select component count, memory length and cross-site pooling under realistic labeling delays, in closed form, with no iterative federated optimization.

Core Claim

For linear latent-factor regression, federated, leakage-free, delay-aware model selection is an exact computation over block-wise moment summaries rather than an approximation problem. Selecting PLSR's hyperparameters this way, especially which sites to pool and how far back to remember, gives better forward-in-time error than three alternatives: random cross-validation, fixed-forgetting heuristics, and federated neural networks with drift handling. This should hold in the small-sample, many-feature regime where PLSR is the method practitioners actually use.

The mechanism rests on one identity. Let $S^{(s,b)}_{xx}=X_{s,b}^\top X_{s,b}$, $S^{(s,b)}_{xy}=X_{s,b}^\top y_{s,b}$, $S^{(s,b)}_{yy}=y_{s,b}^\top y_{s,b}$ and the count $n_{s,b}$ be the moments of site $s$ in time block $b$, after centering with running means that are also carried as sums. For any coefficient vector $\beta$ fit on other blocks, the block's squared error is

$$\mathrm{SSE}_{s,b}(\beta)= S^{(s,b)}_{yy}-2\beta^\top S^{(s,b)}_{xy}+\beta^\top S^{(s,b)}_{xx}\beta .$$

A PLSR model with $K$ components can itself be computed from summed moments, for instance with the SIMPLS algorithm, which works on $X^\top y$ and $X^\top X$ directly. Each candidate configuration is a triple: the number of components $K$, a memory weight $\lambda$, and a site-pooling weight vector $w_s$. Its training moments are

$$\hat S_{xx}=\sum_{s'}w_{s s'}\sum_{b'\le b-d}\lambda^{\,b-d-b'}S^{(s',b')}_{xx},$$

and likewise for $\hat S_{xy}$, where $d$ is the labeling delay in blocks. The configuration is then scored by $\mathrm{SSE}_{s,b}$ on the first block whose labels exist. Nothing in this pipeline is approximate, and nothing touches a sample.

Relation to Prior Work

The method-supplying work is Secure multivariate large-scale multi-centric analysis through on-line learning. It runs PLS across ADNI sites using the additivity of $X^\top Y$, in two forms: Sequential-PLS passes a model from site to site, and Meta-PLS shares local low-rank summaries. Its feature weights stay within 3% of the pooled analysis. That evaluation is static, on two random halves, and the authors name distributed cross-validation as open. We supply that missing piece, in its time-respecting form, and we also add per-site pooling choices.

The motivating evidence that the evaluation protocol changes conclusions comes from three studies:

None of these studies involves PLSR, federation, or collinear regression. Our delay parameter $d$ and memory weight $\lambda$ are the direct translation of their protocol into the moment-based setting.

The federated drift literature is the competing approach:

Both are built for deep classifiers trained by iterative rounds. Our site-pooling weights $w_{ss'}$ play the role of FedDrift's clusters, but they are chosen by exact forward validation rather than by a detection threshold. That should reduce the over-clustering on noise that FedDrift risks.

Finally, chemometric results limit what should be expected. In Quantitative analysis of pyrolysis characteristics and chemical components of tobacco materials, PLS outperformed SVR, Gaussian processes, random forests and neural networks on 8,436-point curves from 157 samples. In Retrieval and mapping of heavy metal concentration in soil using time series Landsat 8 imagery, a neural network overfit (training R² 0.97) while PLSR stayed stable. These results suggest the linear model is the right base, but neither was evaluated forward in time. The tobacco samples span harvest years 2017–2019, so that result can be re-checked chronologically.

Research Program

We will build a small library in which each site keeps per-block moment summaries. When the number of features $P$ is large, the full $P\times P$ cross-product matrix becomes expensive, so for that case a site keeps a Meta-PLS-style low-rank sketch of $X^\top X$ plus the exact $X^\top y$, following the ADNI paper's 90%-variance truncation. Sites release these summaries only through secure summation. A coordinator searches over $K$, $\lambda$, $d$-respecting windows, and pooling weights. Pooling weights are restricted to a small family to limit selection overfitting: own-site only, all sites equally, or cluster memberships proposed by agglomerative clustering on per-site PLS loadings.

The analysis component has three parts. First, an exactness check against pooled centralized chronological PLSR. Second, a leakage study that quantifies how much random cross-validation inflates the apparent R² of federated PLSR and misselects $K$. Third, a privacy treatment. Block moments of a block with fewer samples than features nearly reveal its data, so we will report both secure-aggregation-only results and results with calibrated noise on the moments. The noisy variant follows the spirit of Privacy-first health research with federated learning, which showed that federated analysis under differential privacy can reproduce centralized odds ratios.

Baselines

The naive reference point is local PLSR. Each site fits its own model on all its past data, with $K$ chosen by random 10-fold cross-validation, which is the chemometric default. All models are scored on the same forward blocks under the same delay $d$. Beating it means lower forward RMSE, averaged over sites and blocks, with a paired test over blocks.

The second baseline is pooled all-history federated PLSR, with $K$ chosen by random cross-validation on the pooled moments. This is what Meta-PLS from the ADNI paper amounts to if it were deployed over time. The only number the file reports for it is feature-weight error within 3% of pooled PLS. There is no reported result found on Lacuna for its forward-in-time predictive error. Run it with the same summaries and the same candidate grid for $K$.

The strongest existing drift-aware competitor is FedDrift Federated Learning under Distributed Concept Drift, applied to a small multilayer perceptron regressor on the same inputs. Run FLASH Flash alongside it. Both get the same delayed label stream and the same tuning budget, measured in hyperparameter configurations evaluated on forward blocks. The reported numbers are on different tasks: FedDrift reached 64.8% accuracy on FMoW against 58.8% for the best baseline, and FLASH stayed within 1.5–3% of an oracle. There is no reported result found on Lacuna for either method on high-dimensional regression. Beating them means lower forward RMSE at a fraction of the communication.

Two ablations isolate the proposal's ingredients:

  • Fixed-forgetting PLSR. A single $\lambda$ is set by hand, $K$ is chosen by random cross-validation, and there is no pooling choice. This tests whether forward selection matters at all.
  • Forward selection of $K$ and $\lambda$ only, with pooling fixed to "all sites". This tests whether the cross-site pooling choice carries the gains.

Why not just…?

Why not just use a fixed forgetting factor and pool everything? This is the real threat, because recursive PLS with exponential forgetting is cheap and often adequate. If the fixed-forgetting ablation matches the full method within noise on every dataset, the honest conclusion is narrower. It would then be an evaluation finding, namely that random cross-validation misreports federated PLSR, rather than a method finding. The centralized delay study reported that the choice of window materially changes MCC and retraining cost. That suggests the right memory length is data-dependent, which is what forward selection estimates. The ablation settles the question directly.

Why not just run FedDrift or FLASH on a neural network? Both methods are designed for large classification benchmarks. The file's small-sample evidence goes against neural models in this regime. In the tobacco study, neural networks and random forests mostly scored below R² 0.75 while PLS exceeded 0.85. In the soil study, the neural network overfit. Iterative federated training also costs many communication rounds, whereas moment summaries need one upload per block. We still run both as baselines, because drift handling could outweigh the extra variance. If they win on the larger streams, we will report where the crossover happens.

Why not just let each site keep its own PLSR? With a few hundred samples per site, local models can choose too few components and react noisily to drift. Pooling is the obvious remedy, but pooling sites that are drifting differently is what FedDrift shows hurts averaging. Local-only is one of the candidate pooling options inside our search. So if local models are best, the method will pick them, and the comparison shows how often that happens.

Proposed Experiments

The first testbed is ADNI as used in the ADNI paper. Acquisition sites are the clients, and the ADNI-1, GO and 2 phases give a natural chronological order. The data offer imaging features and diagnosis (401 controls, 238 Alzheimer's patients). We will train on earlier phases and score PLS discriminant analysis and imaging–genetic covariance recovery on later phases.

The second testbed is the tobacco DTG data Quantitative analysis of pyrolysis characteristics. Harvest years serve as blocks, train on 2017–2018, test on 2019, with sites simulated by splitting samples. The question is whether the reported R² of 0.87 for total alkaloids and 0.93 for reducing sugars survives a chronological split.

The third testbed is a controlled synthetic spectral stream. It has 2,000 correlated channels, a few latent chemical factors, and staggered per-site drift in baseline and loadings, following FedDrift's staggered-drift design. We sweep delay $d$ from zero to several blocks, mirroring the 38-day delay setting of the industrial delay study.

The fourth testbed is the Electricity and Lending Club streams from that same study. They are low-dimensional, and they check that the delay protocol reproduces known behavior.

Metrics are forward RMSE (or AUC for discriminant tasks), the selected $K$ and its stability, bytes communicated, and the gap between random-cross-validation-estimated and forward-realized error.

Three outcomes are decisive. First, the federated forward-selected model must match pooled centralized chronological PLSR to numerical precision; this is the exactness claim. Second, random cross-validation must overstate R² and select a different $K$ on at least the drifting streams; if not, the leakage motivation fails for PLSR. Third, the full method must beat the fixed-forgetting ablation, and the pooling ablation must beat "all sites", under nonzero delay. If either fails, the contribution shrinks to the component that survives.