Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmark

Cristiano da Costa Cunha, Ajmal Mian, Tim French, Wei LiuarXiv 2026

TL;DR

The authors introduce MTG-Causal-RL, a new open-source Gymnasium benchmark for causal reinforcement learning based on the complex card game Magic: The Gathering. By equipping a strategically deep game with a hand-designed Structural Causal Model (SCM), the benchmark allows researchers to evaluate agents on causal credit assignment, cross-archetype transfer, and policy auditability. They also propose CGFA-PPO, a novel causal agent architecture that demonstrates how tracking causal factors can expose diagnostic insights that raw win rates alone mask.

What Problem Does This Paper Address?

Causal Reinforcement Learning (CRL) aims to create agents that understand not just which actions yield rewards, but why they do so under changing conditions or interventions. However, CRL research has been bottlenecked by a lack of suitable testing grounds.

Existing benchmarks generally fall into two extremes:

  1. Low-level physical control environments (like robotics simulators) that feature clear physical interventions but lack strategic complexity.
  2. Complex strategic games (like Atari or Poker) that have rich decision spaces but lack an explicit, ground-truth causal interface.

To bridge this gap, this paper introduces a benchmark based on Magic: The Gathering (MTG). MTG is an ideal domain because it combines hidden information, stochastic card draws, and massive, masked action spaces with highly intuitive causal variables (e.g., spending mana causes spells to resolve, which alters board pressure, which ultimately impacts the probability of winning).

Methods

The paper introduces both a benchmark environment and a novel reference agent:

1. The MTG-Causal-RL Environment

Built as a Gymnasium interface, the environment features:

  • A 3,077-dimensional partial observation vector tracking visible hands, battlefields, graveyards, life totals, and phases.
  • A 478-action masked discrete action space spanning 16 categories (e.g., playing lands, casting sorceries, declaring blockers).
  • A hand-designed Structural Causal Model (SCM) spanning four layers: resources, board state, strategic position, and game outcome. The SCM calculates analytical, Pearl-style $do(\cdot)$ interventions for card mechanics.

2. CGFA-PPO (Causal Graph-Factored Advantage PPO)

As a secondary contribution, the authors design a novel causal agent architecture to exercise this interface:

  • Per-Factor Critics: Instead of a single scalar critic, it uses $K$ distinct critic heads, each trained against a specific strategic factor defined by the SCM (e.g., Card Advantage, Tempo, Life Buffer).
  • State-Conditional Residual Gate: A gating mechanism ($g(s) \in (0,1)$) that dynamically decides on a per-state basis whether to trust the standard scalar advantage or the structurally factored advantage.
  • Intervention-Calibration Loss: A Pearson-correlation loss that aligns the learned factor advantages with the SCM's analytical intervention predictions.

Datasets

Rather than static datasets, this work introduces a dynamic simulation benchmark featuring 56 unique cards configured into five competitive "Standard 2025" deck archetypes:

  • Mono-Red Aggro (Fast, proactive)
  • Azorius Control (Slow, reactive, counterspell-heavy)
  • Dimir Midrange (Disruptive threats)
  • Domain Ramp (Resource acceleration)
  • Boros Convoke (Wide creature tokens)

Key Insights and Ideas

  • Causal RL is not an automatic "win-rate booster": One of the most honest takeaways is that adding causal mechanisms does not uniformly improve raw performance. The causal agent (CGFA-PPO) outperformed standard PPO on some decks but lagged on others.
  • The value is in the "Why": Even when win rates are identical, the causal interface allows humans to audit why an agent made a decision. By looking at the per-factor calibration trajectories, researchers can see exactly which causal factors (like maintaining a "Life Buffer" vs. pushing "Tempo") drove a policy update.
  • Benchmark Diagnostics > Headline Metrics: Traditional RL relies heavily on scalar rewards. This benchmark proves that tracking leave-one-out cross-archetype transfer gaps and factor-target sign agreements provides a much clearer picture of an agent's generalization capabilities.

Key Results

The authors evaluated their approaches using a rigorous statistical protocol (paired seeds, bootstrap confidence intervals, and Holm-Bonferroni corrections):

  • In-Distribution Win Rates: Both standard Masked PPO and the proposed CGFA-PPO handily defeated the uniform random baseline across all decks.
  • Deck-Dependent Performance:
  • On Azorius Control, CGFA-PPO achieved a 25.6% win rate compared to PPO's 20.6% (+5.0 pp improvement).
  • On Mono-Red Aggro, CGFA-PPO reached 70.6% vs. PPO's 67.8% (+2.8 pp).
  • PPO maintained the upper hand on Boros Convoke, Dimir Midrange, and Domain Ramp.
  • Ablation Sensitivity: A baseline "Causal Agent" using standard causal world-model auxiliary predictions collapsed to a 25.6% win rate on Mono-Red, proving that the benchmark successfully penalizes superficial causal labeling and rewards true structural alignment.

Limitations and Future Work

  • Hand-Designed SCM: The causal model is hardcoded based on MTG strategic theory. While this guarantees interpretability, it bypasses the challenge of causal discovery (learning the causal graph from data).
  • Bounded Complexity: To keep training computationally tractable (~2 hours per seed on an NVIDIA RTX 3090), the card pool is restricted to 56 cards, which is a tiny fraction of MTG's real-world 27,000+ card history.
  • Fixed Opponents: The opponent pool is currently static rather than adaptive, meaning agents aren't yet forced to navigate a co-evolving meta-game.

The authors suggest that future work should focus on regularizing credit concentration in the factor heads and testing these architectures against Large Language Model (LLM) strategic agents.

Summary updated

BibTeX
@misc{cunha2026causal,
  author = {Cristiano da Costa Cunha and Ajmal Mian and Tim French and Wei Liu},
  title = {{Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmark}},
  year = {2026},
  eprint = {2605.06066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06066},
}
Figure