Document layout comprises both structural and visual (eg. font-sizes) information that is vital but often ignored by machine learning models. The few existing models which do use layout information only consider textual contents, and overlook the existence of contents in other modalities such as images. Additionally, spatial interactions of presented contents in a layout were never really fully exploited. To bridge this gap, we parse a document into content blocks (eg. text, table, image) and propose a novel layout-aware multimodal hierarchical framework, LAMPreT, to model the blocks and the whole document. Our LAMPreT encodes each block with a multimodal transformer in the lower-level and aggregates the block-level representations and connections utilizing a specifically designed transformer at the higher-level. We design hierarchical pretraining objectives where the lower-level model is trained similarly to multimodal grounding models, and the higher-level model is trained with our proposed novel layout-aware objectives. We evaluate the proposed model on two layout-aware tasks -- text block filling and image suggestion and show the effectiveness of our proposed hierarchical architecture as well as pretraining techniques.
翻译:文件布局既包括结构信息(如字体大小),也包括结构信息和视觉信息(如字体大小),这种信息至关重要,但往往被机器学习模式所忽视。使用布局信息的少数现有模式只考虑文本内容,忽视了其他模式中的内容,例如图像。此外,布局中显示的内容的空间互动从未真正得到充分利用。为了缩小这一差距,我们将一份文件分析成内容块(如文本、表格、图像),并提议一个具有新颖版版布局的多式联运等级框架(LAMPreT)来模拟区块和整个文件。我们的LAMPreT在较低层次用多式联运变压器对每个区块进行编码,并在较高层次使用专门设计的变压器汇总区块表示和连接。我们设计了等级前训练目标,低级模型在其中受到类似于多式联运地基模型的培训,而高级模型则以我们拟议的新版布局认识目标(LAMPreT)来进行示范。我们评价了拟议的两个布局-文字填充格和图像建议,并显示我们拟议的等级结构的有效性以及培训前技术。