Skip to main content

What Can You Do with a Sword? Gender Biases in Text Game Affordances

  • Conference paper
  • First Online:
Games and Learning Alliance (GALA 2023)

Abstract

Game mechanics can be viewed in terms of affordances: possible actions offered by the environment—depending on the agent (e.g., in a fantasy role-playing game, a sword can be wielded by a knight, but probably not by a dragon). Recently, text generated by large language models (LLMs) has been used to create open-ended text-based game content. However, LLMs have been shown to generate sexist text when trained on gender-biased data. If bias manifests in educational text game affordances it could harm goal achievement. We examine binary gender biases in LIGHT, an English-language persona-based dataset for researching language grounded in a fantasy adventure world, training LLMs on LIGHT and analyzing the diversity of affordances in quests. We find male characters have a more diverse space of affordances yet are less diverse in practice (e.g., mostly wielding a sword) in original and generated quests. To gauge impact on gameplay, we create games from LIGHT quests which can be played in the TextWorld research framework. Artificial agents trained only on male games significantly outperform female, suggesting an impact of affordance biases. These findings illustrate risks in AI- or data-driven generation of serious game content where gender is involved: overlooked biases in affordances can propagate, autonomously enforcing harmful, stereotypical behaviors.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://spacy.io/universe/project/spacy-transformers.

  2. 2.

    huggingface.co/facebook/bart-base/.

  3. 3.

    Seeds are numbers used to initialize random number generators.

  4. 4.

    https://github.com/microsoft/TextWorld/blob/main/notebooks/.

References

  1. Ahn, M., et al.: Do as I Can, Not as I Say: Grounding Language in Robotic Affordances. arXiv preprint arXiv:2204.01691 (2022)

  2. Ammanabrolu, P., Jia, R., Riedl, M.: Situated dialogue learning through procedural environment generation. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (2022)

    Google Scholar 

  3. Ammanabrolu, P., Urbanek, J., Li, M., Szlam, A., Rocktäschel, T., Weston, J.: How to motivate your dragon: teaching goal-driven agents to speak and act in fantasy worlds. In: Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics (2021)

    Google Scholar 

  4. Côté, M.A., et al.: TextWorld: A Learning Environment for Text-based Games. In: CGW@IJCAI (2018)

    Google Scholar 

  5. Dinan, E., Fan, A., Williams, A., Urbanek, J., Kiela, D., Weston, J.: Queens are powerful too: mitigating gender bias in dialogue generation. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (2020)

    Google Scholar 

  6. Fernández Galeote, D., et al.: The good, the bad, and the divergent in game-based learning: player experiences of a serious game for climate change engagement. In: Proceedings of the 25th International Academic Mindtrek Conference, pp. 256–267 (2022)

    Google Scholar 

  7. Fulda, N., Ricks, D., Murdoch, B., Wingate, D.: What can you do with a rock? Affordance extraction via word embeddings. In: Proceedings of the 26th International Joint Conference on Artificial Intelligence, pp. 1039–1045 (2017)

    Google Scholar 

  8. Garner, J.: The cross-sectional development of verb-noun collocations as constructions in L2 writing. Int. Rev. Appl. Linguist. Lang. Teach. 60(3), 909–935 (2020)

    Google Scholar 

  9. Gibson, J.J.: The theory of affordances. Hilldale, USA 1(2), 67–82 (1977)

    Google Scholar 

  10. Glăveanu, V.P.: A sociocultural theory of creativity: bridging the social, the material, and the psychological. Rev. Gen. Psychol. 24(4), 335–354 (2020)

    Article  Google Scholar 

  11. Lewis, M., et al.: BART: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (2020)

    Google Scholar 

  12. McClelland, T., Sliwa, P.: Gendered affordance perception and unequal domestic labour. Philos. Phenomenological Res. 107(20), 501–524 (2022)

    Google Scholar 

  13. Nguyen, C.T.: Games and the art of agency. Philos. Rev. 128(4), 423–462 (2019)

    Google Scholar 

  14. Protopsaltis, A., Pannese, L., Hetzner, S., Pappa, D., de Freitas, S.: Creative learning with serious games. Int. J. Emerg. Technol. Learn. (iJET) 5(2010), 4–6 (2010)

    Google Scholar 

  15. Ulmer, D., Hardmeier, C., Frellsen, J.: deep-significance - Easy and Meaningful Statistical Significance Testing in the Age of Neural Networks. arXiv preprint arXiv:2204.06815 (2022)

  16. Urbanek, J., et al.: Learning to speak and act in a fantasy text adventure game. In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (2019)

    Google Scholar 

  17. Vargha, A., Delaney, H.D.: A critique and improvement of the “CL” common language effect size statistics of McGraw and Wong. J. Educ. Behav. Stat. 25(2), 101–132 (2000)

    Google Scholar 

  18. Xinogalos, S., Satratzemi, M.: The use of educational games in programming assignments: SQL Island as a case study. Appl. Sci. 12(13), 6563 (2022)

    Article  Google Scholar 

  19. Yao, S., Rao, R., Hausknecht, M., Narasimhan, K.: Keep CALM and explore: language models for action generation in text-based games. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Erik S. McGuire .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

McGuire, E.S., Tomuro, N. (2024). What Can You Do with a Sword? Gender Biases in Text Game Affordances. In: Dondio, P., et al. Games and Learning Alliance. GALA 2023. Lecture Notes in Computer Science, vol 14475. Springer, Cham. https://doi.org/10.1007/978-3-031-49065-1_48

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-49065-1_48

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-49064-4

  • Online ISBN: 978-3-031-49065-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics