TL;DR
Memory-Inspired Temporal Prompt Interaction (MITP) is a novel, parameter-efficient method for multimodal text-image classification that mimics the human memory mechanism. By introducing direct, similarity-based interactions between trainable prompt vectors on intermediate layers, MITP achieves state-of-the-art performance among prompt-based methods while updating only 2.0M parameters—roughly 1% of the underlying foundation model.
What Problem Does This Paper Address?
Large Multimodal Models (LMMs) excel at combining vision and language, but fine-tuning their massive architectures for downstream tasks is computationally prohibitive. To circumvent this, researchers use prompt-based learning to align modalities more efficiently.
However, existing prompt-based cross-modal methods suffer from a major flaw: they lack direct interaction between the trainable prompts of different modalities. Instead, they typically use prompts to deliver information from one frozen branch to another without letting the prompts themselves communicate. This leads to insufficient inter-modality information exchange. The authors ask: Can we enable deep cross-modal communication by directly interacting trainable prompts, without the massive memory overhead of full fine-tuning?
Methods
The authors introduce Memory-Inspired Temporal Prompt Interaction (MITP), which keeps the heavy foundation model (like CLIP) completely frozen and introduces a lightweight, bio-inspired prompt architecture. The process mimics the human memory strategy in two main stages:
- The Acquiring Stage (Temporal Prompts): Unimodal features are extracted by frozen encoders. At specific intermediate "interaction layers," trainable prompt vectors ($\mathbf{p}_m^l$) are prepended to the input tokens to store layer-wise information, acting as a sensory buffer.
- The Consolidation and Activation Stage (Memory Hub): Instead of passing prompts directly to the next layer, the prompts from the vision and text branches are sent to a specialized "Memory Hub."
Inside the Memory Hub, the system performs two operations:
- Memory Consolidation: It calculates the similarity (e.g., cosine similarity) between prompts within the same modality (intra-modality) and across modalities (inter-modality) to highlight important relationships.
- Memory Activation: Using a soft-max approach, it computes activation masks to blend the prompts, generating the updated temporal prompts for the next layer.
Crucially, because the Memory Hub relies on calculative similarity rather than a massive block of learnable weights, the number of trainable parameters remains constant no matter how many interaction layers are stacked.
Datasets
The authors evaluated MITP on three diverse image-text classification benchmarks:
- UPMC-Food101: A uni-label dataset containing 90,840 image-text pairs categorized into 101 food classes.
- MM-IMDB: A multi-label movie dataset (25,956 pairs) where the goal is to predict one or more of 23 movie genres from posters and plot outlines.
- SNLI-VE: A visual entailment dataset (565,286 pairs) tasked with reasoning out the semantic relationship (entailment, neutral, or contradiction) between an image premise and a textual hypothesis.
Key Insights and Ideas
- Direct Prompt-to-Prompt Communication: By bypassing full feature map interactions and focusing strictly on low-dimensional prompt vectors, MITP achieves deep cross-modal communication with minimal spatial complexity.
- Calculative vs. Parameterized Fusion: Using mathematical similarity functions (like cosine similarity) inside the Memory Hub instead of heavy MLP layers keeps the parameter footprint exceptionally small (2.0M parameters total).
- The Sweet Spot for Interaction: The authors discovered that prompt interaction performs best when applied to mid-level layers (layers 4, 5, 6 for UPMC-Food101). Shallow layers suffer from high modality heterogeneity, while deeper layers become too specialized.
Key Results
MITP strikes an impressive balance between accuracy and efficiency:
- Top-Tier Performance: On UPMC-Food101, MITP-base achieved 93.95% accuracy, outperforming all existing prompt-based methods (like PMF at 91.51% and PromptFuse at 82.21%) and even beating some late-fusion methods.
- High Efficiency: It achieves these results using only 2.0M trainable parameters (~1% of the foundation LMM) and maintains a low training memory footprint.
- Data Robustness: When trained on restricted data subsets, MITP proved remarkably resilient, achieving over 90% accuracy on UPMC-Food101 using just 10% of the training data.
Limitations and Future Work
The primary limitation identified by the authors is architectural: because the temporal prompts are simply prepended as prefixes to the input tokens, the rich, pre-trained knowledge inside the frozen foundation model isn't fully leveraged. In the future, the team plans to design advanced prompt strategies that allow for more comprehensive, direct interaction with the internal token representations themselves.
Summary updated