arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13707cs.CL
收藏

所有语言成本相同吗?商业语言模型时代的分词化

Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Models

University of Washington(华盛顿大学);Carnegie Mellon University(卡内基梅隆大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Orevaoghene Ahia, Sachin Kumar, Hila Gonen, Jungo Kasai, David R. Mortensen, Noah A. Smith, Yulia Tsvetkov

AI总结:

研究商业语言模型API在多语言场景下的定价公平性,发现不同语言因分词差异导致成本不均,许多语言使用者被超额收费且效果较差。

摘要:

语言模型已从研究原型毕业,成为作为网络API提供的商业化产品,近期的研究突显了这些产品的多语言能力。API供应商根据使用量向用户收费,更具体地说,是根据底层语言模型处理或生成的“词元”数量。然而,构成词元的内容取决于训练数据和模型,在不同语言中传达相同信息所需的词元数量存在很大差异。在这项工作中,我们分析了这种非均匀性对API跨语言定价政策公平性的影响。我们对OpenAI语言模型API在22种类型多样的语言的多语言基准上的成本和效用进行了系统分析。我们提供的证据表明,大量支持语言的说话者被超额收费,同时获得的结果较差。这些说话者往往也来自API本来就不太负担得起的地区。通过这些分析,我们旨在提高语言模型API定价政策的透明度,并鼓励供应商使其更加公平。

英文摘要:

Language models have graduated from being research prototypes to commercialized products offered as web APIs, and recent works have highlighted the multilingual capabilities of these products. The API vendors charge their users based on usage, more specifically on the number of ``tokens'' processed or generated by the underlying language models. What constitutes a token, however, is training data and model dependent with a large variance in the number of tokens required to convey the same information in different languages. In this work, we analyze the effect of this non-uniformity on the fairness of an API's pricing policy across languages. We conduct a systematic analysis of the cost and utility of OpenAI's language model API on multilingual benchmarks in 22 typologically diverse languages. We show evidence that speakers of a large number of the supported languages are overcharged while obtaining poorer results. These speakers tend to also come from regions where the APIs are less affordable to begin with. Through these analyses, we aim to increase transparency around language model APIs' pricing policies and encourage the vendors to make them more equitable.

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

↑