[论文解读] Domain Adaptation for Time Series Forecasting via Attention Sharing
本文提出领域自适应预测器(DAF),一种新颖的基于注意力机制的深度学习框架,通过在源域和目标域之间共享查询和键来学习领域不变表示,同时保持值的领域特异性,从而在数据稀缺条件下提升时间序列预测性能。DAF在合成数据集和真实世界数据集上均显著优于最先进基线方法,尤其在跨具有不同特征或频率的领域迁移时表现更优。
Recently, deep neural networks have gained increasing popularity in the field of time series forecasting. A primary reason for their success is their ability to effectively capture complex temporal dynamics across multiple related time series. The advantages of these deep forecasters only start to emerge in the presence of a sufficient amount of data. This poses a challenge for typical forecasting problems in practice, where there is a limited number of time series or observations per time series, or both. To cope with this data scarcity issue, we propose a novel domain adaptation framework, Domain Adaptation Forecaster (DAF). DAF leverages statistical strengths from a relevant domain with abundant data samples (source) to improve the performance on the domain of interest with limited data (target). In particular, we use an attention-based shared module with a domain discriminator across domains and private modules for individual domains. We induce domain-invariant latent features (queries and keys) and retrain domain-specific features (values) simultaneously to enable joint training of forecasters on source and target domains. A main insight is that our design of aligning keys allows the target domain to leverage source time series even with different characteristics. Extensive experiments on various domains demonstrate that our proposed method outperforms state-of-the-art baselines on synthetic and real-world datasets, and ablation studies verify the effectiveness of our design choices.
研究动机与目标
- 解决时间序列预测中的数据稀缺问题,即目标领域数据有限导致模型性能受限。
- 克服时间序列预测中的领域偏移问题,即源域与目标域之间存在分布差异。
- 设计一种深度学习架构,联合利用丰富的源域数据和有限的目标域数据,以提升预测准确性。
- 实现在源域数据丰富而目标域数据稀缺的情况下,即使领域在频率或特征上存在差异,也能实现有效的迁移学习。
- 确保模型能够捕捉到时间序列中的领域不变动态(通过共享查询/键)和领域特异性模式(通过私有值)。
提出的方法
- 提出一种跨领域注意力机制,通过在源域和目标域之间共享查询和键,以诱导领域不变表示。
- 使用领域特异的私有编码器提取领域依赖特征,同时保持值不共享,以保留领域特异性模式。
- 引入领域判别器,对共享注意力模块进行对抗性训练,以促进跨领域查询和键分布的一致性。
- 使用联合损失函数(结合预测损失与领域对抗损失)端到端训练整个模型。
- 应用降维技术(如t-SNE)可视化并验证跨领域查询和键分布的一致性。
- 采用多头注意力机制,共享查询和键的注意力头,同时为每个领域保持独立的值投影。
实验结果
研究问题
- RQ1基于注意力的模型能否在时间序列预测中有效实现从数据丰富的源领域到数据稀缺的目标领域的知识迁移?
- RQ2仅共享查询和键(而保持值私有)是否比共享值或完全不共享更优?
- RQ3所提出的领域判别器在对具有不同时间特性的领域之间对齐潜在表示方面有多有效?
- RQ4该模型能否在频率不同的领域之间实现泛化,例如从交通的每日模式迁移到销售的每周模式?
- RQ5查询共享、键共享和值共享对整体预测性能的相对贡献如何?
主要发现
- 在合成数据集上,DAF优于所有单领域基线方法和最先进领域自适应方法,其中在traf→elec任务上MAE为16.8%,在elec→traf任务上为11.9%。
- 在真实世界数据集上,DAF在wiki→sales任务上实现4.1%的MAE,在sales→wiki任务上为28.0%,显著优于RDA及其他跨领域方法。
- 消融实验表明,同时共享查询和键(no-adv基线)相比完全不共享任一项,平均提升0.004 MAE。
- 共享值的变体(v-share)表现最差,证实领域特异性值对准确的领域依赖预测至关重要。
- 使用t-SNE对潜在特征的可视化结果表明,DAF成功对齐了跨领域的查询和键分布,而非对抗性变体(no-adv)则未能实现此目标。
- 即使在从不同频率的源领域迁移(如从每小时交通数据到每日销售数据)时,DAF仍能有效泛化,展现出对领域偏移的强鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。