Skip to main content
QUICK REVIEW

[Paper Review] Building a Computer Mahjong Player via Deep Convolutional Neural Networks

Shiqi Gao, Fuminori Okuya|arXiv (Cornell University)|Jun 5, 2019
Artificial Intelligence in GamesComputer Science5 references5 citations
TL;DR

This paper proposes a 3D convolutional neural network (CNN) model to represent incomplete Mahjong game states, enabling accurate prediction of tile discards. Trained on game records, the model achieves a 70.44% agreement rate with human play—significantly outperforming the prior state-of-the-art (62.1%)—and enables an AI agent to reach a 1850 rating on the Tenhou platform, surpassing intermediate human players without rule-based knowledge.

ABSTRACT

The evaluation function for imperfect information games is always hard to define but owns a significant impact on the playing strength of a program. Deep learning has made great achievements these years, and already exceeded the top human players' level even in the game of Go. In this paper, we introduce a new data model to represent the available imperfect information on the game table, and construct a well-designed convolutional neural network for game record training. We choose the accuracy of tile discarding which is also called as the agreement rate as the benchmark for this study. Our accuracy on test data reaches 70.44%, while the state-of-art baseline is 62.1% reported by Mizukami and Tsuruoka (2015), and is significantly higher than previous trials using deep learning, which shows the promising potential of our new model. For the AI program building, besides the tile discarding strategy, we adopt similar predicting strategies for other actions such as stealing (pon, chi, and kan) and riichi. With the simple combination of these several predicting networks and without any knowledge about the concrete rules of the game, a strength evaluation is made for the resulting program on the largest Japanese Mahjong site `Tenhou'. The program has achieved a rating of around 1850, which is significantly higher than that of an average human player and of programs among past studies.

Motivation & Objective

  • To design a data model that effectively captures imperfect information in Japanese Mahjong for deep learning.
  • To improve the accuracy of tile discard prediction using a 3D CNN architecture trained on historical game records.
  • To evaluate the strength of a rule-free AI system by combining multiple trained networks for action prediction.
  • To explore whether deep learning can automatically learn legal move constraints and complex game features like dora indicators.

Proposed method

  • A novel 3D tensor data structure is designed to encode hand tiles, discard history, dora indicators, and table state in a spatial format suitable for 2D convolutional layers.
  • The network treats tile discard as a 34-class classification problem, with input features including player's tiles, discard history, and dora indicators.
  • A 3D CNN architecture with multiple convolutional and batch normalization layers is used, avoiding pooling layers due to information loss.
  • The model is trained end-to-end on 50,000 test cases from professional game records (haifu) to maximize agreement with human decisions.
  • An AI agent is constructed by combining separate neural networks for discarding, pon, chi, kan, and riichi actions, with no explicit game rule encoding.
  • Strength evaluation is performed via online play on the Tenhou platform, measuring rating after 300 matches.

Experimental results

Research questions

  • RQ1Can a deep CNN model learn to predict optimal tile discards in Mahjong using only game record data, without explicit rule encoding?
  • RQ2How does a 3D data representation compare to 2D or 1D representations in capturing Mahjong game state complexity?
  • RQ3To what extent can a deep neural network automatically learn legal move constraints and complex game features like dora indicators?
  • RQ4Does the absence of pooling layers improve performance in this structured, low-dimensional game state representation?
  • RQ5Can a simple ensemble of independently trained networks for different actions produce a strong, rule-free AI player?

Key findings

  • The proposed 3D CNN model achieves a 70.44% agreement rate with human discards on test data, significantly outperforming the prior state-of-the-art of 62.1%.
  • The model predicts only legal discards—100% of predictions fall within the 14 tiles in hand—indicating it has implicitly learned move legality.
  • Pooling layers degrade performance, likely due to loss of fine-grained spatial structure in the compact 3D representation.
  • The model correctly infers dora tiles from dora indicators without direct encoding, improving accuracy by approximately 1%.
  • The AI agent, built from simple network combinations, achieves a 1850 rating on Tenhou, exceeding the average intermediate player (~1600).
  • GRU-based sequential models were tested but yielded worse results than the static 3D CNN, suggesting temporal modeling is less effective than spatial feature learning in this setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.