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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Token allocation, not resampling, sets the square-canvas penalty in a small from-scratch audio transformer

Jianmin Liu, Weiwei Xiao
1 links
Research Square
Music and Audio Processing
preprint

Token allocation, not resampling, sets the square-canvas penalty in a small from-scratch audio transformer

Jianmin Liu, Weiwei Xiao
preprint en

Abstract

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.

Research Square
North China University of Technology (CN)
Chinese Academy of Forestry
Music and Audio Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Token allocation, not resampling, sets the square-canvas penalty in a small from-scratch audio transformer — Jianmin Liu, Weiwei Xiao · Research Square (2026) | TGRS Research Map | TGRS