arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.03005cs.DB
收藏

基于模式发现的字符串数据自动验证

Automatic String Data Validation with Pattern Discovery

Xinwei Lin, Jing Zhao, Peng Di, Chuan Xiao, Rui Mao, Yan Ji, Makoto Onizuka, Zishuo Ding, Weiyi Shang, Jianbin Qin

AI总结:

针对企业数据管道中半结构化字符串数据的质量问题,提出带模式发现、增量更新与示例泛化的自验证系统,可高效检测错误并在工业场景中帮助工程师快速定位问题。

摘要:

在企业数据管道中,数据插入会周期性发生,若数据质量问题未得到处理,可能影响下游服务。通常,此类问题可由值班工程师排查并修复,但定位问题原因并修正错误往往非常耗时。因此,自动数据验证是保护系统和下游服务的更优方案,它能够尽早发现错误,并提供详细的错误信息以加快解决。本文提出了一种自验证数据管理系统,利用自动模式发现技术来验证企业数据管道中半结构化字符串数据的正确性。我们的方案从历史数据中提取模式,并以自顶向下的方式检测传入的错误数据。系统首先分析历史数据的高层信息,以发现正确取值的格式骨架;随后提取细粒度语义模式,在所发现模式的泛化性与具体性之间取得平衡,从而在避免过拟合的同时覆盖尽可能多的正确取值。为应对冷启动和数据快速增长问题,我们提出了增量更新策略和示例泛化策略。在大规模工业数据集和公共数据集上的实验表明,与替代方案相比,我们的方法兼具有效性和高效性。此外,在一个拥有数千个应用的工业平台(蚂蚁集团)上开展的案例研究表明,我们的系统能够在日常运营中捕获有意义的数据模式,并帮助工程师快速识别错误。

英文摘要:

In enterprise data pipelines, data insertions occur periodically and may impact downstream services if data quality issues are not addressed. Typically, such problems can be investigated and fixed by on-call engineers, but locating the cause of such problems and fixing errors are often time-consuming. Therefore, automatic data validation is a better solution to defend the system and downstream services by enabling early detection of errors and providing detailed error messages for quick resolution. This paper proposes a self-validate data management system with automatic pattern discovery techniques to verify the correctness of semi-structural string data in enterprise data pipelines. Our solution extracts patterns from historical data and detects erroneous incoming data in a top-down fashion. High-level information of historical data is analyzed to discover the format skeleton of correct values. Fine-grained semantic patterns are then extracted to strike a balance between generalization and specification of the discovered pattern, thus covering as many correct values as possible while avoiding over-fitting. To tackle cold start and rapid data growth, we propose an incremental update strategy and example generalization strategy. Experiments on large-scale industrial and public datasets demonstrate the effectiveness and efficiency of our method compared to alternative solutions. Furthermore, a case study on an industrial platform (Ant Group Inc.) with thousands of applications shows that our system captures meaningful data patterns in daily operations and helps engineers quickly identify errors.

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

↑