arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.19680cs.CLcs.AI
收藏

指令嵌入:面向任务识别的指令潜在表示

Instruction Embedding: Latent Representations of Instructions Towards Task Identification

School of Computer Science, Beijing Institute of Technology(北京理工大学计算机学院);Xiaohongshu Inc(小红书科技有限公司)

Yiwei Li, Jiayi Shi, Shaoxiong Feng, Peiwen Yuan, Xinglin Wang, Boyuan Pan, Heda Wang, Yao Hu, Kan Li

AI总结:

本文提出指令嵌入概念及基准 IEB,并设计 PIE 方法使表示聚焦任务而非语义,实验证明其在任务识别和下游指令任务中表现优越。

摘要:

指令数据对于提升大语言模型(LLMs)达到人类水平表现的能力至关重要。最近的研究 LIMA 表明,对齐本质上是一个模型利用预训练知识和技能,调整指令的交互风格或格式以解决各种任务的过程。因此,对于指令数据而言,最重要的方面是它所代表的任务,而不是具体的语义和知识信息。指令的潜在表示在一些与指令相关的任务(如数据选择和演示检索)中发挥作用。然而,这些表示通常来源于文本嵌入,包含了影响任务类别表示的总体语义信息。在这项工作中,我们引入了一个新概念——指令嵌入,并构建了指令嵌入基准(Instruction Embedding Benchmark,IEB)用于其训练和评估。随后,我们提出了一种基线方法——基于提示的指令嵌入(Prompt-based Instruction Embedding,PIE),使表示更加关注任务。PIE 与其他嵌入方法在 IEB 上通过两个设计任务进行的评估表明,其在准确识别任务类别方面具有优越性能。此外,指令嵌入在四个下游任务中的应用展示了其在指令相关任务中的有效性和适用性。

英文摘要:

Instruction data is crucial for improving the capability of Large Language Models (LLMs) to align with human-level performance. Recent research LIMA demonstrates that alignment is essentially a process where the model adapts instructions' interaction style or format to solve various tasks, leveraging pre-trained knowledge and skills. Therefore, for instructional data, the most important aspect is the task it represents, rather than the specific semantics and knowledge information. The latent representations of instructions play roles for some instruction-related tasks like data selection and demonstrations retrieval. However, they are always derived from text embeddings, encompass overall semantic information that influences the representation of task categories. In this work, we introduce a new concept, instruction embedding, and construct Instruction Embedding Benchmark (IEB) for its training and evaluation. Then, we propose a baseline Prompt-based Instruction Embedding (PIE) method to make the representations more attention on tasks. The evaluation of PIE, alongside other embedding methods on IEB with two designed tasks, demonstrates its superior performance in accurately identifying task categories. Moreover, the application of instruction embeddings in four downstream tasks showcases its effectiveness and suitability for instruction-related tasks.

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

↑