Abstract
Self-supervised learning (SSL) has achieved remarkable success in specific domains like computer vision and natural language processing, yet these advancements often rely on domain-specific inductive biases that do not generalize across modalities. MetaMAE addresses this limitation by reimagining the Masked Auto-Encoder (MAE) framework through the lens of meta-learning. By treating mask reconstruction as a few-shot adaptation task, MetaMAE utilizes gradient-based latent adaptation and task-specific contrastive learning to achieve state-of-the-art performance across diverse data types, including genomics, speech, and tabular data, without requiring modality-specific architectural tweaks.
Introduction
The current landscape of self-supervised learning is largely fragmented. While techniques like specific image augmentations or masked language modeling have revolutionized their respective fields, they remain "siloed." A technique optimized for 2D images rarely translates effectively to 1D DNA sequences or multi-dimensional sensor data. The Masked Auto-Encoder (MAE) architecture offers a promising foundation for a universal learner due to its simple premise—reconstructing hidden parts of an input—but it often requires domain-specific modifications to reach peak performance.
MetaMAE identifies this gap and proposes a truly modality-agnostic approach. The central hypothesis is that for a model to be effective across any data structure, it must be able to quickly adapt its internal representations to the unique characteristics of the specific task or sample at hand. By framing reconstruction as a meta-learning problem, MetaMAE enables the model to learn how to adapt, rather than just learning a static mapping.
Methodology
MAE as Meta-Learning
The core innovation of MetaMAE is the interpretation of the masking process as a few-shot learning scenario. In this framework, the unmasked (visible) tokens serve as a "support set" used to adapt the model's internal state. The masked (hidden) tokens then act as the "query set" used to evaluate the success of that adaptation. This perspective shifts the focus from simple reconstruction to the acquisition of transferable adaptation logic.
Latent Adaptation via Gradient-Based Optimization
Unlike standard MAE, which uses a direct forward pass from the encoder to the decoder, MetaMAE introduces a latent adaptation step. The encoder first produces an "amortized" latent representation. The model then performs a gradient-descent step to optimize this latent representation specifically to better reconstruct the visible tokens and their immediate neighbors. This refined, "adapted" latent is what the decoder eventually uses to predict the missing data. This error-correction mechanism bridges the gap between visible and hidden information more effectively than a static pass.
Task Contrastive Learning
To ensure the encoder provides a high-quality starting point for adaptation, the authors incorporate a task-specific contrastive loss. This loss encourages the encoder’s initial representation of a sample (the "task") to align closely with its gradient-optimized version. Simultaneously, it pushes the representation away from those of other samples in the batch, ensuring that the learned features are both robust and discriminative.
Architectural Considerations
While many NLP-based masked models utilize simple linear decoders, MetaMAE employs a deep Transformer-based decoder. The researchers found that a deeper decoder is essential in modality-agnostic settings. It allows the model to offload complex, modality-specific reconstruction logic to the decoder, leaving the encoder free to learn more general, transferable features that are useful across different types of data.
Experimental Setup and Results
Benchmarking on DABS
MetaMAE was evaluated using the Domain-Agnostic Benchmark for Self-supervision (DABS) 1.0 and 2.0. This benchmark covers a vast array of modalities, including:
- Genomics & Proteins: DNA sequences and Pfam protein sequences.
- Speech: LibriSpeech audio spectrograms.
- Tabular & Sensor Data: HIGGS physics data and PAMAP2 physical activity sensors.
- Vision: ImageNet32, EuroSAT (satellite), and MSCOCO (vision-language).
Performance Gains
MetaMAE consistently outperformed existing modality-agnostic baselines such as e-Mix, ShED, and Capri. Notable improvements include:
- Genomics: Accuracy increased from 53.6% to 69.4%.
- Speech: Accuracy rose from 60.2% to 79.8%.
- Protein Sequences: Performance improved from 44.7% to 62.3%.
Efficiency and Transferability
Despite the added complexity of calculating second-order gradients during meta-learning, MetaMAE proved to be highly efficient. It reached peak performance 1.9x faster in wall-clock time than standard MAE because it learns more effectively per training iteration. Furthermore, the model demonstrated superior cross-domain transfer; when pretrained on LibriSpeech and tested on Audio MNIST, it achieved 89.5% accuracy, nearly doubling the 45.1% achieved by a standard MAE.
Discussion and Limitations
MetaMAE represents a significant step toward a "one-size-fits-all" self-supervised learner. However, some challenges remain. The masking ratio—the percentage of data hidden during training—still requires manual tuning for different modalities (e.g., 15% for proteins vs. 85% for images). Additionally, while the model converges faster overall, each individual training step is approximately 1.4x more computationally expensive due to the gradient adaptation phase.
Future research may focus on automating the selection of masking ratios and exploring more sophisticated, yet still automated, embedding strategies to further enhance the model's ability to handle diverse data types without human intervention.
Summary updated