arXiv:2610.06718cs.DCOct 2026

Manuscript Offprint

arXiv:2610.06718

One Global Beam Across Many GPUs: High-Throughput Beam Search at Billion-Record Frontier Scale

Ivan Litvak

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Beam search repeatedly makes many children, removes duplicates, and keeps the best B. We show how many GPUs can perform these steps as one search even when the retained set does not fit on one device. States and candidates stay on the GPUs; the CPU receives only small control and ancestry records. We prove that an abstract distributed pipeline returns the monolithic reduced-key top-B for the same complete candidates, integer scores, Hash128 equivalence, and a fully specified physical-layout tie order, provided that its implementation performs one global reduction per key and race-free routing. A static audit of the historical one-T4 pin leaves cross-buffer uniqueness unresolved and identifies a separate multi-rank scatter risk; neither is a reproduced failure, and other revisions inherit neither defects nor correctness without comparison. On eight H200 GPUs, a Cube4 run completed saturated depth 8 at Beff=2,900,361,216B_{eff} = 2,900,361,216 in 931.266 s: 69,608,669,184 nominal parent-generator pairs, or a derived 74.746 million pairs/s. The puzzle remained unsolved and depth 9 was stopped at user request. A separate two-T4 Megaminx run measured 30.274 million logical children/s at Beff=82,837,504B_{eff} = 82,837,504. Those tasks and hardware differ, so they do not establish strong scaling. Separately, on one eight-RTX-3060 host, fixed-count eight-GPU speedup was 7.487 under a common execution profile and 5.605 under selected stable profiles; weak actual-work throughput gain was 6.113 and 7.295. These profile-sensitive ratios use each series' own one-GPU baseline.

1 Introduction and Problem

Beam search is easy to describe. Start with a set of states. Make their children, score them, remove repeated states, and retain the best B:

parents→children→one per key→best B(1)\boxed{\mathrm{parents}\to\mathrm{children}\to\mathrm{one~per~key}\to\mathrm{best~}B} \tag{1}

Figure 1 makes the key-reduction step explicit before the global cut. The retained set is the frontier. If it outgrows one GPU, simply giving each GPU an independent beam changes the algorithm. Our goal is different: split one frontier across GPUs while preserving the result of one monolithic beam. Figure 2 shows why independent local quotas do not implement that objective.

Figure

Figure 1: Beam search in one picture. Each parent produces children; records with the same identity key retain their best score; the best B distinct-key records become the next frontier. Smaller scores are better in this paper.

local quotas: a different algorithm

GPU 0 candidates

A:1, B:2

local top-1: A

GPU 1 candidates

C:3, D:4

local top-1: C

one global beam

GPU 0 shard

A:1, B:2

GPU 1 shard

C:3, D:4

global top-2 keeps {A,B}\{A, B\}

Figure 2: Why sharding is not the same as running independent beams. With local quotas, a GPU can discard a state that belongs to the global top-B. This work applies one global cut across all shards.

Formally, states are vertices of an implicit graph G=(V,E)G = (V, E). Applying move a∈{1,…,m}a \in \{1, \ldots, m\} to state xx produces Aa(x)A_a(x). A deterministic oracle σ(x,a)\sigma(x, a) scores that choice. It may be learned or hand-engineered; our experiments use neural scorers. The implementation compares only the quantized integer score s(x,a)s(x, a) from Eq. (10). The complete depth transformation is

Fd−1→×mCd→ReducezUd→TopBFd.(2)\mathcal{F}_{d-1}\xrightarrow{\times m}\mathcal{C}_{d}\xrightarrow{\mathrm{Reduce}_{z}}U_{d}\xrightarrow{\mathrm{Top}_{B}}\mathcal{F}_{d}. \tag{2}

Its three stages are defined by

Cd={(x,a,Aa(x)):x∈Fd−1,  a∈[m]},\mathcal{C}_{d}=\{(x,a,A_{a}(x)):x\in\mathcal{F}_{d-1},\;a\in[m]\}, Ud=Reducez(Cd;lexmin(s,payload)),(3)U_{d}=\mathrm{Reduce}_{z}(\mathcal{C}_{d};\mathrm{lexmin}(s,\mathrm{payload})), \tag{3} Fd=TopB(Ud;sd∗,τL),(4)\mathcal{F}_{d}=\mathrm{T o p}_{B}\left(U_{d};s_{d}^{*},\tau_{L}\right), \tag{4}

Here CdC_d contains all children, UdU_d keeps the lowest-score candidate for each Hash128 key zz, and Fd\mathcal{F}_d contains the best BB distinct key records. Specifically, sd∗(z)=min⁡{s(x,a):z(Aa(x))=z}s_d^*(z) = \min\{s(x, a) : z(A_a(x)) = z\}, and τL\tau_L is the deterministic tie order induced by a fully specified physical layout LL, including rank, physical buffer, and local slot. Thus de-duplication keeps the best candidate for each key before the global cut. At a saturated depth, the scale follows from one multiplication:

Nchild=mBeff=24×2,900,361,216=69,608,669,184nominallogicalpairs.(5)\begin{aligned}N_{child}&=mB_{eff}\\&=24\times2,900,361,216\\&=69,608,669,184\quad nominal logical pairs.\end{aligned} \tag{5}

The Cube4 representation uses 96 bytes per full child. Hypothetically materializing every child, before metadata, would require

Mhypothetical=96Nchild=96×69,608,669,184=6,682,432,241,664bytes≈6.68decimalTB.(6)\begin{aligned}M_{hypothetical}&=96N_{child}\\&=96\times69,608,669,184\\&=6,682,432,241,664 bytes\\&\approx6.68 decimal TB.\end{aligned} \tag{6}

Figure 3 contrasts that hypothetical materialization with the compact metadata path used by the system. The system therefore never gathers the full candidate layer for a CPU transfer or a single-GPU sort.

During a depth, candidate and frontier arrays remain in GPU memory. The CPU receives only O(p)O(p) control counts and compact ancestry metadata. Every GPU therefore contributes a shard to the same next frontier; the system is not an ensemble of independent searches.

Contributions. We distribute one logical beam without staging its frontier in CPU memory. We state the implementation obligations needed to preserve monolithic reduced-key top-B semantics for a fixed physical layout and identity model, without shard-local semantic caps. We report separately an eight-H200 completed Cube4 depth, an older eight-A100 capacity-only record, and two-T4 Megaminx throughput. We also report matched 1/2/4/8-RTX-3060 scaling under common and selected execution profiles. The implementation supports at most 128 ranks; execution beyond eight GPUs remains unmeasured.

hypothetical full-child materialization

69.609 billion nominal pairs

× 96-byte full Cube4 child

≈ 6.68 TB

this work: compact candidate path

Figure

hash + score + parent + move + source

select best B

rebuild winners only

Figure 3: Why the system stores candidate metadata rather than every generated state. The 6.68-TB value is hypothetical full-child materialization before metadata, not measured device allocation. Full children are reconstructed only after the global cut.