Back to News
InnovationAI Understanding briefing

Researchers adapt Ai2’s Dolma toolkit to build a better Thai training corpus

A Thai research team adapted Ai2’s open data-curation toolkit to create Mangosteen, a 47-billion-token corpus that the team says improved Thai-language model performance while removing much of the underlying web data.

By 5 min read
Primary-source image accompanying Researchers adapt Ai2’s Dolma toolkit to build a better Thai training corpus
The short version

A Thai research team adapted Ai2’s open data-curation toolkit to create Mangosteen, a 47-billion-token corpus that the team says improved Thai-language model performance while removing much of the underlying web data.

What happened

According to Ai2, Thai researchers used its open Dolma toolkit to build Mangosteen, a 47-billion-token corpus for pretraining Thai language models. The team redesigned parts of Dolma to account for Thai text, data quality problems, and locally important sources that existing web-heavy datasets often missed.

Ai2 describes Mangosteen as a Thai pretraining corpus created by a team of Thai researchers who used Dolma as their starting point. The corpus contains 47 billion tokens. The team began with large web-data collections and sought to address weaknesses they saw in publicly available Thai datasets, including limited auditing by Thai speakers, unsuitable material, and insufficient coverage of books, research papers, official websites, and YouTube subtitles. Wannaphong Phatthiyaphaibun, identified by Ai2 as a project lead and a PhD student at the Vidyasirimedhi Institute of Science and Technology, said the team lacked enough developers to build a complete data-curation pipeline from scratch.

The researchers found that some Dolma components could not be transferred directly to Thai. In particular, they reported that sentence- and paragraph-level deduplication removed almost all of their data because Thai does not mark sentence boundaries in the same way as English. They retained document- and URL-level deduplication, modified other processing stages, adjusted quality filters, replaced language-specific tools, and added rules for patterns in Thai web data. One example involved Thai news pages that contained truncated snippets followed by “Read More” prompts; the team added filtering intended to remove those incomplete articles.

In experiments described by Ai2, the adapted pipeline removed more than 80% of the Common Crawl data used as a starting point and nearly half of FineWeb2, a collection the source describes as already cleaned and curated for model training. The team reported that models trained on the smaller, filtered datasets maintained or improved performance compared with models trained on the larger datasets. Ai2 also says those improvements carried into larger models and that Mangosteen-trained models performed better on Thai cultural-knowledge evaluations. The source does not give the evaluation names, numerical scores, model configurations, or experimental controls needed to assess the size and robustness of those gains.

Read the primary source: allenai.org

Why it matters

The work illustrates how language-model quality can depend on who curates the training data and whether the tools can be adapted to a language’s specific structure. The team reports that smaller, more carefully curated datasets matched or exceeded results from larger collections and improved performance on Thai cultural-knowledge evaluations.

The central significance is methodological: the project treats training-data curation as something that should be adapted by people who understand the language and its information environment. A general-purpose pipeline may preserve useful content, but its assumptions about sentence boundaries, duplication, quality, or web-page structure can behave differently across languages. The Thai team’s experience suggests that a pipeline designed around English-language conventions can discard valuable material or retain poor-quality material when applied elsewhere.

The reported results also challenge the simple idea that more training tokens automatically produce better language models. Ai2 says the team removed most of one web collection and almost half of another while maintaining or improving model performance. If independently reproduced, that would indicate that targeted filtering and source selection can sometimes deliver more value than adding raw text. Reducing irrelevant or incomplete material could also make training data easier to inspect, though the source does not report changes in training time, energy use, or total cost.

The reported improvement on Thai cultural-knowledge evaluations is particularly relevant to representation. A model can perform well on general language tasks while still missing local references, institutions, history, or cultural context. The team interprets its result as evidence that locally relevant data can help models represent the communities they serve. That conclusion remains a claim from the project’s experiments, not an independently established finding in this source. The article gives no detail about the benchmarks, the cultural domains tested, or whether gains came from source diversity, filtering, data volume, or other changes.

What to watch next

The source does not provide benchmark names, exact scores, model sizes, compute costs, corpus licensing details, or independent replication. The practical significance will depend on whether Mangosteen and the modified pipeline are released, whether other Thai researchers can reproduce the findings, and whether similar methods improve models in other underrepresented languages.

The first practical question is whether the research artifacts become available. The source emphasizes Dolma’s openness and describes Mangosteen as a reproducible adaptation, but it does not say whether the 47-billion-token corpus, filtering rules, replacement tools, or evaluation code are publicly released. Licensing and privacy considerations may affect what can be distributed, especially because the source says the project drew on web pages, books, research papers, official websites, and YouTube subtitles.

Independent evaluation will be important. The source reports comparisons with Common Crawl and FineWeb2, but it does not identify the models’ parameter counts, training procedures, data mixtures, benchmark scores, or statistical uncertainty. Follow-up work should test whether the gains persist across language generation, reasoning, factuality, safety, and instruction-following tasks, rather than only the cultural-knowledge evaluations mentioned by Ai2. It should also examine whether filtering removed legitimate dialectal, regional, or minority-community material.

The broader test is whether this approach transfers to other languages and research teams with limited engineering resources. Dolma’s value, as presented here, is that researchers can modify an existing pipeline instead of rebuilding one. But the source does not establish that the same changes will work for languages with different writing systems, web ecosystems, or data availability. Future updates should clarify reproducibility, corpus governance, source coverage, model behavior, and the trade-offs between local relevance, data quality, openness, and responsible use.

Related guides & quizzes

AI Models ExplainedAI TrainingAI EthicsTest what you know — try a free AI quizLook up an AI term in our glossary
Found this useful?