skills/skillxiv-v0.0.2-claude-opus-4.6/discrete-diffusion-scaling-laws/SKILL.md
Reformulate discrete diffusion using signal-to-noise ratio for hybrid masked-uniform noise scheduling. Derive compute-optimal scaling laws through careful hyperparameter tuning, showing uniform diffusion scales more favorably in token-constrained settings than autoregressive models.
npx skillsauth add ADu2021/skillXiv discrete-diffusion-scaling-lawsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This research presents three interconnected contributions: (1) an SNR-based diffusion framework enabling smooth interpolation between masked and uniform noise, (2) systematic scaling law methodology tuning batch size and learning rate across model scales, and (3) empirical evidence that uniform diffusion models scale more favorably in token-constrained training, requiring more parameters and less data for compute-efficient training compared to masked diffusion alternatives.
Three key contributions establish the framework:
1. SNR-Based Diffusion Framework Reformulate Generalized Interpolating Discrete Diffusion (GIDD) using signal-to-noise ratio instead of time steps. This enables "smoothly interpolating between masked and uniform diffusion" by defining a hybrid mixing distribution that transitions based on SNR values, aligning discrete diffusion with continuous-state theory.
2. Systematic Scaling Law Methodology Rather than fixing hyperparameters, carefully tune batch size and learning rate across different model scales. Use CompleteP parameterization for stable learning rate transfer, deriving compute-optimal scaling laws without learning rate annealing. Key finding: "optimal batch size depends primarily on the total number of training tokens" rather than model size or target loss.
3. Empirical Scaling Results Through experiments from 25M to 10B parameters: uniform diffusion models scale more favorably in token-constrained settings, requiring "more parameters and less data for compute-efficient training compared to masked diffusion." Discovered scaling laws extrapolate accurately across 50× larger compute budgets than the fitting range.
Use SNR-based parameterization for hybrid noise scheduling. Systematically tune batch size and learning rate as model scales increase. Compare uniform vs. masked diffusion variants on your compute budget to identify which scales better for your token allocation. Apply the derived scaling laws to predict performance across different compute budgets.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.