Token allocation, not resampling, sets the square-canvas penalty in a small from-scratch audio transformer
Audio spectrogram transformers are usually applied by resizing the spectrogram onto a square canvas, which changes the signal and the time-frequency layout of the tokens at the same time. This study separates the two for one fixed platform: a 10.84M-parameter hierarchical axial transformer trained from scratch, with the front end, optimizer, augmentation and evaluation rule held constant while the share of roughly 500 tokens on the time axis is swept from 9.9% to 99.8% over six configurations, three replicated over three seeds. Accuracy rises with the time share and then saturates: the replicated pair of time-heavy configurations is indistinguishable at a resolution of 1.64 percentage points, while the frequency-heavy end loses up to 14.95 percentage points. The square-canvas penalty is therefore an allocation effect rather than an interpolation effect. Resampling either axis alone at a matched allocation costs nothing detectable (1.18 and 0.08 percentage points, both intervals containing zero), whereas reaching the same 50% allocation on the unresampled spectrogram reproduces most of the penalty (6.05 percentage points), within 0.06 percentage points of the curve's interpolation. The penalty is nearly constant across folds on ESC-50 and is no larger than 3.5 percentage points on a ten-class urban corpus. Linear probes explain the asymmetry: class information is carried by the spectral signature and accuracy by how that signature evolves, so coarsening the lattice discards detail inside tokens (more on the mel axis, and tolerated because the spectral summary survives pooling), and the temporal positions that exist only on the time axis and that no resolution inside a token restores.
Authors
- Jianmin Liu (ORCID: https://orcid.org/0000-0003-4770-5115)
- Weiwei Xiao (ORCID: https://orcid.org/0000-0002-9553-2581)
Institutions
- North China University of Technology (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-24
- DOI
- https://doi.org/10.21203/rs.3.rs-11376285/v1
- Primary Topic
- Music and Audio Processing
- Type
- preprint
Funders
- Chinese Academy of Forestry