跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算与语言

arXiv:2410.15696 (cs)
[提交于 2024年10月21日]

标题:Tokenization as Finite-State Transduction

作者:Marco Cognetta, Naoaki Okazaki
查看论文《Tokenization as Finite-State Transduction》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Tokenization is the first step in modern neural language model pipelines where an input text is converted to a sequence of subword tokens. We introduce from first principles a finite-state transduction framework which can efficiently encode all possible tokenizations of a regular language. We then constructively show that Byte-Pair Encoding (BPE) and MaxMatch (WordPiece), two popular tokenization schemes, fit within this framework. For BPE, this is particularly surprising given its resemblance to context-free grammar and the fact that it does not tokenize strings from left to right. An application of this is to guided generation, where the outputs of a language model are constrained to match some pattern. Here, patterns are encoded at the character level, which creates a mismatch between the constraints and the model's subword vocabulary. While past work has focused only on constraining outputs without regard to the underlying tokenization algorithm, our framework allows for simultaneously constraining the model outputs to match a specified pattern while also adhering to the underlying tokenizer's canonical tokenization.
评论: 10 pages + 5 pages in appendix
主题: 计算与语言 (cs.CL); 形式语言与自动机理论 (cs.FL)
引用方式: arXiv:2410.15696 [cs.CL]
  (或者 arXiv:2410.15696v1 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2410.15696

提交历史

来自:Marco Cognetta
[v1] 2024年10月21日 星期一 07:10:07 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.CL
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-10
切换浏览方式为:
cs
cs.FL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站