Introduction
In modern networked systems, such as data centers and manufacturing lines, minimizing job delay and queue backlog is a primary objective. However, achieving optimal control is challenging due to two main factors: unknown system dynamics (arrival rates and service probabilities) and infinite state spaces (unbounded buffers). While traditional heuristics like MaxWeight or Backpressure ensure system stability, they often fall short of minimizing delay. Conversely, standard reinforcement learning (RL) methods struggle with infinite state spaces and lack the rigorous performance guarantees required for critical infrastructure.
RL-QN (Reinforcement Learning for Queueing Networks) addresses these challenges by combining model-based RL with classical queueing theory. It achieves performance theoretically guaranteed to be arbitrarily close to the optimal control policy by focusing learning on a finite "core" of the state space while relying on a known stabilizing policy for extreme, rare states.
The RL-QN Framework
The core innovation of RL-QN is its piecewise approach to policy implementation. The algorithm divides the state space into two regions based on a threshold $U$:
- Inside the Threshold ($S^{in}$): For states where the queue backlog is below $U$, the algorithm employs model-based RL. It learns transition dynamics and computes an optimal policy ($\tilde{\pi}^*$) for a truncated auxiliary system.
- Outside the Threshold ($S^{out}$): For states exceeding the threshold, the algorithm switches to a known, simple stabilizing policy ($\pi_0$), such as Longest Connected Queue (LCQ) or MaxWeight.
The algorithm operates in episodes using an $\epsilon$-greedy strategy to balance exploration and exploitation:
- Exploration: The agent applies a random policy ($\pi_{rand}$) within a subset of the core to learn the environment's dynamics.
- Exploitation: The agent uses the current best-learned policy ($\tilde{\pi}^*$) within the core to minimize backlog.
By using Lyapunov drift analysis, the authors prove that as the threshold $U$ increases, the performance gap between RL-QN and the true optimal policy vanishes exponentially. This ensures that the "tail" of the distribution—the rare instances of extremely high backlog—has a negligible impact on overall performance.
Experimental Evaluation
RL-QN was evaluated on three classic synthetic queueing benchmarks: dynamic server allocation, routing, and switching (e.g., a $2 \times 2$ input-queued switch model).
Key Results
- Superior Performance: RL-QN consistently outperformed traditional heuristics like MaxWeight and LCQ across all benchmarks.
- Near-Optimality: In a 2-node server allocation test, RL-QN achieved an average backlog of 2.24, remarkably close to the theoretical lower bound of 2.22. In contrast, the standard LCQ heuristic resulted in a backlog of approximately 2.8.
- Efficiency: For a 2-node system, RL-QN reduced the average backlog by 23.1% with only a minimal increase in computation time (1.17x) compared to non-learning policies.
- Safety and Stability: By incorporating a known stabilizing policy as a fallback, RL-QN maintains system stability even during the exploration phase.
Conclusion and Future Work
RL-QN provides a robust theoretical bridge between networking heuristics and RL optimization. It demonstrates that "truncated" RL can achieve near-optimal performance for infinite systems while maintaining stability guarantees.
Despite its success, the framework faces the "curse of dimensionality," as the core state space grows exponentially with the number of queues ($U^N$). Future research will explore the integration of approximation methods, such as Deep RL, to scale the framework to larger networks while preserving its theoretical performance guarantees. Additionally, investigating methods to implement RL-QN when a stabilizing policy is not known a priori remains an open challenge.
Summary updated