SPANER: Shared Prompt Aligner for Multimodal Semantic Representation

Thye Shan Ng, Soyeon Caren Han, Eun-Jung HoldenarXiv 2025 · DOI

TL;DR

SPANER is a new "plug-and-play" framework that aligns disparate data modalities—such as images, text, and audio—into a single, coherent semantic space. By employing a shared set of learnable "conceptual anchors" (prompts) at the output level, it significantly reduces the "modality gap," ensuring that a "cat" sounds, looks, and reads like a "cat" to the model.

The Modality Gap Problem

In multimodal AI, models like CLIP are designed to connect images and text. However, they suffer from a persistent issue known as the modality gap. Even when a model is trained to align these inputs, the resulting mathematical representations (embeddings) often cluster into "modality-specific cones." Essentially, the model’s internal representation of the word "dog" may remain distant from its representation of a picture of a dog.

Existing Parameter-Efficient Fine-Tuning (PEFT) methods, like CoOp, attempt to resolve this by adding "soft prompts" to the input. While these improve task-specific classification accuracy, they often fail to fix the underlying structure of the embedding space, sometimes "overfitting" to specific prompt structures rather than achieving a true shared conceptual understanding.

The SPANER Framework

The authors introduce SPANER (Shared Prompt AligNER). Unlike previous methods that modify the input stage, SPANER operates post-encoder to refine the final representation.

Comparison of SPANER architecture with prompt-based and adapter-based methods.

Core Components:

  1. Shared Prompt Mechanism: SPANER introduces a set of learnable tokens that act as a "conceptual anchor." Crucially, this prompt is shared across all modalities, serving as a universal reference point.
  2. Cross-Attention (CA) Aligner: Instead of direct cross-modal interaction, which can be difficult to scale, each modality-specific feature attends only to the shared prompt. This "semantic mediator" design prevents cross-modal entanglement.
  3. Two-Level Contrastive Loss: The model is trained using a dual-loss objective that optimizes for alignment both at the intermediate stage (within the CA Aligner) and at the final projected output.
  4. Modality Agnostic Design: Because the core architecture is modular, new modalities (like audio) can be "plugged in" to a pre-trained vision-language setup with minimal additional training.

Key Results and Evaluation

The researchers evaluated SPANER across several benchmarks, including ImageNet-1K (vision-language), various robustness datasets (ImageNet-V2, Sketch, Adversarial), and audio-visual pairings (ImageNet-ESC).

Cumulative distribution of cosine similarity, showing SPANER's superior alignment compared to baselines.
  • Closing the Gap: In ImageNet tests, SPANER achieved the smallest gap between "text retrieval" and "semantic retrieval" (2.1% vs. 7.4% for the popular CoOp method), suggesting a more consistent internal understanding.
  • Tighter Clustering: As shown in the cumulative similarity plots, SPANER significantly outperformed baselines in average cosine similarity for positive classes (0.748 vs. ~0.33 for CoOp and MMA). This indicates that related concepts are packed much more tightly together in the embedding space.
  • Zero-Shot Audio Success: When extended to audio, SPANER achieved competitive performance (up to 55.4% accuracy on ImageNet-ESC-19) even with very few training examples, demonstrating the robustness of the shared semantic space.

Key Insights

  • Structure Over Weights: Aligning the structure of the embedding space is more critical for scalable learning than simply tuning adapter weights for specific tasks.
  • The "Conceptual Anchor" Effect: Forcing different modalities to attend to the same shared prompt naturally draws semantically related instances together, regardless of their source (sound, image, or text).
  • Challenging "Cone Collapse": While some believe contrastive learning inherently leads to modality separation, SPANER proves that shared anchors can mitigate this effect and enable deeper integration.

Limitations and Future Work

Despite its strengths, SPANER faces challenges in domain generalization, showing performance drops on highly stylized or adversarial datasets (like ImageNet-Sketch). There appears to be a trade-off: making the embedding space highly compact can sometimes make it less "elastic" for wild variations in style. Additionally, the model still struggles with fine-grained confusion, such as distinguishing between very similar breeds of dogs.

Future research may explore adaptive prompt modulation, allowing prompts to change slightly based on the specific instance to handle fine-grained distinctions without losing overall semantic coherence.

Summary updated

BibTeX
@misc{ng2025spaner,
  author = {Thye Shan Ng and Soyeon Caren Han and Eun-Jung Holden},
  title = {{SPANER: Shared Prompt Aligner for Multimodal Semantic Representation}},
  year = {2025},
  eprint = {2508.13387},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.13387},
}
Figure