Weakly Coupled Deep Q-Networks

Ibrahim El Shar, Daniel R. Jiang

Introduction

Reinforcement learning (RL) frameworks often struggle with the "curse of dimensionality" when applied to complex, high-dimensional environments. The paper introduces Weakly Coupled Deep Q-Networks (WCDQN), a novel algorithm designed for problems that can be decomposed into independent subproblems sharing a global constraint. By using Lagrangian relaxation to compute theoretical upper bounds on action values, WCDQN provides a "structural guide" that significantly speeds up convergence and improves performance in these complex settings.

The Challenge: Weakly Coupled MDPs

In many real-world scenarios—such as managing a supply chain, scheduling electric vehicle (EV) charging, or matching ads to users—the overarching problem consists of many individual components. These subproblems are largely independent except for a shared resource or budget constraint. These are known as Weakly Coupled Markov Decision Processes (WCMDPs).

Applying a standard RL agent (like a Deep Q-Network, or DQN) to the entire system is often intractable because the state and action spaces grow exponentially with the number of subproblems. While researchers have historically used techniques like "Whittle indices" for these problems, those methods require strict mathematical conditions that are nearly impossible to verify in practice. The authors aim to create a model-free, deep RL approach that exploits this "weakly coupled" structure without relying on restrictive assumptions.

WCDQN: Leveraging Lagrangian Relaxation

The core innovation of WCDQN is integrating Lagrangian relaxation into the deep Q-learning process to exploit the inherent structure of WCMDPs.

Architecture of Weakly Coupled Deep Q-Networks (WCDQN) showing the decomposition of the environment into subagents linked by a global constraint.
  1. Decomposition: The global WCMDP is broken down into $N$ smaller, manageable subproblems.
  2. Subagents: A single neural network is used to train multiple "subagents." Each subagent learns the optimal behavior for one subproblem, where the global constraint is replaced by a penalty (the Lagrange multiplier, $\lambda$) for using shared resources.
  3. Upper Bounding: Based on the principle of weak duality, the sum of the subagents' values (plus a constant) provides a mathematical upper bound on the optimal action-value function ($Q^*$) of the full, complex problem.
  4. WCDQN Algorithm: The main DQN agent learns the global problem as usual, but its loss function is modified. It includes a "soft penalty" that activates if the main agent’s $Q$-value estimates exceed the upper bounds calculated by the subagents.
  5. WCQL (Tabular): The authors also propose a tabular version, Weakly Coupled Q-Learning (WCQL), which uses a hard projection step to keep $Q$-values below the bound. They prove that this tabular version is guaranteed to converge to the optimal solution.

Why it Works: Structural Guidance

  • Subproblems Converge Faster: Because subagents operate in much smaller state and action spaces, they learn very quickly. This allows them to provide useful guidance to the main agent early in the training process.
  • Generalization to Unseen States: Even if the main agent hasn't visited a specific global state, the subagents might have visited the corresponding local states. By combining these local values, WCDQN can produce a sensible upper bound for unexplored global regions, preventing the agent from making wild, over-optimistic guesses.
  • Guidance, Not Replacement: Unlike previous "Lagrange policy" methods that simply follow the subproblems, WCDQN uses the subproblems to guide a main agent that still learns to navigate the full, coupled environment.

Experimental Benchmarks and Results

The researchers evaluated their approach on three realistic, simulated benchmarks:

  • EV Charging Deadline Scheduling: Managing 3 charging spots to fulfill vehicle energy needs while minimizing electricity costs and penalties for missed deadlines.
  • Multi-product Inventory Control: Managing 10 different products with independent demands but a shared, limited production capacity.
  • Online Stochastic Ad Matching: Matching 6 advertisers to arriving impressions under a strict budget constraint (exactly one advertiser per impression).

Key Findings

  • Superior Performance: In all three benchmarks, WCDQN (and its tabular counterpart WCQL) outperformed standard DQN, Double-DQN, and other specialized baselines like Optimality-Tightening DQN.
  • Stability: WCDQN demonstrated significantly lower variance across different random seeds. In the inventory control problem (featuring $3^{10}$ or 59,049 total actions), standard DQN variants were extremely noisy, while WCDQN remained stable and reached higher rewards.
  • Scaling: The benefits of the weakly coupled approach became more pronounced as the number of subproblems increased. For example, in the EV charging task, the improvement over standard Q-learning jumped from ~6% with 3 subproblems to nearly 43% with 5 subproblems.

Limitations and Future Directions

While highly effective, the current WCDQN implementation relies on a pre-defined, finite set of Lagrange multipliers ($\Lambda$). Future work could involve learning the optimal $\lambda$ dynamically using subgradient descent. Additionally, the method assumes the agent can observe the parameters of the linking constraint (e.g., the current budget or total capacity) upon entering a state. Finally, training subagents adds computational cost per iteration, though the authors demonstrate this is a worthwhile trade-off for the massive gains in sample efficiency and stability.

Summary updated

BibTeX
@inproceedings{shar2023weakly,
  author = {Ibrahim El Shar and Daniel R. Jiang},
  title = {{Weakly Coupled Deep Q-Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=DNubFPV5Dy},
}
Figure