Introduction
In multimedia content, the synergy between visual and auditory elements is critical to the viewer's experience. When the visual tone of a video or image fails to align with its background music, it creates an emotional dissonance that weakens the intended message. Traditional approaches to music-to-color mapping often rely on simplistic heuristics or intermediate modalities like text descriptions, which frequently strip away the nuanced affective cues present in raw audio.
Music2Palette addresses this by providing an end-to-end framework that generates emotionally resonant color palettes directly from music. By mapping complex auditory signals into a shared emotion space, the model enables automated, mood-aligned applications such as image recoloring, video styling, and data visualization.
Methodology
The Music2Palette framework utilizes a cross-modal representation learning approach consisting of three primary components:
- Music Encoder: Based on the Audio Spectrogram Transformer (AST), this encoder processes a "unified feature matrix" including rhythm, pitch, chroma, and energy. This allows the model to capture how musical structure relates directly to human color perception rather than relying solely on Mel spectrograms.
- Embedding Augmentation: Acknowledging that music-to-color mapping is inherently subjective, the authors introduce controlled Gaussian noise to the music embeddings. This "one-to-many" approach allows the model to generate a variety of emotionally consistent but visually distinct palettes for the same musical input.
- Transformer Color Decoder: This component generates palettes of variable lengths (3 to 5 colors) in the CIELCh color space (Lightness, Chroma, Hue). This space is preferred over standard RGB as it better aligns with human vision. A learnable "stop token" allows the model to determine the optimal number of colors for a specific piece of music.
The model is optimized via a multi-objective loss function that balances color distance (using the CIEDE2000 formula), color diversity (penalizing repetitive hues), and emotion consistency.
The MuCED Dataset
A core contribution of this work is the Music-Color Emotion Dataset (MuCED), the first extensive cross-modal dataset for this task. It contains 2,634 high-quality music-palette pairs sourced from public music datasets (Emotify, PMEmo, DEAM) and design platforms (Color Hunter, Adobe Color).
Initial pairs were aligned using Russell’s circumplex model, mapping emotions across Valence and Arousal dimensions. To ensure aesthetic quality and cross-cultural emotional resonance, 45 experts from art and design domains refined and rated the pairs.
Key Insights
- Direct Mapping: By skipping text descriptions, the model preserves "affective nuance." While text might categorize a song as "sad," raw audio features help the model distinguish between different types of sadness (e.g., cold/blue vs. heavy/purple).
- Subjectivity as a Feature: The inclusion of embedding augmentation recognizes that there is no single "correct" palette for a song, making the tool more versatile for creative professionals.
- Perceptual Color Spaces: Utilizing the LCh space allows for specific penalties on hue similarity, which is the primary driver of perceived palette diversity.
Results and Applications
Music2Palette was evaluated against text-driven and image-driven baselines with significant success:
- Emotion Similarity (ES): The model achieved a score of 0.74, significantly higher than the image-driven baseline (0.50).
- User Preference: In subjective studies, users chose Music2Palette’s results as the best match for music emotion 69.05% of the time.
- Practical Utility: The paper demonstrates the model's efficacy in image recoloring (e.g., shifting a scene's tone to match "flirtatious" music) and data visualization, where charts are colored to reflect the emotional theme of a song.
Conclusion and Future Work
Music2Palette represents a significant step in automated creative tools by bridging the gap between sound and sight. While the current model relies on expert standards, future iterations could incorporate individual user preferences or "personal color" profiles. Additionally, adapting the framework for real-time interaction during live performances and deepening the integration of cultural color symbolism remain promising avenues for future research.
Summary updated