File size: 6,018 Bytes
df279a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36a498c
 
 
 
df279a0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
library_name: transformers
pipeline_tag: fill-mask
base_model: answerdotai/ModernBERT-base
language:
- en
tags:
- climate
- modernbert
- domain-adaptation
- continued-pretraining
- web-text
---

# ClimateModernBERT · Climate Web · Phase 1

Part of **ClimateModernBERT**, a family of climate-domain encoders obtained by continued
pretraining of ModernBERT-Base on climate text.

| | |
|---|---|
| **Repository** | `CMB-ClimateModernBERT/F_CX` |
| **Naming** | corpora in `A_S_F` order, then the training stage: `CX` = Phase 1, `CX_LRD` = Phase 1 + Phase 2 |
| **Corpora** | Climate Web — {ℱ} in the paper's notation |
| **Training stage** | Phase 1 · Continued Pretraining (legacy suffix `CX`) |
| **Base model** | ModernBERT-Base, pre-LRD stable-phase checkpoint |
| **Architecture** | 150M parameters · 22 layers · hidden 768 · 12 heads · vocab 50,368 · 8,192-token context |
| **Status** | Paper |
| **Paper notation** | θ{ℱ} |

Confirmed as the web component of the Phase-1 merges.

Republished from [`sraj/CMB_FWEdu_V2_FastTxt_CX`](https://huggingface.co/sraj/CMB_FWEdu_V2_FastTxt_CX) under a name that matches the paper's notation. The weights are identical; the original repository remains available.

## Training data

Continued pretraining used Climate Web from a 6.42B-token climate corpus:

| | Corpus | Tokens | Description |
|---|---|---|---|
| 𝒜 | Academic | ~1.28B | Peer-reviewed journal articles across climate science, earth systems and energy economics; the ClimateNews archive 2000–2022; climate arXiv preprints; climate handbooks. |
| ℱ | Climate Web | ~5B | FineWeb-Edu filtered for climate relevance with a 166-term keyword filter followed by a FastText classifier. |
| 𝒮 | Synthetic | ~0.14B | LLM-generated climate text conditioned on in-domain seed excerpts, in three communication styles. |

Raw academic text is not redistributed: peer-reviewed articles are accessed under
institutional publisher licenses, and news shards and handbooks were collected for
non-commercial research use. The processing pipelines are released instead.

## Training procedure

Two stages, following ModernBERT's own continued-pretraining recipe:

- **Phase 1 — context extension.** 3 epochs, constant LR 3e-4, global batch 576,
  sequence length 8,192, MLM masking 30%, StableAdamW, BF16.
- **Phase 2 — LRD specialization.** 3 further epochs on a `1 − √t` decay schedule from
  LR 3e-4 with final LR factor 1e-3.

4× NVIDIA A100, MosaicML Composer. Final checkpoints are converted to HF Transformers format.

## Usage

ModernBERT is native to `transformers` from **4.48** onward, so no `trust_remote_code`
is required.

```python
from transformers import AutoTokenizer, AutoModel

model_id = "CMB-ClimateModernBERT/F_CX"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id)

inputs = tokenizer("Scope 1 and 2 emissions fell 12% against a 2019 baseline.", return_tensors="pt")
outputs = model(**inputs)   # outputs.last_hidden_state -> (batch, seq, 768)
```

For a downstream task, load `AutoModelForSequenceClassification` and fine-tune. The
paper's recipe: LR 4e-5, effective batch 64, weight decay 0.01, up to 10 epochs with
early stopping on validation F1, BF16 with fused AdamW.

## Evaluation

This checkpoint reaches **74.1 average F1** across the nine benchmarks, as reported in the manuscript.

Evaluated on nine climate NLP benchmarks: Climate Detection, Climate Specificity,
Commitments & Actions, Climate Sentiment, Net Zero & Reduction, TCFD Recommendations,
WFB Nature, WXImpactBench, and ClimRetrieve. Binary tasks and ClimRetrieve report
positive-class F1; multi-class and multi-label tasks report macro-F1. Scores are the mean
over three fine-tuning seeds under a single shared hyperparameter configuration.

Reference points from the paper: the ModernBERT-Base stable-phase baseline reaches 73.5
average F1, and ClimateBERT reaches 72.1 under the same protocol.

For general use, prefer [`CMB-ClimateModernBERT/Merge_Soup_LRD`](https://huggingface.co/CMB-ClimateModernBERT/Merge_Soup_LRD), the merged model that reaches 76.3 average F1.

## Intended use

Research on climate NLP: encoding climate text, and fine-tuning for classification,
multi-label tagging, and retrieval over corporate disclosures, policy documents,
scientific literature and climate news.

## Limitations

- English only, and built on a single encoder family (ModernBERT-Base).
- Current climate NLP benchmarks are largely sentence- or passage-level, so the model's
  long-context capacity is not fully exercised by the reported evaluation.
- Findings about corpus composition are demonstrated within climate NLP and should not be
  read as universal principles of domain adaptation.
- Synthetic training data has task-dependent effects: it helps taxonomy- and
  framework-driven tasks while degrading performance on tasks requiring finer-grained
  discourse and commitment understanding.
- The model is a masked language model, not an instruction-following system, and produces
  no calibrated factual guarantees about climate science.

## Paper

**Climate-ModernBERT: Revisiting Corpus Composition for Domain-Adaptive Continued
Pretraining.** Preprint manuscript, currently under review — no venue, DOI or arXiv
identifier yet, and no citation to give. The PDF is hosted in the project repository.

- Project website: https://climatemodernbert.github.io/ClimateModernBERT/
- Code and pipelines: https://github.com/ClimateModernBERT/ClimateModernBERT
- Full model catalog: https://github.com/ClimateModernBERT/ClimateModernBERT/blob/main/docs/model-inventory.md
- Naming guide: https://github.com/ClimateModernBERT/ClimateModernBERT/blob/main/docs/model-naming.md

## License

Not yet set on this repository. The upstream base model is [ModernBERT-Base](https://huggingface.co/answerdotai/ModernBERT-base); check its terms, and those of the underlying corpora, before redistributing. No license is asserted here on the maintainers' behalf.