HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Gramian Multimodal Representation Learning and Alignment

Giordano Cicchetti; Eleonora Grassucci; Luigi Sigillo; Danilo Comminiello

Gramian Multimodal Representation Learning and Alignment

Abstract

Human perception integrates multiple modalities, such as vision, hearing, and language, into a unified understanding of the surrounding reality. While recent multimodal models have achieved significant progress by aligning pairs of modalities via contrastive learning, their solutions are unsuitable when scaling to multiple modalities. These models typically align each modality to a designated anchor without ensuring the alignment of all modalities with each other, leading to suboptimal performance in tasks requiring a joint understanding of multiple modalities. In this paper, we structurally rethink the pairwise conventional approach to multimodal learning and we present the novel Gramian Representation Alignment Measure (GRAM), which overcomes the above-mentioned limitations. GRAM learns and then aligns $n$ modalities directly in the higher-dimensional space in which modality embeddings lie by minimizing the Gramian volume of the $k$-dimensional parallelotope spanned by the modality vectors, ensuring the geometric alignment of all modalities simultaneously. GRAM can replace cosine similarity in any downstream method, holding for 2 to $n$ modalities and providing more meaningful alignment with respect to previous similarity measures. The novel GRAM-based contrastive loss function enhances the alignment of multimodal models in the higher-dimensional embedding space, leading to new state-of-the-art performance in downstream tasks such as video-audio-text retrieval and audio-video classification. The project page, the code, and the pretrained models are available at https://ispamm.github.io/GRAM/.

Code Repositories

luigisigillo/gwit
jax
Mentioned in GitHub
ispamm/GRAM
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
video-retrieval-on-activitynetGRAM
text-to-video R@1: 69.9
text-to-video R@10: 96.1
video-to-text R@1: 66.9
video-to-text R@10: 95.4
video-retrieval-on-didemoGRAM
text-to-video R@1: 67.3
text-to-video R@10: 90.1
video-to-text R@1: 63.5
video-to-text R@10: 91.6
video-retrieval-on-msr-vttGRAM
text-to-video R@1: 64
text-to-video R@10: 89.3
video-to-text R@1: 64.8
video-to-text R@10: 91.5
video-retrieval-on-vatexGRAM
text-to-video R@1: 87.7
text-to-video R@10: 100
video-to-text R@1: 84.6
video-to-text R@10: 100
zero-shot-video-retrieval-on-activitynetGRAM
text-to-video R@1: 59.0
text-to-video R@10: 91.2
video-to-text R@1: 50.9
video-to-text R@10: 85.8
zero-shot-video-retrieval-on-didemoGRAM
text-to-video R@1: 54.2
text-to-video R@10: 80.7
video-to-text R@1: 52.3
video-to-text R@10: 80.3
zero-shot-video-retrieval-on-msr-vttGRAM
text-to-video R@1: 54.8
text-to-video R@10: 83.9
video-to-text R@1: 52.9
video-to-text R@10: 82.9
zero-shot-video-retrieval-on-vatexGRAM
text-to-video R@1: 83.9
text-to-video R@10: 99.5
video-to-text R@1: 82.7
video-to-text R@10: 99

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Gramian Multimodal Representation Learning and Alignment | Papers | HyperAI