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

ORIGAMI:一种用于从半结构化数据进行预测的生成式 transformer 架构

ORIGAMI: A generative transformer architecture for predictions from semi-structured data

MongoDB, Inc.(MongoDB公司)

Thomas Rückstieß, Alana Huang, Robin Vujanic

AI总结:

本文提出基于transformer的ORIGAMI架构,通过结构保留分词器、键/值位置编码和语法约束框架直接处理半结构化数据,将分类转为下一token预测,在多领域基准上表现优异且无需架构修改即可处理多标签任务。

摘要:

尽管诸如 JSON 之类的半结构化数据格式广受欢迎且被广泛使用,但直接应用于此类数据的端到端监督学习仍未被充分探索。我们提出了 ORIGAMI(基于生成式自回归建模的对象表示),这是一种基于 transformer 的架构,能够直接处理嵌套的键/值对,同时保留其层级语义。我们的主要技术贡献包括:(1) 一种保留结构的分词器,(2) 一种新颖的键/值位置编码方案,以及 (3) 一个受语法约束的训练和推理框架,该框架可确保输出有效并加速训练收敛。这些增强功能实现了对半结构化数据的高效端到端建模。通过将分类重新表述为下一 token 预测,ORIGAMI 无需修改架构即可自然地处理单标签和多标签任务。跨多个领域的实证评估证明了 ORIGAMI 的有效性:在转换为 JSON 的标准表格基准上,ORIGAMI 与经典和最先进的方法保持竞争力。在原生 JSON 数据集上,我们在多标签分类方面优于基线,并在代码分类任务中超越了卷积神经网络和图神经网络等专用模型。通过广泛的消融研究,我们验证了每个架构组件的影响,并将 ORIGAMI 确立为用于半结构化数据端到端学习的稳健框架。

英文摘要:

Despite the popularity and widespread use of semi-structured data formats such as JSON, end-to-end supervised learning applied directly to such data remains underexplored. We present ORIGAMI (Object RepresentatIon via Generative Autoregressive ModellIng), a transformer-based architecture that directly processes nested key/value pairs while preserving their hierarchical semantics. Our key technical contributions include: (1) a structure-preserving tokenizer, (2) a novel key/value position encoding scheme, and (3) a grammar-constrained training and inference framework that ensures valid outputs and accelerates training convergence. These enhancements enable efficient end-to-end modeling of semi-structured data. By reformulating classification as next-token prediction, ORIGAMI naturally handles both single-label and multi-label tasks without architectural modifications. Empirical evaluation across diverse domains demonstrates ORIGAMI's effectiveness: On standard tabular benchmarks converted to JSON, ORIGAMI remains competitive with classical and state-of-the-art approaches. On native JSON datasets, we outperform baselines on multi-label classification and specialized models such as convolutional and graph neural networks on a code classification task. Through extensive ablation studies, we validate the impact of each architectural component and establish ORIGAMI as a robust framework for end-to-end learning on semi-structured data.

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

↑