Fourier Head: Helping Large Language Models Learn Complex Probability Distributions
On the map: Offline RL and imitation learning from data → Decision transformers and sequence modeling
Abstract (arXiv)
As the quality of large language models has improved, there has been increased interest in using them to model non-linguistic tokens. For example, the Decision Transformer recasts agentic decision making as a sequence modeling problem, using a decoder-only LLM to model the distribution over the discrete action space for an Atari agent. However, when adapting LLMs to non-linguistic domains, it remains unclear if softmax over discrete bins captures the continuous structure of the tokens and the potentially complex distributions needed for high quality token generation. We introduce a neural network layer, constructed using Fourier series, which we can easily substitute for any linear layer if we want the outputs to have a more continuous structure. We perform extensive analysis on synthetic datasets, as well as on large-scale decision making and time series forecasting tasks. We also provide theoretical evidence that this layer can better learn signal from data while ignoring high-frequency noise. All of our results support the effectiveness of our proposed Fourier head in scenarios where the underlying data distribution has a natural continuous structure. For example, the Fourier head improves a Decision Transformer agent's returns across four benchmark Atari games by as much as 377%, and increases a state-of-the-art times series foundation model's forecasting performance by 3.5% across 20 benchmarks unseen during training.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Decision transformers and sequence modeling, one of 13 directions in Offline RL and imitation learning from data. Builds on 28 of its 43 references that are in the map. First posted on arXiv 29 Oct 2024.
Builds on
28 of 43 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2020Implicit Neural Representations with Periodic Activation Functionscited by 2,214
- 2024Chronos: Learning the Language of Time Seriescited by 712
- 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Modelscited by 680
- 2023A decoder-only foundation model for time-series forecastingcited by 650
- 2023One Fits All:Power General Time Series Analysis by Pretrained LMcited by 615
- 2020Jukebox: A Generative Model for Musiccited by 535
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2023Simple and Controllable Music Generationcited by 480
15 more
- 2023MusicLM: Generating Music From Textcited by 442
- 2024TimeMixer: Decomposable Multiscale Mixing for Time Series Forecastingcited by 333
- 2022Pre-Trained Language Models for Interactive Decision-Makingcited by 220
- 2023Large Language Models as General Pattern Machinescited by 196
- 2024Stop Regressing: Training Value Functions via Classification for Scalable Deep RLcited by 136
- 2021PSLA: Improving Audio Tagging with Pretraining, Sampling, Labeling, and Aggregationcited by 81
- 2024ChatMusician: Understanding and Generating Music Intrinsically with LLMcited by 67
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2024LLM Processes: Numerical Predictive Distributions Conditioned on Natural Languagecited by 54
- 2023Improving Large Language Model Fine-tuning for Solving Math Problemscited by 48
- 2024OmniPred: Language Models as Universal Regressorscited by 34
- 2024What Are the Odds? Language Models Are Capable of Probabilistic Reasoningcited by 25
- 2024Do LLMs Play Dice? Exploring Probability Distribution Sampling in Large Language Models for Behavioral Simulationcited by 14
- 2024Do Music Generation Models Encode Music Theory?cited by 12
- 2024Fourier Basis Density Modelcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 5.
10 papers.
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2025Improving LLM-as-a-Judge Inference with the Judgment Distributioncited by 36
- 2026The Illusion of Stochasticity in LLMscited by 7
- 2025Adaptive Context Length Optimization with Low-Frequency Truncation for Multi-Agent Reinforcement Learningcited by 6
- 2026The Geometric Inductive Bias of Grokking: Bypassing Phase Transitions via Architectural Topologycited by 4
- 2025A Free Probabilistic Framework for Analyzing the Transformer-based Language Modelscited by 1
- 2026D-Models and E-Models: Diversity-Stability Trade-offs in the Sampling Behavior of Large Language Modelscited by 1
- 2025Foundation Model Forecasts: Form and Functioncited by 0
- 2026Text-to-Distribution Prediction with Quantile Tokens and Neighbor Contextcited by 0
- 2026Speaking Numbers to LLMs: Multi-Wavelet Number Embeddings for Time Series Forecastingcited by 0
- 2026Speaking Numbers to LLMs: Multi-Wavelet Number Embeddings for Time Series Forecasting25 Jun 2026
- 2026Text-to-Distribution Prediction with Quantile Tokens and Neighbor Context22 Apr 2026
- 2026The Illusion of Stochasticity in LLMs8 Apr 2026
- 2026The Geometric Inductive Bias of Grokking: Bypassing Phase Transitions via Architectural Topology5 Mar 2026
- 2026D-Models and E-Models: Diversity-Stability Trade-offs in the Sampling Behavior of Large Language Models25 Jan 2026
- 2025Adaptive Context Length Optimization with Low-Frequency Truncation for Multi-Agent Reinforcement Learning30 Oct 2025
- 2025Foundation Model Forecasts: Form and Function22 Oct 2025
- 2025A Free Probabilistic Framework for Analyzing the Transformer-based Language Models19 Jun 2025
- 2025Improving LLM-as-a-Judge Inference with the Judgment Distribution4 Mar 2025
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalization23 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Efficient Sequential Decision Making with Large Language Models
- 2026DecisionLLM: Large Language Models for Long Sequence Decision Exploration
- 2026LLMs as High-Dimensional Nonlinear Autoregressive Models with Attention: Training, Alignment and Inference
- 2023Language Decision Transformers with Exponential Tilt for Interactive Text Environments
- 2025Speed Always Wins: A Survey on Efficient Architectures for Large Language Models
- 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Making
- 2024Controlling Large Language Model Agents with Entropic Activation Steering
- 2025FFN Fusion: Rethinking Sequential Computation in Large Language Models