Papers › Gramian Multimodal Representation Learning and Alignment

Gramian Multimodal Representation Learning and Alignment

16 Dec 2024arXiv:2412.11959archive 2025-07-28

Giordano Cicchetti, Eleonora Grassucci, Luigi Sigillo, Danilo Comminiello

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 modality 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/.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.11959")

Code

Syntology Ran 2 of 12 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract.

By repository: official repository: 12 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ispamm/GRAM officialmentioned on GitHubpytorchMIT report
luigisigillo/gwit mentioned on GitHubjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 2 ran; 1 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
10unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ispamm/GRAM. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

disabled_train ispamm/GRAM/model/general_module.py official repository ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
gelu ispamm/GRAM/model/general_module.py official repository ran · honoured contract fingerprinted MIT (permissive) · fdc64f4c72036ae4 · report
all_gather_list ispamm/GRAM/utils/distributed.py official repository unverified MIT (permissive) · eee800bfe0a47a9f · report
all_gather_with_grad ispamm/GRAM/utils/distributed.py official repository unverified MIT (permissive) · 0ec9fc2025c16f65 · report
build_optimizer ispamm/GRAM/utils/build_optimizer.py official repository unverified MIT (permissive) · cc4ffe92873b4ee6 · report
compute_max_audio_sample_num_for_position_embeddings ispamm/GRAM/utils/args.py official repository unverified MIT (permissive) · 0122d74913461cf9 · report
compute_max_vision_sample_num_for_position_embeddings ispamm/GRAM/utils/args.py official repository unverified MIT (permissive) · 30fd4a1a3eedb19c · report
concat_all_gather ispamm/GRAM/utils/distributed.py official repository unverified MIT (permissive) · 73cecca9f3575f09 · report
execCmd ispamm/GRAM/utils/offline_process_data.py official repository unverified MIT (permissive) · 77a45c1e515dbe2e · report
load_from_pretrained_dir ispamm/GRAM/utils/build_model.py official repository unverified MIT (permissive) · 7d297bdebd282cba · report
load_from_resume ispamm/GRAM/utils/build_model.py official repository unverified MIT (permissive) · 647f671c01bde501 · report
parse_with_config ispamm/GRAM/utils/args.py official repository unverified MIT (permissive) · 15b65a6a6e8fd954 · report

Tasks

Contrastive LearningRepresentation LearningText RetrievalVideo ClassificationVideo RetrievalZero-Shot Audio RetrievalZero-Shot Video Retrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Video Retrieval ActivityNet GRAM text-to-video R@1 69.9 #4 of 31 Archive leaderboard report
Video Retrieval ActivityNet GRAM text-to-video R@10 96.1 #4 of 31 Archive leaderboard report
Video Retrieval ActivityNet GRAM video-to-text R@1 66.9 #4 of 31 Archive leaderboard report
Video Retrieval ActivityNet GRAM video-to-text R@10 95.4 #4 of 31 Archive leaderboard report
Video Retrieval DiDeMo GRAM text-to-video R@1 67.3 #6 of 40 Archive leaderboard report
Video Retrieval DiDeMo GRAM text-to-video R@10 90.1 #6 of 40 Archive leaderboard report
Video Retrieval DiDeMo GRAM video-to-text R@1 63.5 #6 of 40 Archive leaderboard report
Video Retrieval DiDeMo GRAM video-to-text R@10 91.6 #6 of 40 Archive leaderboard report
Video Retrieval MSR-VTT GRAM text-to-video R@1 64 #1 of 40 Archive leaderboard report
Video Retrieval MSR-VTT GRAM text-to-video R@10 89.3 #1 of 40 Archive leaderboard report
Video Retrieval MSR-VTT GRAM video-to-text R@1 64.8 #1 of 40 Archive leaderboard report
Video Retrieval MSR-VTT GRAM video-to-text R@10 91.5 #1 of 40 Archive leaderboard report
Video Retrieval VATEX GRAM text-to-video R@1 87.7 #1 of 13 Archive leaderboard report
Video Retrieval VATEX GRAM text-to-video R@10 100 #1 of 13 Archive leaderboard report
Video Retrieval VATEX GRAM video-to-text R@1 84.6 #1 of 13 Archive leaderboard report
Video Retrieval VATEX GRAM video-to-text R@10 100 #1 of 13 Archive leaderboard report
Zero-Shot Video Retrieval ActivityNet GRAM text-to-video R@1 59.0 #3 of 12 Archive leaderboard report
Zero-Shot Video Retrieval ActivityNet GRAM text-to-video R@10 91.2 #3 of 12 Archive leaderboard report
Zero-Shot Video Retrieval ActivityNet GRAM video-to-text R@1 50.9 #3 of 12 Archive leaderboard report
Zero-Shot Video Retrieval ActivityNet GRAM video-to-text R@10 85.8 #3 of 12 Archive leaderboard report
Zero-Shot Video Retrieval DiDeMo GRAM text-to-video R@1 54.2 #4 of 26 Archive leaderboard report
Zero-Shot Video Retrieval DiDeMo GRAM text-to-video R@10 80.7 #4 of 26 Archive leaderboard report
Zero-Shot Video Retrieval DiDeMo GRAM video-to-text R@1 52.3 #4 of 26 Archive leaderboard report
Zero-Shot Video Retrieval DiDeMo GRAM video-to-text R@10 80.3 #4 of 26 Archive leaderboard report
Zero-Shot Video Retrieval MSR-VTT GRAM text-to-video R@1 54.8 #2 of 41 Archive leaderboard report
Zero-Shot Video Retrieval MSR-VTT GRAM text-to-video R@10 83.9 #2 of 41 Archive leaderboard report
Zero-Shot Video Retrieval MSR-VTT GRAM video-to-text R@1 52.9 #2 of 41 Archive leaderboard report
Zero-Shot Video Retrieval MSR-VTT GRAM video-to-text R@10 82.9 #2 of 41 Archive leaderboard report
Zero-Shot Video Retrieval VATEX GRAM text-to-video R@1 83.9 #1 of 5 Archive leaderboard report
Zero-Shot Video Retrieval VATEX GRAM text-to-video R@10 99.5 #1 of 5 Archive leaderboard report
Zero-Shot Video Retrieval VATEX GRAM video-to-text R@1 82.7 #1 of 5 Archive leaderboard report
Zero-Shot Video Retrieval VATEX GRAM video-to-text R@10 99 #1 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections