Skip to main content
Kent Academic Repository

Adapting transformers towards a balanced metagame through retraining and layer-pruning

Osys, Alan (2026) Adapting transformers towards a balanced metagame through retraining and layer-pruning. Master of Research (MRes) thesis, University of Kent. (doi:10.22024/UniKent/01.02.115828) (KAR id:115828)

Abstract

With the recent strides in machine learning and a growing interest in using Transformers in many different areas, the question has arisen of what can this architecture do for improving the quality of games with procedurally generated characters, such as the Pokemon game. In this context, the overall aim of this thesis is to produce sets of Pokemon (metagames) where the individual Pokemon in a set have more balanced win rates (computed in battles) and more diversity (different Pokemon property values), when using a Transformer model to generate Pokemon. In order to address that aim, this thesis offers two main contributions, involving two proposed methods for improving the Pokemon metagame generated by a Transformer. The first contribution is the approach of pruning layers of a Transformer model, whilst the second contribution is the development of a multiobjective genetic algorithm for selecting Pokemon that optimise the balance and diversity of a Pokemon metagame. The computational results have shown that layer-pruning is paramount in preserving Pokemon diversity over time - every Transformer model produced without using layer pruning was significantly outperformed (regarding diversity) by models generated using pruning. In addition, the combination of layer pruning with a multi-objective genetic algorithm further improved the results, achieving overall the best results in terms of maximising diversity and balanced win rates over time.

Item Type: Thesis (Master of Research (MRes))
Thesis advisor: Jordanous, Anna
DOI/Identification number: 10.22024/UniKent/01.02.115828
Uncontrolled keywords: transformers; Pokemon; balancing, genetic algorithms
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Institutional Unit: Schools > School of Computing
Former Institutional Unit:
There are no former institutional units.
SWORD Depositor: System Moodle
Depositing User: System Moodle
Date Deposited: 10 Aug 2026 11:39 UTC
Last Modified: 11 Aug 2026 12:07 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/115828 (The current URI for this page, for reference purposes)

University of Kent Author Information

Osys, Alan.

Creator's ORCID:
CReDIT Contributor Roles:
  • Depositors only (login required):

Total unique views of this page since July 2020. For more details click on the image.