arXiv:2609.07798cs.CLSep 2026

Manuscript Offprint

arXiv:2609.07798

Climate-ModernBERT: Revisiting Corpus Composition for Domain-Adaptive Continued Pretraining

Yongan Yu, Shantam Raj, Jingwei Ni, Ario Saeid Vaghefi, Dominik Stammbach, Markus Leippold

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Natural Language Processing (NLP) in the climate domain requires models to process heterogeneous text sources, including scientific literature, policy disclosures, and synthetic reports. However, how to effectively combine diverse domain corpora during continued pretraining (CPT) remains underexplored. We introduce CLIMATE-MODERNBERT, a family of climate-adapted encoder models obtained through continued pretraining of ModernBERT-Base on three climate corpora: academic climate text, climate-filtered web data, and synthetic climate documents. We systematically compare joint continued pretraining on corpus mixtures with parameter-space merging of independently specialized checkpoints. Across nine climate NLP benchmarks, our best model achieves 76.3 average F1F_{1}, improving significantly over a vanilla ModernBERT baseline by 2.8 points. Within the climate NLP setting, the results show that academic climate corpora provide the strongest adaptation signal among the evaluated sources, while parameter-space merging improves over joint multi-source training and better preserves complementary information from heterogeneous climate corpora. We release all CLIMATE-MODERNBERT variants and training checkpoints to support future research in climate NLP and domain-adaptive pretraining.

1 Introduction

The rapid escalation of the global climate crisis increases the need for advanced NLP tools that can parse, synthesize, and verify large corpora of environmental literature and policy disclosures (Hershcovich et al., 2022). Various efforts in the NLP community aim to support the automatic analysis of climate-related text through tasks such as climate topic detection (Varini et al., 2020; Yu et al., 2024b), climate risk classification (Bingler et al., 2024), and question answering over climate knowledge (Spokoyny et al., 2023). These tools enable practitioners in the climate domain to extract insights from rapidly growing collections of climate reports, scientific publications, and regulatory corpus.

Yet building strong NLP models for this domain remains challenging in practice. Climate text resources are highly heterogeneous (Shi et al., 2023), spanning informal web discourse, scientific literature, and unstructured policy documents, while evaluation benchmarks cover diverse NLP tasks across short and long documents with specialized terminology and concepts. Climate practitioners must therefore operate over noisy and stylistically inconsistent corpora, making it difficult to train a single domain-adapted model that performs reliably across diverse downstream applications. Recent advances in encoder architectures provide a promising direction for addressing these challenges. ModernBERT (Warner et al., 2025) introduces a compact yet powerful encoder model with strong performance across natural language understanding tasks. Compared with large generative decoders, encoder-only models offer a favorable balance between performance and efficiency, making them suitable for large-scale climate analysis pipelines. They support non-generative tasks such as classification, retrieval, and information extraction, and serve as key components in retrieval systems and retrieval-augmented generation pipelines over large document collections (Lewis et al., 2020). These properties make them well-suited for climate applications requiring long-document processing and nuanced semantic understanding across heterogeneous text sources.

Evidence from other scientific domains further supports the benefits of adapting ModernBERT through domain-specific pretraining. Models such as Bioclinical ModernBERT (Sounack et al., 2025),

† Equal contribution; * Work conducted under the supervision of these authors.

Figure

Figure 1: Overview of the CLIMATE-MODERNBERT adaptation framework. (A) Three primary climate-domain corpora used for continued pretraining: academic climate text (A\mathcal{A}), climate-filtered web data (F\mathcal{F}), and synthetic climate text (S\mathcal{S}). (B) Two adaptation strategies studied in this work: joint continued pretraining on mixed corpora and parameter-space merging of independently specialized checkpoints. (C) Following the ModernBERT training schedule, consisting of context extension followed by learning-rate decay specialization. Context-extension-only checkpoints are additionally evaluated as an ablation.

Clinical ModernBERT (Lee et al., 2025), and Legal ModernBERT (Stammbach et al., 2026) show that continued pretraining on large-scale domain corpora consistently improves performance on specialized downstream tasks. These results suggest that a similar strategy could benefit climate NLP systems. However, the role of corpus composition in domain adaptation remains poorly understood, despite growing evidence that different in-domain data sources can lead to substantially different downstream outcomes (Chalkidis et al., 2020; Longpre et al., 2024).

As such, an important question remains largely underexplored in climate NLP: how should heterogeneous text sources be combined during continued pretraining to adapt modern encoder architectures effectively? We study two complementary aspects of this problem: (1) the composition of the training corpus and the mechanism used to integrate multiple sources, and (2) either through joint continued pretraining or parameter-space merging of independently specialized checkpoints. More broadly, this case study provides empirical insights into corpus composition and adaptation strategies

for climate-domain encoder adaptation, while motivating future investigations in other specialized NLP domains.

We introduce CLIMATE-MODERNBERT, a family of climate-adapted encoder models obtained through ModernBERT's continued pretraining procedure on heterogeneous climate corpora. Figure 1 provides an overview of the corpora, adaptation strategies, and two-stage training schedule. Our contributions are threefold:

  • We introduce CLIMATE-MODERNBERT, a suite of climate-adapted ModernBERT encoders trained on three primary climate corpora: academic climate text, climate-filtered web data, and synthetic climate documents.

  • We conduct a large-scale empirical study of corpus composition for climate-domain encoder adaptation, evaluating 21 climate-adapted model variants across nine climate NLP benchmarks, yielding over 810 fine-tuning runs.

  • We compare joint continued pretraining and parameter-space merging under matched data coverage, showing that curated academic cli-

mate corpora provide the strongest adaptation signal and that parameter-space merging out-performs joint multi-source training.

References (27)