The article introduces SPECTRE, a method that replaces self-attention in transformers with a fast real FFT, a content-adaptive spectral gate, and an inverse FFT, reducing per-layer complexity from O(L^2) to O(L log L). This approach enables efficient processing of long contexts, making it feasible to process hundred-kilotoken contexts on commodity GPUs. The method is evaluated on language modeling and image classification tasks, showing promising results. SPECTRE achieves these improvements by adding fewer than 6% parameters to the base model.