先分词还是先理解?探索大语言模型在无监督分词上的极限
Segment First or Comprehend First? Explore the Limit of Unsupervised Word Segmentation with Large Language Models
AI总结:
本研究提出“先理解后分词”框架,利用大语言模型进行多语言无监督分词,并创新结合Aho-Corasick自动机提出LLACA方法,显著提升分词性能。
摘要:
分词是自然语言处理(NLP)的基石。基于“先理解,后分词”的概念,我们提出了一个新框架,以探索大语言模型(LLMs)在无监督分词上的极限,并基于分词评估LLMs的语义理解能力。我们使用当前主流的大语言模型对多种语言进行分词,以评估LLMs的“理解力”。我们的研究发现,LLMs能够遵循简单的提示将原始文本切分为单词。有趋势表明,参数更多的模型往往在多种语言上表现更好。此外,我们提出了一种新颖的无监督方法,称为LLACA(大语言模型启发的Aho-Corasick自动机)。利用Aho-Corasick自动机先进的模式识别能力,LLACA创新性地将这些能力与预训练良好的大语言模型的深层洞察相结合。这种方法不仅能够构建一个基于上下文信息动态调整的n-gram模型,还整合了LLMs的细致理解,相比传统方法提供了显著改进。我们的源代码可在https://github.com/hkr04/LLACA获取。
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。