Phones and smart speakers could learn to recognize emotion in their owners' voices without uploading audio. In federated learning, each device trains locally and sends only a model update to a server. But these updates leak. Prior work recovers a speaker's gender from the updates of an emotion model with 96.90% accuracy, and reconstructs minutes-long speech from the updates of audio classifiers. The cheapest practical setup is to freeze a pretrained speech-emotion encoder and train only a small classifier on top. That setup is often assumed to be safe. It is in fact the easiest to attack. For a single utterance, the update of a linear classifier contains the encoder's embedding of that utterance exactly. Whatever the embedding knows about the speaker, the server learns.
We propose to make that embedding forget the speaker, using a signal that emotion research already provides. Emotional cues that hold across languages, such as arousal-driven changes in pitch and energy, come from shared human physiology. Cues that hold only within one language, one speaker, or one culture are exactly the ones that identify people. We will estimate, on public multilingual emotion corpora, a small fixed linear subspace of a frozen emotion encoder's embedding. This subspace keeps the emotion directions that agree across English, Mandarin, German and Telugu, and discards the directions that vary with speaker or language. Each device centers its embeddings on its own running mean, projects them into this subspace, and trains the classifier there. The privacy question then reduces to an offline audit of one fixed, low-dimensional representation. That audit can be run with any attack before deployment.
Core Claim
Under a frozen-encoder, head-only federated setup, a client's shared update is a function only of its projected features and its labels. The server therefore cannot learn more about the client than the projected features reveal. Our claim is that a projection chosen for cross-lingual emotional consistency, with speaker-level variation penalized, removes speaker attributes the defender never named. We expect it to cut inference of gender, age, race, language and speaker identity close to chance, while keeping most of the emotion accuracy of the unprojected encoder. We further claim the cross-lingual criterion matters. A subspace fit on a single language with the same speaker penalty should leak more and transfer worse to unseen languages. The point is that language independence is not only a generalization property; here it serves as a privacy criterion. The method also needs no labels for the attributes being protected. This directly addresses the failure that Tan et al. document, where a defense tuned for one attribute does not protect another.
Why the Head-Only Regime Is the Right Target
Let $h \in \mathbb{R}^d$ be the frozen encoder's utterance embedding, and let the classifier compute logits $Wh + b$ over $C$ emotion classes with softmax cross-entropy loss. Let $p$ be the predicted class probabilities and $y$ the one-hot label. The gradients are
$$\frac{\partial L}{\partial W} = (p - y)\,h^\top, \qquad \frac{\partial L}{\partial b} = p - y,$$
so for one utterance, dividing any row of the weight gradient by the matching bias entry returns $h$ exactly. Over a batch, the weight gradient is a sum of such outer products. Its rank is at most $C$, which is four or five for typical emotion sets. The server therefore sees a low-rank summary of the client's embeddings plus its label errors. This is a much cleaner leak than the iterative optimization that gradient inversion needs in vision, as in GIAS, or in audio, as in dynamic segment reconstruction.
The regime is also the practical one. emotion2vec is a self-supervised emotion encoder pretrained on 262 hours across corpora that generalizes across ten languages. It reaches 71.79% weighted accuracy on IEMOCAP with only a linear layer on its frozen features. This fits the recurring finding that leakage concentrates in layers close to the input or before fusion, reported for speech by Feng et al. and for document models by Ben Hemo et al.. In a head-only setup, the "first layer" is the classifier's input, and it receives the encoder's output directly. Feng et al.'s "feature paradox", where richer self-supervised features leak more demographic information, predicts that a strong emotion encoder will be a strong leak.
Research Program
The first component is an audit of the naive setup. We will measure how much speaker information the frozen emotion2vec embedding carries once a server recovers it, either analytically for single-utterance updates or through a shadow-trained attack classifier on batched updates in the style of Feng et al. The audit covers gender, age and race on CREMA-D, speaker identity and cross-session linkability, and spoken language on ESD (English and Mandarin speakers). Nobody has run this audit on a language-independent emotion encoder. It also answers the open question of whether "language-independent" implies "speaker-blind". We expect it does not.
The second component is the subspace estimate. On public corpora with emotion, speaker and language labels, we compute four scatter matrices over embeddings. $S_E$ is the scatter of emotion-class means averaged across languages: the shared emotion signal. $S_{E\times L}$ is the scatter of language-specific deviations from those shared means. $S_S$ is the scatter of per-speaker means within each language. $S_L$ is the scatter of per-language means. All are computed after each speaker is centered on their own mean. We then solve for a projection $P \in \mathbb{R}^{d \times k}$ with $k$ small:
$$P^\star = \arg\max_{P^\top P = I}\; \frac{\operatorname{tr}(P^\top S_E P)}{\operatorname{tr}\big(P^\top (S_S + S_L + S_{E\times L} + \lambda I) P\big)},$$
where $\lambda$ is a small ridge term. This is a generalized eigenproblem. The criterion keeps directions where emotion means separate in the same way across languages and penalizes directions that vary with speaker, language, or language-specific ways of expressing emotion.
The speaker penalty is what covers unnamed attributes. Gender, age, race and vocal-tract length are all constant within a speaker, so their first-order traces are contained in $S_S$, and no demographic labels are needed. The centering step comes from Kadiri et al., who model emotion as a deviation from a speaker's neutral baseline and transfer from Telugu to German. We replace their registered neutral recording with a running mean over the device's own utterances, which fits naturally on a one-speaker client. The per-language normalization echoes Chiou, who aligned acoustic distributions across languages with histogram equalization. The emotion-versus-identity framing comes from Luo et al., who separate speaker-independent emotion codes from timbre in voice conversion. Our contribution is to do this as a closed-form linear operation on a frozen encoder, motivated by a privacy bound, rather than with a trained synthesis network.
The third component is the honest cost accounting. Luo et al. report that arousal tracks pitch while valence sits in timbre, and timbre is also where identity lives. We therefore predict that the filter will keep arousal-separable classes (anger, sadness, neutral) but erode valence distinctions at matched arousal, such as happy versus angry. We will report accuracy along both dimensions separately, and also per-utterance leakage. The second measure checks whether some speakers or emotions stay exposed, the "privacy unfairness" that inversion influence functions predict.
Baselines
The do-nothing reference is federated training of a linear head on frozen emotion2vec features, with no centering and no projection. The attacker either recovers embeddings analytically or uses a Feng-style shadow classifier. It sets both the utility ceiling and the leakage floor. The comparable published figures are 71.79% weighted accuracy on IEMOCAP for the centralized linear probe (Ma et al.) and 96.90% gender attack success on MSP-Improv for a federated emotion model (Feng et al.). The second figure comes from a different feature setup, so we will remeasure both under our own protocol.
The strongest existing defense targeted at this task is Property-Indistinguishability (Pro-Ind) from Tan et al., with the extended study in Tan et al.. Pro-Ind perturbs an x-vector property embedding with an exponential mechanism and re-synthesizes each utterance with neural text-to-speech before local training. On CREMA-D it keeps emotion accuracy near 0.65, against roughly 0.66 undefended, and drives property inference from 83–85% to near random. We will run Pro-Ind on the same CREMA-D splits, encoder and head, using its published configuration protected for one attribute. Our method is protected for none in particular. We will then attack all attributes for both methods. We beat Pro-Ind if, at equal or better emotion accuracy, we match its leakage on the attribute it was configured for and clearly beat it on the attributes it was not, with no text-to-speech on the device. If Pro-Ind matches us on unprotected attributes, our advantage is only computational, and we will say so.
The generic defense is differential privacy applied to the head's updates through per-client clipping and Gaussian noise. We sweep the noise level and plot emotion accuracy against attack accuracy, rather than comparing at a single privacy budget. Tan et al. report that user-level differential privacy pushes CREMA-D accuracy toward 0.50, or below 55%, at protective budgets. However, that was for a full model, and head-only noise may be far cheaper. The fair comparison is therefore our method's operating point against the full differential-privacy curve, under the same number of rounds and an equal hyperparameter search budget. Beating it means lying strictly below the curve: lower attack accuracy at the same emotion accuracy.
Three ablations isolate the key ingredient, all at the same output dimension $k$. Centering alone tests whether removing each speaker's mean does the work by itself. An English-only subspace, using the same objective with the speaker penalty but fit only on English data, tests whether the cross-lingual terms add anything. PCA and a random subspace control for simple dimensionality reduction.
Why not just…?
Why not just add differential-privacy noise to the head's updates? Prior evidence says noise is costly in this domain. Tan et al. saw emotion accuracy fall toward 0.50, and Feng et al. found that budgets of $\epsilon \le 10$ "significantly degraded" utility. Both measurements were on full models, though. A linear head has few parameters, so the noise needed for protection may be small, which makes this a real threat. Our sweep answers it directly. If the differential-privacy curve passes through our operating point, the filter is not worth deploying alone. It would still be useful combined with noise, because it lowers what the noise has to hide, and we will test that combination.
Why not just subtract each client's mean embedding? Kadiri et al.'s deviation-from-baseline idea is nearly free, and in a one-speaker-per-device setting it removes the speaker's average embedding. This is the simplest alternative most likely to work, which is why we built it into the method instead of arguing against it. It cannot remove identity that shows up in how a speaker's embedding moves with emotion, as opposed to where it sits on average. Luo et al.'s finding that valence lives in identity-bearing timbre suggests that such second-order structure exists. The centering-only ablation settles it. If centering alone brings held-out attributes to chance, the projection is unnecessary and that is the finding we report.
Why not just remove gender adversarially, or with a Pro-Ind-style perturbation of the named attribute? Attribute-specific defenses protect only what they name. Tan et al.'s misalignment result shows that a defense set for race fails against a gender attack. Our evaluation trains on no demographic labels and attacks age, race, language and speaker identity as held-out targets. An attribute-specific defense should leak on those targets by construction.
Why not just fine-tune the whole encoder for better accuracy and rely on large FedAvg batches? Batching does not reliably protect. Jeon et al. reconstruct images at batch size 32, and Feng et al. find FedAvg gives only a "slight privacy benefit". Full-model updates also open the door to waveform reconstruction, which Zeng and Rudzicz show at 47.7 dB SNR on Speech Commands, with output intelligible enough to be transcribed by Whisper. We will run their attack against a fully fine-tuned emotion model on ESD as a reference point. That attack has never been evaluated on emotion recognition. The comparison shows what the head-only restriction buys before any projection is applied.
Proposed Experiments
The subspace is fit on public data from ESD (ten English and ten Mandarin speakers, five emotions), EMO-DB (German) and the IIIT-H Telugu database. It is evaluated as a federated system with one client per speaker on CREMA-D (91 speakers with gender, age and race labels), IEMOCAP and MSP-Improv. None of these evaluation corpora is used to fit the subspace. emotion2vec's pretraining pool may overlap with these corpora, so we will also report results with a second encoder trained without them. For cross-lingual transfer, we hold out each fitting language in turn, refit the subspace without it, and evaluate on that language.
We will report the following metrics. Utility is unweighted and weighted emotion accuracy, broken down into arousal and valence. Leakage is attack accuracy for each attribute against chance, speaker-linkage equal error rate, and language-identification accuracy. Each is measured under two attackers. The first is the realistic one, working from analytic recovery or a shadow classifier on gradients. The second is the upper bound, a probe trained directly on clean projected features. The bound holds because a head-only update can carry no more than those features.
The decisive checks follow from these measurements. The idea succeeds if, at a utility loss of a few points relative to the naive baseline, held-out attribute leakage falls near chance and our point lies below the differential-privacy curve. The cross-lingual criterion earns its place only if it beats the English-only subspace on both leakage and accuracy for a held-out language. The idea fails, and we will say so, under any of three outcomes: centering alone matches the full method, valence accuracy collapses, or the upper-bound probe still identifies speakers well above chance.
References
- General or Specific? Investigating Effective Privacy Protection in Federated Learning for Speech Emotion Recognition
- Gradient Inversion with Generative Image Prior
- How to Recover Long Audio Sequences Through Gradient Inversion Attack With Dynamic Segment-based Reconstruction
- emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation
- Attribute Inference Attack of Speech Emotion Recognition in Federated Learning Settings
- Gradient Inversion of Multimodal Models
- Analysis of excitation source features of speech for emotion recognition
- Speech emotion recognition with cross-lingual databases
- Decoupling Speaker-Independent Emotions for Voice Conversion via Source-Filter Networks
- Understanding Deep Gradient Leakage via Inversion Influence Functions
- Investigating Effective Speaker Property Privacy Protection in Federated Learning for Speech Emotion Recognition