Enhancing LLM Character-Level Manipulation via Divide and Conquer

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xiong, Zhen, Cai, Yujun, Hooi, Bryan, Peng, Nanyun, Li, Zhecheng, Wang, Yiwei
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913761914257408
author Xiong, Zhen
Cai, Yujun
Hooi, Bryan
Peng, Nanyun
Li, Zhecheng
Wang, Yiwei
author_facet Xiong, Zhen
Cai, Yujun
Hooi, Bryan
Peng, Nanyun
Li, Zhecheng
Wang, Yiwei
contents Large Language Models (LLMs) have demonstrated strong generalization capabilities across a wide range of natural language processing (NLP) tasks. However, they exhibit notable weaknesses in character-level string manipulation, struggling with fundamental operations such as character deletion, insertion, and substitution. These challenges stem primarily from tokenization constraints, despite the critical role of such operations in data preprocessing and code generation. Through systematic analysis, we derive two key insights: (1) LLMs face significant difficulties in leveraging intrinsic token knowledge for character-level reasoning, and (2) atomized word structures can substantially enhance LLMs' ability to process token-level structural information. Building on these insights, we propose Character-Level Manipulation via Divide and Conquer, a novel approach designed to bridge the gap between token-level processing and character-level manipulation. Our method decomposes complex operations into explicit character-level subtasks coupled with controlled token reconstruction phases, leading to significant improvements in accuracy. Without additional training, our method significantly improves accuracies on the $\texttt{Deletion}$, $\texttt{Insertion}$, and $\texttt{Substitution}$ tasks. To support further research, we open-source our implementation and benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2502_08180
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing LLM Character-Level Manipulation via Divide and Conquer
Xiong, Zhen
Cai, Yujun
Hooi, Bryan
Peng, Nanyun
Li, Zhecheng
Wang, Yiwei
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) have demonstrated strong generalization capabilities across a wide range of natural language processing (NLP) tasks. However, they exhibit notable weaknesses in character-level string manipulation, struggling with fundamental operations such as character deletion, insertion, and substitution. These challenges stem primarily from tokenization constraints, despite the critical role of such operations in data preprocessing and code generation. Through systematic analysis, we derive two key insights: (1) LLMs face significant difficulties in leveraging intrinsic token knowledge for character-level reasoning, and (2) atomized word structures can substantially enhance LLMs' ability to process token-level structural information. Building on these insights, we propose Character-Level Manipulation via Divide and Conquer, a novel approach designed to bridge the gap between token-level processing and character-level manipulation. Our method decomposes complex operations into explicit character-level subtasks coupled with controlled token reconstruction phases, leading to significant improvements in accuracy. Without additional training, our method significantly improves accuracies on the $\texttt{Deletion}$, $\texttt{Insertion}$, and $\texttt{Substitution}$ tasks. To support further research, we open-source our implementation and benchmarks.
title Enhancing LLM Character-Level Manipulation via Divide and Conquer
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.08180