arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.11779cs.CLcs.AIcs.LG
收藏

分词至关重要:应对性别包容语言技术中的数据稀缺分词问题

Tokenization Matters: Navigating Data-Scarce Tokenization for Gender Inclusive Language Technologies

University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Amazon AGI Foundations(亚马逊AGI基金会);Ben-Gurion University of the Negev(内盖夫本-古里安大学)

Anaelia Ovalle, Ninareh Mehrabi, Palash Goyal, Jwala Dhamala, Kai-Wei Chang, Richard Zemel, Aram Galstyan, Yuval Pinter, Rahul Gupta

AI总结:

本文揭示BPE因数据稀缺过度切分英语新代词并导致LLM性别错称,提出代词分词对等与利用已有代词知识两种方法,将准确率从14.1%提升至58.4%。

摘要:

性别包容的自然语言处理(NLP)研究已经记录了以性别二元为中心的大语言模型(LLM)的有害局限,例如无法正确使用性别多元的英语新代词(如 xe、zir、fae)。尽管数据稀缺是已知原因,但稀缺影响这种行为的确切机制仍未得到充分研究。我们发现,LLM 的性别错称显著受到字节对编码(BPE)分词的影响,而 BPE 是许多流行 LLM 使用的分词器。与二元代词不同,BPE 会将新代词过度切分,这是分词器训练期间数据稀缺的直接后果。这种差异化分词与多语言和低资源 NLP 中观察到的分词器局限相似,从而为缓解性别错称开辟了新策略。我们提出两种技术:(1)代词分词对等,即在不同性别代词之间强制实施一致分词的方法;(2)利用 LLM 已有的代词知识来提升新代词能力。我们提出的方法优于使用标准 BPE 的微调,将新代词准确率从14.1%提高到58.4%。本文首次将 LLM 性别错称与分词及有缺陷的新代词语法联系起来,表明无法正确将新代词视为代词的 LLM 更容易发生性别错称。

英文摘要:

Gender-inclusive NLP research has documented the harmful limitations of gender binary-centric large language models (LLM), such as the inability to correctly use gender-diverse English neopronouns (e.g., xe, zir, fae). While data scarcity is a known culprit, the precise mechanisms through which scarcity affects this behavior remain underexplored. We discover LLM misgendering is significantly influenced by Byte-Pair Encoding (BPE) tokenization, the tokenizer powering many popular LLMs. Unlike binary pronouns, BPE overfragments neopronouns, a direct consequence of data scarcity during tokenizer training. This disparate tokenization mirrors tokenizer limitations observed in multilingual and low-resource NLP, unlocking new misgendering mitigation strategies. We propose two techniques: (1) pronoun tokenization parity, a method to enforce consistent tokenization across gendered pronouns, and (2) utilizing pre-existing LLM pronoun knowledge to improve neopronoun proficiency. Our proposed methods outperform finetuning with standard BPE, improving neopronoun accuracy from 14.1% to 58.4%. Our paper is the first to link LLM misgendering to tokenization and deficient neopronoun grammar, indicating that LLMs unable to correctly treat neopronouns as pronouns are more prone to misgender.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑