betaFeedback

WorksComputer Science

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

Abstract

Beam search repeatedly makes many children, removes duplicates, and keeps the best BB. 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-BB 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_{\rm eff}=2{,}900{,}361{,}216 in 931.266931.266 s: 69,608,669,18469{,}608{,}669{,}184 nominal parent–generator pairs, or a derived 74.74674.746 million pairs/s. A separate two-T4 Megaminx run yielded a derived 30.27430.274 million nominal parent–generator pairs/s at Beff=82,837,504B_{\rm 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.4877.487 under a common execution profile and 5.6055.605 under selected stable profiles; weak actual-work throughput gain was 6.1136.113 and 7.2957.295. These profile-sensitive ratios use each series' own one-GPU baseline.

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 BB:

parents→children→one per key→best B(1)\text{parents} \to\text{children} \to\text{one per key} \to\text{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.

Beam search in one picture

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

Local quotas and one global beam

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-BB. 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→Reduce⁡zUd→Top⁡BFd.(2)\mathcal{F}_{d-1} \xrightarrow{\times m} \mathcal{C}_d \xrightarrow{\operatorname{Reduce}_z} \mathcal{U}_d \xrightarrow{\operatorname{Top}_B} \mathcal{F}_d. \tag*{(2)}

Its three stages are defined by

Cd={(x,a,Aa(x)):x∈Fd−1, a∈[m]},Ud=Reduce⁡z(Cd;lexmin⁡(s,payload⁡)),(3)\begin{aligned} \mathcal{C}_d &= \{(x,a,A_a(x)): x \in\mathcal{F}_{d-1},\ a \in[m]\},\\ \mathcal{U}_d &= \operatorname{Reduce}_z(\mathcal{C}_d;\operatorname{lexmin}(s,\operatorname{payload})), \tag*{(3)} \end{aligned}
Fd=Top⁡B(Ud;sd∗,τL),(4)\mathcal{F}_d = \operatorname{Top}_B(\mathcal{U}_d; s_d^*,\tau_L), \tag*{(4)}

Here Cd\mathcal{C}_d contains all children, Ud\mathcal{U}_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,184nominal logical pairs.(5)\begin{aligned} N_{\mathrm{child}} &= mB_{\mathrm{eff}}\\ &= 24 \times2{,}900{,}361{,}216\\ &= 69{,}608{,}669{,}184\quad\text{nominal logical pairs.} \tag*{(5)} \end{aligned}

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,664 bytes≈6.68 decimal TB.(6)\begin{aligned} M_{\mathrm{hypothetical}} &= 96N_{\mathrm{child}}\\ &= 96 \times69{,}608{,}669{,}184\\ &= 6{,}682{,}432{,}241{,}664\ \text{bytes}\\ &\approx6.68\ \text{decimal TB.} \tag*{(6)} \end{aligned}

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.

Compact candidate path compared with hypothetical full-child materialization

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.

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-BB 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-RTX3060 scaling under common and selected execution profiles. The implementation supports at most 128 ranks; execution beyond eight GPUs remains unmeasured.

Related Work and Gap

The words large search can refer to different quantities:

Blive≠Nraw≠Ncumulative≠Nqueries.(7)B_{\mathrm{live}} \ne N_{\mathrm{raw}} \ne N_{\mathrm{cumulative}} \ne N_{\mathrm{queries}}. \tag*{(7)}

Here they mean retained frontier, raw candidates in one layer, states visited over time, and independent searches. We compare like with like.

Parallel beam search predates GPUs [2]. Distributed/global CPU beams include Wijs–Lisser, a 20-million shared-memory beam, independent MPI beams, and global or local CPU partitions [21, 8, 13].

Single-GPU systems include a speech beam, GPU A*, Cayley-graph beams, AlphaCube, and DeepCubeA [7, 23, 14, 6, 5, 20, 1]. Hash-distributed CPU best-first search establishes another piece [12]. DA* distributes A* over multiple GPUs, but does not maintain the layer-synchronous global top-BB frontier studied here [9].

QiankunNet-cuSCI combines distributed GPU de-duplication, neural inference, and hierarchical global Top-KK selection and is evaluated through 64 GPUs [19]. Its SCI iteration updates a selected configuration space and stages intermediate configurations through host memory; it does not establish the all-GPU, fixed-layout layer-replacement beam contract studied here.

Other billion-scale numbers count different objects: GPUexplore counts cumulative reachable states [22], Path-Weaver serves independent graph queries [11], and multi-GPU decoders usually distribute utterances, sentences, or model execution rather than one state frontier [10, 3, 4].

Table 2 shows the conjunction examined by the dated audit: one physically sharded beam, GPU-resident candidate/frontier data, global key reduction, no local semantic quota, and fixed-layout global top-BB. No earlier system with the full conjunction was located in the audited set; this is not an exhaustive proof of priority.

SystemPlatform and search objectRetained live beamOther scaleMissing from the claimed conjunction
Wijs–Lisser 2007distributed CPU; one global beam50,000135.96M cumulative statesGPU data plane and device-resident scorer
Chong et al. 2008one 8800 GTX; speech active setnot reported as retained beam996,903-state large modelmulti-GPU state frontier
Frohner et al. 202246 CPU threads; one shared-memory beam20,000,000MPI: independent beamsGPU and distributed one-beam execution
DA* 2021four V100; multi-GPU A*not a beamup to 3×3\times versus single-GPU A*no layer-synchronous global top-BB frontier
CayleyPy 2025one GPU; one Cayley-graph beam2242^{24} independent agentsmulti-GPU global frontier
GPUexplore 3.0four V100; exhaustive reachable setnot a beam>3.15>3.15B statesranked score and top-BB
PathWeaver 2025four A6000; independent ANNS queriesnot reported50M-vector datasetexact layered semantics and large retained beam
QiankunNet-cuSCIup to 64 GPUs; selected SCI configurationsnot reported as a beamlarge distributed selection workloadSCI-space update and out-of-core host staging; fixed-layout layer-replacement beam equivalence not established
This workeight H200; one sharded global beam2,900,361,216 effective records69.609B nominal raw pairs/depthH200 record: completed depth 8; full solve, implementation exactness, and H200 fixed-workload scaling unestablished; separate RTX 3060 scaling below

Table 2. Closest prior systems under a common scale taxonomy. “Other scale” is deliberately not interpreted as retained beam width.

SymbolPlain meaningSymbolPlain meaningSymbolPlain meaning
FdF_dstates kept at depth ddCdC_dall generated childrenUdU_done best record per key
BBdesired frontier sizemmmoves per parentppnumber of GPUs
z(x)z(x)Hash128 key of state xxs(x,a)s(x,a)integer score; smaller is betterTTcurrent worst allowed score
Aa(x)A_a(x)child after move aao(x)o(x)GPU owning state xxτL\tau_Lphysical-layout tie order

Table 1. Notation legend. Read this table as the map for the equations below.

One Search Depth on Five GPU Streams

One depth transforms the old frontier into the new frontier. Figure 4 first separates the GPU-resident data path from the compact CPU control path:

GPU-resident hot-data path

Figure 4. One search depth. Streams overlap in time; arrows show data dependencies, not five serial phases.

The input Fd−1F_{d-1} is split over pp GPUs. GPU rr owns NrN_r parents and logically generates mNrmN_r children. For y=Aa(x)y=A_a(x), it stores a compact candidate rather than the full child:

c=(z(y),s(x,a),iparent,a,rsrc),(8)c = \left(z(y),s(x,a),i_{\mathrm{parent}},a,r_{\mathrm{src}}\right), \tag*{(8)}

where z(y)∈{0,1}128z(y) \in\{0,1\}^{128} is the child-state Hash128 key, s(x,a)s(x,a) is a quantized candidate score, and rsrcr_{\mathrm{src}} identifies the GPU that stores the parent. The child state itself is reconstructed only for goal checking or after the final selection. We write

x≡zy⟺z(x)=z(y).(9)x \equiv_z y \quad\Longleftrightarrow\quad z(x)=z(y). \tag*{(9)}

All reductions and exactness statements below operate on these Hash128 key-equivalence classes. They also describe full-state equality only if no distinct relevant states collide under zz.

FieldMeaningUsed for
z(y)z(y)Hash128 keykey reduction, owner
s(x,a)s(x,a)integer scoreranking, threshold
iparenti_{\mathrm{parent}}parent indexreconstruction
aaapplied movereconstruction
rsrcr_{\mathrm{src}}source GPUfetch and ancestry

Table 3. Compact candidate fields. Full state bytes are absent.

Figure 5 then shows how readiness, rather than a fixed serial phase order, permits overlap among the five streams.

Readiness-driven overlap

Figure 5. Readiness-driven overlap. Streams 1–2 process the same ring slot in parallel; Streams 3 and 5 handle completed microbatches while Stream 4 cleans the alternate shard buffer. The drawing shows dependencies, not measured durations.

Streams 1–2: score and identity. Parents are divided into microbatches and placed in reusable ring slots. Streams 1 and 2 consume the same slot concurrently. Stream 1 evaluates the chosen scoring oracle and writes only

s(x,a)=rint⁡RN-even(Sclip⁡(σ(x,a),0,qmax⁡))∈N,(10)s(x,a) = \operatorname{rint}_{\mathrm{RN\text{-}even}}\left(S\operatorname{clip}(\sigma(x,a),0,q_{\max})\right) \in\mathbb{N}, \tag*{(10)}

not the floating-point output. Here RN-even is the GPU path’s default round-to-nearest, ties-to-even mode. The scalar path evaluates child states, whereas the output-mm path obtains all mm action scores from each parent. Stream 2 applies every move in registers, checks the goal, and writes the 128-bit Zobrist hash. Thus score evaluation and state manipulation overlap without storing the mNrmN_r child states.

Stream 3: early reduction and ownership. When a group of ring slots has both scores and hashes, Stream 3 removes scores above the current threshold TT, compacts the survivors, sorts them by zz, and reduces equal hashes. For each hash it retains the lexicographically smallest pair (s,payload)(s,\mathrm{payload}), where the payload recovers the original parent and move. It then assigns each locally reduced candidate

o(x)=mix⁡(z(x)) mod p.(11)o(x) = \operatorname{mix}(z(x)) \bmod p. \tag*{(11)}

Local candidates enter the local collector; the rest are grouped by owner. Performing this first reduction before communication lowers traffic, but does not replace the later global deduplication.

Stream 5: GPU-to-GPU exchange. Stream 5 exchanges the owner-grouped metadata directly between GPUs using NCCL. The owner rule implies

z(x)=z(y)⟹o(x)=o(y),(12)z(x) = z(y) \Longrightarrow o(x) = o(y), \tag*{(12)}

so, under complete and race-free routing, equal-key candidates produced by different source GPUs meet at one owner. Stream 5 performs communication only; received candidates re-enter the same collector as local candidates. The owner sets form a disjoint partition of the global reduced key set:

U(r)={z∈U:o(z)=r},U=⨄r=0p−1U(r).(13)U^{(r)} = \{z \in U : o(z) = r\}, \qquad U = \biguplus_{r=0}^{p-1} U^{(r)}. \tag*{(13)}

Figure 6 illustrates the required meeting point for equal-key records produced on different source GPUs.

Required owner routing in the abstract algorithm

Figure 6. Required owner routing in the abstract algorithm. Equal 128-bit keys choose the same destination; a conforming owner reduction then keeps one representative per key. Local reduction cuts traffic. This establishes neither unconditional full-state equality nor compliance of the audited CUDA revision.

Stream 4: persistent survivor set. The collector partitions owned candidates into logical shards. Each shard has two resident buffers: Stream 3 appends to one while Stream 4 cleans the other. A Stream 4 job merges the clean and newly appended regions, applies its snapshot of TT, compacts, sorts by zz, and retains the best metadata for each hash. There is no per-shard top-kk and no semantic shard quota: a shard may retain every candidate below TT. Consequently sharding does not approximate the score cut; only the equal-score boundary order is defined by the fixed layout.

Work, Memory, and Frontier Scaling

Let aa denote the branching factor (the earlier move count mm), GG the number of ranks, Bd=∣Fd∣≤BB_d = |F_d| \le B, and

Nd=aBd−1;N=aBat saturation.(14)N_d = aB_{d-1}; \qquad N = aB \quad\text{at saturation}. \tag*{(14)}

Let ℓ\ell be the logical state length, sstates_{\mathrm{state}} the bytes per stored state, and mmetam_{\mathrm{meta}} the bytes per candidate metadata record. These names avoid conflict with the score-quantization scale SS in Eq. (10). Let fchildf_{\mathrm{child}} be the cost of one scalar child score and fparent(a)f_{\mathrm{parent}}(a) the cost of one parent inference returning aa action scores. Aggregate base move-generation and hashing work is Θ(Ndℓ)\Theta(N_d\ell). This assumes fixed bounded goal-check/suffix work; a varying suffix neighborhood of size RsuffixR_{\mathrm{suffix}} can add O(NdRsuffixℓ)O(N_dR_{\mathrm{suffix}}\ell) work. Scoring work is

StreamReadsMain operationWritesWhy it exists
1parent microbatchneural or heuristic scoringinteger scoresrank candidates
2same parentsapply moves, goal test, hash128-bit keysassign key classes
3scores and keysthreshold, compact, local reduceowner bucketscut work before exchange
5remote owner bucketsNCCL GPU-to-GPU exchangereceived candidatesunite equal-key records
4owned candidatespersistent reduce and histogramsurvivor shardsmaintain the global cut

Table 4. The five streams at a glance. “Resident” means that the large data remain in GPU memory.

Wscore={Θ(Ndfchild),scalar child scorer,Θ(Bd−1fparent(a)+Nd),output-a scorer.(15)W_{\mathrm{score}} = \begin{cases} \Theta(N_df_{\mathrm{child}}), & \text{scalar child scorer},\\ \Theta(Bd^{-1}f_{\mathrm{parent}}(a) + N_d), & \text{output-}a\text{ scorer}. \end{cases} \tag*{(15)}

The second line includes writing and quantizing the aa outputs; it is not aa independent neural-network calls per parent.

For orientation, a sort-based abstract reference that comparison-sorts all implicit candidates has

Wref=O(Ndℓ+Wscore+Ndlog⁡Nd),W_{\mathrm{ref}} = O(N_d\ell+ W_{\mathrm{score}} + N_d\log N_d),
Mref=O(Bd−1sstate+Ndmmeta).(16)M_{\mathrm{ref}} = O(Bd^{-1}s_{\mathrm{state}} + N_dm_{\mathrm{meta}}). \tag*{(16)}

This is one exact-beam implementation, not an intrinsic lower bound and not a bound claimed for a historical dispatcher. Hash tables, deterministic selection, or fixed-score histograms have different work bounds. Streaming avoids Θ(Ndsstate)\Theta(N_ds_{\mathrm{state}}) full-child storage, but all NdN_d metadata records may survive the threshold; therefore it does not imply worst-case O(B)O(B) metadata independent of aa.

Figure 7 is a diagnostic checklist for interpreting these counts. Its boxes are possible limiting resources, not measured shares of runtime or a predicted crossover GPU count.

Conceptual diagnostic map

Figure 7. Conceptual diagnostic map, not a measured time-line or an established GPU-count crossover. The boxes are independent checks: overlap requires resource independence, per-rank division requires balance, and a bounded-pass count for Stream 4 jobs is not established by the present audit.

The read-only audit of current dirty HEAD 81ed9f0287c1f9057648119a253f208c31f7a872 finds full-capacity CUB comparison sorts rather than a linear Hash128 radix reduction. With QQ the Stream 3 chunk capacity, qrq_r useful chunks on rank rr, and U3≤NdU_3 \le N_d locally reduced survivors across chunks, its accounted work is

W3=O(∑rqrQlog⁡Q+Nd+GU3),(17)W_3 = O\left(\sum_r q_rQ\log Q + N_d + GU_3\right), \tag*{(17)}

plus padded and service rounds. The GU3GU_3 term is from per-peer owner scans. For Stream 4 jobs kk with sorted capacity CkC_k and HH score bins,

W4=O(∑k∈ICklog⁡Ck+∑k∈I(Ck+H)).(18)W_4 = O\left(\sum_{k\in\mathcal{I}} C_k\log C_k + \sum_{k\in\mathcal{I}}(C_k + H)\right). \tag*{(18)}

No bounded-pass or amortized charging argument for the job count is established; hence Eq. (18) is not simplified to O(Nd)O(N_d) or O(Ndlog⁡Nd)O(N_d\log N_d). These current-code formulas do not transfer correctness or complexity to historical pin a1db0e6d9bb5458c8a842b37dfa99572d3025667 or to the H200, two-T4, or RTX 3060 measured working snapshots without per-file comparison. Appendix § 10 records the remaining implementation-specific terms.

Peak GPU memory also includes allocated frontier capacity, rings, both accumulator buffers, comparison-sort temporary storage, model/scorer workspace, and communication/runtime workspace. Mutually exclusive allocator phases are combined by a maximum, not by summing every phase. Across depths the work is ∑d=1DWd\sum_{d=1}^{D} W_d, not aDa^D once the beam is saturated. Finally, five CUDA streams imply neither a fivefold speedup nor linear strong scaling. Under verified balance, bandwidth, and resource independence one may model a steady pipeline as

Td≈tfill+max⁡iti+tdrain/final.(19)T_d \approx t_{\mathrm{fill}} + \max_i t_i + t_{\mathrm{drain/final}}. \tag*{(19)}

What can stop more GPUs from helping?

Table 5: Scaling with frontier width. The right column requires balanced parents, owners, admitted work, and adequate capacity; it is not guaranteed.

QuantityAggregate or worst caseBalanced conditional per rank
CandidatesNd=aBd−1N_d = aB_{d-1}Nd/GN_d/G
Frontier statesΘ(Bdsstate)\Theta(B_d s_{\mathrm{state}})Θ(Bdsstate/G)\Theta(B_d s_{\mathrm{state}}/G)
Survivor metadataO(Ndmmeta)O(N_d m_{\mathrm{meta}}); one owner may receive Θ(Nd)\Theta(N_d)O(Ndmmeta/G)O(N_d m_{\mathrm{meta}}/G)
Candidate exchangeO(Ndmmeta)O(N_d m_{\mathrm{meta}}) bytesabout aggregate/GG, plus latency
Final exchangeO(Bd(mmeta+sstate))O(B_d(m_{\mathrm{meta}} + s_{\mathrm{state}})) bytesbalanced only after redistribution
History through DDO(∑dBdh)O(\sum_d B_d h); saturated host/disk service, not GPU balanceO(DBh)O(DBh)

Table 5.

but skew, peer latency, collectives, HBM contention, history I/O, and the final drain are non-scaling floors. (19) is a conditional performance model, not a theorem or a new benchmark result.

Classical top-BB versus monotone thresholding. Let CC be the complete candidate multiset, write s(c)s(c) for the quantized integer score in Eq. (10), and let U=Reduce⁡z(C;lexmin⁡(s,payload))U = \operatorname{Reduce}_z(C;\operatorname{lexmin}(s,\mathrm{payload})) be its one-entry-per-key reduction, carrying s∗(z)=min⁡c:z(c)=zs(c)s^{*}(z) = \min_{c:z(c)=z} s(c) and the associated best payload. For fixed layout LL, the complete ordering key is

κL(z)=(s∗(z),τL(z)),(20)\kappa_L(z) = \left(s^{*}(z), \tau_L(z)\right), \tag*{(20)}

where smaller score is better and τL\tau_L is the deterministic prefix order over rank, physical shard/buffer, and local slot for equal scores. Thus LL specifies the realized physical arrangement, not merely GPU and shard counts. A classical reference materializes UU, sorts it by κL\kappa_L, and returns, for b=min⁡(B,∣U∣)b = \min(B, |U|),

Top⁡B(U)={∅,b=0,{z∈U:κL(z)≤κL,b(U)},b>0.(21)\operatorname{Top}_B(U) = \begin{cases} \varnothing, & b = 0,\\ \{z \in U : \kappa_L(z) \le\kappa_{L,b}(U)\}, & b > 0. \end{cases} \tag*{(21)}

Thus the order statistic is used only when b>0b > 0. The streamed abstract algorithm need not materialize UU. At update jj, let WjW_j be the entries counted by the threshold snapshot. The safety premise is witness-based: each entry (z,q)∈Wj(z,q) \in W_j represents a different key and has an observed integer score q≥s∗(z)q \ge s^{*}(z). Entries may be omitted, and a stored score may be stale and higher than its eventual minimum; either case can only loosen the cut. With HjH_j the histogram of witness scores, define

T^j=min⁡{t:∑u=0tHj(u)≥B},\widehat{T}_j = \min\left\{t : \sum_{u=0}^{t} H_j(u) \ge B\right\},
Tj=min⁡{Tj−1,T^j},T0=+∞.(22)T_j = \min\{T_{j-1}, \widehat{T}_j\}, \qquad T_0 = +\infty. \tag*{(22)}

When ∣Wj∣<B|W_j| < B, T^j=+∞\widehat{T}_j = +\infty. Streams 3 and 4 may discard only candidates with s(c)>Tjs(c) > T_j; the score boundary s(c)=Tjs(c) = T_j is retained because its final membership depends on τL\tau_L. Figure 8 visualizes the conservative integer-score cut and the retained equal-score boundary.

Monotone thresholding for one fixed $B = 7$ with integer scores

Figure 8. Monotone thresholding for one fixed B=7B = 7 with integer scores. Green entries are retained provisionally, not guaranteed final membership. Values above the current threshold cannot return; every equal-score boundary entry remains until the fully specified physical-layout tie-break. Numbers are illustrative.

Lemma 1 (the published threshold never rises). The update rule publishes a minimum,

Tj=min⁡{Tj−1,T^j}≤Tj−1.(23)T_j = \min\{T_{j-1}, \widehat{T}_j\} \le T_{j-1}. \tag*{(23)}

This statement does not require a physical snapshot to equal Reduce⁡z(Cj)\operatorname{Reduce}_z(C_j) (Fig. 8).

Lemma 2 (a discarded candidate cannot win the reduced-key beam). If s(c)>Tjs(c) > T_j, some published witness snapshot has at least BB distinct keys with observed scores at most TjT_j. Their eventual minimum scores are no larger than those observations, hence are strictly better than s(c)s(c). Thus cc cannot represent a key in the final top-BB. Omitted witnesses or stale higher scores make TjT_j weaker, not unsafe. Counting one key twice, however, destroys the distinct-key premise.

Theorem (conditional abstract reduced-key equivalence). For the same complete candidate set, integer quantization, Hash128 mapping zz, payload order, and fully specified physical layout LL, Lemmas 1–2 give the same selected key representatives if every candidate is processed, all records for one key are globally reduced before contributing distinct threshold witnesses, rejection is strict above the committed threshold, no local capacity silently drops an eligible record, and exchange plus final physical-prefix boundary selection complete:

Fd,zdistributed(L)=Fd,zmonolithic(L).(24)\mathcal{F}^{\mathrm{distributed}}_{d,z}(L) = \mathcal{F}^{\mathrm{monolithic}}_{d,z}(L). \tag*{(24)}

The equality concerns selected membership under the same LL. It does not assert an identical serialized output order after redistribution. Fixed GPU and shard counts alone are insufficient if scheduling changes physical-buffer or local-slot placement. This is a theorem about the abstract algorithm, not by itself a proof that a particular CUDA revision satisfies every obligation.

Pinned-code correspondence. The historical one-T4 measurement is pinned to a1db0e6d9bb5458c8a842b37dfa99572d3025667. Its static audit verifies Hash128 owner calculation, per-buffer lexicographic reduction, inclusive threshold retention, monotone threshold publication, and final score-boundary phases. It does not establish the full theorem correspondence. Stream 4 reduces each physical sibling buffer separately, while threshold.cu:34--61 combines per-physical-shard snapshots and the final-selection paths scan all physical buffers; no global cross-buffer key reduction was found. In addition, the multi-rank Stream 3 owner scatter reads and compacts the same metadata array in one kernel across peer blocks without a grid-wide synchronization point. These are static audit findings, not reproduced GPU failures. The scatter issue is a world_size > 1 code-path risk and is not evidence that the one-T4 measurement failed. Cross-buffer duplication would violate the distinct-key witness premise. Final ties use rank/physical-buffer/local-slot prefixes (threshold.cu:147--154,214--229,252--279 and dispatcher.cu:4480--4494). The H200 revision and historical two-T4 v118 run inherit neither these defects nor correctness without their own code comparison.

Identity and exactness scope. The word exact means beam-selection exactness and has three explicit boundaries:

quantized integer scores+Hash128 key equivalence+fully specified physical-layout ties(25)\begin{gathered} \text{quantized integer scores}\\ + \text{Hash128 key equivalence}\\ + \text{fully specified physical-layout ties} \tag*{(25)} \end{gathered}

Compact candidates represent the equivalence classes of Eq. (9); they do not carry the full state representation. If no distinct relevant full states share a Hash128 key, the key-level equality also implies full-state selection equality. Otherwise, a collision merges those states within the stated model. Boundary ties use the prefix over rank, physical buffer, and local slot. Changing that arrangement may change selected membership; fixed GPU/shard counts do not imply schedule-independent results. The theorem does not claim a canonical output order. It concerns beam selection, not shortest-path optimality. Historical measurements remain tied to their own revisions and do not inherit correctness or defects from this theorem or from another source tree.

Final cut and materialization. After all five streams are drained, the ranks combine the final histograms. If ∣U∣≥B|U| \ge B, they choose the smallest T∗T^* such that

∑u=0T∗H(u)≥B.(26)\sum_{u=0}^{T^*} H(u) \ge B. \tag*{(26)}

All states below T∗T^* survive, and the same physical-prefix tie rule cuts its boundary to exactly BB selected members. Define

n<=∑u<T∗H(u),n==B−n<.(27)n_{<}=\sum_{u<T^*} H(u), \qquad n_{=} = B-n_{<}. \tag*{(27)}

The final cut keeps every key below T∗T^* and the first n=n_{=} boundary keys by τL\tau_L. This defines membership, not the later output serialization order. If ∣U∣<B|U|<B, all available keys survive instead. Therefore

∣Fd∣=min⁡(B,∣U∣).(28)|\mathcal{F}_d|=\min(B,|U|). \tag*{(28)}

The selected metadata are load-balanced across GPUs. Only then does each source GPU reconstruct the requested children and send them directly to their target GPUs. The CPU receives O(p)O(p) count vectors plus compact selected-candidate metadata used to reconstruct ancestry, but no full state or frontier arrays.

The five streams are readiness-driven rather than five serial phases. Streams 1–2 fill ring slots almost continuously while Streams 3 and 4 reduce earlier batches and Stream 5 exchanges remote survivors. The mathematical obligation is that every published threshold count is a distinct-key witness and every final key class is globally reduced before the cut. Under that premise, a conforming implementation realizes the same selected reduced-key membership as its monolithic reference for the same physical tie layout, without materializing the raw candidate layer. The pinned-code gaps above must be closed before making that statement unconditionally for a specific measured binary.

Experiments

Protocol. Historical records below retain their stated single-run or summary scope. The new RTX 3060 scaling points are medians of three timed repeats after a full warmup; selected profiles were re-warmed and repeated independently. We report computational-cost measurements separately from solution-quality evidence. For each result we state the hardware, workload, model, and timing boundary to the extent preserved by its own record; missing fields are not transferred from another run or revision. End-to-end (E2E) time includes generation, de-duplication, communication, selection, and history; it must not be confused with an isolated scoring-kernel rate. Figure 9 separates the three legacy headline evidence records before the detailed platform tables. Table 6 and Table 7 separate legacy records, derivations, and missing measurements. Empty cells mean “not measured.” The T4 and H200 rates count nominal parent–generator pairs before de-duplication. No RTX 3070 child rate is derived because its early depths are not saturated.

Three claims: Completed depth — 8×H200, Cube4; $B_{\mathrm{eff}} = 2.900361216\mathrm{B}$; 931.266 s. Throughput — 2×T4; 30.274 M children/s; no scaling beyond two. Solution — Megaminx superflip; 51 replay-valid moves; no optimality proof. Three claims, three evidence records; missing fields are never transferred between them.

Figure 9. The three legacy headline results use independent evidence. The H200 Cube4 depth, T4 Megaminx throughput, and replayed solution answer different questions and are not a scaling series.

PlatformWorkloadBeam BBMeasurements/depthRawchild rate
RTX 3070 8GBpuzzle 0, depth 202222^{22}E2E complete; 60.623 s total3.031 avg.n/d
RTX 3070 8GBStream 1, Bμ=4096B_\mu= 4096, c=3c = 3—micro completen/a48.142 M/s
Kaggle 2×T4puzzle 20, radius 4, limit 72Breq=82,615,524B_{\mathrm{req}} = 82,615,524; Beff=82,837,504B_{\mathrm{eff}} = 82,837,504solved; CSV+summary350.402 s; 65.670 saturated30.274 derivedM/s
8×A100 40GBpuzzles 900/950/1000, depth 8Breq=770,883,178B_{\mathrm{req}} = 770,883,178; BeffB_{\mathrm{eff}} not recordedstable; 39,745 MiB/GPU; summaryn/rn/r
8×H200Cube4 puzzle 1000, depth 8Breq=2.900BB_{\mathrm{req}} = 2.900\mathrm{B}; Beff=2,900,361,216B_{\mathrm{eff}} = 2,900,361,216completed depth; 141,820 MiB/GPU observed931.26674.746 derivedM/s

Table 6. Measured performance by platform. E2E is the production critical path; micro is an isolated kernel pipeline; capacity has no timing claim. n/d: not derived; n/a: not applicable; n/r: not recorded.

RunDirectly recordedExact derivationNot established
2×T4 throughputBreqB_{\mathrm{req}}, BeffB_{\mathrm{eff}}, depth times, wall time24Beff/65.670=30.27424B_{\mathrm{eff}}/65.670 = 30.274 M children/sthroughput beyond two GPUs
8×A100 capacityBreqB_{\mathrm{req}}, depth 8, peak MiB/GPU, stable status24Breq≥18.50124B_{\mathrm{req}} \ge18.501 B children/depthwall time, exact BeffB_{\mathrm{eff}}, speed, strong scaling
8×H200 Cube4all eight rank logs complete depth 8; effective width; device telemetry24Beff=69,608,669,18424B_{\mathrm{eff}} = 69{,}608{,}669{,}184 nominal pairs; 74.746 M/s derivedsolved puzzle, depth-9 time, true maximum, CUDA-OOM boundary, or cross-platform scaling
RTX 3070 E2E20 completed depths, 60.623 s total60.623/20 = 3.031 s/depth averagesaturated child rate
RTX 3070 microisolated Stream 1 counters and time48.142 M candidates/sfull-system throughput

Table 7. How to read the legacy headline results. A derived value is shown only when all inputs come from the same run.

For the saturated T4 depths, the recorded mean and derived child rate are

tˉ7:10=14∑d=710td=65.670 s,(29)\bar{t}_{7:10}=\frac{1}{4}\sum_{d=7}^{10}t_d=65.670\ \mathrm{s}, \tag*{(29)}
Rchild=mBefftˉ7:10=24×82,837,50465.670=30.274×106 s−1.(30)R_{\mathrm{child}}=\frac{mB_{\mathrm{eff}}}{\bar{t}_{7:10}}=\frac{24\times82{,}837{,}504}{65.670}=30.274\times10^6\ \mathrm{s}^{-1}. \tag*{(30)}

Local RTX 3070. The folded-input half2 kernel raised isolated Stream 1 throughput from about 24.7 to 48.142 million candidates/s. Over 1,202 Nsight launches, its time fell from 9.678 to 3.232 s (2.99×). On the same complete depth-20 workload, E2E wall time fell from 115.334 to 60.623 s (1.90×). An older run that failed at depth 33 is excluded.

Kaggle 2×T4. Two T4 ranks jointly maintain one beam. The requested 82,615,524 states aligned to Beff=82,837,504B_{\mathrm{eff}}=82{,}837{,}504; the run solved in 350.402 s with 128 shards and Bμ=4096B_\mu=4096. At B=226B=2^{26}, the reported saturated-depth means for the stacked 8-shard and 64-shard configurations were 69.365 and 51.732 s, respectively (1.34×). The isolated 40.60 M/s scoring rate is not an E2E rate.

8×A100 capacity-only record. The run establishes capacity at requested width Breq=770,883,178B_{\mathrm{req}}=770{,}883{,}178. Its summary records stable depth-8 execution on three Megaminx instances and 39,745 MiB peak memory per GPU. It does not record wall time, exact aligned width, or a complete runtime manifest. The pinned 2d5f978fcf1c108813fc49e9d9aeeec32eae522c launcher targets eight 80GB A100s and a requested 1.4B width; it does not reconstruct this missing 40GB run. The implementation limit is 128 ranks.

8×H200 Cube4 completed depth. On one Vast instance, eight H200 GPUs (143,771 MiB each) ran Cube4 puzzle 1000 with 24 generators. Requested width 2,900,000,000 aligned to Beff=2,900,361,216=8×362,545,152B_{\mathrm{eff}}=2{,}900{,}361{,}216=8\times362{,}545{,}152. All eight rank logs record completed depth 8; using the conservative maximum gives 931.266 s. Thus the saturated layer represents

24Beff=69,608,669,184⟹Rpair=74.746×106 s−1,(31)24B_{\mathrm{eff}}=69{,}608{,}669{,}184 \qquad\Longrightarrow\qquad R_{\mathrm{pair}}=74.746\times10^6\ \mathrm{s}^{-1}, \tag*{(31)}

where the rate is derived, not a native distinct-state counter. Observed device-wide peak usage was 141,820 MiB/GPU. The solver revision was 3b756afe9e7636e53520fa6de7e60a167bbaa79a. The run was a throughput benchmark evaluated at a completed saturated depth. The 2.94B attempt failed during NCCL count exchange and the 3.00B attempt failed a static budget gate; neither establishes a true maximum or

CUDA-OOM boundary. This Cube4/H200 run and the Megaminx/T4 run are not a strong-scaling comparison.

Matched 1/2/4/8-GPU RTX 3060 Scaling

A separate public record measures one search on an exclusive host with eight RTX 3060 12-GiB GPUs. Every point uses the p900 input, the original FP16 MLP with FP32 accumulation (not the Cube4 Transformer), seed 0xC0DEC0DE, and 12 complete steps. The synchronized maximum-rank time includes expansion, inference, exchange, global selection, de-duplication, and history flush; initialization and model loading are separate. Each point had a full warmup and three timed repeats.

The strong series fixes B=4,194,304B = 4,194,304 and W=637,616,736W = 637,616,736 expanded actions at every GPU count. Its speedup and efficiency are

Sp=T1/Tp,Epstrong=Sp/p,(32)S_p = T_1/T_p,\qquad E_p^{\mathrm{strong}} = S_p/p, \tag*{(32)}

using each profile series’ own one-GPU median. The selected profiles are medium/common/common/common for p=1/2/4/8p = 1/2/4/8. Medium changes the one-GPU median from 85.107 to 63.595 s, while both eight-GPU medians remain near 11.35 s. Consequently S8S_8 changes from 7.487 to 5.605 and efficiency from 93.59% to 70.06%.

The weak series uses Bp=p 4,194,304B_p = p\,4,194,304 and expanded-action counts Wp=637,616,736W_p = 637,616,736, 1,241,596,512, 2,449,556,064, and 4,501,367,640. Every configuration starts from the same single state, and its early frontier grows naturally, so WpW_p is not exactly pW1pW_1. We therefore report actual-work throughput gain rather than fixed-work speedup:

Gp=Wp/TpW1/T1,Epweak=Gp/p.(33)G_p = \frac{W_p/T_p}{W_1/T_1},\qquad E_p^{\mathrm{weak}} = G_p/p. \tag*{(33)}

Here W8/W1=7.059676W_8/W_1 = 7.059676. The selected weak profile is large at every pp; common/selected G8G_8 is 6.113/7.295, with efficiency 76.42%/91.19%. Thus GPU count alone is not a complete performance label: fixed beam and action counts still permit different batching, concurrency, buffering, physical capacity, memory use, and executed system work.

The common strong series is superlinear at two and four GPUs, but the experiment does not isolate a cause; locality and single-versus-distributed path explanations remain hypotheses. Selected means fastest among the admitted stable candidates from three tested profiles, followed by independent final repeats, not a global optimum or an optimization ablation. The first five strong frontier memberships match across pp; the first saturated cutoff differences are tied to score 43,768 under rank/physical-buffer/local-slot order, so later trajectories may differ. The experimenter reports all 12 saved frontiers checked for uniqueness, balance, and padding admission, plus fixed-pp weak profile agreement. These are bounded recorded checks, not an exhaustive implementation proof or evidence of identical final search results.

RegimeppExpanded actions WpW_pCommon TpT_p (s)Common RRSelected profileSelected TpT_p (s)Selected RR
Strong1637,616,73685.1071.000medium63.5951.000
Strong2637,616,73633.9522.507common33.9981.871
Strong4637,616,73618.7274.545common18.7893.385
Strong8637,616,73611.3677.487common11.3475.605
Weak1637,616,736100.7791.000large72.2091.000
Weak21,241,596,512117.355†1.672large69.9802.009
Weak42,449,556,064120.7933.205large70.9513.910
Weak84,501,367,640116.3806.113large69.8767.295

Table 8. RTX 3060 scaling medians. Times are rounded to three decimals here; the public CSV contains exact summaries and paths to all three repeats. RR denotes SpS_p for strong rows and actual-work GpG_p for weak rows. The daggered weak common p=2p = 2 point is retained but its 5.97% min–max range/median exceeds the 5% winner-selection stability gate.

Profile-sensitive RTX 3060 scaling plots

Figure 10. Profile-sensitive RTX 3060 scaling. Solid lines are measured three-repeat medians; bars span the observed minimum and maximum, not a confidence interval. Gain bars hold the corresponding T1T_1 median fixed. In the strong-time panel, colored dashed lines are each series’ T1/pT_1/p. In the weak-time panel, dotted lines are constant T1T_1 and colored dashed lines are T1(Wp/W1)/pT_1(W_p/W_1)/p, the ideal time for linear throughput on the actual measured work. Black dashed gain references are y=py = p. No line is a fitted performance law.

Comparison with CayleyPy and Megaminx Result

Comparisons answer different questions and must not be mixed:

capacity≠speed≠solution quality.(34)\text{capacity} \ne\text{speed} \ne\text{solution quality}. \tag*{(34)}

CayleyPy shows that wider beams can improve solution quality on one GPU. In its S20S_{20} experiment, width grows from 2102^{10} (no solution) to 2202^{20} (length 190); its large-cube agents use 2242^{24} [5, 6]. The completed H200 depth has Beff=2,900,361,216=172.875×224B_{\mathrm{eff}} = 2{,}900{,}361{,}216 = 172.875 \times2^{24} effective records. This is only a reported width ratio: it is not a speed, solution-quality, scaling, or verified unique-state comparison.

We additionally measured Pilgrim and our search implementation on the same Cube4 state, checkpoint, single GPU, beam, and ten layers. The 3,383,064-parameter scorer maps 96 six-class input positions to 56 piece tokens plus CLS (57 tokens), applies input layer normalization, then four pre-LN Transformer blocks with width 256, eight heads, and a 1024-wide feed-forward layer, followed by a 24-output head. Inference uses FP16 and microbatches of 384. Table 11 reports the tenth layer, where every saturated frontier expands 24B24B pairs.

GPUImplementations/depth (depth 10)Pairs/sPeak VRAM
T4Pilgrim198.153508,0072.90 GiB reserved
T4Ours181.282≈ 555,2861,949 MiB used
P100Pilgrim314.487320,0872.90 GiB reserved
P100Ours301.955≈ 333,3721,949 MiB used

Table 11. Matched Cube4 depth-10 computation at B=4,194,304B = 4,194,304. Ours pair rates are derived from the recorded rounded depth times and rounded to the nearest pair/s.

Native approach inventory and matched model families on one T4

Table 13 is an inventory, not a speed ranking. The Megaminx tests form two separate families: scalar output-1 and Q output-24. A ratio is valid only when checkpoint, architecture, head, state, moves, depth, width, dtype, and hardware match. CayleyPy cannot consume the output-24 head. A node rate is reported only when the native solver exposes a valid counter; it is never replaced by B/tB/t.

ApproachSearch typeModel familyMax completeFirst failure/statusValid metric
AlphaCube 0.1.6beamCube3 action-181,572,8641,703,936 SIGKILLnodes/s
DeepCubeAweighted A*Cube3 scalarn/acomplete, length 21iterations, nodes/s
Pilgrim SearcherbeamMegaminx scalar5,898,2406,291,456 OOMwall/depth
Pilgrim QSearcherbeamMegaminx output-2420,971,52023,068,672 OOMwall/depth
native CayleyPybeamMegaminx scalar20,971,520targeted 21,037,056 OOMwall/depth
MultiGPU-BeamSearchbeamMegaminx scalar29,360,12831,457,280 OOMwall/depth
MultiGPU-BeamSearchbeamMegaminx output-2429,360,12833,554,432 OOMwall/depth

Table 13. Native search inventory on one visible T4. This table records algorithm type, compatible model family, and measured boundary; it is not a cross-row speed ranking.

Matched implementations load identical checkpoint bytes: scalar SHA-256 7f5071e6...a539b759 or output24 SHA-256 e7bda332...5d2ca670. These are different models. The Cube4 Transformer is another separate comparison.

AlphaCube and DeepCubeA. For AlphaCube, s/depth is solver wall divided by the completed search depth reported by the returned solution (20 for the first three rows and 17 for the remaining rows). For both Megaminx implementations it is wall divided by the fixed eight completed depths. These averages include startup and early unsaturated layers; they complement, rather than replace, nodes/s. AlphaCube materializes its 18B Cube3 children in host NumPy arrays. The next tested width ended in SIGKILL, consistent with host-memory pressure, but the released records do not confirm the kill cause with OOM diagnostics. The largest completed run reserved 4.686 GiB on the GPU; memory telemetry for the failed run is not available in the released records. Its widest completed rates are about 40–44 thousand

nodes/s. DeepCubeA is weighted A*, not a persistent beam. The audited run used weight 0.6 and search/NN batch sizes 10,000/10,000; its T4 run completed 55 iterations in 146.474 s, generated 6,134,352 nodes at 41,880 generated nodes/s, and found a length-21 solution. These are A* statistics, not beam-depth or frontier-capacity values. Figure 11 places the completed AlphaCube timings beside its native node counter and identifies the next tested SIGKILL in the caption.

AlphaCube one-T4 completed sweep, showing mean seconds per depth and native nodes per second versus beam width

Figure 11. AlphaCube one-T4 completed sweep. The upper panel shows wall time per completed depth; the lower uses AlphaCube’s valid native node counter. The next tested width, 1,703,936, ended in SIGKILL; host-memory pressure is an inferred cause.

CayleyPy sweep. Figure 12 pairs the native CayleyPy timing curve with its allocator growth; the failed broad-grid point is shown only as a memory boundary, not as a completed timing.

Native CayleyPy one-T4 sweep showing mean s/depth and allocator peak memory versus beam width

Figure 12. Native CayleyPy one-T4 sweep. Time and allocator memory rise with beam width; 2242^{24} completes and 2252^{25} is the first broad-grid OOM. The failed point is not a timing measurement.

Pilgrim’s widest scalar completion, B=5,898,240B = 5{,}898{,}240, took 1,462.557 s (182.820 s/depth) with a 14,433 MiB device peak; B=6,291,456B = 6{,}291{,}456 CUDA-OOMed. For output-24, B=20,971,520B = 20{,}971{,}520 completed in 197.358 s (24.670 s/depth) at 12,333 MiB, whereas B=23,068,672B = 23{,}068{,}672 CUDA-OOMed. The measured brackets are therefore 5,898,240–6,291,456 and 20,971,520–23,068,672, respectively.

The final collaborator-run MultiGPU pass and scalar-only v27 confirmation now give measured complete/OOM pairs for both heads. Scalar completed at 29,360,128 and CUDA-OOMed at 31,457,280; native output-24 completed through 29,360,128 and CUDA-OOMed at 33,554,432. Figure 13 juxtaposes those measured endpoints while keeping the scalar and output-24 model families separate.

Measured completion and failure brackets for scalar and output-24 models

Figure 13. Measured completion/failure brackets on one T4. A line joins the largest completed width to the first measured failure; it does not claim that the exact capacity lies at either endpoint. Scalar and output-24 models remain separate.

The scalar OOM recurred for every row-budget profile from 49,152 through 24. The common primary metric is total wall divided by eight, 352.145 s/depth; the auxiliary final-depth time was 1,644.13 s.

PairMatched quantitiesValid statementInvalid inference
MultiGPU vs CayleyPy scalarcheckpoint, model head, moves, T4, widthsrecorded search-time ratio at a shared width (with stated timer boundaries)output-24 or node-rate ratio
MultiGPU vs Pilgrim Cube4state, Q checkpoint, GPU, BB, depth 10depth-10 pair ratememory ratio across different counters
MultiGPU vs AlphaCubenative released systems onlyexecution and failure-mode inventorydirect speedup
MultiGPU vs Deep-CubeAhardware-side native runnative A* iteration and node statisticsretained-beam capacity
Eight H200 completed depth vs CayleyPyeffective-record and reported beam-width definitions172.875× width ratiospeed, quality, scaling, or verified unique-state ratio

Table 9. Which comparisons are valid. A speed ratio requires the same model contract and workload; a capacity ratio does not imply a speed ratio.

WW2102^{10}2122^{12}2142^{14}2162^{16}2202^{20}
Length—252202194190

Table 10. Published CayleyPy beam-width trend (Table 8 of [5]).

MultiGPU output-24 sweep. The largest completion is B=29,360,128B = 29,360,128: 116.904 s total, 14.613 s/depth, and 13,717 MiB peak device memory. At B=33,554,432B = 33,554,432, every row-budget profile down to 1 failed at 14,909 MiB. Its final 1.563-s attempt is not a completed depth time. Figure 14 therefore separates the completed timing curve from the marked OOM boundary.

Native output-24 sweep plots showing mean s/depth and peak device memory against beam width $B$, with complete and CUDA OOM markers and a doubling-frontier annotation

Figure 14. Native output-24 sweep on one T4. Upper: completed mean time per depth. Lower: device-memory growth and the failed B=33,554,432B = 33{,}554{,}432 attempt. The doubling rows are descriptive adjacent ratios from three completed points in this same sweep, not a fit or asymptotic claim. The OOM point is not treated as a timing measurement.

Matched scalar cohorts. The matched scalar sweep completed CayleyPy through 2242^{24} and OOMed at 2252^{25}. A separate targeted run gives the finer bracket 20,971,520-complete versus 21,037,056-OOM. MultiGPU reached 29,360,128 at 14,215 MiB and OOMed at 31,457,280; its output-24 path reached 29,360,128 and OOMed at 33,554,432. Neither scalar path exposed a valid node counter, so only wall time and memory are compared. At B=16,777,216B = 16,777,216, wall time was 4,741.581 s for CayleyPy and 1,728.460 s for MultiGPU, a 2.74× ratio of the recorded times under these timing boundaries. Superseded and cancelled runs are excluded.

Model familyParametersOutputCompatible implementations
Cube3 AlphaCube large118,939,66618 actionsAlphaCube only
Cube3 DeepCubeA cube314,663,001scalarDeepCubeA only
Megaminx scalar MLP34,766,849scalarPilgrim Searcher, CayleyPy, MultiGPUBeam-Search
Megaminx QMLP2RB23,978,00824 actionsPilgrim QSearcher, MultiGPUBeamSearch
Cube4 Q Transformer3,383,06424 actionsmatched Pilgrim/MultiGPU Cube4 and 8×H200 tests

Table 12. Model contracts used by the reported tests. Parameter counts refer to the trainable source model before batch-normalization folding. Full layer sequences remain in the artifact tables.

BBWall (s)s/depthPeak device (MiB)Status
25,165,8243,027.673378.45912,267complete
27,262,9763,080.206385.02613,241complete
29,360,1282,817.158352.14514,215complete
31,457,280——14,909CUDA OOM

Table 14. Final MultiGPU 1×T4 scalar boundary points.

The broad matched curve is cohort C1 and uses the solver-internal MultiGPU timer. The later boundary rows are cohort C2: their executable-wrapper timer includes initialization but excludes build and model export. At B=25,165,824B = 25,165,824, C1 records 2,416.150 s whereas C2 records 3,027.673 s. Both are normalized by eight completed steps, but their timing boundaries differ; the cohorts are neither pooled nor substituted for one another. Figure 15 therefore shows only the matched C1 curve and states its timing boundary in the caption.

Matched one-T4 Megaminx scalar sweep comparing MultiGPUBeamSearch and CayleyPy

Figure 15. Matched one-T4 Megaminx scalar sweep. Both axes are logarithmic. The historical MultiGPU C1 series uses the solver-internal timer; CayleyPy uses its recorded run wall. Values are normalized by eight completed steps. Neither implementation exposes a valid node counter for these runs.

Scalar timings are not compared with the faster, architecturally different (allocator reservation versus device-wide usage), so no memory ratio is claimed.

The dated public-source audit located the same-metric chronology

55⟶54⟶53⟶51 moves.(35)55 \longrightarrow54 \longrightarrow53 \longrightarrow51\ \text{moves}. \tag*{(35)}

The immediately preceding located public result is 53 moves. The companion record for the 51-move path identifies the same signed 72-degree, 24-generator metric and lists 22,600.2 s [18, 17, 16, 15]. Independent CPU replay reaches the exact target. The audit located no shorter public same-metric path through August 25, 2026, but there is no formal registry or optimality proof; we therefore do not call it a world record. This result is separate from the capacity and throughput runs.

Reference-count comparison (not a performance fit). For fixed branching aa, doubling retained BB doubles generated N=aBN = aB and frontier-state bytes. In the sort-based abstract reference of Eq. (16), the Nlog⁡2NN \log_{2} N reference-work term scales by

(2N)log⁡2(2N)Nlog⁡2N=2(1+1log⁡2N).(36)\frac{(2N)\log_{2}(2N)}{N\log_{2}N} = 2\left(1 + \frac{1}{\log_{2}N}\right). \tag*{(36)}

These are operation and storage counts, not a wall-time bound for the historical sweep or the audited Stream 4 dispatcher. Fixed costs, occupancy, other work, and repeated jobs can keep the measured adjacent ratios from equaling two.

Code and Artifacts

Evidence is revision-scoped. The public index pins one-T4 to a1db0e6d9bb5458c8a842b37dfa99572d3025667; Cube4 to df534ebb1ef624abd42443211778b5588916d6d2; cluster/capacity to 2d5f978fcfc1f018813fc49e9d9aeec32ea5e22c; and CayleyPy to 5b2b53f. It gives no measured solver revision for the two-T4 throughput record. The H200 depth is pinned separately to 3b756afe9e7636e53520fa6de7e60a167bbaa79a. None is relabeled as main@25cc25d. The RTX 3060 record is the public dataset observed at revision 4f8e9b67fc00a2ef2e49ae1d2b255f860531d0aa; its exact source identities are listed in Appendix B. In snapshot b113582e15c78d33deceea5922eb6589ae492fe4, the actual SHA-256 of artifacts/manifest.json is c01dc1c3c74b78fc8af4ba363f80edb5f9aca4dbc10fb8004b50ae38b209972c; the older checksum list contains a different value and is not treated as a verified inventory.

The complexity analysis is a separate read-only source audit, not a benchmark. Its note has SHA-256 98b8eea288b20b699a0bab4e962fc9f6de6fc9ededa6698d574ae3593d4e9528; its source manifest has SHA-256 a0f44e50a6aeb1b22fb0f48fa516c5d30b1b1c666c3c4b9695aa43f6c94af70b. The manifest pins current dirty HEAD 81ed9f0287c1f9057648119a253f208c31f7a872 and the exact SHA-256 of each audited source file. That snapshot, historical pin a1db0e6, and the abstract exact-beam contract are three distinct scopes. Current specialized state widths and current final-union code are not substituted into historical H200, T4, or A100 measurements.

The A100 record supports capacity only; the T4 record supports Megaminx throughput; the H200 record supports one completed Cube4 depth; and the RTX 3060 record supports only the declared profile-sensitive scaling series. Missing fields are never borrowed from a different run.

ResourceContents and supported claim
Paper repositorysources, evidence index, tables, notebooks; definitions and provenance
Paper release v1.0.0matched checkpoints and PDFs; model-contract comparisons
One-T4 datasetdata and notebooks; one-T4 sweeps and boundaries
RTX 3060 scaling dataset16 measured points, profiles, manifests and logs; matched 1/2/4/8-GPU scaling
Solver repositorysolver, Megaminx release and replay audit; implementation and 51-move path

Table 15. Public artifact map. Short link labels keep the paper readable; each artifact is tied to the claim it can support.

Conclusion

The conditional abstract beam-selection result can be summarized in one line:

Fd,zdistributed(L)=Fd,zmonolithic(L)(37)\mathcal{F}^{\mathrm{distributed}}_{d,z}(L) = \mathcal{F}^{\mathrm{monolithic}}_{d,z}(L) \tag*{(37)}

for the same complete candidate set, quantized scores, Hash128 key equivalence, payload order, fully specified rank/physical-buffer/local-slot tie order, distinct-key threshold witnesses, global one-per-key reduction, race-free routing, and complete processing without semantic local caps. The equality is selected membership under the same realized physical layout, not a canonical serialization order or schedule-independent result from GPU and shard counts alone. Full-state equality additionally requires no relevant Hash128 collision. This is beam-selection exactness, not shortest-path optimality. The static audit leaves cross-buffer de-duplication unresolved and identifies a multi-rank in-place owner-scatter risk in a1db0e6; neither finding is evidence that its historical one-T4 measurement failed. The H200 revision and historical two-T4 v118 run inherit neither the risk nor correctness without their own code comparison. Eight H200s completed one saturated Cube4 depth at 2,900,361,216 retained records and a derived 74.746 million nominal pairs/s; two T4s yielded a derived 30.274 million nominal Megaminx parent–generator pairs/s; and the older eight-A100 record establishes only requested capacity. Those cross-platform records do not establish strong scaling. On the separate RTX 3060 host, fixed-count common/selected eight-GPU speedups were 7.487/5.605 (efficiencies 93.59%/70.06%), while weak actual-work gains were 6.113/7.295 (efficiencies 76.42%/91.19%). The one-GPU medium profile changed 85.107 s to 63.595 s while eight-GPU time stayed near 11.35 s: GPU count alone is therefore an incomplete performance label. These data establish neither a causal bottleneck attribution nor identical final search trajectories. The artifacts separately contain a replay-valid 51-move Megaminx-superflip path, the shortest public same-metric solution located by the dated audit.

Acknowledgements

The author thanks OpenAI, its AI tools including Codex, and the CayleyPy project. The author also thanks Vlad Kuznetsov for providing the neural network model used in measurement runs and in the search that found the 51-move Megaminx superflip path.

Use of Generative AI and Author Contributions

OpenAI AI systems were used extensively in the development of MultiGPUBeamSearch and the preparation of this paper. The author defined the system architecture, directed the development and experimental work, and personally checked the correctness of obtained solutions through Kaggle. The author also personally verified the theorem relating threshold-based selection to global top-kk selection. Most of the software implementation was generated and revised using OpenAI Codex, which was also used for testing, debugging, performance investigation, and experimental tooling. AI agents prepared instrumentation and launch scripts, executed the RTX 3060 scaling experiments, processed their recorded outputs, and generated tables and plots.

OpenAI assistants, including the assistant used in Prism, contributed to mathematical analysis, theorem and proof drafting, complexity analysis, literature and source checks, manuscript drafting and revision, and LaTeX preparation. Numerical consistency checks, code-to-claim audits, and visual checks of the manuscript were likewise AI-assisted. These checks have the specific scope and limitations described in the paper; they do not establish exhaustive implementation correctness or independent human verification of every output. The author remains responsible for the submitted manuscript, its claims, and its limitations.

Complexity Details for the Audited Code

This appendix expands only the terms needed to interpret Eqs. (17)–(19). It does not assert that the current dirty snapshot produced any reported measurement or satisfies the abstract exactness obligations.

Repeated reduction and final selection. Stream 3 comparison-sorts the full QQ capacity, including sentinel tail, then reduces equal Hash128 keys. Fixed-width radix operations used later for score bins or shard indices do not make this Hash128 comparison sort linear. Stream 4 similarly sorts the scheduled physical capacity CkC_k. Current stream3.cu:863--868 can request a small-dirty job, including dirty=0, when enough clean records remain; queue and running guards do not prove an amortized job bound.

bound. The current final A/B union additionally has

Wunion=∑jO(Cjunionlog⁡Cjunion),(38)W_{\mathrm{union}} = \sum_j O\left(C_j^{\mathrm{union}} \log C_j^{\mathrm{union}}\right), \tag*{(38)}

followed by histogram and boundary scans accounted as O(Vscan+GH+EGJH)O(V_{\mathrm{scan}} + GH + EGJH) for JJ logical shards and EE threshold updates. This union term belongs only to the audited current code; it is not assigned to historical executions. A threshold may retain all candidates, so it provides data-dependent savings but no worst-case survivor reduction.

Communication and skew. If Uremote≤U3≤NdU_{\mathrm{remote}} \le U_3 \le N_d, candidate payload is mmetaUremote=O(mmetaNd)m_{\mathrm{meta}}U_{\mathrm{remote}} = O(m_{\mathrm{meta}}N_d). Final selected metadata and reconstructed states add O(Bdmmeta+Bdgstate)O(B_d m_{\mathrm{meta}} + B_d g_{\mathrm{state}}) aggregate bytes and O(Bdℓ)O(B_d \ell) materialization work. Uniform independent ownership would give expected load near U3/GU_3/G, but it is an assumption: one owner can receive Θ(U3)\Theta(U_3). Per-peer count and payload calls add peer-count and latency terms; over qq exchange rounds the count operations are Θ(qG2)\Theta(qG^2) aggregate. Fabric bisection bandwidth, port bandwidth, collectives, zero-size peer calls, and skew must therefore remain explicit in a wall-time model.

Peak memory. The audited current planner has the phase structure

Mrarena=align⁡(sstateFrcap)+align⁡(Msolved)M_r^{\mathrm{arena}} = \operatorname{align}(s_{\mathrm{state}}F_r^{\mathrm{cap}}) + \operatorname{align}(M_{\mathrm{solved}})
+align⁡(max⁡x∈PMx),(39){} \qquad+ \operatorname{align}\left(\max_{x \in\mathcal{P}} M_x\right), \tag*{(39)}

where P\mathcal{P} contains compatible stream, selection, materialization, and other phases. Stream memory includes score/hash rings, send/receive rings, both physical survivor buffers, comparison-sort keys/values and temporary storage, histograms, and spill capacity. Process peak additionally includes model weights, scorer activations/workspace, CUDA/NCCL contexts, graph metadata, and allocator/runtime overhead. Thus arbitrary survivors require O(Ndmmeta)O(N_d m_{\mathrm{meta}}) aggregate persistent metadata and potentially that order on one owner; O(Ndmmeta/G)O(N_d m_{\mathrm{meta}}/G) requires balance. The current audit’s specialized allocated state widths are not used to replace the separately sourced 96-byte hypothetical full-child value in Eq. (6) or any historical memory measurement.

History, depth, and wall time. Let nhist,dn_{\mathrm{hist},d} be final history entries recorded at depth dd and hh their stored bytes. History work is Θ(∑dnhist,d)\Theta\left(\sum_d n_{\mathrm{hist},d}\right), device-to-host volume is mmeta∑dnhist,dm_{\mathrm{meta}}\sum_d n_{\mathrm{hist},d}, and stored logical bytes are h∑dnhist,dh\sum_d n_{\mathrm{hist},d}; these count as separate, not all NdN_d expansions. With a saturated unpruned beam this is O(DBh)O(DBh). Disk bandwidth and flush/read latency remain service limits, and one reconstructed path can require O(D)O(D) reads and O(Dℓ)O(D\ell) replay work.

For stage-work times tit_i, network/history service time tservicet_{\mathrm{service}}, and final-drain time tfinalt_{\mathrm{final}}, assume completed bounded jobs and no unaccounted scheduling or resource stalls. The scheduling model is

max⁡{ti,tservice,tfinal}≤Td≲∑iti+tservice+tfinal.(40)\max\{t_i,t_{\mathrm{service}},t_{\mathrm{final}}\} \le T_d \lesssim\sum_i t_i + t_{\mathrm{service}} + t_{\mathrm{final}}. \tag*{(40)}

The upper expression is serialized-work accounting; completion alone does not bound unmeasured waiting or resource stalls. The maximum form in Eq. (19) requires demonstrated overlap and independent resources. Balance, bandwidth, latency, skew, minimum job capacities, HBM contention, history service, and the final drain bound strong scaling; no concrete crossover GPU count follows without measured parameters.

RTX 3060 Scaling Protocol Details

The three tested profiles change physical execution parameters, not the beam semantics. Every profile uses eight logical shards and four active sort slots. Strong history allocation is 8 GiB total; weak allocation is 8 GiB per GPU, with no history pruning. This is capacity allocation, not a semantic shard cap.

Capacity amendment and selection. The original weak common p=2p = 2 admission with capacity 655,360 overflowed a physical Stream 3 buffer before completion and is excluded from timing. All weak candidates were then admitted with capacity 3,276,800; weak p=1p = 1 was remeasured independently rather than reused from strong scaling. The runner, global beams, 12-step workload, and global selection/de-duplication semantics were unchanged. The weak one-GPU common point (100.779 s) and strong one-GPU common point (85.107 s) use different physical buffer capacities, so their difference does not isolate a causal capacity effect. Each candidate received a warmup and three selection repeats; a winner-eligible candidate required range/median at most 5%. The frozen winner then received an independent warmup and three final repeats. The reported weak common p=2p = 2 point has a 5.97% range and therefore does not satisfy that winner-selection gate.

Hardware and telemetry. The exclusive host had eight RTX 3060 12-GiB GPUs, two Xeon E5-2673 v4 CPUs, and no NVLink; links were PIX/PHB within groups and NODE between groups. The record reports driver 595.71.05, CUDA compiler 12.8.93, GCC 13.3.0, NCCL 2.31.2, and Linux 6.8.0-124-generic. GPU clocks were observed rather than locked. Device memory was sampled through nvidia-smi at roughly 0.2-s intervals plus command overhead, so transient peaks may be missed. Min–max intervals are three-repeat ranges, not confidence intervals. The experiment contains no isolated capacity-effect or optimization ablation.

Measurement identities. The public dataset is Try0Datwo/multigpu-beam-rtx3060-scaling-20261004, observed revision 4f8e9b67fc00a2ef2e49ae1d2b255f860531d0aa. The final report SHA-256 is f87d0ef6d92115fdbb1b83f05a92afced7d9fbb6976639687867a53bad79b207; the measurement CSV is 926a3103df656ef427d89f62b51d7779b965f8af1f61b0f23453735e787b3449; and the completion audit is fc9112a534d9bed4a5c6d704a26192de8d6edc2f1a84139e47d7ba640ce1d544. The immutable runner binary is 7c10c4e8cade66d78900946052e0a1ccf08644fa0df37df6b5286fd3028279a2; the instrumented runner is a38556e3fd5a85313d74b5f1a1573be1bf26baa2586fb61ca081d01327c7366b. The completion audit reverified 346 per-file source-manifest entries based on 81ed9f0287c1f9057648119a253f208c31f7a872. Sharing that base revision does not prove identity with the separately audited dirty snapshot; neither correctness nor audit findings transfer without comparison of the per-file bytes.

Admission scope. The experimenter reports all 12 saved frontiers checked for logical-state uniqueness, distribution balance, and valid padding. Strong memberships match across pp for the first five frontiers; first saturated-cutoff differences are score-43,768 ties under rank/physical-buffer/local-slot order. At each fixed weak pp, all 12 saved frontiers match across tested profiles. These are bounded recorded admission checks. They are not an independent exhaustive implementation proof, a guarantee of identical later strong trajectories, or evidence of identical final solutions.

Profileexamples/forwardouter/laneconcurrencyringS3 accumulatorstrong shard capweak shard capS4/final chunk
common8,192196,60812393,216655,3603,276,80065,536
medium16,384393,21622786,4321,310,7203,276,800131,072
large32,768786,432243,145,7283,276,8003,276,800262,144

Table 16. RTX 3060 profile parameters. Weak runs override only the physical shard-buffer capacity to 3,276,800 for every profile and GPU count. “S4” is both batch and trigger capacity; the final materialization chunk has the same size.

References

  1. [1]F. Agostinelli, S. McAleer, A. Shmakov, and P. Baldi. Solving the rubik’s cube with deep reinforcement learning and search. Nature Machine Intelligence, 1:356–363, 2019.DOI
  2. [2]T. S. Anantharaman and R. Bisiani. A hardware accelerator for speech recognition algorithms. In Proceedings of the 13th Annual International Symposium on Computer Architecture, pages 216–223, 1986.
  3. [3]H. Braun, J. Luijtens, R. Leary, T. Kaldewey, and D. Povey. GPU-accelerated viterbi exact lattice decoder for batched online and offline speech recognition. In 2020 IEEE International Conference on Acoustics, Speech and Signal Processing, 2020.arxiv.org/abs/1910.10032
  4. [4]B. J. Chan et al. Efficient beam search for large language models using trie-based decoding. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 14795–14807, 2025.arxiv.org/abs/2502.00085
  5. [5]A. Chervov et al. CayleyPy RL: Pathfinding and reinforcement learning on cayley graphs. arXiv preprint arXiv:2502.18663, 2025.DOI
  6. [6]A. Chervov et al. A machine learning approach that beats large rubik’s cubes. arXiv preprint arXiv:2502.13266, 2025.arxiv.org/abs/2502.13266
  7. [7]J. Chong, Y. Yi, A. Faria, N. R. Satish, and K. Keutzer. Data-parallel large vocabulary continuous speech recognition on graphics processors. Technical Report UCB/EECS-2008-69, University of California, Berkeley, 2008.
  8. [8]N. Frohner, J. Gmys, N. Melab, G. R. Raidl, and E.-G. Talbi. Parallel beam search for combinatorial optimization. In Proceedings of the 51st International Conference on Parallel Processing Workshops, 2022.DOI
  9. [9]X. He, Y. Yao, Z. Chen, J. Sun, and H. Chen. Efficient parallel A* search on multi-GPU system. Future Generation Computer Systems, 123:35–47, 2021.DOI
  10. [10]M. Junczys-Dowmunt, T. Dwojak, and H. Hoang. Is neural machine translation ready for deployment? a case study on 30 translation directions. In Proceedings of the 13th International Conference on Spoken Language Translation, 2016.
  11. [11]S. Kim, S. Park, S. U. Noh, J. Hong, T. Kwon, H. Lim, and J. Lee. PathWeaver: A high-throughput multi-gpu system for graph-based approximate nearest neighbor search. In 2025 USENIX Annual Technical Conference, pages 1501–1517, 2025.arxiv.org/abs/2507.17094
  12. [12]A. Kishimoto, A. Fukunaga, and A. Botea. Evaluation of a simple, scalable, parallel best-first search strategy. Artificial Intelligence, 195:222–248, 2013.DOI
  13. [13]R. Kuroiwa and J. C. Beck. Parallel beam search algorithms for domain-independent dynamic programming. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 20743–20750, 2024.DOI
  14. [14]M. Soltani and F. Agostinelli. GPU-accelerated A* search with deep neural network heuristics. In Proceedings of the Nineteenth International Symposium on Combinatorial Search, 2026.DOI
  15. [15]SpeedSolving forum contributor. Development of a megaminx solver: 51-move superflip report. SpeedSolving forum post 1705451, 2026.
  16. [16]SpeedSolving forum contributor. Development of a megaminx solver: 53-move superflip report. SpeedSolving forum post 1700151, 2026.
  17. [17]SpeedSolving forum contributor. Development of a megaminx solver: 54-move superflip report. SpeedSolving forum post 1696217, 2026.
  18. [18]SpeedSolving forum contributor. Development of a megaminx solver: 55-move superflip report. SpeedSolving forum post 1696242, 2026.
  19. [19]D. Sun, B. Kan, H. Long, H. Zhao, H. Li, Y. Liu, P. Zhou, A. Feng, W. Huang, Y. Gu, Z. Li, H. Shang, Y. Zhang, D. Tao, N. Sun, and G. Tan. A fully GPU-accelerated framework for high-performance configuration interaction selection with neural network quantum states. In Proceedings of the 35th International Symposium on High-Performance Parallel and Distributed Computing, 2026.
  20. [20]K. Takano. Self-supervision is all you need for solving rubik’s cube. Transactions on Machine Learning Research, 2023.arxiv.org/abs/2106.03157
  21. [21]A. Wijs and B. Lisser. Distributed extended beam search for quantitative model checking. In Model Checking and Artificial Intelligence, pages 166–184, 2007.DOI
  22. [22]A. Wijs and M. Osama. The fast and the capacious: Memory-efficient multi-GPU accelerated explicit state space exploration with GPUexplore 3.0. Frontiers in High Performance Computing, 2, 2024.DOI
  23. [23]Y. Zhou and J. Zeng. Massively parallel A* search on a GPU. In Proceedings of the AAAI Conference on Artificial Intelligence, 2015.DOI

Paper details

vlnc:W_gp3sp4ac
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Codex, OpenAI assistants

View statement
Looking for related papers…
Contents