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

RoTHP: 基于旋转位置编码的Transformer Hawkes过程

RoTHP: Rotary Position Embedding-based Transformer Hawkes Process

Shenzhen Research Institute of Big Data(深圳大数据研究院)

Anningzhe Gao, Shan Dai

AI总结:

针对传统Transformer Hawkes过程(THP)存在的序列预测问题及正弦嵌入对时间变化敏感的缺陷,提出基于旋转位置编码的RoTHP架构,理论证明其平移不变性与预测灵活性,实验验证其在时间戳平移场景和序列预测任务中泛化性更优。

摘要:

时间点过程(Temporal Point Processes, TPPs),尤其是Hawkes过程,常用于对金融交易、社交网络用户行为等异步事件序列数据建模。由于神经网络强大的拟合能力,各类神经时间点过程被提出,其中基于自注意力的神经Hawkes过程(如Transformer Hawkes Process, THP)实现了显著的性能提升。尽管THP的研究日益增多,但它仍存在序列预测问题,即在历史序列上训练并对未来进行推理,这是现实序列分析任务中普遍存在的范式。此外,传统THP及其变体仅采用Transformer中的初始正弦嵌入,我们的实证研究表明,在序列数据分析中,该嵌入对时间变化或噪声存在性能敏感性。为解决这些问题,本文提出了一种新的基于旋转位置编码的THP(RoTHP)架构。值得注意的是,我们从理论上证明了,当与Hawkes过程结合时,由相对时间编码带来的RoTHP具有平移不变性和序列预测灵活性。此外,我们通过实验证明,RoTHP在存在时间戳平移的序列数据场景以及序列预测任务中具有更好的泛化能力。

英文摘要:

Temporal Point Processes (TPPs), especially Hawkes Process are commonly used for modeling asynchronous event sequences data such as financial transactions and user behaviors in social networks. Due to the strong fitting ability of neural networks, various neural Temporal Point Processes are proposed, among which the Neural Hawkes Processes based on self-attention such as Transformer Hawkes Process (THP) achieve distinct performance improvement. Although the THP has gained increasing studies, it still suffers from the {sequence prediction issue}, i.e., training on history sequences and inferencing about the future, which is a prevalent paradigm in realistic sequence analysis tasks. What's more, conventional THP and its variants simply adopt initial sinusoid embedding in transformers, which shows performance sensitivity to temporal change or noise in sequence data analysis by our empirical study. To deal with the problems, we propose a new Rotary Position Embedding-based THP (RoTHP) architecture in this paper. Notably, we show the translation invariance property and {sequence prediction flexibility} of our RoTHP induced by the {relative time embeddings} when coupled with Hawkes process theoretically. Furthermore, we demonstrate empirically that our RoTHP can be better generalized in sequence data scenarios with timestamp translations and in sequence prediction tasks.

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

↑