Saved in:
Bibliographic Details
Main Authors: Wang, Xilong, Fu, Hao, Wang, Jindong, Gong, Neil Zhenqiang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.01208
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909466196180992
author Wang, Xilong
Fu, Hao
Wang, Jindong
Gong, Neil Zhenqiang
author_facet Wang, Xilong
Fu, Hao
Wang, Jindong
Gong, Neil Zhenqiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_01208
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle StringLLM: Understanding the String Processing Capability of Large Language Models
Wang, Xilong
Fu, Hao
Wang, Jindong
Gong, Neil Zhenqiang
Computation and Language
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.
title StringLLM: Understanding the String Processing Capability of Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2410.01208