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

LLMs与用户定义提示作为通用数据操作符用于可靠数据处理

LLMs with User-defined Prompts as Generic Data Operators for Reliable Data Processing

Walmart Global Tech(沃尔玛全球技术)

Luyi Ma, Nikhil Thakurdesai, Jiao Chen, Jianpeng Xu, Evren Korpeoglu, Sushant Kumar, Kannan Achan

AI总结:

本文提出LLM-GDO设计模式,用用户定义提示替代编程实现,使LLMs作为通用数据操作符,实现低代码、无依赖、知识感知的可靠数据处理。

摘要:

数据处理是机器学习流水线中确保数据质量的基本步骤之一。大多数应用在数据库数据处理中采用用户定义函数(UDF)设计模式。尽管UDF设计模式引入了灵活性、可重用性和可扩展性,但对机器学习流水线日益增长的需求给这种设计模式带来了三个新挑战——非低代码、非无依赖性和非知识感知。为应对这些挑战,我们提出了一种新的设计模式,即大型语言模型(LLMs)可以作为通用数据操作符(LLM-GDO),凭借其与人类相当的性能,用于可靠的数据清洗、转换和建模。在LLM-GDO设计模式中,用户定义提示(UDPs)被用来表示数据处理逻辑,而非用特定编程语言实现。LLMs可以集中维护,因此用户无需在运行时管理依赖关系。使用领域特定数据对LLMs进行微调可以增强其在领域特定任务上的性能,从而使数据处理具备知识感知能力。我们通过不同数据处理任务中的示例说明了这些优势。此外,我们总结了LLMs带来的挑战和机遇,以提供对该设计模式的完整视角,供进一步讨论。

英文摘要:

Data processing is one of the fundamental steps in machine learning pipelines to ensure data quality. Majority of the applications consider the user-defined function (UDF) design pattern for data processing in databases. Although the UDF design pattern introduces flexibility, reusability and scalability, the increasing demand on machine learning pipelines brings three new challenges to this design pattern -- not low-code, not dependency-free and not knowledge-aware. To address these challenges, we propose a new design pattern that large language models (LLMs) could work as a generic data operator (LLM-GDO) for reliable data cleansing, transformation and modeling with their human-compatible performance. In the LLM-GDO design pattern, user-defined prompts (UDPs) are used to represent the data processing logic rather than implementations with a specific programming language. LLMs can be centrally maintained so users don't have to manage the dependencies at the run-time. Fine-tuning LLMs with domain-specific data could enhance the performance on the domain-specific tasks which makes data processing knowledge-aware. We illustrate these advantages with examples in different data processing tasks. Furthermore, we summarize the challenges and opportunities introduced by LLMs to provide a complete view of this design pattern for more discussions.

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

↑