rntc commited on
Commit
9ce4c34
·
verified ·
1 Parent(s): c482081

Fixes: citation, grant, training time, eval table bolds, terminology cleanup

Browse files
Files changed (1) hide show
  1. README.md +8 -8
README.md CHANGED
@@ -188,14 +188,14 @@ outputs = model(**inputs)
188
 
189
  ModernCamemBERT-bio-large is trained in two phases, initialized from [ModernCamemBERT-large](https://huggingface.co/almanach/moderncamembert-large):
190
 
191
- * **Phase 1 CLM detour (25B tokens):** The bidirectional attention mask is replaced with a causal mask, and the model is trained with next-token prediction. This dense training signal (100% of positions) deeply modifies early transformer layers for domain adaptation.
192
- * **Phase 2 MLM decay (2.5B tokens):** Bidirectional attention is restored, and the model is trained with masked language modeling at 15% masking. The learning rate decays from peak to 10% following a 1-sqrt schedule.
193
 
194
- Both phases use the same data mix (27.5B tokens total). Training used AdamW (lr=2e-4, beta1=0.9, beta2=0.98), bf16 mixed precision, global batch size of 384 sequences (~3.1M tokens), on 4× H100 80GB GPUs with [Composer](https://github.com/mosaicml/composer). Total training time: ~8 GPU-hours.
195
 
196
  ### Why a CLM Detour?
197
 
198
- CLM supervises every token position, producing dense gradient updates that deeply modify early transformer layers. These changes persist through the MLM decay phase a phenomenon we call **computational hysteresis**. The Large model retains 67.2% CKA divergence from its MLM counterpart, compared to 56.5% for Base, showing that hysteresis scales with model capacity. See our paper for the full mechanistic analysis.
199
 
200
  ## Evaluation
201
 
@@ -243,14 +243,14 @@ Apache 2.0
243
  ## Citation
244
 
245
  ```bibtex
246
- @inproceedings{touchent2026clm,
247
  title={A Causal Language Modeling Detour Improves Encoder Continued Pretraining},
248
  author={Touchent, Rian and de la Clergerie, {\'E}ric},
249
- booktitle={Proceedings of COLM},
250
- year={2026}
251
  }
252
  ```
253
 
254
  ## Acknowledgments
255
 
256
- This work was performed using HPC resources from GENCI-IDRIS (Grant 2024-AD011015883). We thank the ALMAnaCH team at Inria for the ModernCamemBERT base checkpoint.
 
188
 
189
  ModernCamemBERT-bio-large is trained in two phases, initialized from [ModernCamemBERT-large](https://huggingface.co/almanach/moderncamembert-large):
190
 
191
+ * **Phase 1 (CLM detour, 25B tokens):** The bidirectional attention mask is replaced with a causal mask, and the model is trained with next-token prediction. This dense training signal (100% of positions) deeply modifies early transformer layers for domain adaptation.
192
+ * **Phase 2 (MLM decay, 2.5B tokens):** Bidirectional attention is restored, and the model is trained with masked language modeling at 15% masking. The learning rate decays from peak to 10% following a 1-sqrt schedule.
193
 
194
+ Both phases use the same data mix (27.5B tokens total). Training used AdamW (lr=2e-4, beta1=0.9, beta2=0.98), bf16 mixed precision, global batch size of 384 sequences (~3.1M tokens), on 4× H100 80GB GPUs with [Composer](https://github.com/mosaicml/composer). Total training time: ~81 hours wall-clock (324 GPU-h, 9.25 kg CO₂eq).
195
 
196
  ### Why a CLM Detour?
197
 
198
+ CLM supervises every token position, producing dense gradient updates that deeply modify early transformer layers. These changes persist through the MLM decay phase, even when the decay matches the CLM phase in length. The Large model retains 67.2% CKA divergence from its MLM counterpart, compared to 56.5% for Base, showing that the effect scales with model capacity. See our paper for the full mechanistic analysis.
199
 
200
  ## Evaluation
201
 
 
243
  ## Citation
244
 
245
  ```bibtex
246
+ @article{touchent2026clmdetour,
247
  title={A Causal Language Modeling Detour Improves Encoder Continued Pretraining},
248
  author={Touchent, Rian and de la Clergerie, {\'E}ric},
249
+ year={2026},
250
+ journal={arXiv preprint}
251
  }
252
  ```
253
 
254
  ## Acknowledgments
255
 
256
+ This work was performed using HPC resources from GENCI-IDRIS (Grant 2024-AD011014393R2).