# Optimizing Short-Time Fourier Transform Parameters via Gradient Descent

arXiv: https://arxiv.org/abs/2010.15049 · HTML: https://mlsanity.com/paper/2010.15049/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 28 Oct 2020.

## Built on by (most cited first, 6 of 6)

- [A differentiable short-time Fourier transform with respect to the window length](https://mlsanity.com/paper/2208.10886/) (2022)
- [Differentiable adaptive short-time Fourier transform with respect to the window length](https://mlsanity.com/paper/2308.02418/) (2023)
- [Differentiable short-time Fourier transform with respect to the hop length](https://mlsanity.com/paper/2308.02421/) (2023)
- [Rethinking Non-Negative Matrix Factorization with Implicit Neural Representations](https://mlsanity.com/paper/2404.04439/) (2024)
- [Modulated differentiable STFT and balanced spectrum metric for freight train wheelset bearing cross-machine transfer monitoring under speed fluctuations](https://mlsanity.com/paper/2406.11917/) (2024)
- [Learnable Adaptive Time-Frequency Representation via Differentiable Short-Time Fourier Transform](https://mlsanity.com/paper/2506.21440/) (2025)

## Abstract (arXiv)

The Short-Time Fourier Transform (STFT) has been a staple of signal processing, often being the first step for many audio tasks. A very familiar process when using the STFT is the search for the best STFT parameters, as they often have significant side effects if chosen poorly. These parameters are often defined in terms of an integer number of samples, which makes their optimization non-trivial. In this paper we show an approach that allows us to obtain a gradient for STFT parameters with respect to arbitrary cost functions, and thus enable the ability to employ gradient descent optimization of quantities like the STFT window length, or the STFT hop size. We do so for parameter values that stay constant throughout an input, but also for cases where these parameters have to dynamically change over time to accommodate varying signal characteristics.
