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

PAT:用于关系数据库错误检测的模式感知 Transformer

PAT: Pattern-Perceptive Transformer for Error Detection in Relational Databases

Harbin Institute of Technology, China(哈尔滨工业大学);Shanxi University, China(山西大学)

Jian Fu, Xixian Han, Xiaolong Wan, Wenjian Wang

AI总结:

本文提出按属性构建的 PAT 框架,通过学习型模式模块与 QTA 分词器融合共享数据特征和属性专属模式,以更少参数和 FLOPs 提升关系数据库错误检测的 F1 性能。

摘要:

关系数据库中的错误检测对于维护数据质量至关重要,也是数据清洗和评估等任务的基础。当前的错误检测研究大多采用多检测器方法来处理数据库中的异构属性,导致成本高昂。此外,其数据预处理策略未能利用数据序列的变长特性,从而降低了准确性。本文提出了一种按属性构建的模式感知 Transformer(PAttern-perceptive Transformer,PAT)框架,用于关系数据库中的错误检测。首先,PAT 引入学习型模式模块,在模型训练过程中通过学习到的嵌入捕获特定属性的数据分布。其次,设计了准 Token 排列(Quasi-Tokens Arrangement,QTA)分词器,根据单元格序列的长度和词类型对其进行划分,进而生成词自适应数据 Token,同时提供紧凑的超参数以保证效率。通过将数据 Token 与特定属性的模式 Token 交错排列,PAT 联合学习不同属性间共享的数据特征,以及在每个指定属性中可区分且独特的模式特征。第三,PAT 通过可视化注意力图来解释其错误检测机制。大量实验表明,与最先进的数据错误检测方法相比,PAT 取得了优异的 F1 分数。此外,在应用紧凑的 QTA 分词器时,PAT 显著减少了模型参数和 FLOPs。

英文摘要:

Error detection in relational databases is critical for maintaining data quality and is fundamental to tasks such as data cleaning and assessment. Current error detection studies mostly employ the multi-detector approach to handle heterogeneous attributes in databases, incurring high costs. Additionally, their data preprocessing strategies fail to leverage the variable-length characteristic of data sequences, resulting in reduced accuracy. In this paper, we propose an attribute-wise PAttern-perceptive Transformer (PAT) framework for error detection in relational databases. First, PAT introduces a learned pattern module that captures attribute-specific data distributions through learned embeddings during model training. Second, the Quasi-Tokens Arrangement (QTA) tokenizer is designed to divide the cell sequence based on its length and word types, and then generate the word-adaptive data tokens, meanwhile providing compact hyperparameters to ensure efficiency. By interleaving data tokens with the attribute-specific pattern tokens, PAT jointly learns shared data features across different attributes and pattern features that are distinguishable and unique in each specified attribute. Third, PAT visualizes the attention map to interpret its error detection mechanism. Extensive experiments show that PAT achieves excellent F1 scores compared to state-of-the-art data error detection methods. Moreover, PAT significantly reduces the model parameters and FLOPs when applying the compact QTA tokenizer.

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

↑