Predicting Drafted Deck Strength for "Magic: the Gathering"

Tomas Rigaux, Hisashi KashimaarXiv 2026

TL;DR

The authors introduce DraftEncoder, a transformer-based deep learning architecture designed to predict the win-rate of a Magic: The Gathering (MTG) deck directly from its drafting sequence. By modeling drafting as a series of sequential, combinatorial decisions, the model successfully captures complex card synergies and outperforms traditional linear baselines, approaching the theoretical noise ceiling for performance prediction.

What Problem Does This Paper Address?

In complex collectible card games like MTG, the rules are not static; they are defined and altered by the game pieces (cards) themselves. With thousands of unique cards and frequent new set releases, learning a global gameplay policy is incredibly difficult.

The authors focus on the Draft format, a popular competitive mode where eight players sequentially pick cards from rotating, semi-random packs to build a 40-card deck. In a draft, a card's value is highly context-dependent: it depends on what cards you have already picked (synergy), what cards might return to you later, and what strategies your opponents are signaling.

Prior machine learning attempts in this space focused merely on descriptive modeling—predicting what card a human player would pick next. This paper tackles an outcome-driven objective: predicting the actual downstream win-rate of the resulting deck given a partial or complete sequence of draft choices.

Methods

DraftEncoder breaks the problem down into two main phases: encoding the static card properties within a specific set environment, and dynamically updating the draft state as choices are made.

Overview of DraftEncoder’s full architecture
  1. Card Encoding & FiLM Conditioning: Raw card text and metadata are converted into a string format and passed through a pre-trained language model (EmbeddingGemma) to generate static embeddings. To account for player skill, the model uses Feature-wise Linear Modulation (FiLM) to condition these card embeddings based on the player's competitive rank.
  2. Set Contextualization: Before the draft even begins, a standard Transformer encoder allows all cards in a given expansion to attend to one another. This generates set-contextualized embeddings that capture inherent relationships within that specific set.
  3. Sequential Draft Encoding: As the draft progresses, a bidirectional Transformer block with Rotary Positional Embeddings (RoPE) tracks two types of tokens: the cards available in the current pack and the overall draft state (the cards picked so far). Crucially, the embeddings for the pack cards are updated dynamically relative to the previous picks, allowing the model to reason about local card quality and global deck composition simultaneously.
  4. Predictor Head & Custom Loss: An MLP maps the final draft states to a predicted win-rate. Because MTG Arena matches end after either 7 wins or 3 losses, the target win-rate is heavily censored. The authors address this by training the model with a custom Negative Log-Likelihood (NLL) loss function tailored to this specific win/loss structure.

Datasets

The model was trained and evaluated on large-scale, real-world draft logs collected from MTG Arena via the community project 17Lands.

  • The dataset spans 12 different MTG expansions (e.g., Bloomburrow (BLB), Foundations (FDN)), encompassing over 1.3 million individual drafts.
  • Each record contains the full sequence of packs seen, picks made, the player's rank, and the final match record (wins and losses).

To prepare card features, the authors used oracle card text and metadata scraped from the Scryfall API, formatting them into structured text strings.

Example of transforming raw card data into an oracle text string

Key Insights and Ideas

  • Outcome-Driven vs. Behavioral Modeling: Instead of training an AI to mimic human drafters (who are prone to biases and sub-optimal choices), training directly on win/loss outcomes forces the network to learn genuine card synergies and deck viability.
  • Dynamic Attention is Key: A card's value fluctuates wildly depending on what has already been drafted. By using a bidirectional attention mechanism that updates card embeddings at each step, DraftEncoder successfully mimics how human experts re-evaluate packs based on their current deck archetype.
  • The 0.23 Noise Ceiling: Due to the inherent randomness of card games (drawing variance, matchup luck) and the short 7-win/3-loss match structure, the authors calculate that the absolute maximum achievable Spearman correlation ($\rho$) between any prediction and the observed win rate is $\sim 0.23$.

Key Results

The authors evaluated DraftEncoder against a linear regression (LR) baseline and a win-rate heuristic.

  • Predictive Accuracy: As shown in the figure below, DraftEncoder significantly outperforms the baselines. While early picks are difficult to judge, by the end of the draft, DraftEncoder achieves a Spearman rank correlation ($\rho$) close to $0.22$, nearly doubling the performance of linear baselines and approaching the theoretical noise ceiling of $0.23$.
Spearman ρ across pick number, comparing DraftEncoder against baselines
  • Generalization to New Sets: When tested on a completely unseen expansion (Foundations), a zero-shot DraftEncoder struggled. However, fine-tuning the model on just the first four days of data from the new set allowed it to rapidly adapt, achieving a correlation of $0.1641$ (and $0.1809$ when augmented with historical meta-statistics), proving its utility early in a new set's lifecycle.

Limitations and Future Work

  • Cold-Start Generalization: Without historical meta-statistics or a few days of initial fine-tuning data, the model struggles to accurately evaluate entirely new card mechanics purely from raw text.
  • Frozen Text Encoders: The current architecture relies on a frozen EmbeddingGemma model. The authors note that fine-tuning the text encoder end-to-end with the draft data could yield a deeper semantic understanding of novel card text.
  • Lack of Gameplay Context: The model currently isolates the draft from actual gameplay. Incorporating gameplay simulations could help the model better understand why certain card combinations succeed or fail.

Summary updated

BibTeX
@misc{rigaux2026predicting,
  author = {Tomas Rigaux and Hisashi Kashima},
  title = {{Predicting Drafted Deck Strength for "Magic: the Gathering"}},
  year = {2026},
  eprint = {2607.04782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.04782},
}
Figure