# Poster 32052

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/32052

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, my name is Tobias and in this presentation I will talk about SWEB, which is a new large pre-training data set for the Scandinavian languages. In this work we have two main contributions. First, we propose a new web extraction pipeline for constructing LLM pre-training data sets. In particular, this is using a model-based text extraction method instead of traditional rule-based.
extraction methods. Second, we build and we release SWEV, which is the so far largest pre-training data sets for the four Scandinavian languages of Swedish, Danish, Norwegian and Icelandic. And this contains over one trillion tokens. So Opal and LLM pre-training data is scarce for these languages. Modern LLMs are typically trained on trillions of tokens.
whereas the largest data sets in these languages are in the range of 10 to 100 billion tokens. Secondly, modern pipelines such as FineWeb are quite dependent on heuristics and thresholds that are quite tailored to high frequency languages like English and Chinese. That means for smaller languages it is complicated to both understand and improve this.
to increase the quality. Here's what a typical web extraction pipeline looks like, where we start from raw data that then goes through a content selection, content extraction and filtering and deduplication stages. We build our own pipeline for this, but I will in this presentation primarily focus on the content extraction because here's where the most of the novelty lies.
So for example in Trafalatura an intricate scoring mechanism is used to decide what constitutes main content and not. What we propose instead is a model-based text extraction method where we annotate high quality extractions from web pages and teach a model to learn what constitutes main content and not.
To do this we use transformer encoder model where we feed the entire sequence and we perform binary classifications at the new line tokens. That means that we classify each line to be either included or excluded. So here we can see an example extraction from our model versus the same extraction from ChatLatura in the setting used by FineWeb.
In this case, you can see that our text is formatted as Markdown and that's actually a design decision we do early on. We convert HTML to Markdown and then run our extraction model. In this case, the extraction is perhaps a bit better by our model where we can see that there is some unrelated paragraphs at the bottom in the Trafalgar extraction.
In another extraction we also see the benefit of having a more structured formatting while we also have an additional heading that should actually be ignored at the bottom. So we run this pipeline on all available 98 common crawl snapshots and produce the swept data set.
And what we find is that with a better extractor, we also get away with much less complicated filtering. So we only use four quantitative metrics to filter, called filter based on, and still produce 60% more tokens compared to fine web on the same input data. And this we measure by a new benchmark that we also release called HP-MEC.
which is based on the Swedish essay team. If we look at the language distribution we can see that Swedish is the dominant language with almost 50% of the content followed by Danish and Norwegian while Icelandic being much smaller. So we'd like to thank you for listening. Please check out our content and reach out.
