Model based Multi-agent Reinforcement Learning with Tensor Decompositions

Pascal Van Der Vaart, Anuj Mahajan, Shimon WhitesonarXiv 2021

Abstract: A challenge in multi-agent reinforcement learning is to be able to generalize over intractable state-action spaces. Inspired from Tesseract [Mahajan et al., 2021], this position paper investigates generalisation in state-action space over unexplored state-action pairs by modelling the transition and reward functions as tensors of low CP-rank. Initial experiments on synthetic MDPs show that using tensor decompositions in a model-based reinforcement learning algorithm can lead to much faster convergence if the true transition and reward functions are indeed of low rank.

Introduction

In Multi-Agent Reinforcement Learning (MARL), the "curse of dimensionality" presents a significant barrier to scalability. As the number of agents increases, the joint action space grows exponentially, making exhaustive exploration impossible. Traditional RL algorithms often treat state-action pairs as independent, meaning an agent has no predictive power for combinations it hasn't explicitly visited. This paper proposes a model-based approach that leverages the mathematical properties of tensors to "fill in the blanks" of environment dynamics, enabling generalization across unexplored state-action pairs.

Methodology

The core of the proposed method involves treating the transition function $T$ and the reward function $R$ as high-dimensional tensors.

  1. Low-Rank Assumption: The dynamics are assumed to have a low CP-rank (CANDECOMP/PARAFAC), implying that complex global behaviors are driven by a small number of underlying factors.
  2. Tensor Completion: Since agents only experience a fraction of the state-action space, the tensors are sparse. Tensor completion algorithms are used to predict missing values.
  3. Alternating Rank-1 Updates: To perform decomposition efficiently, the authors utilize an ablation of the alternating rank-1 updates algorithm, involving asymmetric power updates followed by alternating minimization.
  4. Model-Based Loop: The agent explores, records observations in count and reward tensors, performs tensor completion to build a world model, and then uses this model for policy improvement.

Unlike previous work like Tesseract, which factorizes actions per state, this approach factorizes across the entire state-action space, allowing for generalization across different states.

Experimental Setup

The approach was evaluated on two synthetic Markov Decision Processes (MDPs):

  • Random Low-Rank MDP: 20 states and 3 agents (10 actions each), totaling 20,000 state-action pairs. Ground-truth dynamics were constructed with a CP-rank of 5.
  • MDP with Degenerate States: 16 states (in 4 groups) and 3 agents (20 actions each), totaling 128,000 pairs. States within a group share dynamics to test the exploitation of state-level redundancies.

Results and Discussion

Experiments demonstrate that tensor-based agents reach near-optimal rewards significantly faster than baselines. In the random MDP, the rank-5 agent recovered the reward tensor almost exactly after visiting only 20% of the state-action space.

Reward performance and SSE in a random low-rank MDP.

As shown in Figure 1, the tensor-based methods (rank_N_decomp) converge to optimal rewards much earlier than the baseline (no_decomp). Furthermore, the transition modeling error was significantly lower for the proposed method. Interestingly, the baseline's error often increased over time because its initial uniform distribution for unvisited states was more accurate than noisy estimates from single visits.

Transition function MSE over time.

However, a "cold start" problem was observed (Figure 6), where error is initially very high due to the ill-conditioned nature of the optimization problem when data is scarce. The method also proved robust to rank mismatch, still outperforming baselines even when the assumed rank did not match the ground truth.

Conclusion and Future Work

Modeling environment dynamics as low-rank tensors provides a powerful mechanism for generalization in MARL. While computationally more intensive than simple counting, the reduction in sample complexity is substantial. Future work will address the "cold start" problem through regularization, explore scaling to continuous spaces via functional decompositions, and adapt the framework for Partially Observable MDPs (POMDPs).

Summary updated

BibTeX
@misc{vaart2021model,
  author = {Pascal Van Der Vaart and Anuj Mahajan and Shimon Whiteson},
  title = {{Model based Multi-agent Reinforcement Learning with Tensor Decompositions}},
  year = {2021},
  eprint = {2110.14524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.14524},
}
Figure