PHALAR: Phasors for Learned Musical Audio Representations
Davide Marincione 1 Michele Mancusi 1 2 Giorgio Strano 1 Luca Cerovaz 1 Donato Crisostomi 1 Roberto Ribuoli 1 Emanuele Rodolà 1 3
arXiv:2605.03929v1 [cs.SD] 5 May 2026
Abstract 1
Stem retrieval, the task of matching missing stems to a given audio submix, is a key challenge currently limited by models that discard temporal information. We introduce PHALAR, a contrastive framework achieving a relative accuracy increase of up to ≈ 70% over the state-of-the-art while requiring < 50% of the parameters and a 7× training speedup. By utilizing a Learned Spectral Pooling layer and a complex-valued head, PHALAR enforces pitch-equivariant and phase-equivariant biases. PHALAR establishes new retrieval stateof-the-art across MoisesDB, Slakh, and ChocoChorales, correlating significantly higher with human coherence judgment than semantic baselines. Finally, zero-shot beat tracking and linear chord probing confirm that PHALAR captures robust musical structures beyond the retrieval task.
2
3
3
2 1
0
.2
.4
.6
Time
.8
1
Figure 1. Emergent Phase-Equivariance. Our model’s Learned Spectral Pooling layer maps temporal alignment to geometric rotation in the complex plane. Left: Three timesteps (1, 2, 3) at identical offsets from note onsets. Right: Time-expanded polar plot of a learned feature. As time progresses, the feature revolves around the origin. Because the model is phase-equivariant, positions with the same relative timing (red boxes) share the same phase angle regardless of their absolute time. This allows PHALAR to resolve rhythmic coherence where standard magnitude-based models fail.
1. Introduction coherence is strictly dependent on temporal alignment: two signals can contain the exact same instruments yet be entirely incoherent if misaligned (e.g., drums slightly off-beat with the bass). Foundation models like CLAP (Wu* et al., 2023) and CDPAM (Manocha et al., 2021), designed for semantic similarity, are thus engineered to be “structurally blind”: their reliance on GAP discards temporal ordering, collapsing distinct rhythmic alignments into identical latent representations. Even COCOLA (Ciranni et al., 2025), which targets harmonic compatibility, relies on GAP, limiting its ability to capture fine-grained rhythmic phase.
Modern representation learning for audio has largely adopted paradigms from computer vision, treating spectrograms as static 2D images processed by standard CNNs or Vision Transformers. A cornerstone of these architectures is the use of pooling operations, such as Global Average Pooling (GAP), to enforce translational invariance. While invariance is desirable for semantic classification (e.g., identifying that a clip contains a “guitar” regardless of when it plays), it is detrimental for tasks requiring structural coherence, such as music mixing and stem separation. In this work, we focus on the specific problem of modeling musical coherence: given a partial mix (e.g., drums and bass), the objective is to identify which missing stems temporally and harmonically fit with it. This differs categorically from standard semantic tasks, where the goal is merely to recognize what is present. The challenge is that
This paper proposes a fundamental shift from temporal/phase invariance to equivariance. We observe that while the magnitude spectra of musical signals are shiftequivariant in time, standard real-valued networks lack the structure to manipulate this shift explicitly. Leveraging the Fourier Shift Theorem, we recognize that a temporal translation in the input domain corresponds to a phase rotation in the frequency domain. Consequently, to explicitly model coherence, an aggregation scheme must preserve temporal alignment by construction. We achieve this by shifting the representation space from real-valued magnitudes to
1 Department of Computer Science, Sapienza University of Rome, Italy 2 Moises Systems, Inc. 3 Paradigma, Inc.. Correspondence to: Davide Marincione <[email protected]>, Michele Mancusi <[email protected]>.
Preprint. May 6, 2026.
1
Phasors for Learned Musical Audio Representations
complex-valued phasors; see Figure 1.
Global Average Pooling (GAP) or classification tokens (Devlin et al., 2019; Dosovitskiy et al., 2021). While effective for semantic classification, these operations enforce translation invariance, marginalizing the temporal structure and phase information critical for time-sensitive tasks.
To this end, we introduce PHALAR (Phasors for Learned Musical Audio Representations), a contrastive learning framework tailored for musical coherence. PHALAR decouples feature extraction from alignment by employing a real-valued axial backbone to extract harmonic features, followed by a Learned Spectral Pooling layer that projects these features into the complex frequency domain. This allows temporal positions to be encoded as phase angles, which are then preserved by a phase-equivariant ComplexValued Neural Network (CVNN) projection head.
2.2. From Semantic Similarity to Structural Coherence Existing audio evaluation metrics are designed to assess semantic similarity or generation quality, rather than structural coherence. Distribution-based metrics like Fréchet Audio Distance (FAD) (Kilgour et al., 2019) rely on embeddings from semantic classifiers (Wu* et al., 2023; Hershey et al., 2017; Li et al., 2024; Kumar et al., 2023; Défossez et al.) to measure domain approximation, while sample-level metrics like ViSQOL (Chinen et al., 2020) quantify spectral similarity to a reference. Neither paradigm explicitly captures the temporal interplay between sources.
Our contributions can be summarized as follows: • We propose PHALAR, a novel contrastive audio framework that explicitly decouples harmonic content from rhythmic alignment. • We set a new state-of-the-art in stem-to-mix retrieval, achieving a relative increase of up to ≈ 70% in accuracy over the previous state-of-the-art (Ciranni et al., 2025), while requiring < 50% of the parameters and offering a 7× training speedup (50 vs. 340 GPU-hours).
Historically, harmonic and rhythmic alignment have been the focus of specialized IR tasks like beat tracking (Cheng & Goto, 2023). In deep representation learning, COCOLA (Ciranni et al., 2025) recently attempted to score harmonic compatibility, yet its reliance on real-valued global pooling limits its ability to capture fine-grained rhythmic phase. Other reference-free metrics, like Audiobox-Aesthetics (Tjandra et al., 2025), provide absolute “likability” scores. While useful for filtering data, these scores are agnostic to the relative alignment of multiple sources and thus fail as coherence measures.
• We demonstrate a fundamental orthogonality between similarity and coherence modeling. While similaritybased foundation models (Wu* et al., 2023; Manocha et al., 2021) perform at random chance on coherence tasks, PHALAR correlates significantly with human perception.
2.3. Complex-Valued Neural Networks (CVNNs) We release our code, checkpoints and human evaluation results at github.com/gladia-research-group/phalar.
CVNNs extend deep learning to the complex domain, respecting the algebra of phasors and wave physics. Trabelsi et al. (2018) formalized the necessary building blocks, including complex convolutions and initializations. These architectures have achieved state-of-the-art results in speech enhancement and source separation (Choi et al., 2018), where explicit phase reconstruction is critical.
2. Related Works 2.1. Contrastive Representation Learning in Audio Self-supervised learning has become the standard for audio representation, primarily via contrastive objectives to maximize agreement between augmented views of inputs. Early approaches in speech, such as Wav2Vec 2.0 (Baevski et al., 2020) and HuBERT (Hsu et al., 2021), demonstrated the efficacy of masked prediction. In the music domain, CLMR (Spijkervet & Burgoyne, 2021) and MERT (Li et al., 2024) adapted SimCLR-style (Chen et al., 2020) frameworks, utilizing augmentations like pitch shifting and EQ to enforce invariance to recording conditions. More recently, largescale foundation models like CLAP (Wu* et al., 2023) and AudioLDM (Liu et al., 2023) have leveraged joint audio-text embedding spaces trained on large scale datasets.
However, to date, the application of CVNNs has been largely restricted to generative tasks (reconstruction/denoising) (Cerovaz et al., 2026). Their utility in discriminative representation learning remains under-explored in audio. In other domains, complex-valued embeddings have shown promise; for instance, knowledge graph methods like RotatE (Sun et al., 2019; Trouillon et al., 2016) model relations as rotations in the complex plane to capture anti-symmetric and inversion patterns, and other works (Li et al., 2018) have shown NLP applications. We posit that music, being fundamentally periodic, is the ideal modality for such geometric biases. We bridge this gap by applying complex-valued metric learning to capture temporal shifts as phase rotations.
A pervasive limitation in these architectures is their aggregation mechanism. To produce fixed-size embeddings from variable-length inputs, models predominantly rely on 2
Phasors for Learned Musical Audio Representations
3. Method
sequences into the frequency domain, adapting the downsampling technique from Rippel et al. (2015) to ensure synchronization cues are not discarded.
Rather than processing raw complex spectrograms directly (Cerovaz et al., 2026), PHALAR first extracts harmonic features from magnitude spectra via a real-valued backbone. Then, it achieves temporal sensitivity through a Learned Spectral Pooling layer: it applies a Fourier transform across the temporal dimension of the extracted feature maps. By the Shift Theorem, this operation maps the relative timing of features to phase rotations in the complex domain. A CVNN head then processes these latents to assess alignment.
Unlike the translational invariance of GAP (Manocha et al., 2021; Saeed et al., 2020; Ciranni et al., 2025), which effectively marginalizes the temporal structure, our spectral approach transforms temporal relationships into phase rotations for the model head to process. 3.2.1. T EMPORAL TO SPECTRAL PROJECTION ′
Let X ∈ RB×H×F ×T denote the feature map from the backbone, where H is the channel depth and T ′ = ⌈T /32⌉ is the compressed time dimension. We flatten the channel and frequency dimensions to obtain a unified feature ′ space X̄ ∈ RB×(HF )×T . To extract semantic features prior to pooling, we project X̄ onto a learned basis Wproj ∈ R(HF )×D . This projection operates pointwise in time,
This architecture enforces two specific inductive biases: • Pitch-Equivariance & Awareness: The backbone extracts interval-aware features via pitch-equivariant convolutions on CQT inputs, which are subsequently mapped to absolute pitch-aware embeddings during spectral pooling. • Phase-Equivariance: Established by the spectral pooling layer, which converts temporal shifts into phase information for the CVNN to evaluate.
′
Ztime = X̄Wproj ∈ RB×T ×D .
(1)
Because this projection operates simultaneously over all frequency bins F , Ztime encodes both the harmonic interval structure (from the backbone) and the absolute frequency position of those intervals. This two-stage design (equivariant extractor followed by a full-frequency projection) ensures the model becomes explicitly pitch-aware at the point of spectral pooling.
3.1. Harmonic Backbone The backbone is a lightweight 2D CNN optimized for harmonic feature extraction and computational efficiency. PHALAR processes Constant-Q Transform (CQT) (Holighaus et al., 2012) spectrograms; unlike Mel-spectrograms, the CQT’s logarithmic spacing ensures that pitch shifts are purely linear translations. This allows our kernels to recognize harmonic intervals (e.g., a “major third”) identically across all keys, a powerful inductive bias that eliminates the need to learn key-specific variations in the backbone.
We then apply a Real Fast Fourier Transform (RFFT) (Brigham & Morrow, 1967) along the temporal axis to obtain the spectral representation
The architecture has 10 layers, each with an axial residual design to decouple spectral and temporal processing:
where C = ⌊T ′ /2⌋ + 1. By truncating or padding to a fixed C, we obtain a fixed-size embedding.
1. Frequency-wise Convolutions (3 × 1): Isolate and extract harmonic relationships within individual timesteps.
In our implementation, the projection matrix Wproj maps the flattened backbone features to D = 80 dimensions, and we fix the temporal frequency cutoff at C = 8. Consequently, each embedding contains exactly D × C = 640 complex values, yielding a latent footprint equivalent to 1280 real values; deliberately chosen to match the bottleneck dimensionality of our primary baseline, COCOLA(Ciranni et al., 2025), to ensure a fair comparison of architectural efficiency.
S = rfft(Ztime ) ∈ CB×C×D ,
2. Time-wise Convolutions (1 × 3): Capture the temporal evolution of frequency bins. 3. Point-wise Convolutions (1 × 1): Facilitate feature mixing and channel-wise projection.
(2)
In this representation, the magnitude |Sc,d | encodes the prevalence of a specific harmonic pattern (e.g., a “snare hit shape”) d at a modulation frequency c, while the phase ∠Sc,d explicitly encodes its temporal shift.
To manage computational overhead, every even layer employs a strided time-wise convolution, resulting in a total temporal compression factor of 32× before the data reaches the spectral pooling stage.
This operation can be interpreted as a learnable variant of the Modulation Spectrum (Atlas & Shamma, 2003). Unlike classical modulation analysis which operates on raw spectrogram frequencies, PHALAR computes modulation over learned semantic features. This allows the model to
3.2. Spectral Aggregation To preserve critical timing, we replace standard GAP with Learned Spectral Pooling. This operation maps temporal 3
Phasors for Learned Musical Audio Representations
Wproj
zy
R C zx Harmonic CNN
X
·
RFFT
Phase-Eq. CVNN
Ztime
W s(zx , zy )
Figure 2. Depiction of PHALAR’s architecture: a spectrogram is fed to the CNN, the resulting feature map is projected onto a learned basis and processed via Fast-Fourier Transform. The complex-valued result is then refined by the phase-equivariant CVNN, and, at the end, a score is computed between two sample embeddings.
disentangle the rhythmic profile of specific instruments (e.g., the groove of a bassline) from the global mix, converting the temporal alignment problem into a geometric relationship in the complex plane.
for consistent micro-timing deviations, such as a “laid back” groove, thereby maximizing the coherence score. Furthermore, we intentionally omit saturating nonlinearities like tanh found in related works (Saeed et al., 2020; Ciranni et al., 2025). With a linear output, we ensure that high-energy transients contribute proportionally more to the final score than low-energy background noise.
3.3. Complex-Valued Projection Head Since S is complex-valued, standard real-valued MLPs cannot process it without destroying the phase structure (and thus the alignment information). We implement a CVNN (Trabelsi et al., 2018) projection head where every operation is phase-equivariant, satisfying f (x · eiθ ) = f (x) · eiθ .
Symmetric Inference The bilinear form in Equation (3) is non-commutative and, while asymmetric scoring is permissible during contrastive training, retrieval tasks require a symmetric metric. During inference, we therefore use:
Specifically, the head consists of a sequence of two complex linear layers. To allow the model to learn non-linear feature interactions while strictly preserving temporal alignment, the first linear layer is followed by a Complex RMSNorm and a phase-preserving modReLU. The mathematical formulations for these components are detailed in Section A. This CVNN head projects the 640-dimensional complex input down to a final output dimension of 512 complex values.
scomm (zx , zy ) =
(4)
4. Experiments We evaluate PHALAR on the task of Stem Retrieval: given a query submix (e.g., drums + bass), the model must identify the complementary submix (e.g., vocals + guitar) from the same original track among a set of distractors. This task acts as a proxy for structural coherence, requiring the model to resolve precise rhythmic and harmonic alignments rather than semantic categories.
3.3.1. P HASE -AWARE B ILINEAR S IMILARITY To quantify structural coherence, we employ a similarity metric tailored to the algebraic properties of our spectral phasors. Specifically, we define the score as the real part of a parametrized Hermitian inner product between L2 normalized feature vectors zx , zy ∈ CD : s(zx , zy ) = ℜ(zH x Wzy ) ,
s(zx , zy ) + s(zy , zx ) . 2
Our experiments demonstrate the following: • PHALAR achieves a relative increase of up to ≈ 70% in retrieval accuracy over current benchmarks while utilizing less than half the parameters (Section 4.2);
(3)
where W ∈ CD×D is a learnable complex weight matrix. By taking the real part, we project the complex-valued alignment into a scalar score suitable for contrastive objectives while ensuring the model remains sensitive to the relative phase shifts encoded within the embeddings.
• Our axial backbone and specialized pooling facilitate a 7× training speedup compared to previous coherenceoriented models (Section 4.1); • Phase-aware embeddings provide the highest correlation with human coherence judgment, identifying structural failures that ”coherence-blind” foundation models miss (Section 4.3);
This formulation offers a distinct advantage over real-valued dot-products, as the complex weights allow the model to apply learnable phase rotations. This mechanism enables the model to “align” stems by rotating their phase to account 4
Phasors for Learned Musical Audio Representations Table 1. Contrastive retrieval (↑) We report Top-1 accuracy on disjoint submix retrieval. († =fine-tune with Learned Spectral Pooling and CVNN head)
• Despite no explicit supervision for rhythm or pitch, PHALAR’s inductive biases enable zero-shot beat tracking and linear chord probing (Section 4.6). 4.1. Experimental Setup Datasets & Sampling We construct a composite dataset integrating MoisesDB (Pereira et al., 2023) (using a random 0.8/0.1/0.1 split at track level), Slakh2100 (Manilow et al., 2019), and ChocoChorales (Wu et al., 2022). To enforce structural coherence, we generate training pairs dynamically: for a given music track, we generate two time-aligned disjoint submixes xA and xB such that the set of instruments in xA is mutually exclusive to those in xB (e.g., if “Vocals” are in the anchor, they cannot be in the positive). This prevents the model from relying on trivial identity mapping of specific instrument timbres.
K
PHALAR (2.3M)
COCOLA (5.2M)
MERT† (95M)
CLAP (200M)
CDPAM (26.2M)
MoisesDB MoisesDB MoisesDB
8 16 64
86.79 81.49 70.87
75.81 64.44 41.84
67.39 59.13 45.85
12.85 6.19 1.24
11.15 5.03 1.15
Slakh2100 Slakh2100 Slakh2100
8 16 64
87.69 83.28 72.37
79.33 71.58 55.84
66.70 58.39 46.13
10.91 5.12 1.62
11.45 5.83 1.76
ChocoChorales ChocoChorales ChocoChorales
8 16 64
99.65 99.45 98.61
97.82 96.02 89.34
96.49 93.79 86.65
10.72 4.09 0.71
7.54 3.02 0.59
dation baseline: we extract frozen MERT embeddings and process them using our novel Learned Spectral Pooling and CVNN head. • CLAP:1 (Wu* et al., 2023) A foundation model trained for text-audio retrieval, representing state-of-the-art semantic embedding. We include it not as a direct competitor, but as a diagnostic probe to test the structural awareness of semantic representations.
Optimization & Efficiency Models are trained for 80k steps with a batch size of 64 on two NVIDIA A100 GPUs using the Muon optimizer (Jordan et al., 2024), with learning rates ηmuon = 0.02 and ηadam = 4 × 10−3 . To isolate architectural gains from optimization benefits, we upgraded and retrained the COCOLA baseline using Muon for an equivalent duration. PHALAR demonstrates superior efficiency, completing training in 50 GPU-hours compared to COCOLA’s 340 GPU-hours. This 7× speedup is driven by our parameter-efficient axial backbone and the elimination of CPU-bound Harmonic-Percussive Separation (Fitzgerald, 2010; Driedger et al., 2014) pre-processing.
• CDPAM: (Manocha et al., 2021) A deep perceptual audio similarity metric, similarly included as a probe to contrast perceptual similarity with structural coherence. • ViSQOL: (Chinen et al., 2020) A standard metric for reference-based audio quality estimation. • Audiobox-Aesthetics: (Tjandra et al., 2025) A deep, reference-free, audio quality metric that provides absolute scores for quality.
Label Smoothing for Sampling Collisions Standard InfoNCE (Oord et al., 2018) training assumes all negatives in a batch are true negatives, an assumption frequently violated in music where different tracks may share the same key, tempo, or genre. Penalizing these pairs introduces gradient noise. To address this, we apply Label Smoothing (Szegedy et al., 2016), relaxing the postitive pair’s target probability to l = 0.9. Distributing the residual mass among negatives prevents the model from over-separating tracks that are harmonically compatible despite being distinct.
4.2. SOTA in Contrastive Retrieval We measure performance using K-way Contrastive Retrieval Accuracy. As shown in Table 1, PHALAR establishes a new state-of-the-art across all datasets. The architectural advantage of phase-equivariance is most evident at K = 64, where the task becomes significantly harder due to the increased probability of tonal collisions (distractors with similar keys). On MoisesDB, PHALAR achieves a relative improvement of +69% over the COCOLA baseline (71% vs 42%), with half its parameters (2.3M vs 5.2M).
Augmentation To ensure robustness to recording conditions, we apply the on-the-fly augmentations: random crop T ∈ [2, 10]s (applied identically to both submixes to preserve their beat alignment), gain stage ±6 dB, and additive noise injection (white, pink, brown, and transient bursts). Baselines
Dataset
Orthogonality of Coherence and Similarity A key finding of our study is the disconnect between perceptual/semantic similarity and structural coherence. Foundation models like CLAP are trained to map audio to text descriptions (e.g., “a rock song”), enforcing invariance to specific tempos or key signatures. When utilized as diagnostic probes on the stem retrieval task, CLAP and CDPAM effectively collapse to random chance (e.g., ≈ 1.2%
We compare PHALAR against:
• COCOLA: (Ciranni et al., 2025) The current state-ofthe-art for coherence; a real-valued CNN with GAP. • MERT: A state-of-the-art music understanding foundation model. To provide the strongest possible foun-
1
5
Specifically, music audioset epoch 15 esc 90.14.pt.
Phasors for Learned Musical Audio Representations PHALAR 4
12
25
24
Q4
7
12
17
17
17
Q3
14
15
13
14
14
Q2
18
15
17
11
8
27
23
11
2
7
Q1
Q2
Q3
Q4
Q5
User Rating Bins
4
Q1
Q5
at K = 64). To investigate whether this is strictly an aggregation issue, our MERT baseline equips a 95M-parameter foundation model with our phase-aware spectral pooling head. While this geometric bias allows MERT to successfully extract coherence information and surpass COCOLA (reaching 45.85 on MoisesDB K = 64), it still falls ≈ 25 points short of PHALAR. This demonstrates two things: first, modeling the interactions between sources requires a fundamentally different geometric inductive bias than semantic classification; second, achieving true state-of-the-art structural coherence requires the end-to-end alignment of a pitch-equivariant backbone and a complex-valued head, rather than retrofitting massive foundation models. Full ablation studies on MERT aggregation strategies are provided in Section C.
Model Score Bins
12
12
19
14
Q3
11
10
17
14
18
Q2
19
14
17
7
12
20
17
8
15
10
Q1
Q2
Q3
Q4
Q5
Q5
Q4
13
6
9
17
21
16
Q4
16
6
13
14
17
20
Q3
14
14
15
12
17
12
Q2
16
18
15
16
10
10
Q1
16
Human Rating Bins
4.3. Human-Centric Validation
Audiobox CE
7
Q1
Q5
COCOLA
26
17
11
4
12
Q1
Q2
Q3
Q4
Q5
Model Score Bins
Model Score Bins
Figure 3. Human v. Model score Heatmaps over PHALAR, COCOLA and Audiobox CE’s ratings’ quintiles against averaged user opinions’ quintiles.
While contrastive retrieval accuracy measures the ability to identify the exact ground truth, it does not strictly quantify perceptual quality. A robust audio representation should define a metric space where distance correlates with perceptual coherence: a “bad” submix should be far from the mix, and a “good” submix (even if generated) should be close.
Table 2. Human-Model Comparison Stats Steiger’s test indicates significance between PHALAR and the respective baseline. For AIC lower is better.
To validate this, we conducted a subjective listening test correlating human coherence ratings with the embedding distances computed by PHALAR and baselines. Listening Test Protocol We curated a dataset of 98 audio samples (49 Bass, 49 Drums) from the MUSDB18-HQ (Rafii et al., 2017; 2019) test set. For each sample, we generated three variations of the missing stem using stemgeneration models of varying quality: Moises’ stem generator (commercial SOTA), STAGE (Strano et al., 2025), and StableAudio-ControlNet (Evans et al., 2025). Including the Ground Truth, this yielded 4 variations per track, creating a diverse spectrum of coherence ranging from artifacts/misaligned generations to studio-quality mixes.
Model
Pearson ρ (↑)
Spearman rs (↑)
Steiger p-val vs. PHALAR
AIC (↓)
CLAP CDPAM ViSQOL
0.111 −0.015 −0.091
0.122 −0.011 −0.069
≤ 0.001 ≤ 0.001 ≤ 0.001
2528.46 2543.79 2538.13
≤ 0.001 ≤ 0.001 0.041 0.022 0.123
2519.36 2540.00 2501.53 2493.81 2476.89
-
2451.48
COCOLA AudioboxPC AudioboxPQ AudioboxCU AudioboxCE
0.181 −0.129 0.253 0.236 0.289
0.153 −0.120 0.254 0.247 0.284
PHALAR
0.387
0.414
0.05), with the exception of AudioboxCE (p = 0.123), the score that predicts Content Enjoyment. Linear Mixed Effects Analysis To account for subjectspecific variability (e.g., some users generally rating higher than others), we modeled the data using a Linear Mixed Model (LMM)
We recruited N = 22 participants, each blindly evaluating 10 random cases. For every case, participants rated 4 variations on a Likert scale of 1 (Incoherent/Clashing) to 5 (Perfectly Coherent). This resulted in 880 individual ratings.
Rij = β0 + β1 Sij + β2 Tj + ui + ϵij
ui ∼ N (0, σu2 ) (5)
where Rij is the rating by user i on item j, Sij is the model’s score, Tj the item’s type (“bass” or “drums” categories), and ui is the random intercept per user.
Correlation with Human Perception We computed the correlation between standardized human ratings (z-scored per user to normalize subjective baselines) and the similarity scores produced by the models.
We compare models using the Akaike Information Criterion (AIC), which estimates the relative quality of statistical models for a given dataset (although AIC accounts for model complexity, in this case it is irrelevant, as all LMMs are the same, just with different fitting data). As shown in Table 2, PHALAR achieves the significantly lowest AIC. This confirms that, even when controlling for user variance,
As detailed in Table 2 and Figure 3, PHALAR achieves the highest alignment with human judgment across both Pearson (ρ) and Spearman (rs ) coefficients. To rigorously test these improvements, we employed Steiger’s Z-test for dependent correlations. The results confirm that PHALAR’s correlation is significantly higher than all baselines (p < 6
Phasors for Learned Musical Audio Representations Table 3. System-Level Evaluation. Aggregated PHALAR scores compared to Human Ratings and Fréchet Audio Distance (FAD). Model Ground Truth Moises STAGE SA-ControlNet
Table 4. Leave-one-out ablation study over the PHALAR architecture. Results relative to MoisesDB K = 64 test.
Users (↑)
PHALAR (↑)
FADCLAP (↓)
FADMERT7 (↓)
Model Variant
Accuracy (↑)
Drop
3.86 3.04 2.77 2.55
5.66 5.53 3.12 3.01
0.350 0.427 0.564
10.6 12.5 10.7
PHALAR (Full)
70.87
-
w/o Spectral Pooling (Global Avg Pool + Real MLP)
51.97
−18.9%
w/o Phase Equivariance (Magnitude Only + Real MLP) (Complex Cosine Similarity)
60.59 61.93
w/o Indefinite W during training (Positive Semi-Definite W = LLH ) (Hermitian W = L + LH )
−10.3% −8.94%
67.85 69.92
−3.02% −0.95%
w/o Strict Pitch Equivariance (Mel-Spectrogram Input)
69.21
−1.66%
PHALAR provides the most explanatory power for predicting human perception of musical coherence. Comparison with Set-Level Metrics Fréchet Audio Distance (FAD) (Kilgour et al., 2019; Gui et al., 2024) is the industry standard for evaluating generative audio. However, we argue it is ill-suited for assessing coherence due to two fundamental limitations:
rather, the relative phase angles preserved by PHALAR are essential for detecting musical coherence.
1. Marginal vs. Conditional: FAD measures the distance between the marginal distribution of generated and ground-truth stems. It assesses whether a sample sounds realistic, but ignores the conditional requirement: does it fit the specific backing track?
We then evaluated the Complex Cosine Similarity, defined as the magnitude of the Hermitian inner product |zH x zy |. While this metric operates in the complex domain, its mathematical invariance to global phase rotation results in poor performance. This validates that the model must strictly enforce phase alignment via Equation (3), rather than simply matching feature content up to an arbitrary rotation.
2. Granularity: FAD is a set-level metric requiring large sample sizes, rendering it useless for scoring individual inference results. Table 3 highlights this limitation by comparing the rankings of three generative models: Moises, STAGE, SAControlNet. While standard FADMERT7 fails to align with human judgment, incorrectly ranking SA-ControlNet (10.7) above STAGE (12.5), the aggregated PHALAR score reproduces the exact human ranking order (2.77 for STAGE vs. 2.55 for SA-ControlNet). By acting as a reference-aware metric that evaluates generated stems against their specific complementary mixtures, PHALAR captures the structural failures, such as rhythmic drift, that distribution-based metrics routinely miss.
Geometry of the Metric Space We investigated the algebraic properties of the learned weight matrix W compared to a strict Hermitian Positive Semi-Definite (PSD) formulation (W = LLH ). The PSD formulation degraded performance by ≈ 3%, suggesting the latent space benefits from an indefinite metric structure. While test-time averaging symmetrizes the matrix (Weff = 21 (W + WH )), it does not enforce positive semi-definiteness. This flexibility allows the model to capture destructive interference; unlike a PSD matrix, which acts as a non-negative energy measure, an indefinite matrix can assign negative similarity scores to anti-aligned phase relationships.
4.4. Ablation Study
At the same time, we also trained the model such that to parametrize W as Hermitian (and thus inducing commutativity in Equation (3) without the need for Equation (4)), but we found it to not increase accuracy in the model.
To rigorously disentangle the contributions of our architectural components and inductive biases, we perform a leave-one-out ablation study. We isolate four critical design choices: the harmonic input representation, the pooling mechanism, the phase-aware processing, and the metric space. The results are summarized in Table 4.
CQT vs. Mel-Spectrograms Replacing the CQT with standard Mel-spectrograms decreases accuracy by 1.66%. While Mel-scales offer approximate shift-equivariance, they lack the geometric rigidity of the CQT. In a Melspectrogram, the spectral “shape” of a harmonic relation varies slightly across octaves due to filter-bank overlaps and resolution differences. The CQT’s strict log-spacing acts as a stronger inductive bias, allowing the model to decouple “harmonic interval” from “absolute pitch” more effectively.
The Necessity of Phase Equivariance Standard audio models typically rely on magnitude features, discarding phase information. To test this, we replaced our complexvalued head with a real-valued MLP operating solely on spectral magnitude. As shown in Table 4, this caused a catastrophic performance drop of 10.3%. This confirms that magnitude alone cannot resolve rhythmic alignment; 7
Phasors for Learned Musical Audio Representations Time (s)
5.0
5.0
4.2
4.2
3.3
3.3
2.5
2.5
135° 1.7
135° 1.7
90°
0.8 1.2
270°
180°
2.5
3.8
315°
Time (s)
5.0
5.0
4.2
4.2
3.3
3.3
2.5
2.5
135° 1.7
135° 1.7
90°
0.8 1.2
270°
315°
180° 45°
2.5
3.8
5.0 0°
45° 2.5
3.8
10
50
60
15
20
25
30
150
100 75 50 90°
0.8 1.2
270°
5
40
125
45°
0.0
225°
0
30
175
5.0 0°
315°
Time (s)
20
200
90°
0.8 1.2
270°
10
225
0.0
225°
5.0 0°
0.0
225°
180° 45°
0.0
225°
s(zbpm , ztime )2
0
BPM
180°
Time (s)
2.5
3.8
Time
Figure 5. Synthetized metronome BPMs v. Song embeddings Heatmap of squared similarities between embeddings of a synthetic metronome at different BPMs and embeddings from the first 30s of “I Want to Live” (Slavov, 2023). Strong horizontal bands at 77 BPM and its first harmonic (154 BPM) precisely recover the ground-truth tempo, confirming that PHALAR linearizes rhythmic periodicity into detectable interference patterns without temporal supervision.
5.0 0°
315°
Figure 4. Time-expanded polar plots reveal how the model partitions information. Top: “Rotating” features revolve about the origin, capturing periodic rhythmic structures through continuous phase cycles. Bottom: “Magnitude-Only” features are noncentered and oscillate within a restricted phase range. These emerge to represent global, time-agnostic attributes, such as key or mood, where precise temporal alignment is not required.
Table 5. Beat tracking on GTZAN Statistics computed via the mir eval script at distance threshold of 70ms. PHALAR’s phase-equivariance allows it to recover the track tempo (F 1 = 0.627) as a geometric primitive, despite never being supervised for rhythm.
4.5. Analyzing the Learned Pooling Layer Figure 1 illustrates the phase-aware behavior of PHALAR, showing a specific feature maintaining a consistent phase value ≈ 100ms before string plucks. Combined with Section F, this confirms the model effectively exploits timeaware information as designed. Further analysis (in Figure 4) identifies two types of archetypal features:
Model PHALAR Beat This!
Precision (↑)
Recall (↑)
F1 (↑)
0.717 0.893
0.587 0.905
0.627 0.888
4.6.1. Z ERO -S HOT B EAT TRACKING • “Rotating” features, which complete revolutions about the origin-axis.
We design a probing experiment using Zero-Shot Beat Tracking, validating that PHALAR maintains temporal alignment (rather than just texture).
• “Magnitude-Only” features, which oscillate within a limited phase range and do not revolve about the origin.
Method We synthesize “probe” metronome tracks at various BPMs (30 − 240) and compute their similarity with the target track’s embeddings. As shown in Figure 5, when the probe BPM matches the track’s tempo, distinct interference patterns (vertical “stripes”) emerge in the similarity matrix. By extracting the envelope of these correlations and passing them to a standard peak-picking algorithm (librosa.beat track), we can recover the beat.
We hypothesize that these “Magnitude-Only” features emerge to represent time-agnostic qualities like mood and key, where precise temporal alignment is unnecessary. While this provides an intuitive geometric interpretation of the latent space, it is a conjecture; rigorous confirmation would require correlating the phase variance of individual feature dimensions with key- and mood-labeled datasets.
Results Table 5 compares this heuristic against a fully supervised SOTA baseline, Beat This! (Foscarin et al., 2024). While the supervised model naturally yields higher precision, PHALAR achieves a respectable F1-score of 0.627 without ever seeing a beat label. This confirms PHALAR successfully linearizes temporal relations, converting “alignment” into a geometric primitive (phase rotation).
4.6. Emergent rhythmic and harmonic structures To empirically validate that PHALAR preserves musical structure without explicit supervision, we design two experiments targeting Rhythm (Phase) and Harmony (Magnitude). 8
Phasors for Learned Musical Audio Representations Table 6. Chord Linear Probing results Results calculated at 95% confidence intervals across 5-fold cross-validation runs.
Model
Accuracy (↑)
Random Chroma CQT PHALAR
1/25 = 4% 50.6% ± 3.13% 55.2% ± 1.78%
COCOLA and significantly higher efficiency. Subjective tests further confirm that PHALAR aligns closer to human perception than industry standards. By addressing the gap where models like CLAP fail to detect temporal misalignment, PHALAR provides a robust, phase-aware metric for evaluating generative audio. Limitations and Failure Cases Despite its strong performance, PHALAR’s reliance on explicit geometric priors introduces specific failure modes:
4.6.2. L INEAR P ROBE FOR C HORDS We further test PHALAR on a frame-level chord classification task, to verify that it retains harmonic information.
• Tempo drift and non-periodic rhythms: Our Learned Spectral Pooling relies on the Real Fast Fourier Transform (RFFT), which inherently assumes temporal periodicity. As shown in Section G, while PHALAR successfully handles complex non-isochronous meters (e.g., a 7/4 time signature), its performance degrades when the track undergoes non-periodic tempo changes (e.g., rubato or ritardando). In such cases, phase coherence becomes ill-defined.
Method We perform a linear probing experiment on GuitarSet (Xi et al., 2018) by training a linear classifier over frozen PHALAR’s output embeddings. Specifically, the probe is inserted after the CVNN head, operating on the final complex-valued embeddings z ∈ C512 (the same vectors used to compute the bilinear similarity, immediately prior to the weight matrix W). The probe is a complex linear layer mapping C512 → C25 . We take the real part of this output to yield a 25-dimensional real logit vector (one per chord class: Major/Minor×12 keys + No Chord), which is optimized via a standard cross-entropy loss. We evaluate this using a 5-fold cross-validation split by song-ID and compare it against librosa’s Chroma CQT baseline, for which we compute the same linear-probe training.
• Arrhythmic and incommensurable strata: Sustained ambient pads or instruments deliberately operating at unrelated periodicities provide no stable phase reference, limiting the model’s ability to lock onto a structural grid. • Audio degradation: As demonstrated in Section D, PHALAR’s performance degrades on heavily compressed or lossy audio formats. Aggressive compression can destroy the fine-grained magnitude information in the input spectrogram required to extract reliable phase embeddings.
Results In Table 6 PHALAR’s embeddings outperform the Chroma CQT ones, suggesting that our architecture’s embeddings successfully integrate the harmonic information from the CQT backbone, and map it to a space easier for a linear probe to predict on, allowing it to better resolve harmonic identity.
• Dataset bias: Our training distributions heavily feature Western popular music. Consequently, the model’s geometric notion of “coherence” may not align with human judgment in contexts where micro-timing deviations are stylistic rather than erroneous.
It should be noted that state-of-the-art systems like BTC (Park et al., 2019) achieve ≈ 76% accuracy on chord detection. However, such models utilize deep temporal sequence modeling (e.g., Transformers (Vaswani et al., 2017)) to resolve harmonic ambiguities using long-term context, and predict start and duration of a chord. In contrast, here, without temporal decoding, we use a linear probe on independent frames to predict the simple presence of a chord, not the temporal evolution of chords in a track.
Future work In future studies, we aim to rigorously test the hypothesis that specific “magnitude-only” feature dimensions represent time-agnostic properties by correlating their phase variance with mood- and key-labeled data. Additionally, we plan to extend this phase-equivariant framework to generative architectures, utilizing complex-valued latents to score generated temporally aligned multitrack audio.
5. Conclusion We introduce PHALAR, a representation learning framework that replaces learned invariance with enforced equivariance. By leveraging the Fourier Shift Theorem to model temporal alignment as geometric rotation, PHALAR preserves musical coherence discarded by standard pooling and semantic models. It establishes a new state-of-the-art on MoisesDB with a relative improvement of up to ≈ 70% over
Impact Statement This work contributes to the advancement of complexvalued Machine Learning, a field with significant implications for high-dimensional data analysis. By improving signal representation, specifically in Music Information Retrieval, this research offers potential benefits for any domain 9
Phasors for Learned Musical Audio Representations
relying on phase-sensitive data. This includes non-acoustic fields such as Radar systems, Medical Imaging (MRI), and Time Series Analysis, where preserving the integrity of complex signals is critical for safety and precision.
Cauchy, A.-L. Sur l’équationa l’aide de laquelle on détermine les inégalités séculaires des mouvements des planetes. Oeuvres Completes (IIeme Série), 9:174–195, 1829.
Broader impacts and potential misuse Within the music domain, PHALAR provides a powerful tool for evaluating and filtering generative audio models. However, when deployed in automated music production workflows or retrieval systems, it risks enforcing rigid, homogenized standards of rhythmic quantization, potentially penalizing stylistic human grooves. Care must be taken to use such metrics as assistive tools rather than absolute arbiters of musical quality.
Cerovaz, L., Mancusi, M., and Rodolà, E. Eulerodec: A complex-valued rvq-vae for efficient and robust audio coding, 2026. URL https://arxiv.org/abs/ 2601.17517. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597–1607, 2020. Cheng, T. and Goto, M. Transformer-based beat tracking with low- resolution encoder and high-resolution decoder. In Proceedings of the 24th International Society for Music Information Retrieval Conference, pp. 466–473, November 2023. doi: 10.5281/zenodo.10265325.
Acknowledgements This work is supported through the MUR FIS2 grant n. FIS-2023-00942 “NEXUS” (cup B53C25001030001), and the Sapienza Seed of ERC grant “MINT.AI” (cup B83C25001040001). We thank and acknowledge ISCRA for awarding this project access to the LEONARDO supercomputer, owned by the EuroHPC Joint Undertaking, hosted by CINECA (Italy). We also thank all of the participants in the human evaluation test, and all of the developers that made the games that provided a much needed stressrelief during the creation of this work.
Chinen, M., Lim, F. S., Skoglund, J., Gureev, N., O’Gorman, F., and Hines, A. Visqol v3: An open source production ready objective speech and audio metric. In 2020 twelfth international conference on quality of multimedia experience (QoMEX), pp. 1–6, 2020. Choi, H.-S., Kim, J.-H., Huh, J., Kim, A., Ha, J.-W., and Lee, K. Phase-aware speech enhancement with deep complex u-net. In International Conference on Learning Representations, 2018.
References Arjovsky, M., Shah, A., and Bengio, Y. Unitary evolution recurrent neural networks. In International conference on machine learning, pp. 1120–1128, 2016.
Ciranni, R., Mariani, G., Mancusi, M., Postolache, E., Fabbro, G., Rodolà, E., and Cosmo, L. Cocola: Coherenceoriented contrastive learning of musical audio representations. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2025.
Atlas, L. and Shamma, S. A. Joint acoustic and modulation frequency. EURASIP Journal on Advances in Signal Processing, 2003(7):310290, Jun 2003. ISSN 1687-6180. doi: 10.1155/S1110865703305013.
Défossez, A., Copet, J., Synnaeve, G., and Adi, Y. High fidelity neural audio compression. Transactions on Machine Learning Research.
Ba, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. Baevski, A., Zhou, H., Mohamed, A., and Auli, M. wav2vec 2.0: a framework for self-supervised learning of speech representations. In Proceedings of the 34th International Conference on Neural Information Processing Systems, 2020.
Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pp. 4171–4186, 2019.
Brigham, E. O. and Morrow, R. E. The fast fourier transform. IEEE Spectrum, 4(12):63–70, 1967. doi: 10.1109/MSPEC.1967.5217220.
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
Caragea, A., Lee, D. G., Maly, J., Pfander, G., and Voigtlaender, F. Quantitative approximation results for complexvalued neural networks. SIAM Journal on Mathematics of Data Science, 4(2):553–580, 2022. 10
Phasors for Learned Musical Audio Representations
Driedger, J., Müller, M., and Disch, S. Extending harmonicpercussive separation of audio signals. In International Society for Music Information Retrieval Conference, 2014.
Kingma, D. P. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. Kumar, R., Seetharaman, P., Luebs, A., Kumar, I., and Kumar, K. High-fidelity audio compression with improved rvqgan. Advances in Neural Information Processing Systems, 36:27980–27993, 2023.
Evans, Z., Parker, J. D., Carr, C., Zukowski, Z., Taylor, J., and Pons, J. Stable audio open. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2025.
Li, Q., Uprety, S., Wang, B., and Song, D. Quantuminspired complex word embedding. In Proceedings of the Third Workshop on Representation Learning for NLP, pp. 50–57, July 2018. doi: 10.18653/v1/W18-3006.
Fitzgerald, D. Harmonic/percussive separation using median filtering. 13th International Conference on Digital Audio Effects (DAFx-10), 2010.
Li, Y., Yuan, R., Zhang, G., Ma, Y., Chen, X., Yin, H., Lin, C., Ragni, A., Benetos, E., Gyenge, N., et al. Mert: Acoustic music understanding model with large-scale self-supervised training. In International Conference on Learning Representations, 2024.
Foscarin, F., Schlüter, J., and Widmer, G. Beat this! accurate beat tracking without DBN postprocessing. In Proceedings of the 25th International Society for Music Information Retrieval Conference (ISMIR), November 2024.
Liu, H., Chen, Z., Yuan, Y., Mei, X., Liu, X., Mandic, D., Wang, W., and Plumbley, M. D. AudioLDM: Textto-audio generation with latent diffusion models. Proceedings of the International Conference on Machine Learning, pp. 21450–21474, 2023.
Gui, A., Gamper, H., Braun, S., and Emmanouilidou, D. Adapting frechet audio distance for generative music evaluation. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1331–1335, 2024.
Manilow, E., Wichern, G., Seetharaman, P., and Le Roux, J. Cutting music source separation some Slakh: A dataset to study the impact of training data quality and quantity. In Proc. IEEE Workshop on Applications of Signal Processing to Audio and Acoustics (WASPAA). IEEE, 2019.
Hershey, S., Chaudhuri, S., Ellis, D. P., Gemmeke, J. F., Jansen, A., Moore, R. C., Plakal, M., Platt, D., Saurous, R. A., Seybold, B., et al. Cnn architectures for large-scale audio classification. In 2017 ieee international conference on acoustics, speech and signal processing (icassp), pp. 131–135, 2017.
Manocha, P., Jin, Z., Zhang, R., and Finkelstein, A. CDPAM: Contrastive learning for perceptual audio similarity. In ICASSP 2021, To Appear, June 2021.
Holighaus, N., Dörfler, M., Velasco, G. A., and Grill, T. A framework for invertible, real-time constant-q transforms. 2012. doi: 10.1109/TASL.2012.2234114.
Miyato, T., Kataoka, T., Koyama, M., and Yoshida, Y. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018.
Hsu, W.-N., Bolte, B., Tsai, Y.-H. H., Lakhotia, K., Salakhutdinov, R., and Mohamed, A. Hubert: Selfsupervised speech representation learning by masked prediction of hidden units. IEEE/ACM transactions on audio, speech, and language processing, 29:3451–3460, 2021.
Oord, A. v. d., Li, Y., and Vinyals, O. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
Ioffe, S. and Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pp. 448– 456. pmlr, 2015.
Park, J., Choi, K., Jeon, S., Kim, D., and Park, J. A bidirectional transformer for musical chord recognition. In 20th International Society for Music Information Retrieval Conference, ISMIR 2019, pp. 620–627. International Society for Music Information Retrieval, 2019.
Jordan, K., Jin, Y., Boza, V., Jiacheng, Y., Cesista, F., Newhouse, L., and Bernstein, J. Muon: An optimizer for hidden layers in neural networks, 2024. URL https: //kellerjordan.github.io/posts/muon/.
Pereira, I., Araújo, F., Korzeniowski, F., and Vogl, R. Moisesdb: A dataset for source separation beyond 4-stems, 2023.
Kilgour, K., Zuluaga, M., Roblek, D., and Sharifi, M. Fréchet audio distance: A reference-free metric for evaluating music enhancement algorithms. In Proc. Interspeech 2019, pp. 2350–2354, 2019.
Rafii, Z., Liutkus, A., Stöter, F.-R., Mimilakis, S. I., and Bittner, R. The MUSDB18 corpus for music separation, 2017. 11
Phasors for Learned Musical Audio Representations
Rafii, Z., Liutkus, A., Stöter, F.-R., Mimilakis, S. I., and Bittner, R. Musdb18-hq - an uncompressed version of musdb18, 2019.
Waters, R. Money. Pink Floyd. The Dark Side of the Moon. Harvest Records, 1973. White, J. Seven Nation Army. The White Stripes. Elephant. V2 Recordings and XL Recordings, 2003.
Rippel, O., Snoek, J., and Adams, R. P. Spectral representations for convolutional neural networks. Advances in neural information processing systems, 28, 2015.
Wu, Y., Gardner, J., Manilow, E., Simon, I., Hawthorne, C., and Engel, J. The chamber ensemble generator: Limitless high-quality mir data via generative modeling. arXiv preprint arXiv:2209.14458, 2022.
Saeed, A., Grangier, D., and Zeghidour, N. Contrastive learning of general-purpose audio representations, 2020.
Wu*, Y., Chen*, K., Zhang*, T., Hui*, Y., Berg-Kirkpatrick, T., and Dubnov, S. Large-scale contrastive languageaudio pretraining with feature fusion and keyword-tocaption augmentation. In IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP, 2023.
Slavov, B. I Want to Live (Classical Version). Baldur’s Gate 3 (Original Game Soundtrack). Larian Studios, 2023. URL https://youtu.be/3rrTWbpd8eY. Spijkervet, J. and Burgoyne, J. A. ing of musical representations. arXiv:2103.09410, 2021.
Contrastive learnarXiv preprint
Xi, Q., Bittner, R., Pauwels, J., Ye, X., and Bello, J. P. Guitarset: A dataset for guitar transcription. In Proceedings of the 19th International Society for Music Information Retrieval Conference, pp. 453–460. ISMIR, 2018. doi: 10.5281/zenodo.1492449.
Strano, G., Ballanti, C., Crisostomi, D., Mancusi, M., Cosmo, L., and Rodolà, E. Stage: Stemmed accompaniment generation through prefix-based conditioning. Proceedings of the 26th International Society for Music Information Retrieval Conference, 2025. Sun, Z., Deng, Z.-H., Nie, J.-Y., and Tang, J. Rotate: Knowledge graph embedding by relational rotation in complex space. In International Conference on Learning Representations, 2019. Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. Tjandra, A., Wu, Y.-C., Guo, B., Hoffman, J., Ellis, B., Vyas, A., Shi, B., Chen, S., Le, M., Zacharov, N., Wood, C., Lee, A., and Hsu, W.-N. Meta audiobox aesthetics: Unified automatic quality assessment for speech, music, and sound. 2025. URL https://arxiv.org/abs/ 2502.05139. Trabelsi, C., Bilaniuk, O., Zhang, Y., Serdyuk, D., Subramanian, S., Santos, J. F., Mehri, S., Rostamzadeh, N., Bengio, Y., and Pal, C. J. Deep complex networks. In International Conference on Learning Representations, 2018. Trouillon, T., Welbl, J., Riedel, S., Gaussier, É., and Bouchard, G. Complex embeddings for simple link prediction. In International conference on machine learning, pp. 2071–2080. PMLR, 2016. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. Advances in neural information processing systems, 30, 2017. 12
Phasors for Learned Musical Audio Representations
A. Complex-valued layers Our complex-valued head is designed around phase equivariance, the list of its components is detailed in this section. A.1. Complex Linear Layer The linear layers operate on complex inputs z = x + iy using complex weights W = A + iB: CplxLinear(z) = (xA − yB) + i(xB + yA) .
(6)
By omitting the bias term, this operation commutes with rotation, preserving strict phase equivariance. A.2. Complex RMSNorm Standard normalization methods such as BatchNorm (Ioffe & Szegedy, 2015) and LayerNorm (Ba et al., 2016) rely on mean centering, which disrupts phase relationships. We adopt a complex variant of RMSNorm (Cerovaz et al., 2026) that normalizes based strictly on magnitude: CplxRMSNorm(z) = q
z PD 1 D
,
(7)
2 d=1 |zd | + ϵ
p
where |zd | = x2d + yd2 is the magnitude. Since the scaling factor is a real scalar derived from the invariant magnitude, the phase angle of the input is preserved. A.3. Complex Activation Functions We utilize a complex variant of ReLU, modReLU (Arjovsky et al., 2016; Trabelsi et al., 2018; Caragea et al., 2022) which applies a non-linearity to the magnitude while acting as an identity function on the phase: modReLU(z) =
z ReLU(|z| − b) |z|
= ei∠z · ReLU(|z| − b) .
(8) (9)
This effectively gates the magnitude of the phasors based on a learned bias b, allowing the model to learn non-linear interactions between features while maintaining their temporal alignment.
B. Comparison with original COCOLA results In this paper we retrained the COCOLA baseline to ensure fairness when accounting for the optimization algorithm shift (Adam (Kingma, 2014) to Muon (Jordan et al., 2024)) that we take with respect to (Ciranni et al., 2025). In Table 7 we present the original results from (Ciranni et al., 2025) next to PHALAR and our retrained COCOLA baseline.
C. MERT Cross-Architecture comparison In the main text (Table 1), we compared PHALAR against frozen MERT embeddings (m-a-p/MERT-v1-95M) expanded with our Learned Spectral Pooling and CVNN head. To fully validate the necessity of this phase-aware architecture, we conducted an ablation over MERT aggregation strategies, evaluating three configurations trained under the exact same regime described in Section 4.1: 1. MERT-freeze: Global Average Pooling + cosine similarity (representing off-the-shelf semantic features). 2. MERT-avg: Global Average Pooling + trainable real-valued MLP head + bilinear similarity. 3. MERT-cplx (the variant shown in Table 1): Learned Spectral Pooling + trainable CVNN head + complex bilinear similarity (the PHALAR head). As expected, in Table 8 MERT-freeze fails to solve the task, mirroring the collapse to random chance seen in CLAP and CDPAM. This reinforces the observation that raw semantic embeddings invariant to temporal structure cannot assess 13
Phasors for Learned Musical Audio Representations Table 7. Contrastive retrieval with original COCOLA results (↑) Top-1 accuracy on disjoint submix retrieval. (†: reported in (Ciranni et al., 2025))
Dataset
K
PHALAR (2.3M)
COCOLA† (5.2M)
COCOLA (5.2M)
MoisesDB MoisesDB MoisesDB
8 16 64
86.79 81.49 70.87
73.68 62.17 34.04
75.81 64.44 41.84
Slakh2100 Slakh2100 Slakh2100
8 16 64
87.69 83.28 72.37
79.72 72.62 59.35
79.33 71.58 55.84
ChocoChorales ChocoChorales ChocoChorales
8 16 64
99.65 99.45 98.61
98.27 96.67 90.67
97.82 96.02 89.34
Table 8. Contrastive retrieval ablation on MERT (↑) Top-1 accuracy on disjoint submix retrieval for different aggregation and projection heads on frozen MERT embeddings.
Dataset
K
MERT-freeze
MERT-avg
MERT-cplx
MoisesDB MoisesDB MoisesDB
8 16 64
14.06 7.63 1.83
63.53 50.58 27.82
67.39 59.13 45.85
Slakh2100 Slakh2100 Slakh2100
8 16 64
15.77 8.99 3.35
63.81 52.41 32.64
66.70 58.39 46.13
ChocoChorales ChocoChorales ChocoChorales
8 16 64
6.44 2.37 0.31
92.36 86.41 68.74
96.49 93.79 86.65
coherence. Introducing a trainable real-valued projection head (MERT-avg) extracts some latent structural information, drastically improving performance. However, replacing Global Average Pooling with our Learned Spectral Pooling and CVNN head (MERT-cplx) provides a further significant boost across all datasets. This confirms that even for large-scale semantic foundation models, explicit phase-equivariant processing is the optimal strategy for resolving musical coherence.
D. Audio Degradation Correlation We evaluate how PHALAR correlates with audio degradation by reconstructing full-mixture excerpts from MUSDB using two neural audio codecs, DAC (Kumar et al., 2023) and EnCodec (Défossez et al.), at varying codebook depths (K). Such that lower K should result in significant information loss and audio degradation. As shown in Table 9, all models (except for FADMERT ) demonstrate a monotonic relationship with audio quality. Proving the intuitive notion that both Semantic Similarity and Structural Coherence tasks correlate with audio quality. Confirming that PHALAR’s phase-aware objective successfully captures structural fidelity.
E. Theoretical Bounds of the Coherence Metric While the standard Cosine Similarity is strictly bounded to [−1, 1], our Equation (3) is effectively a generalized inner product. A potential concern is that this score is unbounded. However, since our embeddings are L2-normalized (||z||2 = 1), the metric space is strictly bounded by the spectral properties of the weight matrix W. 14
Phasors for Learned Musical Audio Representations Table 9. Codebook Ablation Test. Comparison of metric scores on audio reconstructed via neural codecs (DAC, Encodec) at different codebook counts (K). Higher K corresponds to higher audio quality.
Condition
PHALAR (↑)
CLAP (↑)
CDPAM (↓)
FADMERT (↓)
FADCLAP (↓)
AudioboxPQ (↑)
DAC (K = 1) DAC (K = 3) DAC (K = 6) DAC (K = 9)
8.310 9.515 9.844 9.974
0.718 0.890 0.940 0.960
0.140 0.075 0.042 0.033
21.85 21.88 21.88 21.90
0.591 0.229 0.146 0.105
6.52 7.43 7.72 7.76
EnCodec (K = 2) EnCodec (K = 4) EnCodec (K = 8) EnCodec (K = 16)
9.513 9.752 9.954 10.035
0.893 0.929 0.955 0.972
0.067 0.050 0.038 0.031
21.85 21.87 21.84 21.84
0.387 0.356 0.302 0.236
7.38 7.65 7.72 7.76
E.1. General Bound via Singular Values For the asymmetric scoring function used during training, the score is bounded by the spectral norm of W, which is equivalent to its largest singular value σmax |s(zx , zy )| ≤ |zH x Wzy | ≤ ||W||2 = σmax (W),
(10)
implying that σmax acts as a learnable temperature parameter for the InfoNCE loss. If a fixed range is required, W can be spectrally normalized (Miyato et al., 2018) at inference time. E.2. Tighter bound via symmetrization In our evaluation we utilize Equation (4), symmetrizing the coherence score. As we argue in Section 4.4, it is equivalent to replacing W with its Hermitian part. Unlike W, the matrix Weff is Hermitian, and consequently, by the spectral theorem, all its eigenvalues λi are guaranteed to be real numbers (Cauchy, 1829). This allows us to bound the symmetrized score strictly by the eigenvalues of Weff |scomm (zx , zy )| ≤ max |λ(Weff )|.
(11)
Since max |λ(Weff )| ≤ σmax (W), the symmetrized metric can be provided with a tighter bound than the raw score, effectively filtering-out the skew-Hermitian energy that does not contribute to the real-valued coherence.
F. Direct Test of Phase-Aware Behavior A core claim of PHALAR is that temporal alignment is explicitly encoded as a phase rotation in the complex latent space. To directly test this behavior beyond downstream retrieval metrics, we designed an experiment to empirically verify whether the Fourier Shift Theorem operates linearly within the model’s embeddings. Method We extracted embeddings from the first four bass bars of “Seven Nation Army” (White, 2003). We systematically varied the temporal offset of the audio by applying a shifting delay ∆t ∈ [0, 1.7s] via zero-padding at the beginning of the track. For each shifted input, we extracted the complex-valued embedding z and measured the Pearson correlation ρ between the applied delay ∆t and the unwrapped phase angle of each latent dimension. Result Looking at the individual dimensions with the highest absolute correlation (Figure 6), we observed clear linear relationships, with feature phases reliably increasing or decreasing (positive and negative slopes) in direct proportion to ∆t. To quantify the global behavior of the embedding, we normalized the directions by inverting the negative slopes and computed the magnitude-weighted average of the unwrapped phase across all dimensions. This weighted average phase grows perfectly linearly with the temporal delay, yielding a Pearson correlation of ρ ≈ 0.999. This confirms that PHALAR’s architecture successfully translates time shifts in the input domain into geometric phase rotations in the latent space, empirically proving that it preserves temporal alignment as a mathematical primitive. 15
Phasors for Learned Musical Audio Representations dim 147 dim 148 dim 140 dim 431 dim 105
U nw r a p p e d a n g l e ( r a d )
40
20
0
-20
-40
-60 0.00
0.25
0.50
0.75
1.00
1.25
1.50
1.75
Time
Figure 6. ∆t v. ∠z over the top-5 dimensions by |ρ| s(z bpm , z time ) 2 10
20
30
40
50
60
70
s(z bpm , z time ) 2
80
0
225
225
200
200
175
175
150
BPM
BPM
0
125
75
75
50
50
40
45
Time
50
55
60
30
40
50
60
70
80
125 100
35
20
150
100
30
10
160
165
170
175
Time
180
185
190
Figure 7. BPM of “Money” (Waters, 1973)
G. Behavior Under Non-Isochronous Rhythms and Tempo Drift In Section 5, we noted that PHALAR’s Learned Spectral Pooling relies on the RFFT, which assumes temporal periodicity. To investigate how this assumption impacts real-world music, we evaluated PHALAR’s zero-shot beat tracking capabilities (using the synthetic metronome probe described in Section 4.6.1) on tracks with non-isochronous rhythms and dynamic tempos. Complex Meters (Non-Isochronous Rhythms) We tested the model on “Money” (Waters, 1973), a track famous for its 7/4 time signature at 126 BPM. Because a 7/4 meter is still fundamentally periodic (repeating every 7 beats), PHALAR gracefully handles the non-isochronous feel. As shown in Figure 7, the zero-shot probe successfully recovers the underlying pulse at the correct 126 BPM, generating clear interference patterns in the similarity matrix. This proves the model is not biased toward standard 4/4 structures, but rather detects true rhythmic periodicity. Tempo Drift However, as theoretically expected, the model is significantly less reliable when the beat itself accelerates or decelerates non-periodically (tempo drift). In the same track (“Money”), the band switches to a standard 4/4 signature around the 172-second mark for the guitar solo, introducing a distinct change of pace. During this transition, the horizontal bands in the similarity heatmap become blurred and unstable (Figure 7). Because the tempo fluctuates, the phase coherence of the rhythmic grid becomes ill-defined, preventing the RFFT from locking onto a single stable frequency. This confirms that PHALAR is highly robust to complex metrical structures provided they are periodic, but its performance predictably degrades in the presence of human tempo drift or rubato. 16