Audio--Lyrics Cross-Attention for Improved Music Emotion Recognition in an Adaptive Dual-View Architecture
This paper proposes an adaptive dual-view architecture for Music Emotion Recognition that integrates audio and lyrics via bidirectional cross-attention and employs novel training mechanisms (Progressive Confidence Labelling and Style-Anchored Memory Learning) to achieve state-of-the-art performance on the MERGE corpus by effectively leveraging acoustic signals for arousal and lyrical content for valence.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Music has a unique power to shift our internal state, lifting us from sadness to joy or settling a restless mind into calm. Yet, the way a song makes us feel is rarely a simple reaction to a single sound. It is a complex negotiation between what we hear and what we read. The rhythm, the speed of the instruments, and the sharpness of a drumbeat often tell us how energetic a song is, while the words themselves reveal whether the feeling is positive or negative. A slow, quiet song might sound sad, but if the lyrics speak of hope, the overall emotion changes. For decades, scientists have tried to build computers that can understand this nuance, but most systems have struggled because they treat the audio and the text as separate lists of facts, simply sticking them together without letting them truly interact.
A new study from researchers at Mepco Schlenk Engineering College in India offers a fresh approach to this problem. They built a system that does not just listen to music and read lyrics side-by-side, but forces the two to talk to each other. By creating a digital architecture where the sound and the words constantly ask each other for clarification, the team achieved a more accurate understanding of musical emotion than previous methods. Their work suggests that when a computer is allowed to weigh the energy of a drum against the meaning of a line of poetry, it can distinguish between a calm, happy song and a sad, quiet one with much greater precision.
The researchers focused on a specific way of mapping emotion known as the circumplex model. Imagine a flat map with two axes running through it. One axis measures how pleasant or unpleasant a feeling is, ranging from negative to positive. The other measures how active or passive the feeling is, ranging from low energy to high energy. Where these two lines cross, they create four distinct zones. One zone holds happy, excited music; another holds angry, tense music; a third contains sad, depressed songs; and the fourth holds calm, relaxed tunes. The goal of the research was to teach a computer to place any given song into the correct zone on this map.
To do this, the team designed a system that looks at the music through two different "eyes" before it even considers the words. The first eye sees the sound as a standard frequency map, similar to how a piano keyboard lays out notes. The second eye sees the sound through a filter that mimics the human ear's inner structure, which is better at capturing the subtle textures of sound. By comparing these two views of the same audio, the system builds a robust understanding of the song's energy and rhythm. This dual-view approach is crucial because it prevents the computer from being fooled by a single type of sound analysis.
Once the system has a solid grasp of the audio, it brings in the lyrics. Instead of just reading the words and assigning a mood, the system uses a process called cross-attention. This allows the audio part of the system to ask the text part, "Does this word explain why the music sounds so intense?" and allows the text part to ask, "Does this sound match the feeling of these words?" If a song has a slow, gentle melody but the lyrics are angry, the system learns to weigh the lyrics heavily to correct the audio's initial impression. This back-and-forth dialogue ensures that the final decision is a true synthesis of sound and meaning, rather than a simple average of the two.
The researchers tested their system on a carefully selected collection of 2,000 songs, ensuring an equal number of tracks in each of the four emotional zones. They found that their method correctly identified the emotional category of a song with an AUC of 0.73. While this might not sound like perfection, it represents a significant improvement over systems that simply combine audio and text without this interactive questioning. The system was particularly good at identifying angry or tense music, where the sharp sounds and aggressive words align perfectly. However, it still found it difficult to distinguish between calm, happy songs and sad, quiet ones, a challenge that arises because both types of music share similar slow tempos and low energy levels.
To ensure the system learned correctly and did not get confused by its own mistakes during training, the researchers introduced two special safeguards. One method acted like a teacher who only accepts answers when two different students agree on the solution, filtering out uncertain guesses. The other method kept the system's internal memory of what different emotions "look like" stable, preventing it from drifting away from the correct definitions as it learned. These techniques helped the system maintain a high level of accuracy even when the data was tricky.
The study also revealed where the system struggles most. When the computer made a mistake, it was almost always because it got the "pleasantness" of the song wrong, rather than the energy level. For instance, it might correctly hear that a song is quiet and slow, but fail to decide if that quietness is peaceful or sorrowful. This confirms a long-held idea in music psychology: the words are the key to understanding whether a feeling is good or bad, while the sound tells us how strong that feeling is. The researchers demonstrated that by letting the words guide the interpretation of the sound, they could resolve many of these ambiguities.
Beyond the numbers, the team showed that this technology can be put to practical use. They built a working web application where a user can upload a song and its lyrics, and the system instantly places the track on the emotional map, showing exactly where it sits between calm and energetic, or happy and sad. This tool can help music streaming services recommend songs that match a listener's current mood or help therapists select music that supports specific emotional goals. While the system is not perfect and still needs work to handle songs in languages other than English or to track how emotions change within a single track, it marks a clear step forward. It proves that for a computer to truly understand the heart of a song, it must listen to the music and read the words at the same time, letting them inform and correct one another.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.