FreeChunker: A Cross-Granularity Chunking Framework

Wenxuan Zhang, Yuan-Hao Jiang, Yonghe WuarXiv 2025 · DOI

In the world of Retrieval-Augmented Generation (RAG), "chunking" is often the unglamorous stepchild of the pipeline. Traditional systems frequently settle for splitting documents into arbitrary fixed-token blocks. This "fixed-granularity" approach creates a major bottleneck: it either cuts off vital context or includes excessive noise, failing to provide the right "zoom level" for diverse queries.

Comparison between fixed-granularity chunking and the flexible FreeChunker approach.

A new framework from researchers at East China Normal University, FreeChunker, fundamentally reimagines document preparation. Instead of picking a single chunk size, FreeChunker allows a system to retrieve text at multiple granularities simultaneously—without the massive computational overhead typically associated with multi-scale processing.

The Problem: Granularity Rigidity

Most RAG systems suffer from "granularity rigidity." Paragraph-level chunks might miss specific facts buried in a single sentence, while sentence-level chunks lose broader narrative context. Existing "semantic chunkers" attempt to solve this by finding natural breakpoints, but they are often slow, static once boundaries are set, and inflexible in providing both high-level and granular views of the same document.

Methods: The Cross-Granularity Pipeline

FreeChunker shifts the paradigm from "static segmentation" to "flexible combination." The pipeline operates in three distinct stages:

The FreeChunker architecture featuring the Cross-Granularity Encoder and Chunk Pattern Mask.
  1. The Sentenizer: The document is first broken down into its most basic units: sentences. Each sentence is converted into an initial embedding.
  2. The Cross-Granularity Encoder: This core innovation uses a modified Transformer architecture. It introduces a Chunk Pattern Mask—a banded matrix that tells the attention mechanism which sentences should be "pooled" together into larger semantic units.
  3. Single Forward Pass: By adjusting this mask, the model generates embeddings for 1, 2, 4, 8, and 16-sentence chunks all at once. Because sentence-level embeddings are reused across these different scales, redundant computation is virtually eliminated.
  4. Deduplicate and Concatenate: During retrieval, if the system pulls multiple overlapping chunks, a post-processing step cleans them up to reconstruct a coherent narrative for the LLM.

Key Insights and Theoretical Foundation

  • The "Blessing of Dimensionality": The authors provide a theoretical proof using Levy’s Lemma. They demonstrate that in high-dimensional embedding spaces (768+ dimensions), the "noise" introduced by their flexible approximation method is mathematically likely to be orthogonal to the query. This ensures that these fast, flexible embeddings are nearly as accurate as those generated by encoding every possible chunk combination individually.
  • Efficiency: By avoiding the slow "boundary detection" step required by traditional semantic chunkers, FreeChunker achieves speeds comparable to simple "split-by-period" methods while maintaining the intelligence of semantic models.
  • Superposition Effect: The framework benefits from the "superposition" of different scales. A retriever can identify the exact sentence that answers a query while simultaneously pulling the surrounding context to ensure the LLM has sufficient information for generation.

Results and Performance

The researchers trained FreeChunker using 100K documents from The Pile and evaluated it on LongBench V2, a comprehensive benchmark for long-context understanding.

  • Superior Accuracy: FreeChunker consistently achieved the best average retrieval performance across three different base embedding models (Jina, Nomic, and BGE).
  • Massive Speedup: Compared to LLM-guided chunkers like LumberChunker, FreeChunker is up to 30x faster, adding negligible overhead to the standard encoding process.
  • Robustness: The system showed excellent generalization; even a small 33M parameter version demonstrated smooth convergence and high retrieval accuracy.

Limitations and Future Work

While powerful, FreeChunker requires more GPU memory (VRAM) during the encoding phase to process multiple patterns simultaneously. Currently, it uses "preset" granularity combinations rather than an infinite range. Future iterations may explore "non-contiguous" linking—connecting semantically related sentences even if they are not adjacent in the text—to open new doors for sophisticated document modeling.

Code Availability: The researchers have made their pre-trained models and code available on GitHub at https://github.com/mazehart/FreeChunker.

Summary updated

BibTeX
@misc{zhang2025freechunker,
  author = {Wenxuan Zhang and Yuan-Hao Jiang and Yonghe Wu},
  title = {{FreeChunker: A Cross-Granularity Chunking Framework}},
  year = {2025},
  eprint = {2510.20356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.20356},
}
Figure