Size Matters: Foundation Model for Czech HTML documents
Martin Dvořák, Vít Tlustoš, Artyom Voronin, Martin Habrovec, Kateřina Podlesná, Barbora Rišová, Josef Vonášek
Abstract
Creating universal, high-quality representations of web documents in high-traffic industrial environments requires models that are both performant and economic. Existing approaches, however, often depend on large models, overlook the structural information inherent in HTML, or are constrained by short context windows, limiting their ability to process real-world web pages. We present HTML-LM, a compact foundation model with 154 million parameters that addresses these limitations through HTML-aware training and a ModernBERT-based architecture. It was trained on 100 million web documents using multiple objectives, including masked language modeling, bag-of-words prediction, and contrastive distillation from large language models. Consequently, HTML-LM sets a new state-of-the-art for classification and regression applications in the Czech Internet domain, surpassing both larger encoders and small-sized LLMs. The model is deployed in production, processing thousands of web documents per second, and released to the community under the CC BY-NC 4.0. https://huggingface.co/Seznam/html-lm.
Create a lesson
Metadata
- Journal
- Text, Speech, and Dialogue. TSD 2026. Lecture Notes in Computer Science(), vol 16940 141-152
Related papers
When Ink Meets Pixel: Intent-Aware OCR with VLMs for Human-Corrected Financial Documents
Shared title terminologycs.CLAkshata A Bhat, Daman Deep Singh, Niyati Chhaya
Scoring What Matters: Exact Feedback Reduction for Language Model Comparison
Shared title terminologycs.CLHui Zhang, Haoda Yue, Bicheng Deng et al.
Does the Mixer Matter ? Paired-Seed Ablations of Tiny Bilingual Language Models
Shared title terminologycs.CLAyoub Kirouane
Preserving What Matters: Semantic Scaffolds Beyond Saturation in Summarization Evaluation
Shared title terminologycs.CLNikhil Reddy Pottanigari, Ramin Fahimi, Noah Bolger et al.
Apollo Restore: A Foundation LLM for Historical Greek Optimized for Fill-in-the-Middle Restoration of Ancient Greek Texts
Shared title terminologycs.CLHope McGovern, Anna Dolganov, Samuel Belkadi et al.
Steering LLMs Responses Towards Moral Foundations on the Norwegian MFQ-30
Shared title terminologycs.CLHans Andersen, David Dichas