Long-Document QA with Chain-of-Structured-Thought and Fine-Tuned SLMs
Organizations: The Hong Kong University of Science and Technology (Guangzhou) · EvenUp, USA
Abstract
Large language models (LLMs) are widely applied to data analytics over documents, yet direct reasoning over long, noisy documents remains brittle and error-prone. Hence, we study document question answering (QA) that consolidates dispersed evidence into a structured output (e.g., a table, graph, or chunks) to support reliable, verifiable QA. We propose a two-pillar framework, LiteCoST, to achieve both high accuracy and low latency with small language models (SLMs). Pillar 1: Chain-of-Structured-Thought (CoST). We introduce a CoST template, a schema-aware instruction that guides a strong LLM to produce both a step-wise CoST trace and the corresponding structured output. The process induces a minimal structure, normalizes entities/units, aligns records, serializes the output, and verifies/refines it, yielding auditable supervision. Pillar 2: SLM fine-tuning. The compact models are trained on LLM-generated CoST data in two stages: Supervised Fine-Tuning for structural alignment, followed by Group Relative Policy Optimization (GRPO) incorporating triple rewards for answer/format quality and process consistency. By distilling structure-first behavior into SLMs, this approach achieves LLM-comparable quality on multi-domain long-document QA using 3B/7B SLMs, while delivering 2-4x lower latency than GPT-4o and DeepSeek-R1 (671B). The code is available at https://github.com/HKUSTDial/LiteCoST.
Figures & tables
| Model | Model | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Size | AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | |
| Close-Sourced Models & Large Language Models | |||||||||||
| LLaMA-3.1-8B-Instruct | 8B | 55.03 | 0.20 | 51.60 | 0.15 | 51.50 | 0.04 | 44.75 | 0.02 | 51.32 | 0.10 |
| GPT-4o-mini | 8B | 84.42 | 0.70 | 80.40 | 0.67 | 77.38 | 0.40 | 65.35 | 0.18 | 78.08 | 0.51 |
| Qwen2.5-14B-Instruct | 14B | 83.74 | 0.57 | 82.12 | 0.56 | 69.96 | 0.24 | 66.41 | 0.10 | 75.60 | 0.38 |
| GPT-4o ( Abacha et al., 2025 ) | 200B | 84.10 | 0.73 | 80.53 | 0.60 | 81.50 | 0.50 | 64.30 | 0.25 | 79.32 | 0.54 |
| Backbone | Method | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | ||
| LLaMA-3.2-3B-Ins | ODIE ( Jiao et al., 2023 ) | 68.89 | 0.39 | 61.30 | 0.30 | 61.11 | 0.15 | 49.75 | 0.07 | 61.21 | 0.23 |
| IEpile ( Gui et al., 2024b ) | 62.90 | 0.37 | 65.10 | 0.30 | 63.12 | 0.14 | 50.95 | 0.02 | 61.90 | 0.22 | |
| Struc-bench ( Tang et al., 2024b ) | 55.13 | 0.15 | 51.05 | 0.15 | 48.16 | 0.06 | 44.10 | 0.08 | 49.90 | 0.11 | |
| StructRAG ( Li et al., 2025c ) | 39.50 | 0.01 | 39.70 | 0.02 | 31.08 | 0.00 | 35.95 | 0.00 | 36.04 | 0.01 | |
| LiteCoST (Ours) | 81.27 | 0.53 | 78.08 | 0.49 | 78.34 | 0.36 | 64.75 | 0.16 | 76.95 | 0.40 | |
| Model | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
| AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | |
| LLaMA-Ours | 81.27 | 0.53 | 78.08 | 0.49 | 78.34 | 0.36 | 0.16 | 76.95 | 0.40 | |
| w/o Process Reward | ||||||||||
| w/o Outcome Reward | 68.22 | |||||||||
| Qwen-Ours | 0.62 | 81.55 | 0.59 | 81.00 | 0.43 | 67.98 | 0.18 | 79.93 | 0.48 | |
| w/o Process Reward | 87.93 | |||||||||
| IE Model | Model | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Size | AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | |
| Close-Sourced Models & Large Language Models | |||||||||||
| GPT-4o-mini | 8B | 46.55 | 0.10 | 28.05 | 0.00 | 48.68 | 0.13 | 42.56 | 0.11 | 41.94 | 0.09 |
| Qwen2.5-14B-Instruct | 14B | 48.45 | 0.08 | 21.90 | 0.01 | 57.31 | 0.16 | 26.74 | 0.02 | 37.51 | 0.06 |
| GPT-4o | 200B | 50.05 | 0.06 | 27.00 | 0.01 | 61.16 | 0.14 | 33.11 | 0.03 | 42.06 | 0.06 |
| LLaMA-3.2-3B-Instruct (Base) | 3B | 41.00 | 0.08 | 25.10 | 0.01 | 31.74 | 0.02 | 27.29 | 0.01 | 30.67 | 0.03 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | Method | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | ||
| Qwen2.5-14B-Ins | Zero-Shot | 83.74 | 0.57 | 82.12 | 0.56 | 69.96 | 0.24 | 66.41 | 0.10 | 75.60 | 0.38 |
| CoT ( Wei et al., 2022 ) | 85.93 | 0.63 | 81.38 | 0.57 | 73.28 | 0.30 | 67.70 | 0.26 | 77.51 | 0.44 | |
| Dspy ( Khattab et al., 2023 ) | 80.90 | 0.55 | 80.90 | 0.60 | 76.86 | 0.34 | 63.60 | 0.21 | 76.99 | 0.44 | |
| LiteCoST (CoST) | 88.03 | 0.72 | 80.45 | 0.56 | 76.72 | 0.37 | 68.35 | 0.25 | 79.01 | 0.48 | |
| GPT-4o | Zero-Shot | 84.10 | 0.73 | 80.53 | 0.60 | 81.50 | 0.50 | 64.30 | 0.25 | 79.32 | 0.54 |
| Company | Accounts Receivable |
|---|---|
| AXIM Biotechnologies, Inc. | $23,642 |
| CIRTRAN CORP. | None |
| Arax Holdings Corp. | $453,837 |
| High Wire Networks, Inc. | $4,483,1 |
| Model | Context | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Length | AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | |
| Qwen2-72B-Ins | 128k | ||||||||||
| SD Qwen2-72B-Ins | 128k | 55.70 | 0.25 | ||||||||
| GPT-4o-mini | 128k | ||||||||||
| SD GPT-4o-mini | 128k | 58.02 | 0.29 | ||||||||
| GPT-4o | 128k | ||||||||||
| Dataset | ID | Source | Avg len | Metric | Language | #data |
|---|---|---|---|---|---|---|
| Single-Document QA | ||||||
| NarrativeQA | 1-1 | Literature, Film | 18,409 | F1 | English | 200 |
| Qasper | 1-2 | Science | 3,619 | F1 | English | 200 |
| Multi-Document QA | ||||||
| HotpotQA | 2-1 | Wikipedia | 9,151 | F1 | English | 200 |
| 2WikiMultihopQA | 2-2 | Wikipedia | 4,887 | F1 | English | 200 |
| Model | Model | Spotlight Locating | Comparison | Clustering | Chain of Reasoning | Overall | |||||
| Size | AS | PR | AS | PR | AS | PR | AS | PR | AS | PR | |
| (10K-250K) | |||||||||||
| LLaMA-3.2-3B-Instruct | 3B | 49.90 | 0.16 | 52.10 | 0.14 | 47.89 | 0.07 | 46.85 | 0.06 | 49.37 | 0.11 |
| Qwen2-7B-Instruct | 7B | 63.10 | 0.36 | 67.85 | 0.37 | 60.83 | 0.18 | 52.25 | 0.09 | 62.10 | 0.26 |
| LLaMA-3.1-8B-Instruct | 8B | 55.03 | 0.20 | 51.60 | 0.15 | 51.50 | 0.04 | 44.75 | 0.02 | 51.32 | 0.10 |
| GPT-4o-mini | 8B | 84.42 | 0.70 | 80.40 | 0.67 | 77.38 | 0.40 | 65.35 | 0.18 | 78.08 | 0.51 |
Question Answering
Question answering studies how AI systems interpret questions and produce accurate, evidence-grounded answers across text, dialogue, and multimodal data.
See all 260 papers