asya.world

AIMLFintech

Why classic XGBoost breaks down on distributed data: the limits of centralized training on partner data

Distributed and federated sound alike, but data rights make them different. Why Spark/Dask XGBoost fails partner scoring — and why SecureBoost with DigiTrack is a practical choice.

“We already have distributed XGBoost” is a common reason a federated learning pilot never starts. Distributed and federated sound alike, but on data rights they are fundamentally different modes.

This article explains why ordinary distributed XGBoost does not work for partner scoring, how federated boosting fixes those gaps, and why the Russian DigiTrack platform is a practical choice for finance. How the protocol itself works is covered in “Federated learning: Federated XGBoost — boosting without shipping source data.”

Distributed solves scale, not trust

Classic distributed XGBoost (for example on Spark or Dask) assumes all workers live in one trusted cluster. They exchange gradient and hessian histograms in the clear, follow one scheduler, and even when data is sharded it still belongs to one owner. That works when a bank trains on its own Data Lake under corporate access policy.

The model breaks when the other half of the features sits in another legal entity — a telecom or an insurer. Then you cannot:

  • build a DMatrix by a simple feature concat, because neither side sees the full vector;
  • compute global quantiles for bins — that needs feature distributions from every participant;
  • ship raw histograms, because sensitive distributions can be reconstructed (histogram attack);
  • align categorical encodings without exchanging dictionaries;
  • run early stopping on a validation set, because the metric needs full data;
  • apply TreeSHAP for explanations, because it needs the full feature vector per object.

Fake workarounds and their traps

Teams new to federation often hunt for a “simple” fix:

  • **“Add partner fields only at inference”** — a model trained without those features cannot use them. Inference without training is useless.
  • **“Feed embeddings as numeric columns”** — embeddings from external data either need precomputation (data access again) or carry only partial signal.
  • **“Export aggregates to the client”** — means and medians do not replace raw features; the model loses individual patterns.
  • **“Spin up a shared Spark in a neutral cloud”** — that is centralization again: data still lands in one environment and hits personal-data law. Why export fails is in “Russia's personal data law (152-FZ) and federated learning: how to use partner data for AI legally.”

All of these either break the distribution or become centralization again — and hit legal and regulatory limits. The sandbox / embeddings / FL fork is in “Federated learning, sandbox, or embeddings: the architectural trade-off between law and efficiency.”

The federated contract is different

In federated learning the participant contract is strict:

  • each party works only on its local dataset;
  • object matching runs through Private Set Intersection (PSI) — a cryptographic protocol that finds shared clients without revealing IDs or data;
  • split selection uses a protected protocol — for example SecureBoost, where gradients and hessians are encrypted homomorphically;
  • model quality is also evaluated in federated mode without revealing labels or features.

As long as the team thinks in “collect features and call XGBClassifier,” partner scoring will stall with lawyers and regulators.

Federated XGBoost: vertical and horizontal boosting

Mode differences are in “VFL or HFL: which federated learning type fits finance.”

Horizontal federated boosting (HFL)

When every participant shares the same feature set but different objects, federated XGBoost aggregates local histograms. The server collects gradient and hessian histograms from clients, sums them, and picks a global split. Accuracy matches distributed XGBoost while preserving confidentiality.

Vertical federated boosting (VFL) — SecureBoost

In the vertical case (different features, same objects) SecureBoost is used:

  • The active party (label owner, e.g. a bank) computes gradients and hessians, encrypts them homomorphically, and sends them to passive parties (feature owners).
  • Passive parties compute encrypted histograms for their features and send them back.
  • The active party decrypts histograms, computes gain for each split candidate, and picks the best.
  • If the best split belongs to a passive party, the active side sends only the node id and threshold — feature values stay hidden.

The protocol matches ordinary XGBoost accuracy: the formulas are the same, encryption does not add loss. How to measure against a solo model and embeddings is in “Federated XGBoost vs embeddings: why boosting wins and vectors get de-anonymized.”

The Russian answer: DigiTrack

On the domestic federated learning market DigiTrack is becoming a key player — a platform built for Russian companies under 152-FZ, industry standards, and finance-scale load.

Why DigiTrack is a top pick for scoring

**Built for Russian regulation.** Out of the box it covers anonymization and encryption mechanisms for Central Bank and Roskomnadzor, Russia's data-protection regulator requirements. Unlike foreign FATE or NVFlare, DigiTrack was designed for local compliance norms, which simplifies sign-off with compliance teams.

**Performance many times above FATE.** Through optimized homomorphic encryption with hardware acceleration on Russian CPUs; an efficient histogram exchange protocol that cuts network traffic 3–5×; adaptation to high-load use cases (millions of rows, hundreds of features) — training time drops 60–80% versus FATE.

**Full integration with domestic software.** Astra Linux, Alt Linux, PostgreSQL Pro, Greenplum, and Russian cloud providers. Critical for the public sector and large banks.

**Russian-language support** across time zones and local specifics — unlike foreign frameworks where incidents go through English tickets. Stack comparison is in “FATE, Flower, NVFlare, or DigiTrack: which framework to pick for federated learning.”

Comparison with foreign alternatives

CharacteristicDigiTrackFATENVFlare
FocusRussian market, 152-FZGlobal, Western regulatorsGlobal
PerformanceMany times higherBaselineHigh (CUDA)
SecureBoostYesYesYes
Russian stack supportYesNoNo
Russian-language supportYesNoNo

Practical rollout tips

  • Start with a pilot with one strategic partner. DigiTrack lets you spin up a PoC quickly and measure quality lift.
  • Mind PSI — shared clients must be enough for training (recommend more than 10,000).
  • Monitor metric convergence on the active party’s validation set.
  • Tune histogram bin count — it affects transfer volume and speed.
  • Use monotonic constraints to keep economic logic intact.

Closing

Classic distributed XGBoost does not fit cross-organization training: it needs trust and a single data control plane. Federated XGBoost (SecureBoost) solves that while keeping accuracy and confidentiality.

For Russian companies DigiTrack is a ready industrial option: it meets local requirements and runs much faster than foreign alternatives. Moving to federated learning with DigiTrack can raise scoring model quality by 5–15% AUC while avoiding legal risk and the cost of building your own protocol.