Skip to content

Navigation Menu

Sign in
Sign up

FineWeb Edu High Agent Run Mar 21 2026

Dave Graham edited this page Mar 21, 2026 · 1 revision

FineWeb-Edu-High Autonomous Agent Run — Mar 21, 2026 (M5 Max)

Overview

Autonomous experiment run on FineWeb-Edu-High — FineWeb-Edu filtered to educational quality score ≥ 4 (vs ≥ 3 for standard FineWeb-Edu). The agent ran 101 experiments on the Apple M5 Max (64 GB).

This run was designed to answer a specific question: is FineWeb-Edu's hyperparameter divergence data-dependent or path-dependent? The original FineWeb-Edu run started from full defaults, while all other datasets started from pre-optimized baselines and converged to nearly identical configs. By starting FineWeb-Edu-High from the same pre-optimized baseline, we can isolate the variable.

The answer: data-dependent. Starting from the same pre-optimized config as Climbmix, Cosmopedia-v2, and SlimPajama, FineWeb-Edu-High still diverged — finding 20 keeps and 1.97% improvement by systematically moving every parameter away from the cluster values. Educational text genuinely needs different hyperparameters.

Hardware

Spec Value
Chip Apple M5 Max
Unified Memory 64 GB
GPU Cores 40
Backend MLX
Time Budget 5 minutes per experiment

Summary Statistics

Metric Value
Total Experiments 101 (exp0–exp100)
Kept 20 (20.0%)
Discarded 75 (75.0%)
Crashed 5 (5.0%)
Best val_bpb 1.3463 (exp99)
Baseline val_bpb 1.3734 (pre-optimized)
Total Improvement −0.0271 (1.97%)
LLM Backend Claude Sonnet
Branch autoresearch/mar20-fineweb-edu-high

The Key Finding

This run was specifically designed to test the hypothesis from the Cross-Dataset Comparison:

Hypothesis: FineWeb-Edu's divergent hyperparameters were path-dependent — an artifact of starting from full defaults while other datasets started from pre-optimized baselines.

Result: Hypothesis rejected. FineWeb-Edu-High started from the exact same pre-optimized baseline (AR=32, MATRIX_LR=0.0435, EMBEDDING_LR=0.4, SCALAR_LR=0.4, WEIGHT_DECAY=0.15, WARMDOWN_RATIO=0.5) and systematically moved every single parameter to a different value:

Parameter Pre-optimized Baseline FineWeb-Edu-High Optimal Direction
MATRIX_LR 0.0435 0.047 ↑ Higher
EMBEDDING_LR 0.4 0.375 ↓ Lower
SCALAR_LR 0.4 0.39 ↓ Lower
UNEMBEDDING_LR 0.0033 0.0032 ↓ Lower
WEIGHT_DECAY 0.15 0.10 ↓ Lower
WARMDOWN_RATIO 0.5 0.48 ↓ Lower
ADAM_BETAS (0.8, 0.95) (0.66, 0.95) ↓ Lower β1
FINAL_LR_FRAC 0.0 0.085 ↑ Higher
MLP_RATIO 4.0 (default) 4.25 ↑ Higher

Every single parameter moved. This is not noise — 20 keeps across 101 experiments, each incrementally optimizing in consistent directions. Educational text requires a fundamentally different optimization regime.

Comparison with Original FineWeb-Edu

Both FineWeb-Edu variants diverge from the cluster, but they also differ from each other:

Parameter Cluster (3 datasets) FineWeb-Edu (defaults) FineWeb-Edu-High (pre-opt)
MATRIX_LR 0.0435 0.053 0.047
EMBEDDING_LR 0.4 0.59 0.375
SCALAR_LR 0.4 0.3 0.39
WEIGHT_DECAY 0.15 0.12 0.10
WARMDOWN_RATIO 0.5 0.47 0.48

Both FineWeb-Edu variants share lower weight decay (0.10–0.12 vs 0.15) and lower warmdown ratio (0.47–0.48 vs 0.5). But the learning rate ratios differ significantly — the original FineWeb-Edu pushed MATRIX_LR much higher (0.053) while FineWeb-Edu-High found a more moderate value (0.047). This suggests the original run's high MATRIX_LR was partially path-dependent (overcorrecting from the default 0.04), even though the overall divergence direction is genuine.

Cumulative Improvements (Kept Experiments)

Exp val_bpb Delta Description Key Change
exp0 1.3734 Baseline (pre-optimized: AR=32, EMBED_LR=0.4, SCALAR_LR=0.4) Starting point
exp4 1.3598 −0.0136 Increase MATRIX_LR 0.0435→0.05 Higher matrix LR
exp35 1.3569 −0.0029 Decrease MATRIX_LR 0.05→0.047 Fine-tune matrix LR
exp45 1.3569 −0.0000 Decrease SCALAR_LR 0.4→0.38 Lower scalar LR
exp47 1.3564 −0.0005 Increase SCALAR_LR 0.38→0.39 Fine-tune scalar LR
exp48 1.3553 −0.0011 Decrease EMBEDDING_LR 0.4→0.38 Lower embedding LR
exp52 1.3552 −0.0001 Decrease EMBEDDING_LR 0.38→0.375 Fine-tune embedding LR
exp56 1.3552 −0.0000 Decrease UNEMBEDDING_LR 0.0033→0.0032 Fine-tune unembed LR
exp57 1.3550 −0.0002 Decrease WEIGHT_DECAY 0.15→0.13 Lower regularization
exp58 1.3549 −0.0001 Decrease WEIGHT_DECAY 0.13→0.12 Further reduce regularization
exp60 1.3548 −0.0001 Decrease WEIGHT_DECAY 0.12→0.10 Optimal weight decay
exp67 1.3518 −0.0030 Increase FINAL_LR_FRAC 0.0→0.05 Non-zero final LR
exp68 1.3506 −0.0012 Increase FINAL_LR_FRAC 0.05→0.10 Higher final LR
exp70 1.3502 −0.0004 Decrease FINAL_LR_FRAC 0.10→0.08 Fine-tune final LR
exp73 1.3501 −0.0001 Increase FINAL_LR_FRAC 0.08→0.085 Optimal final LR
exp76 1.3496 −0.0005 Decrease ADAM_BETAS β1 0.8→0.75 Lower momentum
exp77 1.3488 −0.0008 Decrease ADAM_BETAS β1 0.75→0.7 Further reduce momentum
exp81 1.3487 −0.0001 Decrease ADAM_BETAS β1 0.7→0.68 Fine-tune momentum
exp82 1.3480 −0.0007 Decrease ADAM_BETAS β1 0.68→0.66 Optimal momentum
exp88 1.3468 −0.0012 Decrease WARMDOWN_RATIO 0.5→0.48 Shorter warmdown
exp99 1.3463 −0.0005 Increase MLP_RATIO to 4.25 Wider MLP

Optimization Phases

The agent moved through five distinct phases:

Phase 1 — Learning Rate Exploration (exp1–34): Early batch size experiments crashed (exp1–3, 5–6). The agent then found MATRIX_LR=0.05 worked (exp4), spent 30 experiments exploring other LRs, and eventually fine-tuned MATRIX_LR to 0.047 (exp35). 5 crashes, 2 keeps.

Phase 2 — Learning Rate Ratios (exp35–56): Systematically adjusted SCALAR_LR (0.4→0.39), EMBEDDING_LR (0.4→0.375), and UNEMBEDDING_LR (0.0033→0.0032). This phase showed the data pulling all learning rates to different values than the cluster. 6 keeps.

Phase 3 — Regularization (exp57–66): WEIGHT_DECAY reduced from 0.15 to 0.10 in careful increments. Architecture experiments (DEPTH, ASPECT_RATIO, HEAD_DIM) all failed. 3 keeps.

Phase 4 — Schedule & Momentum (exp67–93): Two major breakthroughs — FINAL_LR_FRAC (0.0→0.085) and ADAM_BETAS β1 (0.8→0.66). These parameters hadn't been explored in any previous dataset run. 8 keeps.

Phase 5 — Architecture Fine-tuning (exp94–100): Final attempt at model changes. HEAD_DIM and ASPECT_RATIO experiments failed, but MLP_RATIO=4.25 (exp99) gave the last improvement. 1 keep.

Best Configuration

# Architecture
ASPECT_RATIO = 32 # Same as cluster (hardware-determined)
DEPTH = 8 # Standard depth for M5 Max
MLP_RATIO = 4.25 # Wider than default (data-determined)
# Learning Rates (ALL different from cluster)
MATRIX_LR = 0.047 # Cluster: 0.0435
EMBEDDING_LR = 0.375 # Cluster: 0.4
SCALAR_LR = 0.39 # Cluster: 0.4
UNEMBEDDING_LR = 0.0032 # Cluster: 0.0033
# Regularization (different from cluster)
WEIGHT_DECAY = 0.10 # Cluster: 0.15
WARMDOWN_RATIO = 0.48 # Cluster: 0.5
FINAL_LR_FRAC = 0.085 # Cluster: 0.0
ADAM_BETAS = (0.66, 0.95) # Default: (0.8, 0.95)
# Performance
# val_bpb: 1.3463 | mem: 13.7 GB | steps: 525 | MFU: 17.7%

What Makes Educational Text Different?

The consistent direction of divergence reveals a pattern:

  1. Lower regularization (WEIGHT_DECAY 0.10 vs 0.15): Educational text is information-dense with diverse vocabulary. The model needs more freedom to fit complex patterns.

  2. Non-zero final learning rate (FINAL_LR_FRAC 0.085): The model benefits from continuing to learn at the end of training — educational content has long-tail knowledge that benefits from continued gradient updates.

  3. Lower momentum (β1 0.66 vs 0.8): Educational text has more diverse gradients (varied topics, technical vocabulary). Lower momentum prevents the optimizer from over-smoothing these diverse signals.

  4. Shifted learning rate ratios: MATRIX_LR moves up while EMBEDDING_LR and SCALAR_LR move down. This suggests educational text benefits from relatively stronger updates to the attention/MLP weight matrices versus embeddings — possibly because the vocabulary is standard but the relationships between concepts are more complex.

Full Experiment Log

All 101 experiments (click to expand)
Exp Description val_bpb Steps MFU Status
exp0 baseline (no modifications) 1.3734 448 15.0 baseline
exp1 Decrease TOTAL_BATCH_SIZE from default to 128 crash
exp2 Decrease DEVICE_BATCH_SIZE from 1 to 0.5 crash
exp3 Increase TOTAL_BATCH_SIZE from default to 256 crash
exp4 Increase MATRIX_LR from 0.0435 to 0.05 1.3598 495 16.6 keep
exp5 Decrease DEVICE_BATCH_SIZE from 1 crash
exp6 Decrease TOTAL_BATCH_SIZE to increase gradient steps crash
exp7 Increase EMBEDDING_LR from 0.4 to 0.5 1.3622 486 16.3 discard
exp8 Decrease WARMDOWN_RATIO from 0.5 to 0.3 1.3690 471 15.8 discard
exp9 Decrease WEIGHT_DECAY from 0.15 to 0.10 1.3702 455 15.3 discard
exp10 Increase MATRIX_LR from 0.05 to 0.06 1.3752 443 14.9 discard
exp11 Decrease SCALAR_LR from 0.4 to 0.3 1.3853 410 13.7 discard
exp12 Increase UNEMBEDDING_LR from 0.0033 to 0.005 1.3788 425 14.2 discard
exp13 Decrease MATRIX_LR from 0.05 to 0.045 1.3780 431 14.4 discard
exp14 Increase DEPTH from default 1.4501 241 18.1 discard
exp15 Increase TOTAL_BATCH_SIZE 1.4108 231 15.1 discard
exp16 Decrease WARMDOWN_RATIO from 0.5 to 0.0 1.4116 450 15.1 discard
exp17 Increase MATRIX_LR from 0.05 to 0.052 1.3749 442 14.8 discard
exp18 Decrease MATRIX_LR from 0.05 to 0.048 1.3727 448 15.0 discard
exp19 Increase ADAM_BETAS to (0.85, 0.95) 1.3751 451 15.2 discard
exp20 Increase WARMUP_RATIO from 0.0 to 0.1 1.3830 455 15.3 discard
exp21 Decrease WEIGHT_DECAY from 0.15 to 0.05 1.3758 438 14.7 discard
exp22 Decrease EMBEDDING_LR from 0.4 to 0.35 1.3887 399 13.3 discard
exp23 Decrease FINAL_LR_FRAC from 0.0 to -0.1 1.4387 393 13.1 discard
exp24 Decrease ADAM_BETAS to (0.75, 0.95) 1.3747 433 14.5 discard
exp25 Decrease HEAD_DIM from 128 to 96 1.4241 319 12.6 discard
exp26 Decrease ASPECT_RATIO from 32 to 24 1.3811 422 14.1 discard
exp27 Change WINDOW_PATTERN from "SSSL" to "SSL" 1.3784 433 15.1 discard
exp28 Increase EMBEDDING_LR from 0.4 to 0.45 1.3698 460 15.4 discard
exp29 Increase SCALAR_LR from 0.4 to 0.5 1.3679 488 16.4 discard
exp30 Increase MATRIX_LR from 0.05 to 0.055 1.3619 489 16.4 discard
exp31 Decrease MATRIX_LR from 0.05 to 0.049 1.3601 494 16.6 discard
exp32 Decrease MATRIX_LR from 0.05 to 0.051 1.3676 472 15.8 discard
exp33 Increase SCALAR_LR from 0.4 to 0.45 1.3725 475 15.9 discard
exp34 Decrease MATRIX_LR from 0.05 to 0.0485 1.3629 483 16.2 discard
exp35 Decrease MATRIX_LR from 0.05 to 0.047 1.3569 502 16.9 keep
exp36 Decrease MATRIX_LR from 0.047 to 0.046 1.3580 500 16.8 discard
exp37 Decrease MATRIX_LR from 0.047 to 0.045 1.3581 499 16.8 discard
exp38 Increase MATRIX_LR from 0.047 to 0.048 1.3575 501 16.9 discard
exp39 Decrease MATRIX_LR from 0.047 to 0.0465 1.3570 503 16.9 discard
exp40 Increase EMBEDDING_LR from 0.4 to 0.42 1.3581 502 16.9 discard
exp41 Decrease UNEMBEDDING_LR from 0.0033 to 0.003 1.3601 504 16.9 discard
exp42 Increase UNEMBEDDING_LR from 0.0033 to 0.004 1.3589 497 16.7 discard
exp43 Increase SCALAR_LR from 0.4 to 0.41 1.3639 479 16.1 discard
exp44 Decrease WEIGHT_DECAY from 0.15 to 0.12 1.3626 482 16.2 discard
exp45 Decrease SCALAR_LR from 0.4 to 0.38 1.3569 502 16.9 keep
exp46 Decrease SCALAR_LR from 0.38 to 0.36 1.3583 505 17.0 discard
exp47 Increase SCALAR_LR from 0.38 to 0.39 1.3564 506 17.0 keep
exp48 Decrease EMBEDDING_LR from 0.4 to 0.38 1.3553 507 17.1 keep
exp49 Increase EMBEDDING_LR from 0.38 to 0.37 1.3559 507 17.1 discard
exp50 Decrease EMBEDDING_LR from 0.38 to 0.36 1.3570 507 17.1 discard
exp51 Increase EMBEDDING_LR from 0.38 to 0.385 1.3563 508 17.1 discard
exp52 Decrease EMBEDDING_LR from 0.38 to 0.375 1.3552 508 17.1 keep
exp53 Decrease UNEMBEDDING_LR from 0.0033 to 0.0031 1.3621 488 16.4 discard
exp54 Increase UNEMBEDDING_LR from 0.0033 to 0.0035 1.3618 483 16.2 discard
exp55 Decrease WEIGHT_DECAY from 0.15 to 0.14 1.3575 502 16.9 discard
exp56 Decrease UNEMBEDDING_LR from 0.0033 to 0.0032 1.3552 509 17.1 keep
exp57 Decrease WEIGHT_DECAY from 0.15 to 0.13 1.3550 510 17.1 keep
exp58 Decrease WEIGHT_DECAY from 0.13 to 0.12 1.3549 510 17.1 keep
exp59 Decrease WEIGHT_DECAY from 0.12 to 0.11 1.3555 511 17.2 discard
exp60 Decrease WEIGHT_DECAY from 0.12 to 0.10 1.3548 511 17.2 keep
exp61 Decrease WEIGHT_DECAY from 0.10 to 0.09 1.3553 510 17.1 discard
exp62 Decrease WEIGHT_DECAY from 0.10 to 0.08 1.3550 511 17.2 discard
exp63 Increase WARMDOWN_RATIO from 0.5 to 0.6 1.3589 498 16.7 discard
exp64 Increase WARMDOWN_RATIO from 0.5 to 0.4 1.3608 492 16.5 discard
exp65 Increase WARMUP_RATIO from 0.0 to 0.05 1.3730 491 16.5 discard
exp66 Increase WARMDOWN_RATIO from 0.5 to 0.45 1.3550 516 17.4 discard
exp67 Increase FINAL_LR_FRAC from 0.0 to 0.05 1.3518 515 17.3 keep
exp68 Increase FINAL_LR_FRAC from 0.05 to 0.10 1.3506 516 17.4 keep
exp69 Increase FINAL_LR_FRAC from 0.10 to 0.15 1.3516 516 17.4 discard
exp70 Decrease FINAL_LR_FRAC from 0.10 to 0.08 1.3502 519 17.5 keep
exp71 Increase FINAL_LR_FRAC from 0.08 to 0.09 1.3507 518 17.4 discard
exp72 Decrease FINAL_LR_FRAC from 0.08 to 0.07 1.3505 520 17.5 discard
exp73 Increase FINAL_LR_FRAC from 0.08 to 0.085 1.3501 519 17.5 keep
exp74 Decrease FINAL_LR_FRAC from 0.085 to 0.082 1.3556 498 16.8 discard
exp75 Increase FINAL_LR_FRAC from 0.085 to 0.087 1.3560 495 16.7 discard
exp76 Decrease ADAM_BETAS to (0.75, 0.95) 1.3496 517 17.4 keep
exp77 Decrease ADAM_BETAS to (0.7, 0.95) 1.3488 521 17.6 keep
exp78 Decrease ADAM_BETAS to (0.65, 0.95) 1.3492 521 17.5 discard
exp79 Decrease ADAM_BETAS to (0.65, 0.9) 1.3523 522 17.6 discard
exp80 Increase ADAM_BETAS to (0.72, 0.95) 1.3492 522 17.6 discard
exp81 Decrease ADAM_BETAS to (0.68, 0.95) 1.3487 522 17.6 keep
exp82 Decrease ADAM_BETAS to (0.66, 0.95) 1.3480 521 17.5 keep
exp83 Decrease ADAM_BETAS to (0.64, 0.95) 1.3491 521 17.5 discard
exp84 Decrease ADAM_BETAS to (0.65, 0.95) 1.3527 504 17.0 discard
exp85 Increase ADAM_BETAS to (0.67, 0.95) 1.3529 500 16.8 discard
exp86 Increase WARMUP_RATIO from 0.0 to 0.02 1.3587 506 17.0 discard
exp87 Decrease ADAM_BETAS β2 from 0.95 to 0.94 1.3482 521 17.6 discard
exp88 Decrease WARMDOWN_RATIO from 0.5 to 0.48 1.3468 523 17.6 keep
exp89 Decrease WARMDOWN_RATIO from 0.48 to 0.46 1.3479 521 17.6 discard
exp90 Decrease WARMDOWN_RATIO from 0.48 to 0.47 1.3481 522 17.6 discard
exp91 Increase WARMDOWN_RATIO from 0.48 to 0.49 1.3472 523 17.6 discard
exp92 Increase WARMDOWN_RATIO from 0.48 to 0.485 1.3482 522 17.6 discard
exp93 Decrease WARMDOWN_RATIO from 0.48 to 0.475 1.3476 523 17.6 discard
exp94 Increase HEAD_DIM from 128 to 144 1.3647 438 17.5 discard
exp95 Decrease ASPECT_RATIO from 32 to 28 1.3522 505 17.0 discard
exp96 Increase HEAD_DIM from 128 to 112 1.3913 338 16.9 discard
exp97 Change WINDOW_PATTERN from "SSSL" to "SSSSL" 1.3488 524 17.6 discard
exp98 Increase MLP_RATIO to 4.5 1.3473 524 17.6 discard
exp99 Increase MLP_RATIO to 4.25 1.3463 525 17.7 keep
exp100 Increase MLP_RATIO from 4.25 to 4.3 1.3473 524 17.6 discard

See also: Cross-Dataset Comparison | FineWeb-Edu (Mar 17) | Climbmix (Mar 19) | Cosmopedia-v2 (Mar 20) | SlimPajama (Mar 20)

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /