NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stealing Queries: Load-Balanced Black-Box Auditing Under a Shared Budget

When you audit or attack a machine-learning model through its API, the scarce resource is not compute — it is queries. Every input-output pair costs money, counts against a rate limit, and can be flagged by stateful monitors. A large body of work has therefore focused on making each individual search more query-efficient: Simple Black-box Adversarial Attacks (SimBA) shows that random orthogonal directions in a low-frequency basis suffice, and Square Attack shows that boundary-constrained random updates beat gradient estimation. But a real audit is almost never one search. It is a campaign: hundreds of candidate inputs, each needing a wildly different number of queries — SimBA reports a median of 582 queries per ImageNet image but a mean of 1,283, and about 2.5% of images never flip even after 60,000 queries — all drawing from one shared, rate-limited budget. Per-seed query efficiency is a search problem; campaign query efficiency is a scheduling problem, and the literature has almost nothing to say about the second one.

The proposal here is to treat the shared query budget exactly the way a parallel system treats skewed work: as a dynamic load-balancing problem, executed on a throughput-oriented runtime. Concretely, we build a scheduler that runs many concurrent attack searches over parallel workers, predicts each search's remaining difficulty, moves tokens toward searches with the best marginal chance of success per query, and hard-abandons searches that evidence shows will not converge — while the underlying runtime keeps a deep pool of in-flight queries and overlaps their network turnaround with local surrogate computation, in direct analogy to hardware multithreading hiding DRAM latency behind arithmetic. The closest existing work, Hybrid Batch Attacks by Suya et al., already shows the prize: reordering seeds by predicted difficulty saved over 70% of queries versus random order when seeking 10 successes from 100 ImageNet seeds. But that system is a sequential, one-shot prioritization with no reallocation, no abandonment, and no parallel execution. We argue the full problem — allocating a shared, replenishing token budget across parallel, uncertain-duration searches — is where the remaining waste lives.

Core Claim

The claim has one algorithmic part and one systems part, and we are explicit that the query-count gains come from the first. Algorithmically: for a batch of $N$ candidate seeds under a global budget $B$, the right decision rule is an online racing policy. If $s_i(n)$ denotes the probability that seed $i$ converges within $n$ queries, the offline ideal is

$$\max_{\{n_i\}} \; \sum_{i=1}^{N} s_i(n_i) \quad \text{subject to} \quad \sum_{i=1}^{N} n_i \le B,$$

whose greedy solution repeatedly gives the next token to the seed with the largest marginal gain $s_i(n_i+1) - s_i(n_i)$. No campaign system implements anything like this: SimBA and Square Attack fix per-image budgets; AttackBench mandates an exactly 2,000-query budget per attack instance; Hybrid Batch Attacks orders seeds once, upfront, by a surrogate-difficulty proxy. Our scheduler approximates the greedy rule online, using two signals that the corpus already validates: surrogate flip difficulty (Suya et al.'s prior, measured as projected-gradient-descent steps needed on a local model) and live within-search signals such as shrinking boundary distance, which GeoDA shows is informative about convergence. The same machinery yields an abandonment rule: once a search's estimated marginal gain falls below that of unstarted seeds, its tokens are stolen away — this is work stealing where the stolen object is the query token itself.

The systems part supplies the substrate. Adaptive Edge Offloading for Image Classification Under Rate Limit measures end-to-end offloading latency of roughly 73ms per remote call — a macro-scale version of the memory wall that throughput cores are built to hide, as in Gold et al.'s network-processor threads that swap in on every memory stall. Our runtime keeps many lightweight attack contexts per worker, issues queries non-blocking through a shared token-bucket acquisition, and fills each worker's stall shadow with surrogate-ensemble passes of the kind Blackbox Attacks via Surrogate Ensemble Search (BASES) needs but leaves serialized. We are honest about scope: this improves campaign wall-clock and compute cost, not the query count; the query-count gains come from the allocator, and our ablations separate the two.

Research Program

Three deliverables. First, the racing allocator: a policy that, each time the token bucket releases a query slot, chooses among running searches and unstarted seeds using a posterior over each search's convergence curve, fit from the difficulty prior plus live progress. We will analyze the simple case where $s_i$ is log-concave, where greedy allocation is near-optimal for the knapsack relaxation, and characterize when a fixed geometric per-iteration schedule like GeoDA's $\lambda^{-2/3}$ rule — provably optimal for a single search in isolation — becomes suboptimal once queries are a contended resource. This addresses a genuine tension in the corpus: GeoDA prescribes geometric allocation across iterations of one search, while Square Attack and Suya et al. show that empirical difficulty signals, not curvature-derived schedules, are what survive robust models and gradient masking. Our position is that both are right at different scopes: geometric schedules within a search, dynamic allocation across searches.

Second, the runtime: a many-context executor in the spirit of SLIDE, which demonstrated on Amazon-670K and Text8 that sparse, irregular work on throughput cores only pays when oversubscription is paired with memory layout discipline (a 2x to 7x gap between naive and coalesced implementations). We will port that lesson: attack state laid out for cache-friendly surrogate passes, lock-free token acquisition (in the family of Idempotent work stealing and Aggregating Funnels for Faster Fetch&Add and Queues), and enough concurrent contexts that the roughly 73ms remote turnaround is never exposed. Third, the evaluation harness, described next.

Proposed Experiments

We evaluate on ImageNet (ILSVRC2012 validation, correctly classified images, following the SimBA protocol), CIFAR-10, and MNIST, with kernels taken unmodified from the literature: SimBA (reported at a mean of 1,283 queries for a 97.8% success rate on ImageNet), Square Attack (near 100% success within a 10,000-query budget on standard ImageNet models), and GeoDA (an $\ell_2$ distance of 1.01 at 20,000 queries on ResNet-50, versus 1.85 for HSJA). The primary metric is the success-at-budget curve: fraction of achieved successes as a function of cumulative tokens spent, for fixed bucket leak rates spanning 10 to 1,000 queries per second. Secondary metrics are queries to first $k$ successes (directly comparable to Hybrid Batch Attacks' 10-of-100 setting), the fraction of budget consumed by eventually-abandoned seeds, and campaign wall-clock. Robustness stress tests use models from the RobustBench library, which provides unified access to more than 80 pretrained models, because Suya et al. showed that surrogate priors degrade precisely when targets are adversarially trained. A comparability run at AttackBench's fixed 2,000-query budget checks we have not gained campaign efficiency by sacrificing per-seed efficiency.

The decisive checks are three. The allocator must beat static and one-shot-prioritized allocation on success-at-budget at matched total tokens, with the gap growing as the difficulty distribution thickens (we expect the largest gains on RobustBench models, where surrogate priors are noisiest and abandonment matters most). The runtime must show that a blocking client, an async client, and the full many-context executor differ in wall-clock but not in query count — if they differ in query count, something is contaminating the comparison. And the contention test must show whether GeoDA's geometric schedule, run per-seed inside our allocator, loses anything versus GeoDA run with an unshared budget; no reported result found on Lacuna for query allocation across parallel searches under contention, which is exactly the hole this fills.

Baselines

The naive reference point is static chunking: divide $N$ seeds evenly across $P$ workers, give every seed the same per-seed cap, and run SimBA or Square Attack unchanged. This is implicitly how every per-image evaluation in the corpus is run, and it is the honest "do nothing" — under it, the 2.5% of ImageNet seeds that SimBA-DCT cannot flip even after 60,000 queries each burn their entire cap while easy seeds finish at the median of 582. Beating it means a strictly higher success-at-budget curve at every cumulative token count.

The strongest existing competitor is the seed-prioritization strategy of Hybrid Batch Attacks, which sorts seeds by the number of projected-gradient-descent steps needed to flip them on a local surrogate and attacks in that order; Suya et al. report over 75% mean query-cost reduction versus NES and AutoZOOM on MNIST and CIFAR-10, and over 70% savings versus random search when seeking 10 adversarial examples from 100 ImageNet seeds. We will run it fairly: same seeds, same surrogate models, same kernels, same total budget, and same tuning effort, extended to $P$ workers by preserving its ordering (which is its own authors' natural parallelization, since the ordering is computed before any target query). Beating it requires higher success-at-budget than one-shot ordering — the specific claim is that reallocation and abandonment mid-campaign capture the variance that upfront ordering cannot, since a prior computed on a non-robust surrogate is exactly the signal Suya et al. themselves show to fail on robust targets.

Two ablations isolate the proposal's ingredients. An allocator without the difficulty prior — uniform racing with abandonment driven only by live progress — separates the value of stealing from the value of the prior. And the blocking-client versus async-client versus full-runtime ladder isolates the throughput-oriented ingredient: if the async client already matches the full runtime on every metric, the latency-hiding contribution reduces to wall-clock, and we will report it as such.

Why not just…?

Why not just improve the single-seed attack algorithm? This is the strongest objection, and we concede its scope: for a one-image budget, our proposal adds nothing, and AttackBench's per-instance 2,000-query setting is legitimately served by better search alone. But the corpus itself shows the campaign problem is real and unsolved: SimBA's own numbers (median 582, mean 1,283, 2.5% non-convergent) mean fixed per-seed budgets waste tokens mechanically, and no per-seed algorithm addresses how to split one shared, replenishing budget across seeds. The decisive experiment is precisely the success-at-budget comparison at matched total tokens.

Why not just chunk seeds across workers statically? Because the variance that breaks static decomposition in this exact setting is documented: Suya et al.'s over-70% savings from reordering alone, EasyBalance's finding that static placement in skewed sparse inference idles hardware (it recovers mostly over 40% of GPU under-utilization by going dynamic), and ThunderAgent's 1.5–3.6x throughput gains from dynamic migration over static pinning. We are honest about the limit case: if budgets are strictly per-seed and independent, static chunking is equivalent to our system — which is why our experiments make the budget global and rate-limited, the regime where the two provably diverge.

Why not just skip the target API entirely and transfer from surrogate ensembles? Because the corpus quantifies the failure: Suya et al. report pure transfer at only 3.4% success on ImageNet, with a vulnerability-space mismatch against robustly trained targets, and Square Attack reduces a claimed 76.1% robust defense to 0.4% precisely by interacting with the target. Transfer-based initialization is not our competitor; it is inside our kernel, following the hybrid recipe.

Why not just write an async HTTP client and be done? A real threat to the systems half, and we treat it as such: non-blocking IO trivially overlaps the 73ms turnaround with surrogate passes, so the many-context runtime may be over-engineering for this latency scale. Our ablation ladder is designed to answer it empirically — if the async client matches the full runtime, the runtime's contribution is wall-clock only, and the paper's claim will be narrowed accordingly. What an async client does not give, and what no existing system gives, is the contention-aware allocator deciding who gets the next token; that part survives regardless of how the latency hiding is implemented.

Decisive Checks

The proposal stands or falls on one curve: success versus cumulative tokens, our allocator against static chunking and Hybrid Batch ordering, on ImageNet and on RobustBench models, at three bucket leak rates. A second check guards the per-seed side: at AttackBench's fixed 2,000-query per-instance budget, our system with the allocator disabled must reproduce its kernels' published behavior (SimBA at 1,283 mean queries for 97.8% on ImageNet), proving campaign gains cost nothing per-seed. If both hold, the message is clean: query efficiency is not only a property of the search algorithm but of the scheduler that spends the budget — and the machinery parallel systems built for skewed work ports to it almost unchanged.