Abstract
In Multiplayer Online Battle Arena (MOBA) games like League of Legends, selecting the optimal "item build" is a complex strategic task that depends on a multitude of contextual factors, including champion roles and team compositions. This paper introduces TTIR (Team-aware Transformer-based Item Recommendation), a novel model that leverages the Transformer architecture to provide context-sensitive item suggestions. By utilizing self-attention mechanisms to analyze the interactions between all ten players in a match, TTIR significantly outperforms traditional recommendation baselines. Furthermore, the model offers interpretability through attention heatmaps, allowing players to understand the strategic rationale behind specific item recommendations.
Introduction
"Itemization"—the process of purchasing equipment to enhance a character's abilities—is a cornerstone of competitive MOBA gameplay. In titles like League of Legends, a player's choice of items must account for their own champion's strengths, the synergies within their own team, and the specific threats posed by the enemy team. Traditional recommendation systems often fail to capture this high-dimensional context, treating item selection as a static classification problem based on isolated character attributes.
The authors address this by proposing a "team-aware" approach. The goal is to move beyond simple popularity-based suggestions and instead provide recommendations that respond dynamically to the unique composition of every individual match.
Methodology: The TTIR Framework
The core of the proposed system is the Team-aware Transformer-based Item Recommendation (TTIR) model. Inspired by the success of the Transformer architecture in Natural Language Processing, TTIR treats the ten players in a match as a sequence of related entities.
Input Representation
To capture the full context of a match, the model generates a composite embedding for each player. This embedding consists of three distinct components:
- Champion Embedding: Identifies the specific character being played (out of 136 unique champions).
- Role Embedding: Represents the player's assigned position (e.g., Jungler, Support, Mid).
- Team Embedding: A binary indicator for the player's side (Red or Blue team).
This structure is analogous to the word, position, and segment embeddings used in models like BERT, allowing the network to distinguish between allies and enemies while maintaining role-specific context.
Transformer Encoder and Attention
The ten player embeddings are processed through a Transformer encoder. The self-attention mechanism is the critical innovation here; it allows the model to compute the relative importance of every other player when making a recommendation for a specific individual. For instance, when recommending items for a fragile "carry" champion, the model can "attend" to high-damage assassins on the enemy team, leading it to suggest defensive items.
Output and Recommendation
The model produces a probability distribution across 89 "finished" items, ranging from defensive options like Guardian Angel Guardian Angel Interpretable Contextual Team-aware Item Recommendation: Application in Multiplayer Online Battle Arena Games, page 2 to offensive powerhouses like Infinity Edge Infinity Edge Interpretable Contextual Team-aware Item Recommendation: Application in Multiplayer Online Battle Arena Games, page 2. For each of the five players on a target team, the system recommends the top six most likely items to complete a full build.
Experimental Setup
The model was evaluated using a large-scale dataset of 157,584 high-level ranked League of Legends matches from the game's 7th season. To ensure the recommendations reflected high-quality play, the training process focused exclusively on the item choices of the winning teams. The dataset included 136 champions and 89 unique finished items, excluding basic components and consumables to focus on strategic end-game builds.
Results and Performance
TTIR achieved a Precision@6 of 0.492 and a Recall@6 of 0.756, consistently outperforming the strongest baseline (CNN) across all metrics, including Precision, Recall, F1-score, and Mean Average Precision (MAP). The improvements were statistically significant (p-values < 0.05), demonstrating that the Transformer's self-attention mechanism is superior at capturing match dynamics compared to standard neural network architectures.
Interpretability and User Validation
A key advantage of the Transformer-based approach is its inherent interpretability. By visualizing the attention weights, the authors generated heatmaps showing which players most influenced a particular recommendation. These maps revealed that the model naturally prioritizes "counter-building" against enemy threats, mirroring the decision-making process of expert human players.
In a user survey of 16 players, the recommendations received an average quality score of 7.98/10. However, the study noted an "expertise gap": while novice players found the explanations highly beneficial, veteran players desired more granular information, such as the specific order of purchases and detailed statistics like armor penetration.
Conclusion
The TTIR model demonstrates that the Transformer architecture is highly effective for capturing the complex, multi-agent dynamics of MOBA games. By considering the full team context, TTIR provides more accurate and interpretable recommendations than traditional methods. Future work will focus on transitioning from static "final build" suggestions to sequential recommendations that account for the real-time progression of a match.
Summary updated