Deep learning has become a popular tool for solving complex problems in a variety of domains. Transformers and the attention mechanism have contributed a lot to this success. We hypothesize that the enhanced predictive capabilities of the attention mechanism can be attributed to higher-order terms in the input. Expanding on this idea and taking inspiration from Taylor Series approximation, we introduce “Taylor layers” as higher order polynomial layers for universal function approximation. We evaluate Taylor layers of second and third order on the task of time series forecasting, comparing them to classical linear layers as well as the attention mechanism. Our results on two commonly used datasets demonstrate that higher expansion orders can improve prediction accuracy given the same amount of trainable model weights. Interpreting higher-order terms as a form of token mixing, we further show that second order (quadratic) Taylor layers can efficiently replace canonical dot-product attention, increasing prediction accuracy while reducing computational requirements.
| Zugehörige Institution am KIT | Scientific Computing Center (SCC) |
|---|---|
| Sprache | englisch |
| KITopen-ID | 1000175300 |
| Verlag | IOS Press |
| ISBN des Proceedingsbands | 978-1-64368-548-9 |
| Serie | Frontiers in Artificial Intelligence and Applications ISSN: 0922-6389 |
| Veranstaltung | 27th/13th European Conference on Artificial Intelligence including Conference on Prestigious Applications of Intelligent Systems (ECAI/PAIS), Santiago de Compostela, Spanien, 19. – 24.10.2024 |
| Nachgewiesen in | Scopus Dimensions OpenAlex |
| HGF-Programm | 46.21.04 (POF IV, LK 01) HAICU |
| Weiteres HGF-Programm | 46.21.01 (POF IV, LK 01) Domain-Specific Simulation & SDLs and Research Groups |