Towards Signal Processing In Large Language Models
Prateek Verma, Mert Pilanci
TL;DR
The paper addresses the lack of explicit signal-processing mechanisms inside LLMs by proposing learnable time-frequency representations of intermediate activations that are filtered and reconstructed under a causal framework. It introduces a learnable front end implemented as a 2-layer CNN with $M=144$ filters and extends it to multi-scale filters, with optional token-adaptive weighting via a small Transformer, all trained end-to-end through next-token prediction and evaluated on text-8 and non-causal audio tasks. Key findings show faster convergence and improved performance with only a tiny parameter overhead, plus interpretable learned kernels that reveal how embeddings traverse the latent space. This work suggests a new paradigm for integrating signal-processing inside neural architectures, with potential cross-domain benefits for efficiency and interpretability in generative models and beyond.
Abstract
This paper introduces the idea of applying signal processing inside a Large Language Model (LLM). With the recent explosion of generative AI, our work can help bridge two fields together, namely the field of signal processing and large language models. We draw parallels between classical Fourier-Transforms and Fourier Transform-like learnable time-frequency representations for every intermediate activation signal of an LLM. Once we decompose every activation signal across tokens into a time-frequency representation, we learn how to filter and reconstruct them, with all components learned from scratch, to predict the next token given the previous context. We show that for GPT-like architectures, our work achieves faster convergence and significantly increases performance by adding a minuscule number of extra parameters when trained for the same epochs. We hope this work paves the way for algorithms exploring signal processing inside the signals found in neural architectures like LLMs and beyond.
