#7443·LightGBM

[Tracking] Distributed training improvements

Author: xiaoh1024Created Sep 21, 2026Updated Sep 21, 2026
Labelsefficiencyeffectivenessdask

In distributed training experiments with high-dimensional sparse data, I found that adding workers gave limited training speedups. Profiling showed substantial time spent in histogram ReduceScatter and small AllReduce calls for best-split synchronization. The investigation also uncovered issues in empty-partition handling, split comparisons, and per-feature bin configuration indexing.

Some fixes have already been submitted, and I have local implementations of several communication improvements. I would like to use this issue to track the work and bring the changes upstream individually.

Submitted fixes

  • #7418: Handle empty input in ParallelPartitionRunner without accessing a nonexistent block.
  • #7422: Fix NaN handling in split comparisons.
  • #7436: Fix per-feature bin configuration indexing in distributed Dataset construction. Awaiting review.

Communication overhead

  • Reuse the socket sender thread. Large-message exchanges currently create and join a sender thread repeatedly. Draft PR #7446 includes the standalone patch, socket tests, and a two-process localhost communication benchmark. Further checks are still needed.
  • Adjust receive chunk sizes and socket buffering. A combined implementation exists locally. Receive request sizes and system socket buffer settings will be evaluated separately.

Distributed scaling

The following ideas have local implementations and need further discussion of their upstream interfaces and behavior:

  • A reduction specialized for best-split selection. Exchange only the current best candidate in each round, reducing the number of candidates transmitted. The selection rule for tied candidates needs to be specified.
  • Grouped communication. Reduce across ranks in the same process using shared memory, then perform hierarchical ReduceScatter and small AllReduce across processes. This also includes cross-host communication lanes and establishing only the peer connections needed by the collectives.
  • Separate dataset ranks from communication ranks, and group samples for bin construction. Define communication topology and sample ownership separately, with an explicit sampling budget across worker counts.

I will link follow-up PRs and discussions here, with end-to-end training time, communication timings, resource configurations, and comparisons of model results. Feedback on the grouping interface and sampling semantics would be especially helpful.

Related work

  • #7178 and #7138: Socket disconnection and connection failure handling.
  • #7290: Distributed validation metrics and early stopping.
  • #7416: Global initial scores.

AI disclosure: I find communicating in English challenging, so I used an agent to help draft this issue description.