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

用于表格时间序列的分层 Transformer 中的细粒度注意力

Fine-grained Attention in Hierarchical Transformers for Tabular Time-series

EURECOM(欧洲通信学院);Huawei Technologies(华为技术有限公司)

Raphael Azorin, Zied Ben Houidi, Massimo Gallo, Alessandro Finamore, Pietro Michiardi

AI总结:

针对分层 Transformer 难以跨行列学习字段级模式的问题,本文提出 Fieldy,在行级与列级同时进行字段上下文化,并在公开表格时间序列任务上验证其可在不增加模型规模的情况下提升性能。

摘要:

表格数据在许多现实系统中无处不在。特别是时间相关的表格数据,其中各行按时间顺序关联,通常用于记录历史事件,例如金融交易、医疗记录或股票历史。近来,Transformer 架构注意力机制的分层变体已被用于对表格时间序列数据建模。首先,通过计算行(或列)各字段之间的注意力,分别对行(或列)进行编码。随后,让已编码的行(或列)相互参与注意力计算,以对整个表格时间序列建模。尽管这种方法高效,但它限制了注意力粒度,并限制了其在不同行或列之间学习字段级模式的能力。我们通过提出 Fieldy 来迈出解决这一差距的第一步,Fieldy 是一个在行级和列级都对字段进行上下文化的细粒度分层模型。我们使用公开表格时间序列数据集,在回归和分类任务上将我们的方案与最先进模型进行比较。结果表明,结合按行和按列的注意力可以在不增加模型规模的情况下提升性能。代码和数据可在 https://github.com/raphaaal/fieldy 获取。

英文摘要:

Tabular data is ubiquitous in many real-life systems. In particular, time-dependent tabular data, where rows are chronologically related, is typically used for recording historical events, e.g., financial transactions, healthcare records, or stock history. Recently, hierarchical variants of the attention mechanism of transformer architectures have been used to model tabular time-series data. At first, rows (or columns) are encoded separately by computing attention between their fields. Subsequently, encoded rows (or columns) are attended to one another to model the entire tabular time-series. While efficient, this approach constrains the attention granularity and limits its ability to learn patterns at the field-level across separate rows, or columns. We take a first step to address this gap by proposing Fieldy, a fine-grained hierarchical model that contextualizes fields at both the row and column levels. We compare our proposal against state of the art models on regression and classification tasks using public tabular time-series datasets. Our results show that combining row-wise and column-wise attention improves performance without increasing model size. Code and data are available at https://github.com/raphaaal/fieldy.

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

↑