arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.05317cs.CLcs.AI
收藏

任务自适应分词:增强心理健康及更广泛领域的长文本生成效能

Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyond

University of Michigan, Ann Arbor(密歇根大学安娜堡分校);Tsinghua University, Beijing(清华大学)

Siyang Liu, Naihao Deng, Sahand Sabour, Yilin Jia, Minlie Huang, Rada Mihalcea

AI总结:

本文提出任务自适应分词方法,通过基于任务数据优化采样概率和构建专用词汇表,显著提升心理健康问答中的长文本生成性能,并减少高达60%的令牌使用。

摘要:

我们提出任务自适应分词,作为一种将生成流程适配到下游任务特性并增强心理健康领域长文本生成的方法。受认知科学见解的启发,我们的任务自适应分词器从多个结果中采样可变分段,采样概率基于任务特定数据进行优化。我们引入了一种构建专用词汇表的策略,并提出一种词汇合并协议,允许将任务特定令牌整合到预训练模型的分词步骤中。通过在中文和英文的心理问答任务上进行大量实验,我们发现我们的任务自适应分词方法在生成性能上带来了显著提升,同时使用的令牌数量减少了多达60%。初步实验表明,将我们的分词方法应用于超大规模语言模型时,展现出有前景的结果。

英文摘要:

We propose task-adaptive tokenization as a way to adapt the generation pipeline to the specifics of a downstream task and enhance long-form generation in mental health. Inspired by insights from cognitive science, our task-adaptive tokenizer samples variable segmentations from multiple outcomes, with sampling probabilities optimized based on task-specific data. We introduce a strategy for building a specialized vocabulary and introduce a vocabulary merging protocol that allows for the integration of task-specific tokens into the pre-trained model's tokenization step. Through extensive experiments on psychological question-answering tasks in both Chinese and English, we find that our task-adaptive tokenization approach brings a significant improvement in generation performance while using up to 60% fewer tokens. Preliminary experiments point to promising results when using our tokenization approach with very large language models.

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

↑