振荡器就是一切:通过阻尼谐振子进行不规则时间序列建模
Oscillators Are All You Need: Irregular Time Series Modelling via Damped Harmonic Oscillators with Closed-Form Solutions
AI总结:
本文提出利用阻尼谐振子替代传统ODEs,通过正弦基扩展查询,实现不规则时间序列建模,理论证明其具备通用逼近性并提升效率。
摘要:
Transformer通过注意力机制在时间序列建模中表现优异,但其假设均匀时间间隔,难以处理不规则时间序列。Neural Ordinary Differential Equations (NODEs) 通过连续演化轨迹建模隐藏状态,但计算瓶颈由数值求解器导致。本文提出用阻尼谐振子替代NODEs,通过正弦基扩展查询,将注意力建模为共振现象,从而消除数值ODE求解器的计算开销,同时保持表达能力。理论证明该振荡器参数化维持连续时间注意力的通用逼近性,即任何可通过ContiFormer连续键实现的离散注意力矩阵均可被固定振荡模式任意逼近。该方法在不规则时间序列基准上达到最先进的性能,同时速度提升数个数量级。
英文摘要:
Transformers excel at time series modelling through attention mechanisms that capture long-term temporal patterns. However, they assume uniform time intervals and therefore struggle with irregular time series. Neural Ordinary Differential Equations (NODEs) effectively handle irregular time series by modelling hidden states as continuously evolving trajectories. ContiFormers arxiv:2402.10635 combine NODEs with Transformers, but inherit the computational bottleneck of the former by using heavy numerical solvers. This bottleneck can be removed by using a closed-form solution for the given dynamical system - but this is known to be intractable in general! We obviate this by replacing NODEs with a novel linear damped harmonic oscillator analogy - which has a known closed-form solution. We model keys and values as damped, driven oscillators and expand the query in a sinusoidal basis up to a suitable number of modes. This analogy naturally captures the query-key coupling that is fundamental to any transformer architecture by modelling attention as a resonance phenomenon. Our closed-form solution eliminates the computational overhead of numerical ODE solvers while preserving expressivity. We prove that this oscillator-based parameterisation maintains the universal approximation property of continuous-time attention; specifically, any discrete attention matrix realisable by ContiFormer's continuous keys can be approximated arbitrarily well by our fixed oscillator modes. Our approach delivers both theoretical guarantees and scalability, achieving state-of-the-art performance on irregular time series benchmarks while being orders of magnitude faster. Acknowledgement: This work was done in collaboration with Dirac Labs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。