Saved in:
Bibliographic Details
Main Authors: Zhang, Zihong, He, Liqi, Li, Zuchao, Zhang, Lefei, Zhao, Hai, Du, Bo
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.19631
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913859486351360
author Zhang, Zihong
He, Liqi
Li, Zuchao
Zhang, Lefei
Zhao, Hai
Du, Bo
author_facet Zhang, Zihong
He, Liqi
Li, Zuchao
Zhang, Lefei
Zhao, Hai
Du, Bo
contents Word segmentation stands as a cornerstone of Natural Language Processing (NLP). Based on the concept of "comprehend first, segment later", we propose a new framework to explore the limit of unsupervised word segmentation with Large Language Models (LLMs) and evaluate the semantic understanding capabilities of LLMs based on word segmentation. We employ current mainstream LLMs to perform word segmentation across multiple languages to assess LLMs' "comprehension". Our findings reveal that LLMs are capable of following simple prompts to segment raw text into words. There is a trend suggesting that models with more parameters tend to perform better on multiple languages. Additionally, we introduce a novel unsupervised method, termed LLACA ($\textbf{L}$arge $\textbf{L}$anguage Model-Inspired $\textbf{A}$ho-$\textbf{C}$orasick $\textbf{A}$utomaton). Leveraging the advanced pattern recognition capabilities of Aho-Corasick automata, LLACA innovatively combines these with the deep insights of well-pretrained LLMs. This approach not only enables the construction of a dynamic $n$-gram model that adjusts based on contextual information but also integrates the nuanced understanding of LLMs, offering significant improvements over traditional methods. Our source code is available at https://github.com/hkr04/LLACA
format Preprint
id arxiv_https___arxiv_org_abs_2505_19631
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Segment First or Comprehend First? Explore the Limit of Unsupervised Word Segmentation with Large Language Models
Zhang, Zihong
He, Liqi
Li, Zuchao
Zhang, Lefei
Zhao, Hai
Du, Bo
Computation and Language
Artificial Intelligence
Word segmentation stands as a cornerstone of Natural Language Processing (NLP). Based on the concept of "comprehend first, segment later", we propose a new framework to explore the limit of unsupervised word segmentation with Large Language Models (LLMs) and evaluate the semantic understanding capabilities of LLMs based on word segmentation. We employ current mainstream LLMs to perform word segmentation across multiple languages to assess LLMs' "comprehension". Our findings reveal that LLMs are capable of following simple prompts to segment raw text into words. There is a trend suggesting that models with more parameters tend to perform better on multiple languages. Additionally, we introduce a novel unsupervised method, termed LLACA ($\textbf{L}$arge $\textbf{L}$anguage Model-Inspired $\textbf{A}$ho-$\textbf{C}$orasick $\textbf{A}$utomaton). Leveraging the advanced pattern recognition capabilities of Aho-Corasick automata, LLACA innovatively combines these with the deep insights of well-pretrained LLMs. This approach not only enables the construction of a dynamic $n$-gram model that adjusts based on contextual information but also integrates the nuanced understanding of LLMs, offering significant improvements over traditional methods. Our source code is available at https://github.com/hkr04/LLACA
title Segment First or Comprehend First? Explore the Limit of Unsupervised Word Segmentation with Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.19631