Handing Off Deep Branches: CPU–GPU Scheduling Inside Branch-and-Bound Neural Network Verification

Proving that a neural network can never produce an unsafe output requires reasoning about every input in a region, not just the inputs we happened to test. The fastest tools today do this with branch-and-bound. They repeatedly split the problem on whether individual ReLU neurons are on or off, bound each piece with a cheap linear over-approximation computed in large GPU batches, and discard pieces that are provably safe. These verifiers run almost entirely on the GPU, while the dozens of CPU cores in the same machine sit idle. The GPU is also poorly suited to one part of the search. Late in a hard proof, the search tree narrows into deep, sparse branches that cannot fill a batch, and each of them still needs many more splits before the GPU's loose bounds close it.

This note proposes a different division of labour. Once a branch has fixed enough neurons that only a handful remain undecided, the branch becomes a small exact problem: a mixed-integer program with only a few binary variables. A CPU solver can settle such a problem outright, often faster than the GPU could enumerate its remaining subtree. We propose a verifier runtime that streams these small branches to CPU workers asynchronously while the GPU keeps batching the wide, shallow frontier. A cost model predicts, branch by branch, which device will close it sooner. The claim is that this recovers the CPU as useful verification capacity and turns the long tail of hard proofs into solved instances, without giving up the GPU throughput that made modern verifiers fast.

Core Claim

Branch-and-bound subproblems are not interchangeable, and the right device for a subproblem depends mostly on one quantity: $k$, the number of neurons whose on/off state is still undecided within it. GPU bound propagation costs roughly the same per branch regardless of $k$, but it may need on the order of $2^k$ further splits to finish a subtree. Exact solving on a CPU has the opposite profile. It is expensive when $k$ is large and cheap when $k$ is small, because the solver's own search is exponential in the number of binary variables. There should therefore be a crossover depth beyond which handing the whole subtree to a CPU solver beats continuing to split it on the GPU. The runtime routes a branch to the CPU when

$$\hat{T}_{\text{cpu}}(k, m) \;<\; \hat{N}(k)\cdot \frac{t_{\text{batch}}}{B} + \tau_{\text{wait}},$$

where $\hat{T}_{\text{cpu}}$ is the predicted exact-solve time given $k$ undecided neurons and the network size $m$, $\hat{N}(k)$ is the predicted number of further GPU branches needed to close the subtree, $t_{\text{batch}}/B$ is the measured GPU cost per branch at batch size $B$, and $\tau_{\text{wait}}$ is the current CPU queue delay. All four terms are estimated online from the run itself. Moving a branch between devices is cheap: it is described by its list of split decisions plus the bound state, a few kilobytes. This sidesteps the transfer-cost trap that dominates heterogeneous scheduling of dense numerical kernels.

Positioning Against Prior Work

The verification papers in the file supply the engine and also show the gap. Fast and Complete moved bounding to batched GPU linear relaxation and kept a CPU linear-programming fallback, but only as a synchronous feasibility check that stalls the GPU. It reported 10x to 30x speedups over CPU LP-based verifiers. Beta-CROWN encoded split constraints with optimizable multipliers, detected infeasible branches on the GPU itself, and removed the CPU from the loop. It reported up to 1000x speedups over LP-based branch-and-bound and won VNN-COMP 2021. We reuse its bounding unchanged. Our difference is that the CPU returns not as a fallback that blocks the GPU but as a parallel worker running exact solves on whole subtrees. ABONN motivates the proposal from the search side. Ordering branches by counterexample likelihood produces deliberately lopsided trees and solved 106 CIFAR-10 Base instances, against 32 for αβ-CROWN. ABONN only decides what to expand next on one device. Its lopsided deep branches are exactly the batch-underfilling work we propose to move to the CPU, so the two approaches compose rather than compete.

From scheduling, the XKaapi study of multi-CPU/multi-GPU strategies acts as a constraint. Cost-model scheduling won on regular workloads and locality-aware work stealing won on irregular ones, and pure work stealing needed manual architecture annotations to avoid bad device choices. Our routing rule is effectively an automatically computed version of that annotation, specialized to a quantity ($k$) that verification exposes for free. Heteroflow supplies the execution model: asynchronous host and kernel tasks with work-stealing workers. It was evaluated only on static CAD task graphs, never on a graph that grows and shrinks as bounds prune it. NN4SysBench provides a demanding application regime. Its systems properties, such as monotonicity checked on two copies of a model side by side, double the network and push branch-and-bound into deep trees. The suite includes a learned distributed-system scheduler (LearnedSched).

Research Program

The build has three parts. The first is an asynchronous runtime around the αβ-CROWN bounding code. A GPU loop pops batches from the shallow frontier, and a pool of CPU workers pulls handed-off branches, encodes each as a mixed-integer program with the decided neurons fixed and the remaining $k$ as binaries, and solves it. Each worker either returns "safe", which prunes the whole subtree, "counterexample", which ends the run, or "timeout", in which case the branch is pushed back to the GPU. If a worker times out it has wasted only its own time, so completeness is preserved.

The second part is the cost model. $\hat{T}_{\text{cpu}}$ is fit by regression on solve logs. $\hat{N}(k)$ comes from the observed shrinkage rate of bound violation per split along the branch's own ancestry, the same margin signal ABONN uses for prioritization. Both models are refit continuously during a run.

The third part is an analysis of when the crossover exists. We will measure, per benchmark, the empirical curves of GPU subtree size and CPU solve time against $k$, and report whether a crossover exists and where it lies. We will also check floating-point soundness, a known weak point raised by VNN-COMP and Szász et al.. Every CPU "safe" verdict will be re-verified with a margin, and we will report any disagreements with the GPU.

Baselines

The naive reference is αβ-CROWN with its default breadth-first branching on the same machine, with the CPU cores left idle. This is the configuration current users actually run. The strongest existing single method is ABONN on top of αβ-CROWN. On CIFAR-10 Base it reports 106 instances solved within the timeout versus 32 for αβ-CROWN and 27 for plain branch-and-bound, with up to 24.7× speedup on CIFAR-10 and 15.2× on MNIST (ABONN). It is the strongest competitor because it attacks the same deep-tree inefficiency by reordering rather than relocating work. We will rerun it on our hardware and timeouts rather than trust cross-paper numbers. Our method will be tested both alone and stacked on ABONN's ordering. Beating it means more solved instances at equal wall-clock time and equal hardware, with the stacked version strictly above ABONN alone.

The Fast and Complete synchronous CPU fallback is reimplemented within the same codebase. This isolates asynchrony from routing. For NN4SysBench, no reported result found on Lacuna for raw solved counts or runtimes, since the paper's runtimes appear only in plots. We will therefore run αβ-CROWN and Marabou ourselves on the compatible model versions from the benchmark repository.

The ablation that isolates the key ingredient keeps the full runtime and CPU budget but routes branches to the CPU at a fixed depth, or at random among branches below a depth cutoff, in place of the $k$-based cost rule. If the cost model does not beat a well-chosen fixed threshold, the contribution reduces to "use idle CPUs." That would still be useful, but it is a smaller claim.

Every method gets identical hardware: one GPU plus the same number of CPU cores, the same per-instance timeout, and the same hyperparameter-tuning budget on a held-out benchmark split. The comparison counts total device-seconds as well as wall-clock time, so that a method using the CPUs is not judged only on wall-clock time.

Why not just…?

Why not just use bigger GPU batches or a bigger GPU? Larger batches help the wide part of the frontier but not the deep tail. A deep branch with $k$ undecided neurons still needs its subtree enumerated, and once the frontier narrows, batches go underfilled. ABONN's result that reordering alone triples solved instances on CIFAR-10 Base (ABONN) suggests the tail, not raw throughput, is the bottleneck. We will test this directly by plotting batch occupancy over time and running the naive baseline at maximum memory-feasible batch size.

Why not just run a portfolio, with αβ-CROWN on the GPU and a CPU mixed-integer solver on the whole instance in parallel, taking whichever finishes first? This is the most serious threat, and we include it as a baseline. Whole-instance exact solving has large $k$ and should rarely win on deep convolutional networks. NN4SysBench reports that Marabou was competitive only on small networks (NN4SysBench), and the GPU-versus-LP gap reported by Beta-CROWN points the same way. But on small ACAS Xu-sized networks the portfolio may match us. If the portfolio matches our runtime on CIFAR-10 and the NN4SysBench dual-model properties too, the subtree-handoff idea is wrong and we will say so.

Why not just distribute independent specifications across devices? NN4SysBench properties can involve over 150,000 specification entries, so much of a suite is embarrassingly parallel. We agree, and our runtime spreads specifications across workers as well. However, suite completion time is set by the few hardest specifications. Splitting the suite does nothing for a single hard proof, and that per-proof time is what the handoff targets. We will report per-specification time on the slowest 5% separately from total suite throughput.

Why not just use plain dynamic work stealing between CPU threads and GPU streams? CPU threads running GPU-style bound propagation are far slower than the GPU, and without a device-choice rule, stolen work lands on the wrong device. The XKaapi study found that work stealing needed explicit architecture annotations to perform well (XKaapi study). Our runtime does use work stealing among CPU workers. The routing ablation measures what the $k$-based rule adds on top of it.

Proposed Experiments

We will run on the VNN-COMP CIFAR-10 Base, Wide and Deep networks and the MNIST networks used by ABONN and β-CROWN, plus ACAS Xu. Each instance is labelled as safe (UNSAT) or unsafe (SAT). The systems regime uses the NN4SysBench compatible models, concentrating on the dual-model monotonicity properties of LearnedSched and the cardinality-estimation networks. The metrics are instances solved within the timeout, median and tail time on commonly solved instances, CPU and GPU utilization over time, and device-seconds per solved instance.

Three checks decide the question. The first is the crossover curve. If CPU solve time never drops below the predicted GPU subtree cost at any $k$ on the CIFAR-10 networks, the mechanism does not exist there and the gains, if any, come from elsewhere. The second check is where the gains appear. We predict they concentrate on hard safe instances, which have deep trees that must be fully closed, while on unsafe instances ABONN's ordering does most of the work. A uniform gain across both would suggest we are measuring something other than subtree closure. The third check is the portfolio comparison described above, which is the result most able to falsify the proposal. A positive outcome is more solved hard safe instances than ABONN at equal hardware, a stacked ABONN-plus-handoff configuration that beats both components, and a $k$-based router that beats the best fixed threshold.