用傅里叶神经层提升大模型对连续分布的建模能力
Fourier Head: Helping Large Language Models Learn Complex Probability Distributions
- 用傅里叶级数构造可替换线性层的新模块,增强输出连续性
- 在Atari游戏上使决策变压器收益最高提升377%,时序预测提升3.5%
- 适合需要精确建模连续信号的任务,如决策、时序预测
随着大语言模型质量提升,越来越多研究尝试将其用于建模非语言标记。例如,决策变换器将智能体决策问题转化为序列建模任务,使用仅解码器的LLM对Atari代理的动作空间进行建模。然而,当将LLM应用于非语言领域时,离散分桶上的softmax是否能有效捕捉标记的连续结构及复杂分布仍不明确。本文提出一种基于傅里叶级数的神经网络层,可直接替代任意线性层,使输出具有更优的连续结构。我们在合成数据集以及大规模决策和时间序列预测任务上进行了广泛分析,并提供了理论证据表明该层能更好从数据中学习信号,同时忽略高频噪声。所有结果均支持该傅里叶头在底层数据分布具有自然连续性的场景中的有效性。例如,在四个基准Atari游戏中,傅里叶头使决策变压器的回报提升高达377%;在20个训练未见的时间序列基准上,显著提升领先时序基础模型的预测性能3.5%。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。