Skip to content

v0.1.0 — Initial Release: High-Throughput SIMD Batch Scorer for LightGBM

Choose a tag to compare

@1orgar 1orgar released this 26 Nov 13:47
· 7 commits to main since this release

lgbm-boost v0.1.0

Initial public release of lgbm-boost — a high-throughput C++17 SIMD batch inference engine for LightGBM decision tree ensembles (x86_64 AVX-512 / AVX2 + cross-platform Scalar).

Highlights

  • Vectorized QuickScorer (V-QuickScorer, QS32 & QS64): 16-row register-blocked bitmask evaluation for trees with <= 64 leaves using L1d-sized 64-tree blocks, branchless monobound threshold narrowing, hardware AVX512CD vplzcntd/vplzcntq + {1to16} embedded broadcast predicates on AVX-512, and IEEE-754 float32-exponent parallel tzcnt on AVX2.
  • Branchless Compact Tree Traversal (CompactTree): 16-byte aligned BFS nodes with unrolled root evaluation and 8/16-row SIMD gathers for deep trees (> 64 leaves, up to 32,768 leaves).
  • Exact float64 -> float32 Split Parity: Downward threshold rounding via std::nextafterf eliminates boundary split flips (max_abs_diff ~ 1e-7 vs stock LightGBM) with full static resolution of MissingType::None, MissingType::Zero, MissingType::NaN, and default_left.
  • Zero-Copy pandas.DataFrame & numpy.ndarray Batch Streaming: 2D cache tiling (RowTile=128 × TreeBlock=64) with per-column DataFrame streaming (no full-matrix float64 allocation), fused vectorized Sigmoid / Softmax / Exp, and a zero-dependency C++17 lock-free atomic thread pool.
  • LightGBM Fork Kit (fork_integration/): Ready-to-vendor fast_scorer module and LGBM_BoosterPredictForMat cache adapter for custom LightGBM forks.

Performance Summary (1,000 trees × 100 features vs stock LightGBM 4.7.0)

  • Linux x86_64 (AVX-512, num_leaves = 31): 7.0x – 7.7x faster (max_abs_diff <= 1.6e-7)
  • Linux x86_64 (AVX-512, num_leaves = 63): 3.8x – 4.9x faster
  • Apple Silicon arm64 (Scalar, num_leaves = 31 / 63 / 127): 2.3x – 5.5x faster

Installation

pip install lgbm-boost
# or directly from GitHub:
pip install "git+https://github.com/1orgar/lgbm-boost.git@v0.1.0"