MiChao-HuaFen 1.0: A Specialized Pre-trained Corpus Dataset for Domain-specific Large Models

Yidong Liu, Fukai Shang, Fang Wang, Rui Xu, Jun Wang, Wei Li, Yao Li, Conghui HearXiv 2023 · DOI · OpenReview

Introduction

While general-purpose large language models (LLMs) have reached human-level performance on many tasks, they often lack the "vertical" depth required for specialized fields like law, healthcare, or government administration. Current research suggests that simply fine-tuning a general model on a small set of domain-specific instructions is insufficient for achieving expert-level performance. To bridge this "expertise gap," models require exposure to high-quality, relevant domain data during their initial pre-training phase.

The "MiChao-HuaFen 1.0" project addresses this need by introducing a massive, high-quality Chinese corpus specifically curated for the news and governmental sectors. By providing over 70 million cleaned entries, this dataset serves as a foundational resource for building more reliable and compliant Chinese vertical models.

Methodology: The Data Processing Pipeline

To transform raw internet scrapes into a "model-ready" corpus, the authors developed a rigorous multi-stage data processing pipeline. This workflow ensures both the safety and the information richness of the resulting dataset through several key stages:

  1. Source Compliance & Diversity: Prioritizing data from licensed sources to ensure legal compliance.
  2. Keyword Filtering: A primary safety layer that prunes the dataset of sensitive or inappropriate terms.
  3. Multimodal Extraction: Utilizing XPath technology to extract image links from complex web structures, preserving the relationship between text and visual information.
  4. Rule-based Filtering: Automatically discarding entries shorter than 200 characters and stripping out boilerplate HTML/Javascript tags.
  5. Quality Inspection & Rule Refinement: An iterative process combining automated model checks with manual sampling to refine filtering rules.
  6. Standardized Formatting: Converting the final output into Markdown to preserve document structure for easier LLM ingestion.
The iterative data processing pipeline used to curate MiChao-HuaFen 1.0.

Dataset Characteristics

The MiChao-HuaFen 1.0 dataset is primarily sourced from publicly accessible Chinese internet data from 2022, with a heavy focus on news and governmental websites.

  • Scale: Over 70 million high-quality text entries.
  • Multimodality: Includes over 1 million image-text pairings.
  • Structure: Each entry is standardized to include a unique ID, image URLs, title, publication date, and the main content.
A sample entry illustrating the standardized data structure and content richness.

Compared to existing datasets like WanJuan 1.0, MiChao-HuaFen 1.0 distinguishes itself through its specific vertical focus and the rigorous cleaning required for "official" style and accuracy.

Key Insights

A central takeaway from this work is that pre-training is paramount. Relying solely on supervised fine-tuning (SFT) for domain expertise often leads to sub-optimal results; true domain knowledge must be integrated during the pre-training stage. Furthermore, for governmental and news applications, precision and compliance are non-negotiable. The iterative "Rule Refinement" process highlights that standard "one-pass" cleaning is insufficient for these high-accuracy domains. Finally, the use of Markdown as a standard format ensures that structural cues, such as headers and lists, are preserved, aiding the model's understanding of document hierarchies.

Results and Accessibility

The release of MiChao-HuaFen 1.0 on OpenDataLab provides a significant resource for both academic researchers and enterprises. The dataset's 70M+ entries and 1M+ image-text pairings are intended to facilitate the development of "compliant" and "precise" Chinese models tailored for news agencies and government bodies.

Limitations and Future Work

Despite its robustness, the dataset has limitations. Its temporal scope is currently limited to 2022 data, necessitating consistent updates to keep pace with evolving news and policies. Additionally, while the dataset creation is well-documented, future work is required to provide quantitative benchmarks comparing models pre-trained on MiChao-HuaFen 1.0 against those trained on general-purpose datasets. Expanding this methodology to other verticals like healthcare and law remains a key objective for future iterations.

Summary updated

Abstract

With the advancement of deep learning technologies, general-purpose large models such as GPT-4 have demonstrated exceptional capabilities across various domains. Nevertheless, there remains a demand for high-quality, domain-specific outputs in areas like healthcare, law, and finance. This paper first evaluates the existing large models for specialized domains and discusses their limitations. To cater to the specific needs of certain domains, we introduce the ``MiChao-HuaFen 1.0'' pre-trained corpus dataset, tailored for the news and governmental sectors. The dataset, sourced from publicly available internet data from 2022, underwent multiple rounds of cleansing and processing to ensure high quality and reliable origins, with provisions for consistent and stable updates. This dataset not only supports the pre-training of large models for Chinese vertical domains but also aids in propelling deep learning research and applications in related fields.
BibTeX
@misc{liu2023michao,
  author = {Yidong Liu and Fukai Shang and Fang Wang and Rui Xu and Jun Wang and Wei Li and Yao Li and Conghui He},
  title = {{MiChao-HuaFen 1.0: A Specialized Pre-trained Corpus Dataset for Domain-specific Large Models}},
  year = {2023},
  eprint = {2309.13079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.13079},
}
Figure