Views
No views yet
anonym-submit-26/bemae-halpha-v1 is the pretrained encoder of the BeMAE-Hα model
introduced in "BESS-Bench: Benchmarking Spectral Representations for
Be-Star Variability" (NeurIPS 2026 D&B Track, under review).z_halpha. The encoder was trained with a Masked Autoencoder (MAE) objective
on the Hα slice of BESS-Bench (≈26.9,k spectra over 1 468 Be stars,
1990–2025).1from huggingface_hub import snapshot_download
2import sys, json, torch
3
4ckpt = snapshot_download("anonym-submit-26/bemae-halpha-v1")
5sys.path.insert(0, ckpt)
6from model import SpectralEncoderHalpha, ModelConfig # noqa: E402
7
8with open(f"{ckpt}/config.json") as f:
9 cfg_dict = json.load(f)["model_config"]
10cfg = ModelConfig(**cfg_dict)
11
12encoder = SpectralEncoderHalpha(cfg)
13encoder.load_state_dict(torch.load(f"{ckpt}/pytorch_model.bin", map_location="cpu"))
14encoder.eval()
15
16# flux, wavelengths, validity : torch.Tensor of shape [B, 128]
17# Spectra must be cropped to Hα ± 50 Å (6512.8–6612.8 Å) and normalized
18# to the pseudo-continuum at the window edges (see `example_usage.py`).
19with torch.no_grad():
20 z_halpha, *_ = encoder(flux, wavelengths, validity, mask=None)
21# z_halpha : Tensor of shape [B, 128]z_halpha is a general-purpose embedding of the Hα profile. It has been
evaluated on the three downstream tasks of BESS-Bench v1.0 — SpecProbe
(Hα feature regression), LineTransfer (Hβ → Hα generalisation) and
EWForecast (short-horizon EW(Hα) forecasting); see the paper for details.z_halpha for physical
parameters (EW, V/R, velocity).| Item | Value |
|---|---|
| Architecture | Transformer MAE encoder |
| Input | 128 bins, Hα ± 50 Å (6512.8–6612.8 Å) |
| Patches | 8 px, step 4 → 31 patches |
| Embedding dim | 128 |
| Transformer layers / heads | 4 / 4 |
| Parameters | ≈803,k (encoder only; full BeMAE auto-encoder ≈912,k) |
| Pretraining objective | Masked Autoencoder, mask ratio 0.60, 3 contiguous blocks |
| Optimizer | AdamW, lr=0.0001, wd=0.05, warmup 5 epochs |
| Epochs | 80 (with early stopping) |
| Batch size | 256 |
| Dataset | anonym-submit-26/bess-bench-26, Hα slice (≈26.9,k spectra) |
| Seed (this checkpoint) | 42 |
| Best val MAE loss | 0.335420 |
| Hardware | 1× NVIDIA A100 80 GB, ~30 min per seed |
1git clone https://github.com/anonym-submit-26/bess-bench-26.git
2cd bess-bench-26
3sbatch scripts/cluster/00_pretrain_encoder.slurm # trains seeds 42, 123, 456 sequentially1@misc{bess_bench_2026bess,
2 title = {BESS-Bench: Benchmarking Spectral Representations for Be-Star Variability},
3 author = {Anonymous and others},
4 year = {2026},
5 note = {NeurIPS 2026 Datasets and Benchmarks Track}
6}z_halpha is not a physical parameter vector; linear probes are required
for interpretable regression (see SpecProbe and LineTransfer in the paper).