MoC: Mixtures of Text Chunking Learners for Retrieval-Augmented Generation System

Jihao Zhao, Zhiyuan Ji, Zhaoxin Fan, Hanyu Wang, Simin Niu, Bo Tang, Feiyu Xiong, Zhiyu Li

Abstract

Text chunking is a foundational yet often overlooked component of Retrieval-Augmented Generation (RAG) systems. Traditional rule-based or semantic methods frequently fail to capture logical transitions, while Large Language Model (LLM) based chunking is computationally prohibitive for large-scale applications. This paper introduces the Mixture-of-Chunkers (MoC) framework, which utilizes a multi-granularity-aware router and specialized Small Language Model (SLM) experts to generate precise extraction rules. Additionally, the authors propose two novel metrics—Boundary Clarity (BC) and Chunk Stickiness (CS)—to directly evaluate chunking quality independently of downstream tasks. Experimental results demonstrate that MoC achieves superior QA performance with a 7.3x speedup compared to standard LLM-based approaches.

Introduction

In RAG pipelines, long documents must be segmented into smaller "chunks" before being embedded and stored in vector databases. This process is critical: if chunks are poorly divided, the retriever may pull redundant or incomplete information, creating a "weakest link" effect that degrades the final generated answer.

Currently, developers rely on rule-based chunking (fixed lengths) or semantic chunking (embedding similarity). However, these methods often struggle to capture subtle logical transitions in complex texts. While using LLMs to chunk text provides high accuracy, it is computationally expensive and slow. Furthermore, the industry lacks standalone metrics to evaluate chunking quality directly, usually relying on indirect downstream QA accuracy. This paper addresses these gaps by providing both a novel evaluation framework and an efficient, high-performance chunking architecture.

Direct Evaluation Metrics

To move beyond indirect evaluation, the authors propose two metrics that measure the intrinsic quality of text segments:

  • Boundary Clarity (BC): This metric uses contrastive perplexity to measure how effectively chunks separate semantic units. A high BC score indicates that the chunks are logically distinct and that the boundaries align with natural shifts in the text.
  • Chunk Stickiness (CS): By constructing a semantic association graph, CS measures how entangled chunks are with their neighbors. A low CS score suggests that chunks are self-contained and do not rely heavily on surrounding context to remain coherent.

These metrics show a strong correlation with actual RAG performance (Pearson correlation of 0.87 for BC and -0.74 for CS with ROUGE-L), establishing them as reliable standalone indicators.

The Mixture-of-Chunkers (MoC) Framework

The MoC framework is designed to deliver LLM-level chunking precision at a fraction of the cost. It employs a multi-stage architecture:

  1. Multi-Granularity-Aware Router: A lightweight model analyzes the input text and categorizes it into one of four chunk-length buckets, routing the task to the most appropriate expert.
  2. Meta-Chunkers (SLMs): Instead of a single monolithic model, MoC uses sparsely activated 1.5B parameter experts trained for specific granularities.
  3. Regex-Guided Extraction: To maximize efficiency, the Meta-Chunkers do not generate the entire text chunk. Instead, they output a regular expression consisting of the first few characters, a [MASK] token, and the last few characters of the chunk.
  4. Edit Distance Recovery: A post-processing algorithm maps these generated boundaries back to the original text. This ensures the exact extraction of the chunk and effectively eliminates potential LLM hallucinations.

Experimental Setup and Results

The framework was trained on a distilled dataset of 20,000 chunked QA pairs (since expanded to 120,000) using GPT-4o. Evaluation was conducted across several diverse datasets, including CRUD (single and two-hop QA), DuReader, and WebCPM.

Performance and Efficiency

The Meta-chunker-1.5B consistently outperformed rule-based methods, semantic chunking, and even larger 14B parameter models like LumberChunker. For instance, on the CRUD Single-hop dataset, MoC achieved a BLEU-1 score of 0.3754, significantly higher than Semantic Chunking's 0.3382.

In terms of efficiency, MoC demonstrated a massive advantage. On average, MoC processes a document in 3.69 seconds, whereas a standard 14B LLM approach requires 26.99 seconds. This represents a ~7.3x speedup while maintaining or exceeding the quality of the larger model.

Key Insights

  • The Limitations of Semantic Chunking: While semantic chunking groups similar sentences, it often fails to identify optimal logical boundaries. The authors found it results in high "chunk stickiness," meaning chunks are too dependent on each other and lack standalone coherence.
  • LLMs as Logical Boundary Detectors: LLM-generated chunks exhibit high Boundary Clarity and low Chunk Stickiness because these models understand topic shifts better than embedding-based similarity measures.
  • Generation Shortcuts: Predicting only the boundaries (via regex) rather than the full text allows SLMs to match the quality of massive LLMs without the associated inference latency.

Conclusion

MoC represents a significant step forward in making high-quality text chunking accessible and efficient for RAG systems. By introducing direct metrics like BC and CS, the authors provide a new standard for evaluating chunking strategies. The MoC framework itself proves that specialized SLMs, combined with clever extraction techniques, can outperform general-purpose LLMs in both speed and accuracy. Future work will focus on expanding the training data and adapting the framework for multi-lingual support.

Summary updated

BibTeX
@inproceedings{zhao2025moc,
  author = {Jihao Zhao and Zhiyuan Ji and Zhaoxin Fan and Hanyu Wang and Simin Niu and Bo Tang and Feiyu Xiong and Zhiyu Li},
  title = {{MoC: Mixtures of Text Chunking Learners for Retrieval-Augmented Generation System}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure