arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13583cs.CL
收藏

LongWanjuan:迈向长文本质量的系统化度量

LongWanjuan: Towards Systematic Measurement for Long Text Quality

School of Computer Science, Fudan University(复旦大学计算机科学学院);Shanghai AI Laboratory(上海人工智能实验室)

Kai Lv, Xiaoran Liu, Qipeng Guo, Hang Yan, Conghui He, Xipeng Qiu, Dahua Lin

AI总结:

本文提出LongWanjuan双语长文本数据集及基于连贯性、衔接性和复杂性的质量度量体系,通过分类长文本并设计数据混合配方,显著提升模型长文本任务性能。

摘要:

训练数据的质量对于增强基础模型的长文本能力至关重要。尽管已有工作通过启发式规则以及基于数据多样性和难度的评估来改进数据质量,但仍缺乏专门针对长文本评估的系统性方法。为填补这一空白,我们的工作通过评估三个基本语言维度——连贯性、衔接性和复杂性——来系统化度量长文本质量。受上述三个维度启发,我们引入了一套用于评估长文本质量的指标,涵盖基于统计的方法和基于预训练语言模型的方法。利用这些指标,我们提出了LongWanjuan,一个专门用于增强语言模型长文本任务训练的双语数据集,规模超过160B token。在LongWanjuan中,我们将长文本分为整体型、聚合型和混沌型三类,从而支持对长文本质量的细粒度分析。此外,我们设计了一种数据混合配方,在LongWanjuan内有策略地平衡不同类型的长文本,显著提升了模型在长文本任务上的性能。代码和数据集可在https://github.com/OpenLMLab/LongWanjuan获取。

英文摘要:

The quality of training data are crucial for enhancing the long-text capabilities of foundation models. Despite existing efforts to refine data quality through heuristic rules and evaluations based on data diversity and difficulty, there's a lack of systematic approaches specifically tailored for assessing long texts. Addressing this gap, our work systematically measures the quality of long texts by evaluating three fundamental linguistic dimensions: coherence, cohesion, and complexity. Drawing inspiration from the aforementioned three dimensions, we introduce a suite of metrics designed to evaluate the quality of long texts, encompassing both statistical and pre-trained language model-based ones. Leveraging these metrics, we present LongWanjuan, a bilingual dataset specifically tailored to enhance the training of language models for long-text tasks with over 160B tokens. In LongWanjuan, we categorize long texts into holistic, aggregated, and chaotic types, enabling a detailed analysis of long-text quality. Furthermore, we devise a data mixture recipe that strategically balances different types of long texts within LongWanjuan, leading to significant improvements in model performance on long-text tasks. The code and dataset are available at https://github.com/OpenLMLab/LongWanjuan.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑