Mode-Aware Mask Schedule
Implementation & benchmark of arXiv:2608.01383 — On the Identifiability of Masked Prediction: Mode Blindness and Mask Schedules
Source paper: On the Identifiability of Masked Prediction: Mode Blindness and Mask Schedules arXiv:2608.01383 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Train masked predictors with an explicit mixture of high-visibility masks, low-visibility masks, and a small atom at the fully masked input. High-visibility masks preserve ordinary denoising quality, while low-visibility and fully masked examples force the network to learn global mode frequencies that are invisible when nearly all context is shown. Tune the low-visibility mass using unconditional-mode recovery as an auxiliary validation metric.
Formulas
Mathematical statement
For a sequence with coordinates \([N]=\{1,\ldots,N\}\), a mask \(K\subseteq[N]\) hides coordinates in \(K\) and exposes the visible context \(K^{\complement}=[N]\setminus K\). The paper defines \(v_{\mathrm{min}}(\mu):=\min_{K\in\operatorname{supp}(\mu)}|K^{\complement}|\), the smallest visible-context size occurring under mask schedule \(\mu\), and \(\pi_s(\mu):=\mu(|K^{\complement}|\le s)\), the probability that a training mask exposes at most \(s\) coordinates. The proposed schedule should enforce nontrivial \(\pi_s(\mu)\) for a small \(s\), rather than concentrating all mass at large visible contexts, and should add \(\mu(K=[N])\ge\rho>0\), where \(K=[N]\) is the fully masked example and \(\rho\) is a tunable anchor mass. For a predictor \(q_\theta\), use the masked conditional risk \(\mathcal L_\mu(\theta)=\mathbb E_{K\sim\mu,X\sim P}[\sum_{i\in K}-\log q_{\theta,i}(X_i\mid X_{K^{\complement}},K)]\). The transfer hypothesis is that low-visibility masks retain residual global-mode uncertainty, while the fully masked term directly trains predictions from the empty context and therefore makes mixture weights observable. This is a falsifiable schedule-design principle, not a claim that every finite model will become identifiable.
Implementation notes
Integrate this at the mask sampler and masked-prediction loss, not in the Transformer architecture. Let the baseline schedule be the existing mask-ratio distribution \(\mu_{\mathrm{base}}\). Choose a low-visibility distribution \(\mu_{\mathrm{low}}\) by sampling a visible count \(r\) from \(\{0,1,\ldots,s\}\), selecting \(r\) visible coordinates uniformly or using the existing structured-mask policy, and setting \(K=[N]\setminus K^{\complement}\). Sample each minibatch mask from the mixture \(\mu_{\mathrm{new}}=(1-\rho-\lambda)\mu_{\mathrm{base}}+\lambda\mu_{\mathrm{low}}+\rho\delta_{[N]}\). For every sampled mask, compute the usual cross-entropy over hidden coordinates, including the mask indicator or mask pattern in the model input if the baseline does so. The pseudocode is: sample branch \(b\); if \(b=\mathrm{base}\), draw \(K\sim\mu_{\mathrm{base}}\); if \(b=\mathrm{low}\), draw \(|K^{\complement}|\le s\); if \(b=\mathrm{full}\), set \(K=[N]\); compute logits \(q_\theta(X_i\mid X_{K^{\complement}},K)\); backpropagate the summed hidden-token loss. Estimate \(v_{\mathrm{min}}\) and \(\pi_s\) analytically from the sampler, while estimating mode recovery empirically: construct a two-mode validation set, compare the model's empty-context mode probabilities with the true mixture weights, and measure unconditional samples' mode frequencies. Start with a small Transformer on synthetic sequences formed from two separated templates with mixture weight \(p\), comparing the baseline schedule against \((\lambda,\rho)\in\{(0.1,0),(0.1,0.01),(0.25,0.01)\}\). Then test on a small language corpus with document-level topic or domain labels as approximate global modes. The expected signal is substantially lower error in recovered mode weights and better unconditional generation at matched conditional validation loss; the cost should be only the extra low-visibility examples, with no increase in inference-time computation.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
Stage 2 · Practical benchmark result: Inconclusive
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 8/10
Implemented the mode-aware mask sampler and tested it on a synthetic two-mode masked-prediction task. Analytic schedule probabilities matched Monte Carlo measurements, and adding low-visibility masks plus a 0.01 fully masked anchor reduced empty-context mode error from 0.5504 to 0.0027 while conditional accuracy remained nearly unchanged. The mechanism therefore manifested in this toy experiment.
- Agent confidence
- 8/10
- Baseline
- Conditional accuracy 0.9460; empty-context mode probability 0.2496; mode error 0.5504.
- Idea
- Conditional accuracy 0.9440; empty-context mode probability 0.7973; mode error 0.0027; measured pi_1 0.1110 versus predicted 0.1100; measured full-mask mass 0.0101 versus predicted 0.0100.
Limitations: Tested only a small synthetic dataset with an MLP predictor; no Transformer, language corpus, unconditional generation, FLOP-normalized comparison, or repeated-seed study.
How to run: python3 experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.01383)
No significant difference vs. the tuned baseline (+4.3%, p=0.6315, wins 5 / 8 paired seeds).
- Benchmark
- Masked_multitoken_modes
- Model
- transformer_tiny
- Paired seeds
- 8
- Baseline mean
- 0.1437
- Idea mean
- 0.1499
- Effect (Δ)
- 0.0062 (+4.3%; negative = idea better)
- Wins
- 5 / 8 paired seeds
- p-value
- 0.6315 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Not confirmed ✗
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 3 configs
Only the local custom multi-token sequence track was tested because built-in tracks lack masked multi-token prediction structure. No language corpus, unconditional generation, larger Transformer, longer training, or compute-normalized sweep was tested.
How to run: python3 bench_mode_schedule.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Failed ✗
Agent confidence: 9/10
Built a local custom multi-token masked-sequence track with identical tiny Transformer systems and ran the full 8-seed paired protocol. The schedule probabilities matched Monte Carlo measurements, but the best idea configuration had higher test BCE than baseline (0.149931 vs 0.143731), paired delta +0.006200 and permutation p=0.63155; the trained-model empty-context mechanism signature was also not confirmed.
- Baseline
- Test BCE mean 0.1437309254, std 0.0238559610; best lr=0.002, epochs=14.
- Comparison
- delta_mean=+0.0062003117, p_value=0.63155, idea_wins=5/8, verdict=no significant win.
- Idea
- Test BCE mean 0.1499312371, std 0.0381410620; best lambda=0.10, rho=0.01, lr=0.004, epochs=14.
- Mechanism
- Empty-context mode probability baseline=0.8209748 and idea=0.8391162; target=0.8; absolute error worsened from 0.0209748 to 0.0391162; confirmed=false.
Benchmark result
No significant difference vs. the tuned baseline (+4.3%, p=0.6315, wins 5 / 8 paired seeds).
- Benchmark
- Masked_multitoken_modes
- Model
- transformer_tiny
- Paired seeds
- 8
- Baseline mean
- 0.1437
- Idea mean
- 0.1499
- Effect (Δ)
- 0.0062 (+4.3%; negative = idea better)
- Wins
- 5 / 8 paired seeds
- p-value
- 0.6315 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Not confirmed ✗
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 3 configs
Only the local custom multi-token sequence track was tested because built-in tracks lack masked multi-token prediction structure. No language corpus, unconditional generation, larger Transformer, longer training, or compute-normalized sweep was tested.
How to run: python3 bench_mode_schedule.py
Artifacts
- bench_mode_schedule.py 6.2 KB View Raw
- bench_report.json 5.3 KB View Raw
- custom_masked_track.py 0.7 KB View Raw
- experiment.py 4.0 KB View Raw
- report.md 1.1 KB View
- report_bench_2026-08-31T195728.md 4.7 KB View
- results.json 2.2 KB View Raw