Metraipolis › archive › dc_6d9aae188cc6

Domain adaptation of Russian ModernBERT for long legal documents — arXiv:2610.06715

Source
arXiv
Original
https://arxiv.org/abs/2610.06715
License (as archived)
CC0-1.0
Archived
2026-10-06T05:28:40.051Z
SHA-256 of the archived text
883561b1f48c7f31cc2c8edf7deea9a4ddc0265d8566019ac62f0c32ee38111f
Stable URL of this page
https://metraipolis.com/documento/dc_6d9aae188cc6

How to cite

Domain adaptation of Russian ModernBERT for long legal documents — arXiv:2610.06715 — arXiv, https://arxiv.org/abs/2610.06715 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_6d9aae188cc6 (Metraipolis archive dc_6d9aae188cc6, sha256 883561b1f48c7f31cc2c8edf7deea9a4ddc0265d8566019ac62f0c32ee38111f)
BibTeX
@misc{dc6d9aae188cc6,
  title = {Domain adaptation of Russian ModernBERT for long legal documents — arXiv:2610.06715},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.06715},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_6d9aae188cc6; sha256 883561b1f48c7f31cc2c8edf7deea9a4ddc0265d8566019ac62f0c32ee38111f},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.06715. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

We investigate whether continued pretraining on Russian legislative documents improves a Russian ModernBERT encoder on legal text. The adapted model, RuModernBERT-ruLaw, was trained on a corpus reported to contain 304,382 legislative documents and 194,425,905 corpus tokens. Corpus token counts are distinguished from positions produced by the model tokenizer. We compare the original and adapted encoders on a fixed external collection of 1,031 court-decision segments. Both models receive the same hidden positions in each of five masking realizations. At maximum input lengths of 512, 2,048, and 8,192 tokens, mean masked-token cross-entropy decreases by 0.10942, 0.07052, and 0.06604 natural-log units, respectively. The reported 95% intervals summarize sensitivity to masking on this fixed collection; they do not quantify uncertainty across document collections. A second evaluation addresses legal-entity extraction. The original and adapted models achieve entity-level F1 scores of 0.99852 and 0.99820. However, 99.95% of test spans have the same normalized surface form and class in the training split. This evaluation therefore provides limited evidence about transfer to previously unseen forms. The paper explains the masking objective, overlapping windows, averaging rules, and exact entity-boundary scoring using editable diagrams and clearly marked illustrative examples. The comparison supports lower masked-token prediction loss for the studied pair of models and collection. It does not isolate the contribution of distant context or establish practical legal utility.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2610.06715 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T05:24:20.391Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).