arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.09572cs.DBcs.AIcs.LG
收藏

预测查询语言:一种用于关系数据库预测建模的领域特定语言

Predictive Query Language: A Domain-Specific Language for Predictive Modeling on Relational Databases

Kumo.ai, Stanford University(Kumo.ai,斯坦福大学)

Vid Kocijan, Jinu Sunil, Jan Eric Lenssen, Viman Deb, Xinwei Xe, Federico Reyes Gomez, Matthias Fey, Jure Leskovec

AI总结:

PQL是一种用于关系数据库预测建模的声明式语言,通过单个查询自动计算训练标签,支持多种机器学习任务,已在金融欺诈、推荐系统等领域应用。

摘要:

关系数据库上的预测建模旨在预测未来或缺失的值,例如用户的未来购买、患者的再入院风险或金融交易的欺诈可能性。通常由机器学习方法驱动,预测模型用于推荐、金融欺诈检测、供应链优化等系统,每天提供数十亿次预测。然而,训练机器学习模型需要手动从数据库中提取所需训练示例——预测实体和目标标签——这过程缓慢、繁琐且容易出错。本文提出预测查询语言(PQL),一种受SQL启发的声明式语言,用于在关系数据库上定义预测任务。PQL允许通过单个声明式查询指定预测任务,使各种机器学习任务(如回归、分类、时间序列预测和推荐系统)的训练标签能够自动计算。PQL已成功集成并应用于预测AI平台中的多个使用案例。通过其众多持续的使用案例,如金融欺诈、物品推荐和工作负载预测,展示了语言的多功能性。我们通过两种实现展示了其多功能性:一种适用于小规模、低延迟使用,另一种可处理大规模数据库。

英文摘要:

The purpose of predictive modeling on relational data is to predict future or missing values in a relational database, for example, future purchases of a user, risk of readmission of the patient, or the likelihood that a financial transaction is fraudulent. Typically powered by machine learning methods, predictive models are used in recommendations, financial fraud detection, supply chain optimization, and other systems, providing billions of predictions every day. However, training a machine learning model requires manual work to extract the required training examples - prediction entities and target labels - from the database, which is slow, laborious, and prone to mistakes. Here, we present the Predictive Query Language (PQL), an SQL-inspired declarative language for defining predictive tasks on relational databases. PQL allows specifying a predictive task in a single declarative query, enabling the automatic computation of training labels for a large variety of machine learning tasks, such as regression, classification, time-series forecasting, and recommender systems. PQL is already successfully integrated and used in a collection of use cases as part of a predictive AI platform. The versatility of the language can be demonstrated through its many ongoing use cases, including financial fraud, item recommendations, and workload prediction. We demonstrate its versatile design through two implementations; one for small-scale, low-latency use and one that can handle large-scale databases.

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

↑