KitsuVp commited on
Commit
c3519b4
·
verified ·
1 Parent(s): 9939baf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +519 -72
README.md CHANGED
@@ -1,78 +1,525 @@
1
  ---
2
- library_name: transformers
 
3
  tags:
4
- - generated_from_trainer
5
- model-index:
6
- - name: NeoLLM
7
- results: []
 
 
 
 
8
  ---
9
 
10
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
- should probably proofread and complete it, then remove this comment. -->
12
-
13
  # NeoLLM
14
 
15
- This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
16
- It achieves the following results on the evaluation set:
17
- - Loss: 4.7393
18
- - Ce: 3.6698
19
- - Valid Targets: 2083162.0
20
- - Ppl: 39.2448
21
- - Mile Loss: 4.3028
22
- - Mile Ppl: 73.9062
23
- - Top1 Accuracy: 0.3349
24
- - Top3 Accuracy: 0.4953
25
- - Topk Valid Targets: 2083162.0
26
- - Ntp Loss: 4.3042
27
- - Ntp Ce Unweighted: 3.6703
28
- - Mile Reweighting Delta: 0.6329
29
- - Mu Loss: 0.0010
30
- - Tweo Loss: 0.0455
31
- - Nitp Loss: 0.4346
32
- - Total Model Loss: 4.7393
33
- - Tweo Weighted Loss: 0.0005
34
- - Nitp Weighted Loss: 0.4346
35
- - Auxiliary Loss: 0.4350
36
- - Regularization Loss: 0.0015
37
-
38
- ## Model description
39
-
40
- More information needed
41
-
42
- ## Intended uses & limitations
43
-
44
- More information needed
45
-
46
- ## Training and evaluation data
47
-
48
- More information needed
49
-
50
- ## Training procedure
51
-
52
- ### Training hyperparameters
53
-
54
- The following hyperparameters were used during training:
55
- - learning_rate: 0.001
56
- - train_batch_size: 64
57
- - eval_batch_size: 64
58
- - seed: 42
59
- - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
60
- - lr_scheduler_type: linear
61
- - num_epochs: 1
62
-
63
- ### Training results
64
-
65
- | Training Loss | Epoch | Step | Validation Loss | Ce | Valid Targets | Ppl | Mile Loss | Mile Ppl | Top1 Accuracy | Top3 Accuracy | Topk Valid Targets | Ntp Loss | Ntp Ce Unweighted | Mile Reweighting Delta | Mu Loss | Tweo Loss | Nitp Loss | Total Model Loss | Tweo Weighted Loss | Nitp Weighted Loss | Auxiliary Loss | Regularization Loss |
66
- |:-------------:|:-----:|:-----:|:---------------:|:------:|:-------------:|:-------:|:---------:|:--------:|:-------------:|:-------------:|:------------------:|:--------:|:-----------------:|:----------------------:|:-------:|:---------:|:---------:|:----------------:|:------------------:|:------------------:|:--------------:|:-------------------:|
67
- | 5.6020 | 0.32 | 5000 | 5.2087 | 4.1859 | 2083162.0 | 65.7549 | 4.7563 | 116.3132 | 0.2851 | 0.4336 | 2083162.0 | 4.7569 | 4.1864 | 0.5703 | 0.0002 | 0.1707 | 0.4501 | 5.2087 | 0.0017 | 0.4501 | 0.4518 | 0.0020 |
68
- | 5.3530 | 0.64 | 10000 | 4.9332 | 3.9013 | 2083162.0 | 49.4689 | 4.5039 | 90.3670 | 0.3120 | 0.4672 | 2083162.0 | 4.5050 | 3.9018 | 0.6025 | 0.0007 | 0.0826 | 0.4274 | 4.9332 | 0.0008 | 0.4274 | 0.4282 | 0.0015 |
69
- | 5.1984 | 0.96 | 15000 | 4.7608 | 3.6975 | 2083162.0 | 40.3448 | 4.3240 | 75.4908 | 0.3318 | 0.4919 | 2083162.0 | 4.3255 | 3.6979 | 0.6265 | 0.0010 | 0.0516 | 0.4348 | 4.7608 | 0.0005 | 0.4348 | 0.4353 | 0.0015 |
70
- | 5.1708 | 1.0 | 15625 | 4.7393 | 3.6698 | 2083162.0 | 39.2448 | 4.3028 | 73.9062 | 0.3349 | 0.4953 | 2083162.0 | 4.3042 | 3.6703 | 0.6329 | 0.0010 | 0.0455 | 0.4346 | 4.7393 | 0.0005 | 0.4346 | 0.4350 | 0.0015 |
71
-
72
-
73
- ### Framework versions
74
-
75
- - Transformers 5.20.2
76
- - Pytorch 2.14.1+cu130
77
- - Datasets 4.8.5
78
- - Tokenizers 0.23.3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: en
3
+ license: apache-2.0
4
  tags:
5
+ - causal-lm
6
+ - research
7
+ - bf16
8
+ - attention
9
+ - normalization
10
+ - neollm
11
+ datasets:
12
+ - HuggingFaceFW/fineweb-edu
13
  ---
14
 
 
 
 
15
  # NeoLLM
16
 
17
+ NeoLLM is a **84.57 M parameter** decoder-only language model trained from scratch on
18
+ [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) with
19
+ **BF16** compute, completing training in approximately
20
+ **~1h 00m** on **NVIDIA RTX PRO 6000 Blackwell Server Edition**.
21
+ It integrates a collection of recently published attention and normalization techniques
22
+ into a single architecture, with the goal of studying how they interact during
23
+ pretraining. The model is actively being developed and the current checkpoint represents
24
+ an intermediate training state.
25
+
26
+ > **Author / contact:** [@Kyokopom](https://x.com/Kyokopom) on X
27
+ > **Repository:** [KitsuVp/NeoLLM](https://huggingface.co/KitsuVp/NeoLLM)
28
+
29
+ ---
30
+
31
+ ## Architecture
32
+
33
+ NeoLLM is a decoder-only transformer with the following configuration:
34
+
35
+ | Parameter | Value |
36
+ |---|---|
37
+ | Hidden size | 512 |
38
+ | Layers | 12 |
39
+ | Attention heads | 8 |
40
+ | KV heads (GQA) | 4 |
41
+ | Head dim | 64 |
42
+ | Intermediate size | 1536 |
43
+ | Vocabulary | LiquidAI/LFM2.5-1.2B-Thinking tokenizer (64,402 tokens) |
44
+ | Context length | 512 tokens |
45
+ | Leviathan | enabled=True; d_seed=128, modes=8, knots=16 |
46
+ | JTok / JTok-M | enabled=False / False; Torch continuous surfaces, experts=5, top_k=2 |
47
+ | DAGFormer | enabled=False; {'predictor_dim': 256, 'predictor_layers': 2, 'predictor_heads': 4, 'local_dim': 128, 'input_source': 'tokens'} |
48
+
49
+ ### Parameter breakdown
50
+
51
+ | Parameter bucket | Count |
52
+ |---|---|
53
+ | **Total parameters** | 84.57M (84,567,992) |
54
+ | **Embedding parameters** (tied) | 32.97M (32,973,824) |
55
+ | **Non-embedding parameters** | 51.59M (51,594,168) |
56
+ | **Effective trainable parameters** | 84.57M (84,567,992) |
57
+
58
+ > Weight tying is **enabled**: the input embedding matrix and the language-model head
59
+ > share the same parameters, so the effective trainable budget is
60
+ > `total − embed = 51.59M`.
61
+
62
+ ### Integrated techniques
63
+
64
+ NeoLLM combines architecture modules, optional auxiliary objectives, and
65
+ training-time optimizer/stability components from the following papers.
66
+
67
+ **Embedding and token representation**
68
+
69
+ - **Learnable Multipliers** ([arXiv:2601.04890](https://arxiv.org/abs/2601.04890)) — Adds
70
+ per-row and per-column learnable scalar parameters to selected matrix layers and, when
71
+ enabled, embeddings.
72
+ - **Leviathan** ([arXiv:2601.22040](https://arxiv.org/abs/2601.22040)) — Optional
73
+ continuous token embedding generator that can replace the discrete input lookup table.
74
+ - **Leviathan-JTok / JTok-M** ([arXiv:2602.00800](https://arxiv.org/abs/2602.00800)) —
75
+ Optional continuous adaptation of JTok over the shared Leviathan coordinate. JTok
76
+ applies one normalized surface as a multiplicative MLP gate; JTok-M routes a
77
+ Sigmoid+TopK mixture of continuous surfaces and adds the paper's depth-scaled
78
+ residual. Runtime ``jtok_kernel_backend`` selects the PyTorch reference or the
79
+ CCE Triton adapter; the JTok surfaces remain outside MXFP8 conversion.
80
+ - **KHRONOS** ([arXiv:2505.13315](https://arxiv.org/abs/2505.13315)) — Kernel/basis
81
+ reference used by the Leviathan continuous token generator implementation.
82
+ - **Spelling Bee Embeddings** ([arXiv:2601.18030](https://arxiv.org/abs/2601.18030)) —
83
+ Augments token embeddings with character-level spelling information.
84
+ - **Token Embedding Manifold analysis** ([arXiv:2504.01002](https://arxiv.org/abs/2504.01002)) —
85
+ Reference motivation for treating token embeddings as structured objects rather than
86
+ unconstrained lookup rows.
87
+
88
+ **Attention, positions, and output projection**
89
+
90
+ - **FAN** ([arXiv:2502.21309](https://arxiv.org/abs/2502.21309)) — Fourier Analysis Networks.
91
+ A portion of the projection channels are dedicated to periodic cosine/sine features.
92
+ - **MEA** ([arXiv:2601.19611](https://arxiv.org/abs/2601.19611)) — Explicit Multi-head
93
+ Attention. Adds small learnable interaction matrices between attention heads for K and V.
94
+ - **LUCID** ([arXiv:2602.10410](https://arxiv.org/abs/2602.10410)) — Applies a learned
95
+ lower-triangular preconditioner to V before attention, decorrelating value representations
96
+ across positions.
97
+ - **Affine-Scaled Attention** ([arXiv:2602.23057](https://arxiv.org/abs/2602.23057)) — Adds
98
+ two learnable per-head scalars (α and β) to the softmax weights:
99
+ `[α·softmax(QKᵀ) + β]·V`.
100
+ - **XSA** ([arXiv:2603.09078](https://arxiv.org/abs/2603.09078)) — Exclusive Self Attention.
101
+ After computing attention, removes the component of the output aligned with the token's
102
+ own value vector.
103
+ - **Directional Routing** ([arXiv:2603.14923](https://arxiv.org/abs/2603.14923)) — Each head
104
+ learns K=4 directions in the output space; a learned router suppresses the attention output
105
+ along each direction per input.
106
+ - **Gated Attention** ([arXiv:2505.06708](https://arxiv.org/abs/2505.06708)) — A sigmoid gate
107
+ is applied to the attention output before the output projection, introducing non-linearity
108
+ and preventing attention sinks.
109
+ - **Momentum Attention** ([arXiv:2411.03884](https://arxiv.org/abs/2411.03884)) — Modifies Q
110
+ and K by subtracting a fraction of the previous position's Q and K values (causal
111
+ first-difference).
112
+ - **Interleaved Head Attention / IHA** ([arXiv:2602.21371](https://arxiv.org/abs/2602.21371)) —
113
+ Builds pseudo-heads from learned cross-head mixtures to create multiple attention patterns
114
+ per original head.
115
+ - **REPO** ([arXiv:2512.14391](https://arxiv.org/abs/2512.14391)) — Context re-positioning
116
+ module that learns contextual position coordinates above a configurable start layer.
117
+ - **GRAPE** ([arXiv:2512.07805](https://arxiv.org/abs/2512.07805)) — Group representational
118
+ position encoding used by the REPO-GRAPE positional path.
119
+ - **GOAT priors** ([arXiv:2601.15380](https://arxiv.org/abs/2601.15380)) — Optional
120
+ factorized attention log-prior channels inspired by trainable attention priors.
121
+ - **Hadamard output projection** ([arXiv:2603.08343](https://arxiv.org/abs/2603.08343)) —
122
+ Replaces dense attention output projection with a structured Hadamard transform plus
123
+ lightweight scaling.
124
+
125
+ **Normalization, residual flow, and MLP**
126
+
127
+ - **SeeDNorm** ([arXiv:2510.22777](https://arxiv.org/abs/2510.22777)) — Applied to Q and K
128
+ projections. Dynamically rescales normalization from the input's own statistics.
129
+ - **LayerNorm Scaling / LNS** ([arXiv:2502.05795](https://arxiv.org/abs/2502.05795)) — Each
130
+ layer's output is scaled by 1/√ℓ where ℓ is the layer index.
131
+ - **GPAS** ([arXiv:2506.22049](https://arxiv.org/abs/2506.22049)) — Gradient-Preserving
132
+ Activation Scaling for residual junctions.
133
+ - **PolyNorm** ([arXiv:2602.04902](https://arxiv.org/abs/2602.04902)) — Replaces the standard
134
+ MLP activation with normalized linear, quadratic, and cubic branches.
135
+ - **SimpleGPT** ([arXiv:2602.01212](https://arxiv.org/abs/2602.01212)) — Second-order
136
+ geometry-inspired normalization strategy applied inside MLP projections.
137
+ - **StackMemory / STACKTRANS** ([NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh)) —
138
+ Optional differentiable hidden-state stack between decoder layers.
139
+ - **Attention Residuals / AttnRes** ([arXiv:2603.15031](https://arxiv.org/abs/2603.15031)) —
140
+ Optional learned depth-wise aggregation over previous layer outputs or block summaries.
141
+ - **LAUREL** ([arXiv:2411.07501](https://arxiv.org/abs/2411.07501)) — Optional learned
142
+ augmented residual layer with residual-weight and low-rank variants.
143
+
144
+ **Training objectives and training-time regularizers**
145
+
146
+ - **Cut Cross Entropy** ([Apple repository](https://github.com/apple/ml-cross-entropy)) —
147
+ Memory-efficient next-token loss that avoids materializing the full token-by-vocabulary
148
+ logits tensor. NeoLLM remains compatible with the upstream package when the extensions
149
+ below are disabled.
150
+ - **MiLe Loss** ([arXiv:2310.19531](https://arxiv.org/abs/2310.19531)) — Optional detached,
151
+ mean-normalized predictive-entropy weighting of token losses, implemented inside the
152
+ extended CCE path.
153
+ - **Output Embedding Centering / mu-loss**
154
+ ([arXiv:2601.02031](https://arxiv.org/abs/2601.02031)) — Optional
155
+ `lambda * ||mean(output_embeddings)||^2` regularizer for output-logit stability.
156
+ - **MEAP** ([arXiv:2502.07490](https://arxiv.org/abs/2502.07490)) — Optional training-only
157
+ input corruption that masks a fixed fraction of eligible tokens while preserving clean
158
+ next-token labels, causal attention, and the inference path.
159
+ - **TWEO** ([arXiv:2511.23225](https://arxiv.org/abs/2511.23225)) — Optional
160
+ Transformers Without Extreme Outliers activation regularizer for FP8/low-bit-friendly
161
+ training.
162
+ - **NITP** ([arXiv:2605.24956](https://arxiv.org/abs/2605.24956)) — Optional Next Implicit
163
+ Token Prediction auxiliary objective using shallow-layer implicit token targets and a
164
+ cosine loss.
165
+ - **NextLat** ([arXiv:2511.05963](https://arxiv.org/abs/2511.05963)) — Optional next-latent
166
+ prediction objective using latent dynamics, Smooth L1 supervision, and frozen-head KL.
167
+
168
+ ### Optional extended-CCE configuration
169
+
170
+ | Feature | Enabled | Value |
171
+ |---|---:|---:|
172
+ | MiLe Loss | True | gamma=1.0 |
173
+ | mu-loss | True | lambda=0.0001 |
174
+ | MEAP | True | ratio=0.15 |
175
+
176
+ MiLe, mu-loss, and MEAP require the extended
177
+ [`Kitsunp/ml-cross-entropy`](https://github.com/Kitsunp/ml-cross-entropy) package only when
178
+ their corresponding flags are enabled. With all flags disabled, NeoLLM calls upstream CCE
179
+ without extension-specific arguments. When any extension is active, CCE reports three compact
180
+ scalars: unweighted NTP cross entropy, the MiLe reweighting delta, and the mu-loss penalty.
181
+ Their sum reconstructs `ntp_loss` exactly. MEAP reports its eligible and selected counts from
182
+ the masking kernel; the trainer logs the selected count and exact fraction. No diagnostic path
183
+ materializes full-vocabulary logits or a token mask outside the kernels.
184
+
185
+ **Optimizer and training stability**
186
+
187
+ - **Adam-family optimizer mode** — Active variant: **AdEMAMix**.
188
+ **AdEMAMix** ([arXiv:2409.03137](https://arxiv.org/abs/2409.03137)) contributes the optional
189
+ beta3 slow-memory branch when `ADEMAMIX=True`. **DeltaMomentum**
190
+ ([arXiv:2608.19491](https://arxiv.org/abs/2608.19491)) optionally replaces only the fast beta1
191
+ first-moment update on hidden Linear weights when `DELTA=True`; beta2 remains Adam's
192
+ ordinary squared-gradient EMA in every mode.
193
+ - **BF16 stochastic rounding** ([arXiv:2502.20566](https://arxiv.org/abs/2502.20566)) —
194
+ Optional master-free BF16 model update with stochastic rather than nearest rounding; the same
195
+ write-back path is shared by AdamW, DeltaAdamW, AdEMAMix, and DeltaAdEMAMix.
196
+ - **Cautious Weight Decay** ([arXiv:2510.12402](https://arxiv.org/abs/2510.12402)) —
197
+ Sign-selective weight decay variant used by the custom optimizer logic.
198
+ - **Correction of Decoupled Weight Decay** ([arXiv:2512.08217](https://arxiv.org/abs/2512.08217)) —
199
+ Adapts decoupled weight decay during learning-rate decay.
200
+ - **AdamHD** ([arXiv:2511.14721](https://arxiv.org/abs/2511.14721)) —
201
+ Decoupled Huber decay regularization reference used by the optimizer.
202
+ - **Gradient conditioning** — CAST active; history-adaptive spectral/norm policies by optimizer group; 15625 committed updates.
203
+ References: [CAST](https://arxiv.org/abs/2610.19761),
204
+ [GradientStabilizer](https://arxiv.org/abs/2502.17055).
205
+ ---
206
+
207
+ ## Training
208
+
209
+ | Setting | Value |
210
+ |---|---|
211
+ | Dataset | FineWeb-Edu (sample-10BT) |
212
+ | Tokens seen | ~0.51B (15,625 steps × batch 64 × length 512) |
213
+ | Precision | BF16 model state (bfloat16: 84,565,816 elements, float32: 2,176 elements) + AdEMAMix FP32 master active; stochastic rounding disabled |
214
+ | Optimizer | AdEMAMix |
215
+ | Gradient transform | CAST active; history-adaptive spectral/norm policies by optimizer group; 15625 committed updates |
216
+ | Learning rate | 1e-03 with 4,000-step linear warmup |
217
+ | Weight decay | coefficients [0.005, 0.01, 0.1]; WD 5/5 groups; CWD 2; Huber 0; Correction 0 |
218
+ | Training time | ~1h 00m |
219
+ | Hardware | NVIDIA RTX PRO 6000 Blackwell Server Edition |
220
+
221
+
222
+ ### Training curve — total objective
223
+
224
+ Total includes MiLe when enabled, plus all active auxiliary objectives and regularizers. Without MiLe means model total minus its MiLe delta on the same forward; this is not a separate training run without MiLe.
225
+
226
+ | Step | Train total | Val total | Train without MiLe | Val without MiLe |
227
+ |---|---|---|---|---|
228
+ | 1 | 12.1628 | — | 12.1628 | — |
229
+ | 250 | 7.61403 | — | 7.4383 | — |
230
+ | 500 | 7.07256 | — | 6.7936 | — |
231
+ | 750 | 6.7583 | — | 6.45856 | — |
232
+ | 1,000 | 6.53773 | — | 6.22562 | — |
233
+ | 1,250 | 6.38255 | — | 6.05759 | — |
234
+ | 1,500 | 6.27641 | — | 5.93874 | — |
235
+ | 1,750 | 6.18485 | — | 5.83498 | — |
236
+ | 2,000 | 6.11054 | — | 5.74598 | — |
237
+ | 2,250 | 6.0542 | — | 5.67346 | — |
238
+ | 2,500 | 5.99276 | — | 5.59831 | — |
239
+ | 2,750 | 5.93953 | — | 5.53581 | — |
240
+ | 3,000 | 5.89989 | — | 5.4875 | — |
241
+ | 3,250 | 5.85298 | — | 5.43154 | — |
242
+ | 3,500 | 5.81961 | — | 5.38959 | — |
243
+ | 3,750 | 5.77213 | — | 5.33894 | — |
244
+ | 4,000 | 5.73962 | — | 5.30034 | — |
245
+ | 4,250 | 5.70624 | — | 5.26196 | — |
246
+ | 4,500 | 5.67452 | — | 5.22532 | — |
247
+ | 4,750 | 5.63894 | — | 5.1867 | — |
248
+ | 5,000 | 5.60201 | 5.20872 | 5.14566 | 4.63842 |
249
+ | 5,250 | 5.58067 | — | 5.12189 | — |
250
+ | 5,500 | 5.56358 | — | 5.10027 | — |
251
+ | 5,750 | 5.53988 | — | 5.07192 | — |
252
+ | 6,000 | 5.51949 | — | 5.05131 | — |
253
+ | 6,250 | 5.50145 | — | 5.03022 | — |
254
+ | 6,500 | 5.48142 | — | 5.00966 | — |
255
+ | 6,750 | 5.47434 | — | 4.99941 | — |
256
+ | 7,000 | 5.45458 | — | 4.97933 | — |
257
+ | 7,250 | 5.44266 | — | 4.96329 | — |
258
+ | 7,500 | 5.43931 | — | 4.95881 | — |
259
+ | 7,750 | 5.42387 | — | 4.94245 | — |
260
+ | 8,000 | 5.41395 | — | 4.92846 | — |
261
+ | 8,250 | 5.40284 | — | 4.91688 | — |
262
+ | 8,500 | 5.39771 | — | 4.91162 | — |
263
+ | 8,750 | 5.39688 | — | 4.90813 | — |
264
+ | 9,000 | 5.38528 | — | 4.89682 | — |
265
+ | 9,250 | 5.37312 | — | 4.88279 | — |
266
+ | 9,500 | 5.36721 | — | 4.87624 | — |
267
+ | 9,750 | 5.36587 | — | 4.87322 | — |
268
+ | 10,000 | 5.35304 | 4.93319 | 4.85847 | 4.3307 |
269
+ | 10,250 | 5.3519 | — | 4.85684 | — |
270
+ | 10,500 | 5.34653 | — | 4.85226 | — |
271
+ | 10,750 | 5.34147 | — | 4.84267 | — |
272
+ | 11,000 | 5.33766 | — | 4.84179 | — |
273
+ | 11,250 | 5.33371 | — | 4.83661 | — |
274
+ | 11,500 | 5.33031 | — | 4.82987 | — |
275
+ | 11,750 | 5.32318 | — | 4.82163 | — |
276
+ | 12,000 | 5.32298 | — | 4.82233 | — |
277
+ | 12,250 | 5.31163 | — | 4.81093 | — |
278
+ | 12,500 | 5.29607 | — | 4.79492 | — |
279
+ | 12,750 | 5.29264 | — | 4.78748 | — |
280
+ | 13,000 | 5.27542 | — | 4.76917 | — |
281
+ | 13,250 | 5.2684 | — | 4.76011 | — |
282
+ | 13,500 | 5.25347 | — | 4.74149 | — |
283
+ | 13,750 | 5.25219 | — | 4.74022 | — |
284
+ | 14,000 | 5.23385 | — | 4.72159 | — |
285
+ | 14,250 | 5.22379 | — | 4.71104 | — |
286
+ | 14,500 | 5.2128 | — | 4.697 | — |
287
+ | 14,750 | 5.19929 | — | 4.6797 | — |
288
+ | 15,000 | 5.19845 | 4.76078 | 4.67985 | 4.1343 |
289
+ | 15,250 | 5.17847 | — | 4.65886 | — |
290
+ | 15,500 | 5.17078 | — | 4.64989 | — |
291
+ | 15,625 | 5.15796 | 4.73927 | 4.63676 | 4.10637 |
292
+
293
+ ### Cross-entropy with and without MiLe
294
+
295
+ CE without MiLe is unweighted CE; CE with MiLe adds the reweighting delta. Both exclude mu and auxiliary terms. `ntp_loss` includes mu when enabled.
296
+
297
+ | Step | Train CE without MiLe | Val CE without MiLe | Train CE with MiLe | Val CE with MiLe |
298
+ |---|---|---|---|---|
299
+ | 1 | 11.1858 | — | 11.1858 | — |
300
+ | 250 | 6.99033 | — | 7.16605 | — |
301
+ | 500 | 6.20773 | — | 6.48669 | — |
302
+ | 750 | 5.84668 | — | 6.14642 | — |
303
+ | 1,000 | 5.6052 | — | 5.9173 | — |
304
+ | 1,250 | 5.43696 | — | 5.76192 | — |
305
+ | 1,500 | 5.31879 | — | 5.65646 | — |
306
+ | 1,750 | 5.216 | — | 5.56587 | — |
307
+ | 2,000 | 5.12973 | — | 5.49429 | — |
308
+ | 2,250 | 5.06059 | — | 5.44133 | — |
309
+ | 2,500 | 4.9942 | — | 5.38865 | — |
310
+ | 2,750 | 4.94105 | — | 5.34477 | — |
311
+ | 3,000 | 4.89907 | — | 5.31146 | — |
312
+ | 3,250 | 4.85594 | — | 5.27739 | — |
313
+ | 3,500 | 4.82565 | — | 5.25568 | — |
314
+ | 3,750 | 4.78721 | — | 5.2204 | — |
315
+ | 4,000 | 4.75982 | — | 5.19911 | — |
316
+ | 4,250 | 4.73152 | — | 5.17579 | — |
317
+ | 4,500 | 4.70293 | — | 5.15213 | — |
318
+ | 4,750 | 4.67195 | — | 5.12419 | — |
319
+ | 5,000 | 4.637 | 4.18636 | 5.09334 | 4.75666 |
320
+ | 5,250 | 4.61676 | — | 5.07554 | — |
321
+ | 5,500 | 4.59794 | — | 5.06124 | — |
322
+ | 5,750 | 4.57108 | — | 5.03905 | — |
323
+ | 6,000 | 4.55318 | — | 5.02136 | — |
324
+ | 6,250 | 4.53466 | — | 5.00588 | — |
325
+ | 6,500 | 4.515 | — | 4.98677 | — |
326
+ | 6,750 | 4.50598 | — | 4.9809 | — |
327
+ | 7,000 | 4.4863 | — | 4.96155 | — |
328
+ | 7,250 | 4.47157 | — | 4.95094 | — |
329
+ | 7,500 | 4.4672 | — | 4.94771 | — |
330
+ | 7,750 | 4.45096 | — | 4.93238 | — |
331
+ | 8,000 | 4.43643 | — | 4.92192 | — |
332
+ | 8,250 | 4.42509 | — | 4.91106 | — |
333
+ | 8,500 | 4.41891 | — | 4.905 | — |
334
+ | 8,750 | 4.41487 | — | 4.90362 | — |
335
+ | 9,000 | 4.40325 | — | 4.8917 | — |
336
+ | 9,250 | 4.38848 | — | 4.8788 | — |
337
+ | 9,500 | 4.38046 | — | 4.87143 | — |
338
+ | 9,750 | 4.37748 | — | 4.87013 | — |
339
+ | 10,000 | 4.3617 | 3.90181 | 4.85627 | 4.5043 |
340
+ | 10,250 | 4.35885 | — | 4.85391 | — |
341
+ | 10,500 | 4.35343 | — | 4.8477 | — |
342
+ | 10,750 | 4.34251 | — | 4.84131 | — |
343
+ | 11,000 | 4.34041 | — | 4.83628 | — |
344
+ | 11,250 | 4.33454 | — | 4.83165 | — |
345
+ | 11,500 | 4.32731 | — | 4.82776 | — |
346
+ | 11,750 | 4.31839 | — | 4.81995 | — |
347
+ | 12,000 | 4.31809 | — | 4.81874 | — |
348
+ | 12,250 | 4.30669 | — | 4.8074 | — |
349
+ | 12,500 | 4.29101 | — | 4.79216 | — |
350
+ | 12,750 | 4.28479 | — | 4.78995 | — |
351
+ | 13,000 | 4.26643 | — | 4.77268 | — |
352
+ | 13,250 | 4.25658 | — | 4.76487 | — |
353
+ | 13,500 | 4.23899 | — | 4.75097 | — |
354
+ | 13,750 | 4.23678 | — | 4.74875 | — |
355
+ | 14,000 | 4.21843 | — | 4.73069 | — |
356
+ | 14,250 | 4.20746 | — | 4.7202 | — |
357
+ | 14,500 | 4.19394 | — | 4.70974 | — |
358
+ | 14,750 | 4.17781 | — | 4.6974 | — |
359
+ | 15,000 | 4.17831 | 3.69795 | 4.69692 | 4.32443 |
360
+ | 15,250 | 4.15836 | — | 4.67797 | — |
361
+ | 15,500 | 4.14992 | — | 4.67082 | — |
362
+ | 15,625 | 4.13727 | 3.67029 | 4.65846 | 4.30319 |
363
+
364
+ ### Observed loss components — weighted contributions
365
+
366
+ Only contributions actually added to the objective are shown; raw values and subcomponents remain in training metrics. `regularization_loss` is the subtotal of mu, weighted TWeo, JTok-M and StackMemory entropy, excluding NITP/NextLat; do not add it again to those components. JTok-M auxiliary loss is training-only.
367
+
368
+ | Step | Phase | mu | TWeo | NITP | Reg. subtotal |
369
+ |---|---|---|---|---|---|
370
+ | 1 | train | 3.18928e-10 | 1.73896e-06 | 0.976952 | 1.73928e-06 |
371
+ | 250 | train | 7.01891e-06 | 0.00066166 | 0.44731 | 0.000668678 |
372
+ | 500 | train | 1.64546e-05 | 0.000104238 | 0.585747 | 0.000120692 |
373
+ | 750 | train | 2.63736e-05 | 0.000110352 | 0.611748 | 0.000136726 |
374
+ | 1,000 | train | 3.69982e-05 | 0.000155076 | 0.620236 | 0.000192074 |
375
+ | 1,250 | train | 4.72159e-05 | 0.000251468 | 0.620334 | 0.000298684 |
376
+ | 1,500 | train | 5.61631e-05 | 0.000440033 | 0.619452 | 0.000496197 |
377
+ | 1,750 | train | 6.37731e-05 | 0.000716493 | 0.618208 | 0.000780266 |
378
+ | 2,000 | train | 7.11283e-05 | 0.00106097 | 0.615121 | 0.0011321 |
379
+ | 2,250 | train | 7.78758e-05 | 0.00141042 | 0.61138 | 0.0014883 |
380
+ | 2,500 | train | 8.57783e-05 | 0.00170873 | 0.602309 | 0.00179451 |
381
+ | 2,750 | train | 9.57859e-05 | 0.00191022 | 0.592752 | 0.002006 |
382
+ | 3,000 | train | 0.000105925 | 0.00204355 | 0.586281 | 0.00214948 |
383
+ | 3,250 | train | 0.000115293 | 0.00213258 | 0.573344 | 0.00224788 |
384
+ | 3,500 | train | 0.000128807 | 0.00217823 | 0.561627 | 0.00230704 |
385
+ | 3,750 | train | 0.000144444 | 0.00217241 | 0.549409 | 0.00231685 |
386
+ | 4,000 | train | 0.000159613 | 0.00216404 | 0.538191 | 0.00232365 |
387
+ | 4,250 | train | 0.000175604 | 0.00213121 | 0.528139 | 0.00230681 |
388
+ | 4,500 | train | 0.000196409 | 0.00201125 | 0.520185 | 0.00220766 |
389
+ | 4,750 | train | 0.000216932 | 0.00186487 | 0.512663 | 0.0020818 |
390
+ | 5,000 | train | 0.000235457 | 0.00174429 | 0.506681 | 0.00197975 |
391
+ | 5,000 | validation | 0.000245833 | 0.00170685 | 0.450107 | 0.00195269 |
392
+ | 5,250 | train | 0.000255837 | 0.00159143 | 0.503283 | 0.00184727 |
393
+ | 5,500 | train | 0.00027591 | 0.00147022 | 0.500589 | 0.00174613 |
394
+ | 5,750 | train | 0.000297109 | 0.00138382 | 0.499154 | 0.00168093 |
395
+ | 6,000 | train | 0.000318706 | 0.00131122 | 0.496501 | 0.00162993 |
396
+ | 6,250 | train | 0.000339117 | 0.0012192 | 0.494006 | 0.00155832 |
397
+ | 6,500 | train | 0.000357778 | 0.00116835 | 0.493126 | 0.00152613 |
398
+ | 6,750 | train | 0.00037719 | 0.00110189 | 0.491952 | 0.00147908 |
399
+ | 7,000 | train | 0.000393837 | 0.00107299 | 0.491564 | 0.00146682 |
400
+ | 7,250 | train | 0.000410753 | 0.00105211 | 0.490254 | 0.00146286 |
401
+ | 7,500 | train | 0.000432674 | 0.00102527 | 0.490148 | 0.00145794 |
402
+ | 7,750 | train | 0.00045965 | 0.000993715 | 0.490037 | 0.00145336 |
403
+ | 8,000 | train | 0.000486163 | 0.000977807 | 0.490569 | 0.00146397 |
404
+ | 8,250 | train | 0.000511266 | 0.000967278 | 0.49031 | 0.00147854 |
405
+ | 8,500 | train | 0.000534971 | 0.00094367 | 0.49123 | 0.00147864 |
406
+ | 8,750 | train | 0.000556648 | 0.000922655 | 0.491784 | 0.0014793 |
407
+ | 9,000 | train | 0.000577431 | 0.00088162 | 0.492113 | 0.00145905 |
408
+ | 9,250 | train | 0.000596525 | 0.000853626 | 0.492861 | 0.00145015 |
409
+ | 9,500 | train | 0.000617515 | 0.000845643 | 0.494312 | 0.00146316 |
410
+ | 9,750 | train | 0.000637834 | 0.00084683 | 0.494256 | 0.00148466 |
411
+ | 10,000 | train | 0.000661174 | 0.000824159 | 0.495291 | 0.00148533 |
412
+ | 10,000 | validation | 0.000673323 | 0.000826469 | 0.427388 | 0.00149979 |
413
+ | 10,250 | train | 0.00068555 | 0.000816403 | 0.496488 | 0.00150195 |
414
+ | 10,500 | train | 0.000711724 | 0.000812757 | 0.497312 | 0.00152448 |
415
+ | 10,750 | train | 0.000739273 | 0.00084057 | 0.49858 | 0.00157984 |
416
+ | 11,000 | train | 0.000766841 | 0.000853068 | 0.499761 | 0.00161991 |
417
+ | 11,250 | train | 0.000791822 | 0.000845729 | 0.500422 | 0.00163755 |
418
+ | 11,500 | train | 0.00081375 | 0.000834327 | 0.500904 | 0.00164808 |
419
+ | 11,750 | train | 0.000837697 | 0.000837231 | 0.501562 | 0.00167493 |
420
+ | 12,000 | train | 0.000864708 | 0.000850491 | 0.502526 | 0.0017152 |
421
+ | 12,250 | train | 0.00088934 | 0.000861347 | 0.502483 | 0.00175069 |
422
+ | 12,500 | train | 0.000908842 | 0.000857685 | 0.502144 | 0.00176653 |
423
+ | 12,750 | train | 0.00092413 | 0.000840669 | 0.500922 | 0.0017648 |
424
+ | 13,000 | train | 0.000938271 | 0.000770654 | 0.501027 | 0.00170893 |
425
+ | 13,250 | train | 0.000954108 | 0.000744765 | 0.501831 | 0.00169887 |
426
+ | 13,500 | train | 0.000968709 | 0.000693873 | 0.500834 | 0.00166258 |
427
+ | 13,750 | train | 0.000983261 | 0.000648338 | 0.501807 | 0.0016316 |
428
+ | 14,000 | train | 0.000995905 | 0.000624335 | 0.501539 | 0.00162024 |
429
+ | 14,250 | train | 0.00100511 | 0.000585943 | 0.501995 | 0.00159105 |
430
+ | 14,500 | train | 0.00101179 | 0.000553431 | 0.501497 | 0.00156522 |
431
+ | 14,750 | train | 0.001018 | 0.000527424 | 0.500344 | 0.00154542 |
432
+ | 15,000 | train | 0.00102259 | 0.000496297 | 0.500011 | 0.00151889 |
433
+ | 15,000 | validation | 0.00102464 | 0.000515891 | 0.434815 | 0.00154053 |
434
+ | 15,250 | train | 0.00102622 | 0.00047173 | 0.499 | 0.00149795 |
435
+ | 15,500 | train | 0.00102828 | 0.000450054 | 0.49849 | 0.00147834 |
436
+ | 15,625 | train | 0.00102952 | 0.00042649 | 0.498035 | 0.00145601 |
437
+ | 15,625 | validation | 0.00102993 | 0.000455007 | 0.43459 | 0.00148494 |
438
+
439
+ Tables use exact logged steps; missing values are — without carrying values forward. Repeated evaluations at one step use the latest logged value. Components average batch scalars weighted by examples; CE/PPL token metrics retain their valid-target weighting. Weight decay/CWD act in the optimizer, outside these forward losses.
440
+
441
+ ---
442
+
443
+ ## Limitations
444
+
445
+ - **Token budget** — ~1.5 B tokens seen; below estimated optimum. Knowledge-intensive tasks
446
+ will improve with more training.
447
+ - **Gradient spike at step 40k** — Reorganized the attention pattern in layer 9 that
448
+ previously captured long-range token correlations. A checkpoint from ~step 38k is expected
449
+ to have better aggregate benchmark scores.
450
+ - **PolyNorm exclusivity** — The quadratic branch has become partially redundant with the
451
+ linear branch. Will be corrected in the next training run.
452
+ - **Base model only** — Not instruction-tuned or aligned; purely a next-token-prediction
453
+ base model.
454
+
455
+ ---
456
+
457
+ ## References
458
+
459
+ All papers whose techniques are integrated into NeoLLM's architecture,
460
+ training objective, or training stack:
461
+
462
+ | Area | Technique | Paper title | Reference |
463
+ |---|---|---|---|
464
+ | Embeddings | Learnable Multipliers | Freeing the Scale of Language Model Matrix Layers | [arXiv:2601.04890](https://arxiv.org/abs/2601.04890) |
465
+ | Embeddings | Leviathan | A Separable Architecture for Continuous Token Representation in Language Models | [arXiv:2601.22040](https://arxiv.org/abs/2601.22040) |
466
+ | Embeddings / residual modulation | JTok / JTok-M | JTok: On Token Embedding as another Axis of Scaling Law via Joint Token Self-modulation | [arXiv:2602.00800](https://arxiv.org/abs/2602.00800) |
467
+ | Embeddings | KHRONOS | KHRONOS: a Kernel-Based Neural Architecture for Rapid, Resource-Efficient Scientific Computation | [arXiv:2505.13315](https://arxiv.org/abs/2505.13315) |
468
+ | Embeddings | Spelling Bee | Spelling Bee Embeddings for Language Modeling | [arXiv:2601.18030](https://arxiv.org/abs/2601.18030) |
469
+ | Embeddings | Token embedding analysis | Token Embeddings Violate the Manifold Hypothesis | [arXiv:2504.01002](https://arxiv.org/abs/2504.01002) |
470
+ | Attention / positions | FAN | Fourier Analysis Networks | [arXiv:2502.21309](https://arxiv.org/abs/2502.21309) |
471
+ | Attention / positions | MEA | Explicit Multi-head Attention for Inter-head Interaction in Large Language Models | [arXiv:2601.19611](https://arxiv.org/abs/2601.19611) |
472
+ | Attention / positions | LUCID | Attention with Preconditioned Representations | [arXiv:2602.10410](https://arxiv.org/abs/2602.10410) |
473
+ | Attention / positions | Affine-Scaled Attention | Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention | [arXiv:2602.23057](https://arxiv.org/abs/2602.23057) |
474
+ | Attention / positions | XSA | Exclusive Self Attention | [arXiv:2603.09078](https://arxiv.org/abs/2603.09078) |
475
+ | Attention / positions | Directional Routing | Directional Routing in Transformers | [arXiv:2603.14923](https://arxiv.org/abs/2603.14923) |
476
+ | Attention / positions | Gated Attention | Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free | [arXiv:2505.06708](https://arxiv.org/abs/2505.06708) |
477
+ | Attention / positions | Momentum Attention | Momentum Attention | [arXiv:2411.03884](https://arxiv.org/abs/2411.03884) |
478
+ | Attention / positions | IHA | Interleaved Head Attention | [arXiv:2602.21371](https://arxiv.org/abs/2602.21371) |
479
+ | Attention / positions | REPO | Language Models with Context Re-Positioning | [arXiv:2512.14391](https://arxiv.org/abs/2512.14391) |
480
+ | Attention / positions | GRAPE | Group Representational Position Encoding | [arXiv:2512.07805](https://arxiv.org/abs/2512.07805) |
481
+ | Attention / positions | GOAT priors | You Need Better Attention Priors | [arXiv:2601.15380](https://arxiv.org/abs/2601.15380) |
482
+ | Attention / positions | Hadamard o_proj | Rethinking Attention Output Projection: Structured Hadamard Transforms for Efficient Transformers | [arXiv:2603.08343](https://arxiv.org/abs/2603.08343) |
483
+ | Residual / normalization | SeeDNorm | Self-Rescaled Dynamic Normalization | [arXiv:2510.22777](https://arxiv.org/abs/2510.22777) |
484
+ | Residual / normalization | LNS | The Curse of Depth in LLMs | [arXiv:2502.05795](https://arxiv.org/abs/2502.05795) |
485
+ | Residual / normalization | GPAS | Gradient-Preserving Activation Scaling | [arXiv:2506.22049](https://arxiv.org/abs/2506.22049) |
486
+ | Residual / normalization | PolyNorm | PolyNorm / PolyCom | [arXiv:2602.04902](https://arxiv.org/abs/2602.04902) |
487
+ | Residual / normalization | SimpleGPT | SimpleGPT | [arXiv:2602.01212](https://arxiv.org/abs/2602.01212) |
488
+ | Residual / normalization | StackMemory / STACKTRANS | Recursive Transformer: Boosting Reasoning Ability with State Stack | [NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh) |
489
+ | Residual / normalization | Attention Residuals | Attention Residuals | [arXiv:2603.15031](https://arxiv.org/abs/2603.15031) |
490
+ | Residual / normalization | LAUREL | LAUREL: Learned Augmented Residual Layer | [arXiv:2411.07501](https://arxiv.org/abs/2411.07501) |
491
+ | Objectives | TWEO | Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies | [arXiv:2511.23225](https://arxiv.org/abs/2511.23225) |
492
+ | Objectives | NITP | Next Implicit Token Prediction for LLM Pre-training | [arXiv:2605.24956](https://arxiv.org/abs/2605.24956) |
493
+ | Objectives | NextLat | Next-Latent Prediction Transformers Learn Compact World Models | [arXiv:2511.05963](https://arxiv.org/abs/2511.05963) |
494
+ | Optimizer / training | AdEMAMix | The AdEMAMix Optimizer: Better, Faster, Older | [arXiv:2409.03137](https://arxiv.org/abs/2409.03137) |
495
+ | Optimizer / training | DeltaMomentum | DeltaMomentum: A Key-Value based Anisotropic Momentum Update via Delta Rule | [arXiv:2608.19491](https://arxiv.org/abs/2608.19491) |
496
+ | Optimizer / training | BF16 + SR | Stochastic Rounding for LLM Training: Theory and Practice | [arXiv:2502.20566](https://arxiv.org/abs/2502.20566) |
497
+ | Optimizer / training | CWD | Cautious Weight Decay | [arXiv:2510.12402](https://arxiv.org/abs/2510.12402) |
498
+ | Optimizer / training | WD correction | Correction of Decoupled Weight Decay | [arXiv:2512.08217](https://arxiv.org/abs/2512.08217) |
499
+ | Optimizer / training | AdamHD | AdamHD: Decoupled Huber Decay Regularization for Language Model Pre-Training | [arXiv:2511.14721](https://arxiv.org/abs/2511.14721) |
500
+ | Optimizer / training | GradientStabilizer | GradientStabilizer | [arXiv:2502.17055](https://arxiv.org/abs/2502.17055) |
501
+
502
+ ---
503
+
504
+ ## Citation
505
+
506
+ ```bibtex
507
+ @misc{neollm2026,
508
+ title = {NeoLLM: A Research Language Model Integrating Recent Attention and Normalization Techniques},
509
+ author = {KitsuVp},
510
+ year = {2026},
511
+ url = {https://huggingface.co/KitsuVp/NeoLLM}
512
+ }
513
+ ```
514
+
515
+ ---
516
+
517
+ ## Author
518
+
519
+ [@Kyokopom](https://x.com/Kyokopom) on X
520
+
521
+ ---
522
+
523
+ ## License
524
+
525
+ Apache 2.0