TL;DR: This paper introduces context structurization, a novel method that reorganizes plain, sequential input text into a hierarchical "knowledge tree" before feeding it to a Large Language Model (LLM). By mimicking human cognitive structures, this approach significantly boosts LLM performance on long-context tasks, hallucination detection, and retrieval—all without requiring any changes to the underlying model weights.
The Challenge of Sequential Processing
While Large Language Models (LLMs) have achieved remarkable feats, they frequently struggle to comprehend "long-form" or highly sophisticated contexts. The authors argue this limitation stems from how LLMs process text: sequentially and causally, reading one token after another.
Human cognition, by contrast, is inherently structured. When we read, we do not merely process a stream of words; we build mental maps, categorizing information into hierarchies and relationships. Current solutions to this LLM limitation usually involve scaling up model size or expanding context windows, both of which are computationally expensive. Alternative methods, like summarization, often discard crucial details. The core challenge is helping LLMs "see" the underlying structure of a text to improve their comprehension and reasoning without the massive overhead of retraining.
The Structurization Method
To bridge this gap, the authors propose transforming plain text into a three-layer hierarchical structure:
- Scope: A high-level summary of the topic and its boundaries.
- Aspects: Sub-divisions of the context into specific dimensions or themes.
- Descriptions: Detailed analyses and factual elements supporting each aspect.
Introducing StruXGPT
Relying on expensive, closed-source APIs (like GPT-4) to structurize every input is impractical. To solve this, the researchers utilized Knowledge Distillation. They prompted a massive model (Qwen-Max, 200B+ parameters) to structurize approximately 22,000 text samples. They then fine-tuned a smaller, 7B-parameter model—dubbed StruXGPT-7B—on this dataset. The resulting model inherited 97% of the "teacher's" structurization ability, allowing for efficient, local deployment.
Once the text is structurized, it is converted back into natural language using specific linguistic markers (such as bolding, numbered lists, and indentation) that LLMs are already pre-trained to understand. This "re-assembled" text is then fed to the target LLM.
Key Insights and Performance Gains
The authors evaluated their method across three major domains: Long-Context QA (LongBench), Hallucination Evaluation (AttrScore, FactScore), and Dense Retrieval (BEIR).
A major "aha" moment occurred when visualizing the attention maps of LLaMA2-70B. With vanilla text, the model's attention was scattered. However, with structurized text, the attention heads precisely "locked onto" the relevant aspects and descriptions needed to answer a query. Unlike summarization, structurization is "information-faithful"—it reorganizes the text to make the "needle" easier to find in the "haystack" without deleting data.
The empirical results demonstrate significant improvements:
- Closing the Gap: Adding structurization to the open-source LLaMA2-70B allowed it to achieve performance comparable to GPT-3.5-Turbo in hallucination evaluation tasks.
- Consistent QA Gains: On the LongBench datasets, structurization provided a consistent boost (averaging ~2-4%) across various models, including LLaMA2, Qwen, and ChatGLM3.
- Retrieval Boost: In zero-shot dense retrieval, structurization improved nDCG@10 scores by up to 4.5% on specific subsets, proving that linguistic structure also benefits BERT-like (encoder-only) models.
Limitations and Future Directions
While highly effective, structurization adds an inference step. The authors integrated a technique called "Selection-of-Thought" (SoT) to reduce this extra time cost to a manageable ~1.2 seconds per sample, but it remains less ideal for ultra-low-latency applications. Additionally, structurization is most effective for long-form or logically complex contexts; it provides no benefit for simple, zero-context tasks.
Looking forward, the authors suggest exploring "training-time aggregation"—incorporating structurization directly into the pre-training or instruction-tuning phases of LLMs so they learn to "think" structurally natively.
Summary updated