Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Centralised Metaheuristic Load Balancer

Updated 12 July 2026
  • Centralised metaheuristic load balancer is a system architecture that gathers global state to solve assignment problems via iterative heuristic and stochastic search methods.
  • It employs various techniques, including Greedy, Tabu Search, Simulated Annealing, Genetic Algorithms, and quantum annealing to address dynamic load and partitioning challenges.
  • Empirical studies demonstrate its benefits in reducing straggler effects in cloud, HPC, and delayed-feedback systems, while highlighting trade-offs in scalability and model sensitivity.

Searching arXiv for the cited works to ground the article in current preprints. A centralised metaheuristic load balancer is a load-balancing architecture in which a single control point gathers system-wide state, formulates a global assignment or partitioning problem, and computes reassignments by heuristic, stochastic, or simulator-driven search rather than by static dispatch rules. In the recent literature, this pattern appears in cloud resource management with VM live migration, online token redistribution for distributed Diffusion Transformers training, quantum-annealing-based partitioning for adaptive mesh refinement and smoothed particle hydrodynamics, and partially observable queue routing under delayed acknowledgements (Sliwko, 22 Sep 2025, Sliwko et al., 13 Nov 2025, Zhang et al., 8 Aug 2025, Rathore et al., 2024, Tahir et al., 2021).

1. Conceptual scope and defining characteristics

Across the cited systems, centralisation means that the balancing decision is made from globally collected metadata rather than from purely local rules. In the cloud prototypes, a single scheduler queries nodes for current resource utilisation and resident services, maintains the current assignment, and issues migration commands (Sliwko, 22 Sep 2025). In KnapFormer, all GPUs in a balancing group perform an all-gather of length metadata on the CPU, after which a single CPU process solves a global assignment problem and broadcasts a routing plan (Zhang et al., 8 Aug 2025). In the quantum-annealing HPC setting, the balancer takes a global list of task weights, and, when needed, communication costs, formulates a small Ising/QUBO problem, minor-embeds it onto a QPU, samples many anneals, and returns the lowest-energy assignment (Rathore et al., 2024). In the delayed-feedback cluster model, the dispatcher maintains a belief state over all servers and selects the routing action at each arrival epoch by Monte Carlo tree search over a simulator (Tahir et al., 2021).

The “metaheuristic” aspect varies by domain. The cloud schedulers explicitly employ Greedy, Tabu Search, Simulated Annealing, and Genetic Algorithm variants (Sliwko, 22 Sep 2025, Sliwko et al., 13 Nov 2025). KnapFormer uses a three-pass greedy heuristic for a global multi-knapsack assignment (Zhang et al., 8 Aug 2025). The HPC partitioner compares Quantum Annealing against Steepest Descent and Simulated Annealing (Rathore et al., 2024). The delayed-feedback dispatcher is a related instance of centralised online search: it adapts POMCP with UCT selection and rollout simulation to the queuing simulator (Tahir et al., 2021). This suggests that, in practice, “centralised metaheuristic load balancer” denotes a family of globally informed optimisation loops rather than a single algorithmic template.

Setting Central state Optimisation target
Cloud service placement Node capacities, task demands, migration costs Stability and minimum cost
HPC partitioning Task weights, edge-cut weights Imbalance and communication
DiT training Sequence lengths, workload estimates Variance of per-GPU workloads
Delayed-feedback routing Belief over queue states Discounted return

2. Mathematical formulations

In the cloud formulation denoted the D-Resource System Optimisation Problem, physical nodes are n={n1,…,nm}n=\{n_1,\dots,n_m\}, tasks are T={t1,…,tp}T=\{t_1,\dots,t_p\}, and there are dd resource types v={1,…,d}v=\{1,\dots,d\}. A task-to-node assignment u:T→nu:T\to n induces node residual resources

fi(n)=ai(n)−∑t:u(t)=nri(t),f_i(n)=a_i(n)-\sum_{t:u(t)=n} r_i(t),

and an assignment is stable iff fi(n)≥0f_i(n)\ge 0 for all nodes and resources. Given an initial assignment u0u_0, the total System Transformation Cost is

STC(u0→u1)=∑t∈Tc(t) [u0(t)≠u1(t)],\mathrm{STC}(u_0\to u_1)=\sum_{t\in T} c(t)\,[u_0(t)\neq u_1(t)],

and the optimisation target is a stable assignment u∗u^* with minimum STC (Sliwko, 22 Sep 2025). A closely related binary placement model uses decision variables xi,j∈{0,1}x_{i,j}\in\{0,1\}, capacity constraints ∑jrkjxi,j≤Cki\sum_j r_{kj}x_{i,j}\le C_{ki}, assignment constraints ∑ixi,j=1\sum_i x_{i,j}=1, and a multi-term objective αfLB(x)+βfU(x)+γfM(y)\alpha f_{\mathrm{LB}}(x)+\beta f_{\mathrm{U}}(x)+\gamma f_{\mathrm{M}}(y) (Sliwko et al., 13 Nov 2025).

For HPC partitioning, the central model is cast as Ising/QUBO optimisation. For adaptive mesh refinement, with indivisible patches and patch cell counts nin_i, the number-partitioning Hamiltonian is

HAMR(s)=A(∑i=1Nnisi)2,H_{\mathrm{AMR}}(s)=A\Bigl(\sum_{i=1}^N n_i s_i\Bigr)^2,

with A=1A=1 in the reported experiments (Rathore et al., 2024). For smoothed particle hydrodynamics, a graph G(V,E)G(V,E) with node weights wiw_i and edge weights euve_{uv} yields the multi-objective energy

HSPH(s)=γH1(s)+H2(s),H_{\mathrm{SPH}}(s)=\gamma H_1(s)+H_2(s),

where

H1(s)=(∑i=1Nwisi)2,H2(s)=∑(u,v)∈Eeuv1−susv2.H_1(s)=\Bigl(\sum_{i=1}^N w_i s_i\Bigr)^2,\qquad H_2(s)=\sum_{(u,v)\in E} e_{uv}\frac{1-s_us_v}{2}.

Here H1H_1 is a load-balance penalty, H2H_2 is an edge-cut penalty, and γ>0\gamma>0 tunes the relative weight of the two objectives (Rathore et al., 2024).

In KnapFormer, the balancing problem is a global multi-knapsack assignment on NN sequences across MM compute bags. If wiw_i is the estimated workload of sequence ii, yi,j∈{0,1}y_{i,j}\in\{0,1\} indicates assignment to bag jj, and Cj=Gj⋅TtargetC_j=G_j\cdot T_{\text{target}}, then the bag load is

Lj=∑i=1Nwiyi,j,L_j=\sum_{i=1}^N w_i y_{i,j},

and a stated objective is to minimise the variance of per-GPU workloads: 1Gtotal∑j=1MGj(LjGj−Ttarget)2\frac{1}{G_{\text{total}}}\sum_{j=1}^M G_j\Bigl(\frac{L_j}{G_j}-T_{\text{target}}\Bigr)^2 subject to assignment and capacity constraints (Zhang et al., 8 Aug 2025). The semi-empirical workload model is

w(l;d)=24ld2+γ 4l2d,w(l;d)=24ld^2+\gamma\,4l^2d,

with γ\gamma fitted per GPU, for example γ≈0.385\gamma\approx 0.385 on H100 (Zhang et al., 8 Aug 2025).

In the delayed-feedback cluster model, the dispatcher–server system is a POMDP. Each server state is si=[bi,xi,yi]⊤s_i=[b_i,x_i,y_i]^\top, where bib_i is current queue length, xix_i is the number of outstanding acknowledgements not yet observed, and yiy_i is the number of acknowledgements observed in the last epoch. A common reward is

R(s′,s,a)=−∑i=1Nbi′−κ∑i=1N1{bi′=Bˉi},R(s',s,a)= - \sum_{i=1}^N b_i' - \kappa\sum_{i=1}^N \mathbf{1}\{b_i'=\bar B_i\},

and the objective is to maximise discounted return ∑t=0∞γtR(s(t+1),s(t),a(t))\sum_{t=0}^{\infty}\gamma^tR(s^{(t+1)},s^{(t)},a^{(t)}) (Tahir et al., 2021).

3. Centralised control architectures

The cloud scheduler is organised around two principal modules: an Event Monitor & Workload Database and an Optimizer. The monitor listens to task submit/cancel events, node up/down events, and VM-live-migration cost readings; it stores the current assignment uu, node resource vectors a(n)a(n), and live usage f(n)f(n). The optimizer periodically, or upon overload, invokes a metaheuristic, reconstructs migration costs from the LMDT formula, and submits VM-migration commands through a hypervisor API or cloud-platform API (Sliwko, 22 Sep 2025). The reported data structures include a hash-map Task→\toNode, two dd-vectors a(n),f(n)a(n),f(n) per node, and a sorted set or heap for overloaded nodes.

KnapFormer instantiates the same centralisation pattern in GPU training. Each iteration, GPUs measure sequence lengths and estimated per-sequence workload, all-gather length metadata on the CPU, and receive a centrally computed routing plan. A single all-to-all collective then moves packed token chunks to target devices; within each compute bag, sequences are split evenly into contiguous chunks and processed in parallel via DeepSpeed Ulysses; after forward and backward passes, a symmetric reverse-all-to-all restores the original ordering (Zhang et al., 8 Aug 2025). This is centralised at the metadata and planning level, but distributed at the data-movement and execution level.

The quantum-annealing implementation is likewise centralised, though the solver is hybrid CPU/QPU. The problem Hamiltonian

HB=∑ihiσiz+∑i<jJijσizσjzH_B=\sum_i h_i \sigma_i^z+\sum_{i<j}J_{ij}\sigma_i^z\sigma_j^z

is derived from the Ising expansion, minor-embedded onto D-Wave Chimera or Pegasus via minorminer, and sampled over MM anneals, with the lowest-energy bit string chosen as the assignment (Rathore et al., 2024). The details emphasise precomputing five distinct embeddings to average out hardware biases and monitoring the chain-break fraction.

The delayed-feedback dispatcher is fully online. At each arrival epoch, belief is represented by M=500M=500 particles, a search tree is built at the root belief node, UCT selection and rollout simulation are executed within a time budget approximately equal to the next-arrival interval, and the action at=arg⁡max⁡aQ(h0,a)/N(h0,a)a_t=\arg\max_a Q(h_0,a)/N(h_0,a) is dispatched (Tahir et al., 2021). This architecture remains centralised because the policy search is performed at a single dispatcher using a global belief state.

4. Algorithmic families

The cloud literature presents the most explicit catalogue of centralised metaheuristics. Greedy starts from the current assignment and repeatedly moves a task from an overloaded node to the “best-fit” alternative node. Tabu Search evaluates all single-task reassignment neighbors while maintaining a tabu list of the last LL moves; the tuned parameters reported are L=10L=10, K=5K=5, and $25$ restarts. Simulated Annealing uses the same neighborhood and accepts uphill moves with probability exp⁡[−(Φ(u′)−Φ(u))/T]\exp[-(\Phi(u')-\Phi(u))/T], cooling by T←T⋅0.9T\leftarrow T\cdot 0.9. Genetic Algorithm uses a population of assignments, standard crossover, mutation by random task reassignment, and elitist retention; one prototype uses M=30M=30 and G=20G=20, while another reports effective ranges of popSize≈60–100\text{popSize}\approx 60\text{--}100, Gmax⁡≈50–200G_{\max}\approx 50\text{--}200, and pmut≈0.05–0.1p_{\text{mut}}\approx 0.05\text{--}0.1 (Sliwko, 22 Sep 2025, Sliwko et al., 13 Nov 2025).

A distinctive refinement is seeded GA. Instead of fully random initial populations, the GA is seeded with outputs of Greedy, Tabu Search, and Simulated Annealing, producing SGA-Greedy, SGA-TS, and SGA-SA (Sliwko et al., 13 Nov 2025). The reported rationale is to reduce the expensive “genetic drift” step while preserving high-quality diversity.

KnapFormer’s solver is not a GA or SA, but it is still a centralised heuristic search over a global assignment. Its three passes are: descending sort by workload and bag assignment by minimal current occupancy under capacity constraints; chunk partitioning within each bag; and routing-plan generation for one all-to-all (Zhang et al., 8 Aug 2025). The method relaxes the integrality of a knapsack solver in exchange for simplicity and speed.

The quantum-annealing protocol adds hardware-specific metaheuristic structure. Minor embedding maps logical qubits to chains of physical qubits; chain strength is set either by uniform torque-compensation or by manual tuning with multiplier α≈102–104\alpha\approx 10^2\text{--}10^4; and anneal times are T≈20–100 μsT\approx 20\text{--}100\,\mu s, with M=500–1000M=500\text{--}1000 anneals per call (Rathore et al., 2024). The primary obstacle to scalability is limited coupling on current quantum annealing hardware.

The delayed-feedback setting uses POMCP adapted to the queuing simulator, with UCT exploration constant c=2c=\sqrt{2}, depth Dmax⁡=10D_{\max}=10, and rollouts bounded by the inter-arrival interval (Tahir et al., 2021). Although framed as a policy-search algorithm rather than a classical metaheuristic, it occupies a similar operational niche: centralised stochastic search under incomplete information.

5. Empirical behaviour across application domains

The reported results show that centralised metaheuristic balancing is not tied to a single performance regime; its behaviour depends strongly on state observability, communication topology, and migration or embedding overhead.

Setting Metric Reported result
AMR, P=2,4,8,16P=2,4,8,16 Normalized maximum disparity QA: 0.11,1.34,1.18,1.38%0.11, 1.34, 1.18, 1.38\%; RR: 10.5,12.8,14.1,15.7%10.5, 12.8, 14.1, 15.7\%
SPH, N=27N=27 Imbalance, cut-wt QA: $0.057, 3.69$; METIS: $0.189, 5.20$
Delayed feedback, N=50N=50 Drop rate POL ≈0.05%\approx 0.05\%; JMO ≈1.2%\approx 1.2\%; FI <0.03%<0.03\%
KnapFormer, 32 H100 WIR, FBL, HFU WIR reduced to ≈1.00\approx 1.00; FBL 8.05s→3.44s8.05s\to 3.44s; HFU ≃12.7%→29.7%\simeq 12.7\%\to 29.7\%
Cloud trace replay Throughput, overload MASB ≈132 K tasks/min\approx 132\text{ K tasks/min}, 0.10%0.10\% overload

In the AMR experiments, Quantum Annealing consistently beats Round Robin and is on par with Simulated Annealing and Steepest Descent for N≤100N\le 100, except for a “kink” at P=4P=4 due to stochastic sampling. With $100$ anneals, the QA best sample equals the SD best sample, while roughly 60–70%60\text{--}70\% of samples beat RR (Rathore et al., 2024). For SPH, the reported outcome is stronger: both QA and METIS cut $182$ edges, but QA achieves cut-weight 0.66⋅0.66\cdot METIS cut-weight, node-imbalance $0.057$ versus $0.189$, and edge-cut $3.69$ versus $5.20$; the Pareto front obtained by varying γ∈[0,50]\gamma\in[0,50] strictly dominates METIS, and approximately 41%41\% of QA samples also Pareto-dominate METIS (Rathore et al., 2024).

In the delayed-feedback POMDP, the policy obtained by MCTS outperforms limited-information strategies such as JMO and JMO-E and nearly matches or overlaps full-information baselines such as JSQ and SED in several regimes. For N=2N=2, μ=[4,2]\mu=[4,2], λ=5\lambda=5, Bˉi=10\bar B_i=10, pi=0.6p_i=0.6, and κ=100\kappa=100, the reported drop rates are approximately 0.2%0.2\% for POL, 0.9%0.9\% for JMO, 0.45%0.45\% for JMO-E, and below 0.15%0.15\% for full-information policies (Tahir et al., 2021).

In distributed DiT training, the reported heterogeneity is extreme: without balancing, the Workload Imbalance Ratio ranges from $1.22$ up to $28.11$. KnapFormer with g8n4 bags reduces WIR to approximately $1.00$, corresponding to less than 1%1\% variance, and yields 2×2\times to 3×3\times speedup in end-to-end training workloads, including the example 8.05s→3.44s8.05s\to 3.44s for forward-backward latency in the hardest joint-pretraining case (Zhang et al., 8 Aug 2025). This suggests that when metadata are compact and re-sharding can be amortised by heavy computation, centralised balancing can substantially reduce straggler effects.

In large-scale cloud replay, MASB processes approximately $132$ K tasks/min at 43.6%43.6\% CPU, 62%62\% memory, and 0.10%0.10\% overload, fits an additional 2,6002{,}600 tasks/min at 102%102\% workload with 0.26%0.26\% overload, and retains the full $140$ K tasks/min under compaction from $12.5$ K to 0.98×12.50.98\times 12.5 K nodes with 0.11%0.11\% overload (Sliwko, 22 Sep 2025). A second cloud prototype reports that SGA-TS gives the lowest cost in fixed time, and in the largest scenario explores approximately 14%14\% fewer candidate solutions than unseeded GA while finding a 13%13\% better solution (Sliwko et al., 13 Nov 2025).

6. Limitations, trade-offs, and extensions

The central limitation of these systems is that global optimisation quality is purchased with centralised coordination overhead. In the cloud prototype, a single-head metaheuristic scheduler “chokes once the node-count >12>12 and task-count >60>60,” whereas offloading the logic to NAs gives linear scaling up to $100$ K nodes (Sliwko, 22 Sep 2025). This directly challenges the misconception that a centralised metaheuristic load balancer is inherently scalable in all deployment regimes.

A second recurring limitation is model sensitivity. In the delayed-feedback system, performance depends on the accuracy of pip_i and of arrival/service estimates; mis-specification leads to suboptimality, and long feedback delays with pi≪0.5p_i\ll 0.5 require larger particle sets (Tahir et al., 2021). In KnapFormer, the compute-bag topology must be pre-specified, the greedy solver is not globally optimal, and irregular attention masks require more complex modelling (Zhang et al., 8 Aug 2025). In the cloud placement models, higher-quality allocations incur more migrations, while lower-quality allocations incur higher resource waste (Sliwko, 22 Sep 2025).

Quantum annealing adds hardware-specific constraints. Fully connected problems hit qubit-coupling limits, chain-break fraction rises sharply for N>40N>40 under default chain strengths, manual tuning has no a priori prescription, and current NISQ hardware limits dense graphs to approximately N≈100N\approx 100 (Rathore et al., 2024). The reported evidence therefore does not support a general claim that QA uniformly dominates classical load-balancing heuristics; on AMR it is competitive with SA and SD rather than decisively superior, whereas on the SPH multi-objective graph partitioning it is Pareto dominant over METIS (Rathore et al., 2024).

The cited extensions preserve the centralised optimisation loop while altering its solver or hardware substrate. Proposed directions include co-locating QPU with CPU in the same data-centre and using QA asynchronously at regular rebalancing intervals, replacing recursive two-way splits by a kk-way QUBO, employing machine learning to predict good (γ,α,M)(\gamma,\alpha,M), parallelising MCTS or offloading rollouts to GPU, incorporating more detailed delay models, exploring integer relaxations for the KnapFormer assignment, and extending the centralised knapsack formulation to Mixture-of-Experts routing, pipeline-parallel stage balancing, or multi-tenant inference serving (Rathore et al., 2024, Tahir et al., 2021, Zhang et al., 8 Aug 2025). A plausible implication is that the long-term research frontier is not the abandonment of centralisation, but the design of central controllers whose optimisation kernels are domain-specific, latency-aware, and hybrid across CPU, GPU, and QPU resources.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Centralised Metaheuristic Load Balancer.