StringLLM:理解大型语言模型的字符串处理能力
StringLLM: Understanding the String Processing Capability of Large Language Models
AI总结:
本文提出StringLLM方法构建了字符串处理基准数据集StringBench,系统评估发现LLMs在字符串处理上不如人类,并通过深入分析提出微调方法显著提升了其处理能力。
摘要:
字符串处理主要涉及字符串的分析与操作,是现代计算的基础组件。尽管大型语言模型(LLMs)在各种自然语言处理(NLP)任务中取得了显著进展,但它们在字符串处理方面的能力仍未得到充分探索与开发。为弥补这一空白,我们对LLMs的字符串处理能力进行了全面研究。具体而言,我们首先提出了StringLLM,这是一种用于构建数据集以对LLMs的字符串处理能力进行基准测试的方法。我们使用StringLLM构建了一系列数据集,称为StringBench。它涵盖了广泛的字符串处理任务,使我们能够系统地评估LLMs在该领域的表现。我们的评估表明,与人类相比,LLMs难以准确处理字符串。为了揭示造成这一局限性的潜在原因,我们进行了深入分析,随后提出了一种有效的方法,通过微调显著增强了LLMs的字符串处理能力。这项工作为未来研究理解LLMs的字符串处理能力奠定了基础。我们的代码和数据可在https://github.com/wxl-lxw/StringLLM获取。
英文摘要:
String processing, which mainly involves the analysis and manipulation of strings, is a fundamental component of modern computing. Despite the significant advancements of large language models (LLMs) in various natural language processing (NLP) tasks, their capability in string processing remains underexplored and underdeveloped. To bridge this gap, we present a comprehensive study of LLMs' string processing capability. In particular, we first propose StringLLM, a method to construct datasets for benchmarking string processing capability of LLMs. We use StringLLM to build a series of datasets, referred to as StringBench. It encompasses a wide range of string processing tasks, allowing us to systematically evaluate LLMs' performance in this area. Our evaluations indicate that LLMs struggle with accurately processing strings compared to humans. To uncover the underlying reasons for this limitation, we conduct an in-depth analysis and subsequently propose an effective approach that significantly enhances LLMs' string processing capability via fine-tuning. This work provides a foundation for future research to understand LLMs' string processing capability. Our code and data are available at https://github.com/wxl-lxw/StringLLM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。