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

第一步最难:大型语言模型中时间数据的表示与分词陷阱

The first step is the hardest: Pitfalls of Representing and Tokenizing Temporal Data for Large Language Models

Nokia Bell Labs(诺基亚贝尔实验室)

Dimitris Spathis, Fahim Kawsar

AI总结:

本文揭示了大型语言模型在处理数值和时间数据时因分词器设计缺陷导致无法捕捉时间关系的问题,并通过案例研究提出了利用轻量级嵌入层提示微调与多模态适配器来弥合模态鸿沟的解决方案。

摘要:

大型语言模型(LLMs)在多样化任务中展现出卓越的泛化能力,促使人们越来越多地将其用作个人助理和通用计算引擎。然而,在向这些模型输入数值/时间数据(如来自可穿戴设备或电子健康记录的数据)时,出现了显著的障碍。LLMs在输入端采用分词器将文本分解为更小的单元。但是,分词器并非为表示数值而设计,可能难以理解重复模式与上下文,将连续的数值视为独立的词元并忽略其时间关系。在此,我们讨论了近期将LLMs用于移动健康感知等以人为中心任务的研究,并展示了一项案例研究,表明流行的LLMs对时间数据的分词是错误的。为解决这一问题,我们强调了轻量级嵌入层的提示微调以及多模态适配器等潜在解决方案,这有助于弥合这一“模态鸿沟”。尽管语言模型在极少或无需微调的情况下泛化到其他模态的能力令人振奋,但本文强调了一个事实:如果它们在输入细节上栽跟头,其输出将毫无意义。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable generalization across diverse tasks, leading individuals to increasingly use them as personal assistants and universal computing engines. Nevertheless, a notable obstacle emerges when feeding numerical/temporal data into these models, such as data sourced from wearables or electronic health records. LLMs employ tokenizers in their input that break down text into smaller units. However, tokenizers are not designed to represent numerical values and might struggle to understand repetitive patterns and context, treating consecutive values as separate tokens and disregarding their temporal relationships. Here, we discuss recent works that employ LLMs for human-centric tasks such as in mobile health sensing and present a case study showing that popular LLMs tokenize temporal data incorrectly. To address that, we highlight potential solutions such as prompt tuning with lightweight embedding layers as well as multimodal adapters, that can help bridge this "modality gap". While the capability of language models to generalize to other modalities with minimal or no finetuning is exciting, this paper underscores the fact that their outputs cannot be meaningful if they stumble over input nuances.

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

↑