arXiv:2512.15586cs.CL2025-12被引 8

用字节级建模让语言模型更懂代码和生物序列

Bolmo: Byteifying the Next Generation of Language Models

  • 将现有词符模型转为字节级,仅需少量训练
  • 在字符级任务上超越此前字节模型,基准测试不落后
  • 适合需要精细文本理解的科研场景

生成式AI的进展主要依赖于大语言模型(LLMs),这些模型通常以词或词片段作为离散单元(即子词分词)进行处理。然而,子词分词会掩盖细粒度信息,尤其在计算机代码或生物序列等科学数据中,意义依赖于单个字符。此前直接操作文本字节编码的模型虽避免了这一问题,但性能远低于子词模型。本文提出Bolmo,一类完全开源的字节级大语言模型,通过两阶段转换流程,将已有子词模型高效转化为字节级模型,仅需少量额外训练。结果表明,新模型在字符级推理任务上表现优异,且在标准基准上保持竞争力。它们具备实用的推理速度,并能低成本适配原有模型生态。该工作打破了字节级建模长期存在的性能瓶颈,证明了基于原始文本编码的模型可实现高效扩展,同时在需细粒度文本理解的领域具有显著优势。

原文摘要 · Abstract (English)

Recent advances in generative AI have been largely driven by large language models (LLMs), deep neural networks that operate over discrete units called tokens. To represent text, the vast majority of LLMs use words or word fragments as the tokens, known as subword tokenization. Subword tokenization obscures fine-grained information, which is problematic, especially for scientific data - such as computer code or biological sequences - where meaning depends on the individual characters. Models that instead operate directly on the byte encoding of text avoid these limitations, but until now they have lagged behind subword-based models in performance. Here we introduce Bolmo, a family of fully open byte-level LLMs that approach the capabilities of subword-based systems. Using a two-stage conversion procedure, we transform existing subword-based models into byte-level models with minimal additional training. The resulting models outperform prior byte-level approaches and excel on character-level reasoning tasks, while remaining competitive across standard benchmarks. By efficiently processing byte-level information, these models achieve practical inference speeds and can be adapted at low cost using the existing ecosystem around the source LLM. Our results remove a long-standing performance barrier to end-to-end byte-level language modeling, demonstrating that models operating on raw text encodings can scale competitively while offering advantages in domains requiring fine-grained textual understanding.

字节建模代码理解生物序列模型转换

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。