In the realm of scientific data, "messiness" is the rule rather than the exception. Astronomical observations, such as the fluctuating brightness of a star or the complex chemical signatures in a spectrum, are rarely captured on a neat, regular grid. Instead, they are often irregularly sampled due to weather, orbital mechanics, or instrument availability. This paper introduces daep (Diffusion Autoencoder with Perceiver), a novel architecture designed to learn high-fidelity representations from these challenging, multimodal sequences.
The Challenge of Irregular Data
Most breakthroughs in self-supervised learning (SSL) have occurred in domains with regular data structures, like the fixed pixel grids of images or the constant sampling rates of audio. Standard architectures struggle with astronomical data for several reasons:
- U-Nets, common in diffusion models, require regular grids.
- Variational Autoencoders (VAEs) often suffer from "posterior collapse," producing blurry, "average" reconstructions that lose critical high-frequency details like narrow absorption lines.
- Masked Autoencoders (MAEs) are effective for local structures but can struggle with the long-range dependencies inherent in sparse, irregular sequences.
The daep Architecture
The authors, Yunyi Shen and Alexander Gagliano, address these issues by combining the generative power of diffusion with the flexibility of the Perceiver architecture. The model consists of three primary stages:
1. Multimodal Tokenizer
To handle heterogeneous data (e.g., light curves and spectra), the model first converts raw inputs—including measurement values, time/position coordinates, and metadata—into a unified sequence of tokens. This is achieved using sinusoidal embeddings and Multi-Layer Perceptrons (MLPs), allowing the model to process different units and scales natively.
2. Perceiver Encoder
The tokenized data is passed to a Perceiver encoder. By utilizing cross-attention, the encoder maps a large, variable number of input tokens into a small, fixed-size "latent bottleneck." This design ensures computational efficiency even when dealing with very long sequences, such as high-resolution spectra.
3. Perceiver-IO Diffusion Decoder
Unlike standard transformers, the decoder uses a Perceiver-IO design. It takes the latent representation and "queries" it to reconstruct data points at specific coordinates. By employing a diffusion process, the decoder iteratively refines noise to generate high-frequency structural details that traditional autoencoders typically smooth over.
Key Results and Insights
The model was evaluated on several astronomical datasets, including LAMOST spectra and ZTF light curves. A standout finding is that the diffusion objective successfully recovers the "wiggles" in spectra—scientifically vital features that VAEs often fail to capture.
Performance Metrics
- Reconstruction Accuracy: On the LAMOST dataset,
daepachieved an absolute reconstruction error of 0.038, nearly half that of the VAE baseline (0.076). - Representation Quality: In linear probing tasks (using learned representations to classify stars),
daepoutperformed MAE baselines, achieving higher F1 scores (0.25 vs 0.23). - Cross-Modality Inference: The model demonstrated a remarkable ability to predict complex spectra based solely on simple light curves, matching specialized multimodal VAEs while providing superior confidence interval coverage.
Conclusion and Future Directions
While developed for astronomy, the daep architecture is fundamentally domain-agnostic. Its ability to handle irregular, variable-length sequences makes it a promising candidate for other fields with "messy" data, such as electronic health records or financial time series. Future work will explore hybrid models that combine diffusion with contrastive learning to further improve alignment between disparate data modalities, such as matching galaxy images with their chemical spectra.
Summary updated