OneEncoder: A Lightweight Framework for Progressive Alignment of Modalities
Bilal Faye, Hanane Azzag, Mustapha Lebbah
TL;DR
OneEncoder tackles the high cost of cross-modal alignment by freezing large modality-specific encoders and training only a lightweight Universal Projection (UP). It progressively aligns modalities—starting with image-text and extending to audio and video—via a compact Alignment Layer (AL) and modality tokens, enabling transitive alignment in a shared embedding space. Across image-text, text-audio, and text-video tasks, OneEncoder often matches or surpasses heavy baselines like CLIP, AudioCLIP, and X-CLIP while using orders of magnitude fewer trainable parameters. The approach also extends to visual question answering, demonstrating reduced training cost and strong performance, and suggests broad practical impact for deploying multimodal systems with limited paired data.
Abstract
Cross-modal alignment Learning integrates information from different modalities like text, image, audio and video to create unified models. This approach develops shared representations and learns correlations between modalities, enabling applications such as visual question answering and audiovisual content analysis. Current techniques rely on large modality-specific encoders, necessitating fine-tuning or training from scratch on vast aligned datasets (e.g., text-image, text-audio, image-audio). This approach has limitations: (i) it is very expensive due to the need for training large encoders on extensive datasets, (ii) acquiring aligned large paired datasets is challenging, and (iii) adding new modalities requires retraining the entire framework to incorporate these modalities. To address these issues, we propose OneEncoder, a lightweight framework that progressively represents and aligns four modalities (image, text, audio, video). Initially, we train a lightweight Universal Projection module (UP) to align image and text modalities. Then, we freeze the pretrained UP and progressively align future modalities to those already aligned. OneEncoder operates efficiently and cost-effectively, even in scenarios where vast aligned datasets are unavailable, due to its lightweight design. Trained on small paired datasets, it shows strong performance in tasks like classification, querying, and visual question answering, surpassing methods that rely on large datasets and specialized encoders.
