Analyzing Occupational Distribution Representation in Japanese Language Models

Katsumi Ibaraki, Winston Wu, Lu Wang, Rada MihalceaCOLING 2024

Abstract

Recent advances in large language models (LLMs) have enabled users to generate fluent and seemingly convincing text. However, these models have uneven performance in different languages, which is also associated with undesirable societal biases toward marginalized populations. Specifically, there is relatively little work on Japanese models, despite it being the thirteenth most widely spoken language. In this work, we first develop three Japanese language prompts to probe LLMs’ understanding of Japanese names and their association between gender and occupations. We then evaluate a variety of English, multilingual, and Japanese models, correlating the models’ outputs with occupation statistics from the Japanese Census Bureau from the last 100 years. Our findings indicate that models can associate Japanese names with the correct gendered occupations when using constrained decoding. However, with sampling or greedy decoding, Japanese language models have a preference for a small set of stereotypically gendered occupations, and multilingual models, though trained on Japanese, are not always able to understand Japanese prompts.

Introduction

Large language models (LLMs) are known to harbor societal biases, often associating certain occupations with specific genders. While significant research has explored these biases in English, Japanese remains understudied despite its global prominence. Japanese presents unique linguistic challenges, such as a Subject-Object-Verb (SOV) word order and topic-prominence, which prevent simple direct translation of standard English bias probes. This study investigates how Japanese, multilingual, and English models associate Japanese names with gender and occupations, and how closely these associations mirror historical and modern census data from Japan.

Methodology

To probe the models, we designed three semantically similar Japanese prompts tailored to both masked language models (e.g., BERT) and autoregressive models (e.g., GPT). Due to the SOV structure, the occupation precedes the verb in these prompts.

Japanese prompts and their English translations used for probing masked and autoregressive language models.

We evaluated a mix of models, including Japanese-specific models (BERT-J, GPT-2-J, GPT-NeoX-J), multilingual models (mBERT, mGPT, Bard, ChatGPT), and English models (GPT-2, GPT-NeoX). Two primary evaluation techniques were used:

  1. Constrained Decoding: Models were forced to output specific occupation tokens to calculate probability distributions across 257 distinct occupations, which were then compared to census data using Kullback-Leibler (KL) divergence.
  2. Greedy Decoding / Sampling: Models generated text freely to identify their default occupational associations.

The real-world baseline was established using two datasets: a collection of popular Japanese given names from the last 100 years (scraped from Meiji Yasuda Life Insurance Company) and historical census data from the Statistics Bureau of Japan (1920–2020), extracted via OCR and manual transcription.

Results and Discussion

Our analysis revealed that language-specific training is critical. Models trained from scratch on Japanese text, such as BERT-Japanese, captured real-world occupational distributions much more accurately than multilingual models. BERT-Japanese achieved high F1 scores (up to 0.94 for female names) in matching the majority gender of an occupation to a given name.

Heatmap comparing the occupational distributions generated by various models against 2020 Japanese Census data for male and female names.

However, a significant "collapse" into stereotypes was observed during free generation. While constrained decoding showed that models could assign reasonable probabilities across many jobs, greedy decoding resulted in models over-indexing on a narrow set of stereotypically gendered roles (e.g., "nurse" for women, "carpenter" for men).

Interestingly, temporal analysis showed that models' occupational biases remained relatively static. We hypothesized that names popular in the 1920s might trigger historical occupational associations, but the models' outputs did not correlate with the specific era of the name. Furthermore, multilingual models showed high sensitivity to prompt wording, whereas Japanese-specific models were more robust.

Commercial models like ChatGPT and Bard generated fluent responses and occasionally utilized real-world knowledge (e.g., linking the name "Shohei" to baseball). However, ChatGPT sometimes hallucinated occupations based on the literal kanji meanings of a name, such as guessing "fisherman" for a name containing the character for "sea."

Conclusion

This study demonstrates that while Japanese-specific LLMs better reflect real-world demographic distributions than their multilingual counterparts, they still exhibit strong stereotypical biases during open-ended generation. Future work should expand this methodology to other cultural contexts and explore additional dimensions of bias, such as socio-economic disparities, to further understand how language-specific models mirror the societies they represent.

Summary updated

BibTeX
@inproceedings{ibaraki2024analyzing,
  author = {Katsumi Ibaraki and Winston Wu and Lu Wang and Rada Mihalcea},
  title = {{Analyzing Occupational Distribution Representation in Japanese Language Models}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=0HS7ERHoXz},
}
Figure