Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characters

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hiraoka, Tatsuya, Inui, Kentaro
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908405805875200
author Hiraoka, Tatsuya
Inui, Kentaro
author_facet Hiraoka, Tatsuya
Inui, Kentaro
contents Large language models (LLMs) can spell out tokens character by character with high accuracy, yet they struggle with more complex character-level tasks, such as identifying compositional subcomponents within tokens. In this work, we investigate how LLMs internally represent and utilize character-level information during the spelling-out process. Our analysis reveals that, although spelling out is a simple task for humans, it is not handled in a straightforward manner by LLMs. Specifically, we show that the embedding layer does not fully encode character-level information, particularly beyond the first character. As a result, LLMs rely on intermediate and higher Transformer layers to reconstruct character-level knowledge, where we observe a distinct "breakthrough" in their spelling behavior. We validate this mechanism through three complementary analyses: probing classifiers, identification of knowledge neurons, and inspection of attention weights.
format Preprint
id arxiv_https___arxiv_org_abs_2506_10641
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characters
Hiraoka, Tatsuya
Inui, Kentaro
Computation and Language
Large language models (LLMs) can spell out tokens character by character with high accuracy, yet they struggle with more complex character-level tasks, such as identifying compositional subcomponents within tokens. In this work, we investigate how LLMs internally represent and utilize character-level information during the spelling-out process. Our analysis reveals that, although spelling out is a simple task for humans, it is not handled in a straightforward manner by LLMs. Specifically, we show that the embedding layer does not fully encode character-level information, particularly beyond the first character. As a result, LLMs rely on intermediate and higher Transformer layers to reconstruct character-level knowledge, where we observe a distinct "breakthrough" in their spelling behavior. We validate this mechanism through three complementary analyses: probing classifiers, identification of knowledge neurons, and inspection of attention weights.
title Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characters
topic Computation and Language
url https://arxiv.org/abs/2506.10641