arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.09395cs.LGcs.CVcs.IR
收藏

基于循环神经网络的鲁棒PDF文档转换

Robust PDF Document Conversion Using Recurrent Neural Networks

IBM Research(IBM研究院)

Nikolaos Livathinos, Cesar Berrospi, Maksym Lysak, Viktor Kuropiatnyk, Ahmed Nassar, Andre Carvalho, Michele Dolfi, Christoph Auer, Kasper Dinkla, Peter Staar

摘要:

近几十年来,已发布的PDF文档数量呈指数级增长。越来越需要使它们的丰富内容能够被信息检索工具所检索。在本文中,我们提出了一种新的方法来恢复PDF文档结构,使用循环神经网络直接处理低级别的PDF数据表示,而不是依赖于视觉上的重新解释的渲染PDF页面,已经提出了在以前的文献。我们演示了如何将一系列PDF打印命令作为神经网络的输入,以及网络如何根据页面中的结构功能对每个打印命令进行分类。这种方法有三个优点:首先,它可以区分更细粒度的标签(通常是10-20个标签,而不是视觉方法的1-5个标签),这导致更准确和详细的文档结构解析。其次,与可视化方法相比,它可以更自然地考虑跨页面的文本流,因为它可以连接连续页面的打印命令。最后,我们提出的方法需要更少的内存,它是计算成本低于视觉方法。这使我们能够以更低的成本在生产环境中部署这些模型。通过广泛的架构搜索与高级特征工程相结合,我们能够实现一个模型,该模型在17个不同的结构标签中产生97%的加权平均F1分数。我们实现的最佳模型目前在我们的语料库转换服务(CCS)的生产环境中提供,该服务已在KDD 18(arXiv:1806.02284)上提出。该模型显著增强了CCS的能力,因为它消除了对每个看不见的文档布局的人工注释标签地面实况的需要。当应用于与COVID-19相关的PDF文章的庞大语料库时,这被证明特别有用。

英文摘要:

The number of published PDF documents has increased exponentially in recent decades. There is a growing need to make their rich content discoverable to information retrieval tools. In this paper, we present a novel approach to document structure recovery in PDF using recurrent neural networks to process the low-level PDF data representation directly, instead of relying on a visual re-interpretation of the rendered PDF page, as has been proposed in previous literature. We demonstrate how a sequence of PDF printing commands can be used as input into a neural network and how the network can learn to classify each printing command according to its structural function in the page. This approach has three advantages: First, it can distinguish among more fine-grained labels (typically 10-20 labels as opposed to 1-5 with visual methods), which results in a more accurate and detailed document structure resolution. Second, it can take into account the text flow across pages more naturally compared to visual methods because it can concatenate the printing commands of sequential pages. Last, our proposed method needs less memory and it is computationally less expensive than visual methods. This allows us to deploy such models in production environments at a much lower cost. Through extensive architectural search in combination with advanced feature engineering, we were able to implement a model that yields a weighted average F1 score of 97% across 17 distinct structural labels. The best model we achieved is currently served in production environments on our Corpus Conversion Service (CCS), which was presented at KDD18 (arXiv:1806.02284). This model enhances the capabilities of CCS significantly, as it eliminates the need for human annotated label ground-truth for every unseen document layout. This proved particularly useful when applied to a huge corpus of PDF articles related to COVID-19.

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

↑