atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FANformer, which injects Fourier Analysis Network periodicity modeling into the attention QKV projections, and shows gains in scaling, pretraining (1B on 1T tokens), and rule-based reasoning over Transformers.

Problem

Transformers have weak periodicity modeling, which hurts learning efficiency and the learning of underlying rules for LLMs.

Approach

Adapts the Fourier Analysis Network (FAN) layer into the attention feature projection (ATF module) so that Q, K, V are computed from a representation containing cos/sin periodic features, with a hyperparameter p setting the periodic proportion; equivalent to standard attention applied to a FAN-transformed input.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace standard Transformer attention with FANformer ATF1B language models · V2 and V3 validation setsPPL: 30.20 -> 29.40; 24.28 -> 23.62Helped
Replace standard Transformer attention with FANformer ATF1B language models · Downstream benchmarksaverage accuracy: 53.10 -> 55.19Helped
Use FANformer architecture rather than OLMo-1B1.1B pretrained LLM using 1T tokens · GSM8Kscore: 8.9 -> 15.7Helped
Use FANformer-1B rather than OLMo-1BULogic reasoning · ULogic (two most challenging levels)accuracy: 0.0 -> 38.2Helped
Use FANformer-1B-SFT rather than OLMo-1B-SFTsupervised fine-tuned LLMs · ToxiGen% Toxic: 2.8 -> 10.4Hurt
Replace the FAN attention layer with an MLP (ablation)FANformer · V2 EvalPPL: 29.40 -> 30.31Hurt
Use two linear transforms for QKV projection instead of FANformer ATF (ablation)FANformer · V2 EvalPPL: 29.40 -> 29.68Hurt
Use the original FAN layer with activation in attention (ablation)FANformer · V2 EvalPPL: 29.40 -> 30.64Hurt
Move FAN periodicity modeling from attention into the FFN (ablation)FANformer · Downstream benchmarksaverage accuracy: 55.19 -> 53.95Hurt
Add activation functions to FANformer attention (ablation)FANformer · Downstream benchmarksaverage accuracy: 55.19 -> 53.61Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Dolma Dolma v1_6-sample tulu-3-sft-olmo-2-mixture ULogic modular addition and linear regression synthetic tasks

Benchmarks: ARC-C ARC-E BoolQ HellaSwag OBQA PIQA SciQ WinoGrande MMLU AlpacaEval ToxiGen TruthfulQA

Metrics: perplexity loss accuracy average accuracy win rate % toxic Lipschitz constant

Baselines: Transformer Transformer+ATM Transformer+ATL OLMo-1B Qwen2.5-1.5B Llama-3.2-1B TinyLlama-v1.1 OpenLLaMA-v2-3B StableLM-v2-3B R1-Distill-Qwen1.5B GPT-4

Builds on: Fourier Analysis Network OLMo FlashAttention SwiGLU

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy