Bottleneck Patching Strategies
- Bottleneck patching is a strategy that intervenes around a limiting constraint to optimize global system performance without directly removing the bottleneck.
- It spans applications from traffic flow and GPU architectures to language models and malware epidemic controls, adapting interventions to specific system variables.
- Quantitative improvements—such as increased throughput, reduced energy consumption, or lower failure indices—demonstrate its practical impact across heterogeneous domains.
Bottleneck patching is a cross-domain label for interventions that do not remove a limiting constraint directly, but alter the states, flows, or computations immediately around that constraint so that system-level degradation is reduced. In the cited literature, the term is used for upstream velocity control before a periodically closing exit in exclusion-process traffic models, assist-warps that repurpose idle GPU resources against a saturated subsystem, transient scratchpads that refine patch-level context in byte-level LLMs without enlarging persistent KV state, sender-side modifications to BBR under CPU contention, prompt-level repairs of diagnosed modules in multi-stage LLM agents, optimal patch dissemination in clustered malware epidemics, and augmenting-path rewiring in bottleneck assignment [(Yamamoto et al., 2019); (Vijaykumar et al., 2016); (Zheng et al., 10 May 2026); (Elmenhorst et al., 9 Jan 2026); (Jeonghun et al., 21 May 2026); (Eshghi et al., 2014); (Khoo et al., 2020)]. This breadth suggests a recurring design principle rather than a single algorithm: identify the effective bottleneck state, intervene at the interface that governs it, and optimize the intervention against the induced secondary effects.
1. Cross-domain semantics and recurrent structure
Across these works, the bottleneck itself is represented in markedly different mathematical objects. In traffic flow, it is a time-periodic boundary capacity constraint at the exit, with switching between open and closed phases. In GPU architecture, it is a saturated subsystem such as off-chip memory bandwidth or compute pipelines. In patch-based byte models, it is the coarse patch state that refreshes too slowly relative to the underlying byte stream. In BBR, it is the sender’s CPU time rather than the path bandwidth. In modular LLM agents, it is the module with the largest causal contribution to system failure. In clustered epidemics, it is the type-dependent transmission structure; in bottleneck assignment, it is the maximum-weight edge in a maximum-cardinality matching [(Yamamoto et al., 2019); (Vijaykumar et al., 2016); (Zheng et al., 10 May 2026); (Elmenhorst et al., 9 Jan 2026); (Jeonghun et al., 21 May 2026); (Eshghi et al., 2014); (Khoo et al., 2020)].
The corresponding patch acts on equally different control variables. The traffic model varies the hopping probability through the control parameter . CABA deploys assist warps through the Assist Warp Store, Assist Warp Controller, and Assist Warp Buffer. Scratchpad Patching introduces transient states triggered by entropy. The BBR patch conditionally overwrites with the existing high-gain constant. Counterfactual Correction Patching appends few-shot “Wrong/Correct” demonstrations to one module’s prompt. Epidemic control varies , the patch transmission intensity for each type. The distributed BAP algorithm updates by symmetric difference with an augmenting path, [(Yamamoto et al., 2019); (Vijaykumar et al., 2016); (Zheng et al., 10 May 2026); (Elmenhorst et al., 9 Jan 2026); (Jeonghun et al., 21 May 2026); (Eshghi et al., 2014); (Khoo et al., 2020)].
A further commonality is that the intervention is almost never evaluated only locally. The relevant objective is global throughput , end-to-end performance and energy, downstream evaluation quality, aggregate failure index , aggregate epidemic cost, or the maximal cost in a complete assignment. This suggests that bottleneck patching is fundamentally about indirect control: local intervention is judged by a nonlocal objective.
2. Flow regulation in traffic and transport protocols
In the controlled TASEP with a slow-to-start rule, the bottleneck is encoded by a periodic right-boundary extraction probability
0
with time-averaged exit probability 1. The upstream control is the state-dependent hopping rule
2
combined with a slow-to-start coefficient 3 that reduces restart probability after blocking. The mechanism is explicit: when the bottleneck is closed, upstream particles decelerate, which stretches spacing and reduces the discharge penalty induced by slow-to-start when the exit reopens (Yamamoto et al., 2019).
The paper distinguishes low-density and high-density regimes. In the high-density regime with 4, the uncontrolled discharge is strongly reduced: at the exit, one particle leaves every 5 steps when congested, and for opening duration 6 the discharged count per cycle is 7, yielding
8
With control, the theoretical high-density bounds are 9 and 0, so the improvement factor can in principle reach 1, i.e. 2. For 3, 4, and 5, simulations reach 6 at an optimal 7. The approximate design rules are
8
with a realistic estimate that a VSL-type control based on the scheme could improve intersection throughput by about 9 (Yamamoto et al., 2019).
An analogous logic appears in 2BRobust, but the bottleneck is not a road exit; it is sender CPU time inside a VM. Standard BBR maintains
0
Under CPU contention, the VM is frequently descheduled, BBR misses pacing opportunities, inflight stays below 1 BDP, the measured delivery rate drops, and the controller enters a downward spiral in which 2, 3, and throughput collapse. The measurements show that CPU-limited BBR senders are capped at very low throughput levels below 4–5 Mbps under any hypervisor and all tested BDP conditions, whereas Cubic remains robust (Elmenhorst et al., 9 Jan 2026).
The patch is intentionally minimal. Let
6
If the socket is not app-limited and
7
the implementation overrides the current phase gain by setting 8 inside bbr_update_gains(). This raises both pacing rate and TSO burst size during on-CPU windows. At 9 Mbps, with 0 ms timeslice, original BBRv3 needs about 1 CPU share before median throughput reaches at least 2 Mbps, while patched BBRv3 recovers near line rate already at about 3 CPU share; with 4 ms timeslice the corresponding threshold shifts from about 5 to about 6. The patch does not solve the most severe cases of scheduling, but it solves the problem for the most critical cases and is inert when no inflight deficit occurs (Elmenhorst et al., 9 Jan 2026).
These two cases instantiate the same systems-level idea at different abstraction levels. In both, the patch does not enlarge the bottleneck directly; it reshapes arrivals into it.
3. Architectural bottleneck patching in GPUs
Core-Assisted Bottleneck Acceleration treats bottleneck patching as dynamic conversion of slack in one GPU subsystem into relief for another. The motivating observation is empirical: for 7 out of 8 applications, the GPU is memory-bound, and at baseline bandwidth memory plus data-dependence stalls constitute about 9 of issue cycles; doubling bandwidth reduces that to about 0. At the same time, occupancy constraints leave substantial on-chip state unused; for a 1 KB register file, around 2 of registers are statically unallocated on average. CABA exploits precisely this mismatch between the saturated subsystem and idle resources (Vijaykumar et al., 2016).
The mechanism is the assist warp. An assist warp shares warp ID and context with its parent warp, executes code sequences stored in the Assist Warp Store, is managed by the Assist Warp Controller through entries in the Assist Warp Table, and is staged in the Assist Warp Buffer. High-priority assist warps, such as decompression on a compressed load return, can block the parent until completion; low-priority assist warps, such as compression or memoization maintenance, are scheduled only in otherwise idle cycles. The AWC also monitors pipeline utilization so that assist deployment is throttled when it would compete with the currently saturated resource (Vijaykumar et al., 2016).
The most detailed instantiation is bandwidth compression. Between L2 and DRAM, data are stored in compressed form, while L1 is left uncompressed by default. For BDI, a 3 B line can be compressed to 4 B, yielding
5
Decompression is implemented as a vector add of base and deltas by a high-priority assist warp; compression is off the critical path and is handled by low-priority assist warps. CABA also adapts FPC and C-Pack, despite their variable-length encodings, by restructuring metadata and enforcing more SIMD-friendly layouts (Vijaykumar et al., 2016).
The reported performance figures are specific. Across memory-bandwidth-sensitive applications, CABA-BDI improves performance by 6 on average, up to 7; it is only 8 slower than Ideal-BDI and 9 slower than HW-BDI, while outperforming HW-BDI-Mem by about 0. Average DRAM bus utilization is reduced from about 1 to about 2. Total system energy is reduced by about 3, including about 4 average DRAM power reduction, and EDP is reduced by 5, even though average power increases by about 6. The framework is also described as applicable to memoization, prefetching, redundant multithreading, speculative precomputation, profiling, and reliability tasks, provided that the helper work is mapped onto non-bottleneck resources (Vijaykumar et al., 2016).
CABA therefore exemplifies bottleneck patching as microarchitectural work migration: compute is spent to simulate bandwidth, or memory activity is spent to relieve compute.
4. Representational bottlenecks in patch-based LLMs
Scratchpad Patching addresses a different bottleneck: the coarse update schedule induced by patch-based byte modeling. A byte-level autoregressive LM is factored into an encoder 7, a patchifier 8, a main trunk 9 running on patch states, an unpatchifier 0, and a decoder 1. In the baseline unpatchifier, for byte position 2 in patch 3,
4
Hence every nonterminal byte in a patch must use stale context from the previous patch. The paper identifies this as patch lag: as average patch size grows, compute and KV cache decrease, but modeling quality degrades because patch-level context is refreshed too infrequently (Zheng et al., 10 May 2026).
Scratchpad Patching inserts transient scratchpads inside each patch. With binary trigger 5, the number of scratchpads in patch 6 is
7
and the 8-th scratchpad state is
9
During training, the trunk sees
0
under a specialized mask: states belonging to patch 1 may attend to themselves and committed states of earlier patches only; scratchpads neither attend to each other nor are attended to by other elements. During inference, scratchpads are computed on the fly and immediately discarded; only the final committed patch state remains in the KV cache (Zheng et al., 10 May 2026).
The trigger policy most emphasized in the paper is entropy-based. An auxiliary LM head predicts next-byte entropy
2
and a scratchpad fires when
3
This makes scratchpad density an inference-time compute knob: lower 4 yields more transient refinement and less patch lag; higher 5 yields fewer scratchpads and lower compute (Zheng et al., 10 May 2026).
The key claim is decoupling. Patch size still controls the number of committed states 6 and thus the KV-cache footprint, but scratchpad density controls additional compute without increasing persistent memory. The reported results are concrete. At 7 bytes per patch, SP-augmented models match or closely approach the byte-level baseline on downstream evaluations while using a 8 smaller KV cache over patches and 9–0 less inference compute. On natural-language NLU, fixed-size 1 without SP yields average score about 2, whereas fixed 3 with SP yields about 4, matching the byte-level baseline at 5. On MBPP pass@1, byte-level reaches 6, fixed 7 reaches 8, and fixed 9 with SP reaches 00. The paper also reports that H-Net + SP can trigger redundant compute because scratchpads often fire right before learned boundaries, and that very dense scratchpads give diminishing returns and can even slightly hurt NL BPB (Zheng et al., 10 May 2026).
Within this literature, SP is a particularly explicit formulation of bottleneck patching: the bottleneck state is not removed but supplemented by transient, nonpersistent refinements.
5. Diagnostic bottlenecks and patching hazards in modular LLM pipelines
In multi-module LLM agents, bottleneck patching is not presented as a throughput optimization but as a prescription problem after causal diagnosis. The studied agent family has four modules,
01
corresponding to Query Rewriter, Planner, Router, and Response Generator. System performance is summarized by the failure index
02
and the causal responsibility of module 03 is
04
On 05-bench retail with the gpt-4o-mini agent, the average effects are 06, 07, 08, and 09, so the router 10 is the diagnosed primary bottleneck; the same qualitative pattern holds across retail, airline, Llama 4 Scout, and Qwen3-32b (Jeonghun et al., 21 May 2026).
The central result is that diagnosis does not identify the best patch location. Counterfactual Correction Patching constructs a correction pool from diagnosis data, filters examples with 11, keeps the top 12, and appends them to one module’s prompt in the form 93 while leaving instructions and output schema unchanged. Applied to the diagnosed bottleneck 13, this consistently fails as a prescription. On retail, Pop CCP at 14 changes mean failure index by 15 for gpt-4o-mini, with Holm 16; by 17 for Qwen3-32b, with raw 18; and by 19 for Llama 4 Scout, i.e. neutral. By contrast, Pop CCP at the upstream Query Rewriter 20 changes mean failure index by 21, 22, and 23, respectively. Tool-match shows the same asymmetry: for gpt-4o-mini, baseline is 24, CCP at 25 gives 26, and CCP at 27 gives 28; for Qwen3-32b, baseline is 29, CCP at 30 stays at 31, and CCP at 32 drops to 33 (Jeonghun et al., 21 May 2026).
The paper explains this through the Linguistic Contract hypothesis. Downstream modules adapt to the characteristic error distribution of upstream modules, so correcting the bottleneck may break that co-adaptation. The mediation quantity is the Natural Indirect Effect,
34
where World A re-executes 35 on oracle upstream and World B freezes 36 to its original output while upstream is corrected. Tasks are then classified as amplifier, propagator, or compensator according to the sign and magnitude of 37. For gpt-4o-mini retail, 38 has 39 and fate counts 40 for amplifier/propagator/compensator. The per-agent co-adaptation proxy is the compensator rate at 41: 42 for gpt-4o-mini, 43 for Qwen3-32b, and 44 for Llama 4 Scout. High co-adaptation co-occurs with CCP hazard; zero co-adaptation co-occurs with neutrality (Jeonghun et al., 21 May 2026).
The paper further isolates the hazard to correction injection rather than any intervention at the router. Instruction rewriting at 45 is essentially neutral, with 46 for gpt-4o-mini; a model upgrade at 47 is also neutral, with 48. Oracle injection at 49, however, strongly improves outcomes, with 50 for gpt-4o-mini and 51 for Llama 4 Scout. This indicates that the router is genuinely highly improvable, but that partial prompt-level correction is a hazardous way to intervene there. A further mechanistic observation is that the final-output sentence-embedding cosine is 52 for both CCP @ 53 and CCP @ 54, so the asymmetry is not explained by the magnitude of final distribution shift but by its direction: 55 perturbs executable-semantic variables such as tool name and argument patterns, whereas 56 perturbs a surface-linguistic layer that downstream modules tolerate better (Jeonghun et al., 21 May 2026).
6. Optimal-control and combinatorial formulations
The most explicit mathematical theory of patching appears in clustered malware epidemics. The network is partitioned into 57 types, with state fractions 58, 59, and 60, infection rates 61, patch dissemination rates 62, healing efficacies 63, and control inputs 64. The objective is to minimize aggregate damage and patching cost over 65, with cost functionals such as
66
for non-replicative patching, and the analogous 67-weighted form for replicative patching. Applying Pontryagin’s Maximum Principle yields scalar minimization conditions of the form
68
or
69
with 70 strictly decreasing in time. This monotonicity drives the central structural result: if 71 is concave, the optimal control is bang-bang with at most one switch from 72 to 73; if 74 is strictly convex, the optimal control is continuous, strictly decreasing from 75 to 76, with at most one transition interval. Numerical examples on linear, star, and complete topologies show that the optimal stratified dynamic policy can reduce aggregate cost by about 77 versus the best static stratified policy and about 78 versus the homogeneous approximation for 79, while replicative patching can achieve up to about 80 cost reduction relative to non-replicative patching (Eshghi et al., 2014).
A combinatorial analogue appears in the distributed Bottleneck Assignment Problem. Here the objective is
81
where 82 is the set of maximum-cardinality matchings. The pruneBAP algorithm starts from an MCM 83, selects a current bottleneck edge 84, forms the pruned edge set
85
removes 86, and searches for an augmenting path relative to 87. If such a path exists, the matching is patched by symmetric difference; if not, 88 is critical and the current matching is optimal. The distributed implementation decomposes this into MaxEdge, local pruning, and distributed augmenting-path search via AugDFS or AugBFS over a communication graph of diameter 89. For 90, the worst-case complexity is 91. AugDFS tends to require fewer pruneBAP iterations, whereas AugBFS tends to require fewer time steps overall; the choice is therefore a communication-versus-time trade-off. The same augmenting-path logic also governs when two independently solved sub-BAPs can be merged directly: if no beneficial cross-cluster augmenting path exists, 92 is already a bottleneck assignment for the combined graph (Khoo et al., 2020).
Taken together, these formulations show that bottleneck patching can be cast either as continuous-time optimal control with monotone shadow prices or as discrete augmenting-path repair on a thresholded graph. A plausible implication is that the most transferable element across domains is not the surface mechanism—speed limit, assist warp, scratchpad, prompt correction, epidemic dispatcher, or matching update—but the underlying strategy of exploiting a local control surface whose marginal value can be tracked against a global bottleneck objective.