TL;DR
This paper introduces Self-guided Masked Autoencoders (SMA), a novel self-supervised learning method that learns representations without relying on domain-specific knowledge or hand-crafted masks. SMA achieves state-of-the-art results across diverse domains like protein biology, chemistry, and particle physics, demonstrating the power of learning domain-agnostic representations.
What Problem Does This Paper Address?
Self-supervised learning (SSL) has shown great promise in learning from vast amounts of unlabeled data. However, many successful SSL methods, particularly in areas like computer vision and natural language processing, heavily rely on domain-specific data augmentations or inductive biases. This makes them difficult to adapt to new domains where such prior knowledge is scarce or non-existent. Masked autoencoding is a promising SSL approach that is inherently more domain-agnostic, as it doesn't require input augmentations. However, existing masked autoencoding methods still often depend on domain-specific strategies for selecting which parts of the input to mask. This paper aims to bridge this gap by proposing a truly domain-agnostic masked autoencoding method that can learn effective representations across a wide range of data modalities without requiring any prior domain knowledge.
Methods
The core innovation of SMA lies in its self-guided masking strategy. Instead of relying on predefined rules or domain-specific tokenizers, SMA leverages the model's own internal attention mechanisms to dynamically generate masks. Here's a breakdown:
- Masked Autoencoding Foundation: SMA builds upon the masked autoencoding paradigm, where a model learns to reconstruct masked portions of an input sequence.
- Attention-Based Mask Generation: The key novelty is how masks are created. SMA computes an attention map from the model's initial encoding layer. This attention map is believed to capture semantic relationships within the input data.
- Self-Guided Mask Sampling: The method then uses the attention map to identify groups of highly correlated tokens. It randomly selects a subset of queries and aggregates their attention scores. The tokens with the highest aggregated attention scores are then masked. This process is "self-guided" because the model learns to identify important regions to mask based on its own learned representations.
- Domain-Agnosticism: Crucially, this attention-based masking does not require any prior knowledge about the input's structure (e.g., whether it's a sequence of words, pixels, or amino acids). The process of generating attention maps and selecting masks is generalizable across different data types.
- Efficient Approximation: To address computational challenges with repeated top-k operations in attention, the paper proposes an efficient approximation that significantly improves parallelization and runtime complexity without sacrificing performance.
Datasets
The paper evaluates SMA on a variety of datasets across different domains:
- Protein Biology: Pfam training set (for pre-training), TAPE benchmark (for downstream tasks: Remote Homology, Fluorescence, Stability).
- Chemical Property Prediction: Guacamol dataset (for pre-training), MoleculeNet benchmark (for downstream tasks: BBBP, BACE, HIV, ESOL, FreeSolv, Lipo).
- Particle Physics: HIGGS dataset (for classification).
- Natural Language Processing: English Wikipedia and BooksCorpus (for pre-training), GLUE benchmark (for downstream tasks: MNLI, QQP, QNLI, SST-2, COLA, STS-B, MRPC, RTE).
- Image Classification: ImageNet-100 subset.
- Audio Features: Year prediction dataset (for tabular results).
Key Insights and Ideas
- Attention Maps Encode Semantic Structure: The paper provides strong empirical evidence that attention maps, even from early layers, implicitly capture semantic groupings within data, which can be effectively leveraged for masking.
- Domain-Specific Priors are Not Always Necessary: SMA demonstrates that for many tasks, especially with large datasets, explicit domain knowledge for masking is not required to achieve state-of-the-art performance. The data itself contains sufficient information.
- Self-Guided Masking is Powerful and Flexible: The ability of the model to learn its own masking strategy is a significant advantage, allowing it to adapt to the specific characteristics of different data modalities and tasks.
- Efficiency Gains are Achievable: The proposed approximation for mask selection significantly improves computational efficiency, making the method more practical for large-scale applications.
Key Results
SMA achieved state-of-the-art (or competitive) performance across all tested domains:
- Protein Biology: Outperformed previous state-of-the-art (ProteinBERT) and random masking baselines on Remote Homology, Fluorescence, and Stability tasks.
- Chemical Property Prediction: Outperformed SMILES-based models (ChemBERTa-2) and graph-based models (Uni-Mol) on various MoleculeNet tasks, despite using a smaller pre-training dataset.
- Particle Physics: Showed significant improvements over no pre-training and random masking on the HIGGS dataset.
- Natural Language Processing: Outperformed baselines (no pre-training, random masking, word-level masking) on the GLUE benchmark, achieving approximately 1.5% higher average scores.
- Image Classification: Performed competitively with and sometimes better than random masking and patch masking on ImageNet-100, especially when fine-tuning without augmentation.
Limitations and Future Work
- Computational Cost for Very Long Sequences: While the approximation improves efficiency, processing extremely long sequences (e.g., millions of tokens) might still be computationally demanding.
- Static Attention Queries: The paper notes that the set of attention queries is static across all inputs, which might lead to masks being more biased towards positional information than value information in some cases. Future work could explore dynamic query selection.
- Domain-Specific Knowledge for Optimization: While SMA is domain-agnostic for masking, fine-tuning and specific architecture choices might still benefit from some domain understanding. The paper suggests that much of this knowledge can be learned from the data itself.
The authors envision SMA as a promising direction for unsupervised representation learning, particularly in domains where prior knowledge is limited, paving the way for more generalizable and adaptable AI models.
Summary updated