Reasoning is Periodicity? Improving Large Language Models Through Effective Periodicity Modeling

Yi Dong, Ge Li, Xue Jiang, Yong-Ding Tao, Kechi Zhang +7 more
2/1/2025
3 citations
transformer-attention

Official code: YihongDong/FANformer (41 stars, Python, MIT, last commit 2026-03-25).

Abstract

Periodicity, as one of the most important basic characteristics, lays the foundation for facilitating structured knowledge acquisition and systematic cognitive processes within human learning paradigms. However, the potential flaws of periodicity modeling in Transformer affect the learning efficiency and establishment of underlying principles from data for large language models (LLMs) built upon it.

Show full abstract

In this paper, we demonstrate that integrating effective periodicity modeling can improve the learning efficiency and performance of LLMs. We introduce FANformer, which adapts Fourier Analysis Network (FAN) into attention mechanism to achieve efficient periodicity modeling, by modifying the feature projection process of attention mechanism. Extensive experimental results on language modeling show that FANformer consistently outperforms Transformer when scaling up model size and training tokens, underscoring its superior learning efficiency. Our pretrained FANformer-1B exhibits marked improvements on downstream tasks compared to open-source LLMs with similar model parameters or training tokens. Moreover, we reveal that FANformer exhibits superior ability to learn and apply rules for reasoning compared to Transformer. The results position FANformer as an effective and promising architecture for advancing LLMs.

View on arXivView PDF

Code Implementations(1)

MIT
414Python, Jupyter NotebookMar 3, 20258 months agoMIT

Similar Papers

Cite this paper

@article{dong2025reasoning,
  title  = {Reasoning is Periodicity? Improving Large Language Models Through Effective Periodicity Modeling},
  author = {Yi Dong and Ge Li and Xue Jiang and Yong-Ding Tao and Kechi Zhang and Lecheng Wang and Hao Zhu and Huan-Yu Liu and Jiazheng Ding and Jia Li and Jin-Liang Deng and Hong Mei},
  year   = {2025},
  eprint = {2502.21309},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-5290},
  url    = {https://doi.org/10.52202/085713-5290},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.21309.svg)](https://codeofpaper.com/paper/2502.21309)

Discussion