arXiv:2609.06772cs.SESep 2026

Manuscript Offprint

arXiv:2609.06772

CAROL: Context-Aware Online Learning for Fuzzer Scheduling

Zirui Liu, Mengfan Xu, Juan Zhai, Shenglong Yao, Shiqing Ma

Abstract

Ensemble fuzzing runs several fuzzers on one target and relies on a scheduler to divide CPU time among them. Existing ensemble schedulers make these decisions from compact summaries of past performance and decision rules fixed before the campaign. Our measurements point to two limitations. First, summaries of past rewards do not reliably capture how fuzzer performance evolves: after accounting for estimation noise, the agreement between consecutive-window rankings is statistically indistinguishable from the ranking's within-window self-agreement. Second, the signals that predict reward vary across targets: a weighting learned from eight other targets predicts reward worse than one learned on the current target on eight of nine targets.

We then introduce CAROL, which uses each fuzzer's current context to guide online scheduling. The context is already available to the dispatch loop and captures how the fuzzer's reward is evolving, how long it has waited or remained on a plateau, what code it is reaching, and the uncertainty in its estimate. We develop two ways to use this context. A domain-guided method identifies whether a fuzzer is rising or rotting and applies a learning rule tailored to that phase. A learned method models how reward depends on 15 context signals and uses its predictions and uncertainty to select fuzzers online. Across nine Magma targets, CAROL triggers more unique bugs than each of three ensemble-scheduling baselines on every target where they differ and fewer on none, reaching a mean of 34.20 unique bugs compared with 28.40, 28.80, and 29.00. It gains 11.8% over the strongest baseline on each target and exceeds an oracle that selects the best single fuzzer per target after the fact (32.00). An ablation without context eliminates the gain, and the additional bugs are concentrated among those the baselines trigger rarely or never. Run unchanged on five widely used C++ programs, CAROL finds 120 previously unknown crashing defects, deduplicated by site, fault, and entry point, all reported to their maintainers through each project's stated disclosure channel.

1 Introduction

Greybox fuzzing runs a program on mutated inputs, keeps the ones that reach new code and reports the ones that crash. No single fuzzer wins everywhere: a decade of measurement has established that a fuzzer's advantage is target-specific [17, 25, 35]. The response has been ensemble fuzzing: run several fuzzers on one target, share a seed corpus, and let a scheduler divide CPU time among them [10, 13, 16, 37, 46]. Choosing a fuzzer becomes choosing how to divide the budget, at every free core and for the whole campaign, and giving time to the wrong fuzzer leaves the ensemble worse than its best member. It is online resource allocation under uncertainty about how each fuzzer will perform on this target.

Online learning is particularly well suited to fuzzer scheduling: it makes decisions in microseconds compared with fuzzing turns that last seconds, learns continuously from the current campaign without pretraining on the target, and produces quantities that can be inspected and interpreted. Prior work has already shown the value of this approach in fuzzing. BandFuzz [45] and LEGION [56] use online learning for fuzzer scheduling, while FOX [44] applies online stochastic control within a single fuzzer. Together, these methods establish online learning as a lightweight and effective framework for adaptive fuzzing.

Turning specifically to ensemble scheduling, several prominent schedulers already use online learning. BandFuzz [45, 46] uses Thompson sampling to allocate effort among fuzzers, LEGION [56] uses a modified upper-confidence-bound rule over multiple performance signals, and AUTOFZ [13] selects fuzzers based on a preparation window. Earlier systems established the ensemble and seed-sharing setting [10, 16]. However, to the best of our knowledge, existing schedulers share two limitations. First, they ultimately rank each fuzzer using a compact summary of its past rewards, which omits information about its current situation and how its performance is changing. When we divide a campaign into twelfths, the rankings in two adjacent time windows have a mean Kendall correlation of only 0.059, where a higher correlation indicates greater agreement in the fuzzer ordering. For comparison, two random halves of the same window have a correlation of 0.057. Thus, the ranking from one window predicts the next no better than two noisy estimates formed within the same window ( §2.2§2.2). Second, existing schedulers use a decision rule fixed before the campaign and shared across targets. Our measurements show that the importance of individual signals varies substantially across targets ( §5.1§5.1). These observations motivate learning how each fuzzer's current context predicts its next reward on the target being fuzzed.

Our key insight. A fuzzer's reward history tells only part of the story. What it will find next also depends on its current context: it may be stuck on a plateau, have just received new seeds from its peers, or be exploring code it has not seen before. The dispatch loop already observes signals that distinguish these situations. For example, in the 90 minutes before a rarely triggered bug, plateau and freshness signals change sharply even while the coverage rate remains below its campaign average. This behavior is widespread: a fuzzer's reward typically rises as it explores new ground and then decays toward a plateau, with the raw per-turn rate falling in 96.7% of 1,841 (campaign, fuzzer) pairs across all nine targets ( §2.2§2.2).

This motivates developing online learning methods that use each fuzzer's current context to predict its next reward and guide better scheduling decisions. We explore two ways to incorporate this context into online learning. Method I ( §4§4) encodes domain knowledge about how fuzzing rewards evolve: it classifies each fuzzer as rising or rotting from its recent rewards and applies a learning rule tailored to that phase [34, 43]. Method II ( §5§5) automatically learns how reward depends on 15 signals describing different aspects of each fuzzer's current situation, and uses the resulting predictions and uncertainty to select fuzzers online. Comparing the two reveals how far domain-guided context can go and what is gained by learning the context-reward relationship directly. CAROL uses Method II as its main scheduler, with Method I as the domain-guided comparison.

To summarize, the main contributions are as follows:

• Empirical evidence that fuzzer scheduling requires context. We show that a compact summary of past rewards does not fully capture a fuzzer's evolving situation. The raw per-turn reward falls on 96.7% of 1,841 (campaign, fuzzer) pairs across all nine targets. At the decision timescale, rankings in adjacent reward windows have nearly the same agreement as two estimates formed within the same window, showing that past rewards alone provide little information about how the ranking will evolve ( §2.2§2.2).

• Two context-aware online-learning methods for fuzzer scheduling. Method I incorporates domain knowledge by identifying whether each fuzzer is rising or rotting and applying a learning rule tailored to that phase. Method II automatically learns how reward depends on 15 signals describing different aspects of each fuzzer's current situation, using the resulting predictions and uncertainty to select fuzzers online. A model fitted on eight targets predicts the ninth worse than one learned within that target on eight of nine targets, and the two rank a different fuzzer first on a median 51.0% of decisions ( §5.1§5.1). A construction also shows that context can be necessary: policies using only each fuzzer's own pull counts and realized rewards can incur linear regret when an observable context signal changes its future reward ( §5.4§5.4).

• Ground-truth evaluation of context-aware scheduling. Across ten 24-hour campaigns per configuration on nine Magma targets, CAROL triggers more unique bugs than each of three ensemble-scheduling baselines on every target where they differ and fewer on none, with summed gains of 20.4%, 18.8%, and 17.9%. An oracle selecting the best of the six fuzzers per target reaches 32.00 unique bugs, compared with 34.20 for CAROL. An ablation without context eliminates the gain ( §6,§7§6, §7).

• 120 previously unknown crashing defects in five C++ programs. Running the same CAROL scheduler and configuration on MNN, Arm NN, Krita, ncnn, and FreeCAD finds 120 previously unknown crashing defects, all reported to their maintainers through each project's stated security channel ( §6.5§6.5).

References (51)