Paper deep dive
Long-Document QA with Chain-of-Structured-Thought and Fine-Tuned SLMs
Zhuowen Liang, Xiaotian Lin, Zhengxuan Zhang, Yuyu Luo, Haixun Wang, Nan Tang
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 97%
Last extracted: 4/1/2026, 1:32:19 AM
Summary
LiteCoST is a two-pillar framework designed to improve long-document question answering (QA) by leveraging structured data. It uses a 'Chain-of-Structured-Thought' (CoST) approach where a strong LLM generates auditable reasoning traces and structured outputs (SSOs). These outputs are then used to fine-tune small language models (SLMs) via Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO) with dual-level rewards (process and outcome), enabling high-accuracy, low-latency QA performance comparable to large models.
Entities (5)
Relation Signals (4)
LiteCoST â employs â Group Relative Policy Optimization
confidence 100% ¡ followed by Group Relative Policy Optimization (GRPO) incorporating triple rewards
LiteCoST â utilizes â Chain-of-Structured-Thought
confidence 100% ¡ Pillar 1: Chain-of-Structured-Thought (CoST).
LiteCoST â evaluatedon â Loong benchmark
confidence 95% ¡ We evaluate the performance of our proposed LiteCoST framework on the Loong benchmark
LiteCoST â improves â long-document QA
confidence 95% ¡ We study document question answering (QA) that consolidates dispersed evidence into a structured output
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
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 this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2603.29232v1
- Canonical: https://arxiv.org/abs/2603.29232v1
Trouble viewing inline? Open PDF directly â
Full Text
91,193 characters extracted from source content.
Expand or collapse full text
Long-Document QA with Chain-of-Structured-Thought and Fine-Tuned SLMs Zhuowen Liang1, Xiaotian Lin1, Zhengxuan Zhang1, Yuyu Luo1, Haixun Wang2, Nan Tang1 1The Hong Kong University of Science and Technology (Guangzhou), 2EvenUp, USA Corresponding author: Nan Tang (E-mail: nantang@hkust-gz.edu.cn) 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â4Ă lower latency than GPTâ4o and DeepSeekâR1 (671B). The code is available at https://github.com/HKUSTDial/LiteCoST. 1 Introduction Large language models (LLMs) are increasingly used for analytics (Chen et al., 2023; Zhu et al., 2025), yet direct reasoning over long documents is brittle and opaque, prone to errors in highâstakes domains such as finance and legal (Chew et al., 2023; Qin et al., 2024; Edge et al., 2024; Tang et al., 2024a). We therefore study longâdocument QA where explicit structured data helps. In this regime, the system constructs a queryâspecific structured dataâe.g., a table, graph, or chunksâfrom which final answer is directly derivable with explicit explanations. As shown in Fig. 1, extracting structured data for long-document QA (Edge et al., 2024; Zhang et al., 2025; Li et al., 2025c) improves reliability, interpretability, and reuse by exposing evidence and enabling routine verification. We instantiate a queryâconditioned pipeline: given a natural question Q and documents D, the system induces a minimal schema tailored to Q, populates it with normalized evidence (e.g., units, entities, time), and serializes it into a structured output S. The answer A is then computed from S. Unlike fixed and preâdefined schemas, structures are assembled dynamically for each query, thereby excluding openâended narrative questions that are not amenable to structured representations. A natural idea is to directly leverage powerful LLMs (e.g., GPT-4 or DeepSeek-R1) to emit the structured artifact. However, direct prompting is not ideal: (1) evidence is dispersed across long, multi-document contexts, leading to omissions or hallucinations; (2) values appear in heterogeneous units and formats, requiring normalization; and (3) long-context reasoning must remain consistent across the entire structure. As shown in Fig. 2(a), direct prompting often yields brittle resultsâomissions, hallucinations, and format drift (Wei et al., 2023; Wang et al., 2025). In contrast, Fig. 2(b) illustrates our CoST template, which guides the LLM to produce both (i) a schema-aligned CoST trace and (i) a query-specific serialized structured output (SSO) (e.g., table/graph/chunks), ensuring field completeness and format consistency, for robust and interpretable analytics over long-document QA. Figure 1: Structured data makes QA more accurate and reliable. (a) From raw document D, we extract a table T1T_1 for query Q1Q_1 and a graph G1G_1 for query Q2Q_2. (b) LLMs often fail when reasoning directly over unstructured text (Q1,DQ_1,D; Q2,DQ_2,D), but succeed with structured inputs (Q1,T1Q_1,T_1; Q2,G1Q_2,G_1). While CoST prompts with strong LLMs can yield accurate, verifiable SSOs, this effectiveness comes with a substantial cost: repeated largeâmodel calls increase token/compute budgets, add latency, and limit throughputâundesirable for practical deployments that require lowâlatency, highâthroughput service (Li et al., 2024; Xu et al., 2024). Reliance on hosted LLM APIs can also introduce privacy concerns for sensitive data. A natural response is to adopt small language models (SLMs)111We use small language models (SLMs) to denote compact models (e.g., 3Bâ7B). for on-premises (on-prem) deployment, enabling cost-efficient inference in local or private environments; however, offâtheâshelf SLMs struggle with the very skills CoST demands, including schemaâaware extraction across long contexts, unit/entity normalization, record alignment, and stepâconsistent serialization, making naive LLMâ substitution ineffective (Tang et al., 2024b; Li et al., 2025b; a). To balance effectiveness with efficiency, we introduce LiteCoST, a two-pillar framework that equips SLMs with strong QA-by-structuring capabilities. Pillar 1 invokes a powerful LLM once as a structure-first trace generator: it proposes a concise, query-conditioned schema and produces an auditable CoST trace together with structured data that makes evidence and formats explicit. Pillar 2 transfers this ability to an SLM via a lightweight adaptation pipeline: supervised fine-tuning (SFT) to instill structure, format, and step discipline, followed by group-relative policy optimization (GRPO) that jointly rewards answer quality and process consistency. Figure 2: (a) Direct prompting LLMs often causes hallucinations and format errors. (b) (Question, Document, CoST Template) â LLM â (CoST Trace, SSO), yielding verifiable and auditable QA. Contributions. We propose LiteCoST with three notable contributions: 1. CoST for QA-by-Structuring: a structure-first prompting paradigm that leverages LLMs to elicit step-wise, schema-guided CoST traces and SSOs from long, noisy documentsâyielding auditable supervision and machine-checkable outputs. 2. SLM adaptation via structured dual signals: a two-phase SFTâ recipe that introduces a novel dual-level reward, encompassing structured output quality as well as process consistency, to instill CoST-style, schema-aware structured reasoning into compact models. 3. Empirical validation: We have evaluated our approach across multiple domains, including finance, legal, and scientific literature. On the financial subset of the Loong benchmark (Wang et al., 2024), our CoSTâ recipe substantially improves small models: LLaMA-3B gains +27.6 accuracy points and +0.29 perfect rate (PR), while Qwen-7B gains +17.8 accuracy and +0.22 PR, with the 7B model slightly surpassing GPT-4o. Inference is 2â4Ă faster than GPT-4o/DeepSeek-R1. Extensive experiments further show that our LiteCoST framework delivers significant improvements while showcasing excellent generalization capabilities. 2 Preliminary and Problem Formulation Long-Document QA as QA-by-Structuring. We study a practically important regime of long-document QA in which the system turns a question Q and a collection of long, noisy, multi-source documents D into a compact, query-specific serialized structured output (SSO) with provenance. Structure becomes the interface: the system first induces a minimal schema tailored to Q, populates it with normalized, aligned evidence, and then derives the final answer from the structure with explicit support. This framing mitigates noise and dispersion, improves interpretability and reuse, and foregrounds four desiderata: accuracy (correct answers), faithfulness (evidence-grounded), auditability (verifiable traces), and efficiency (bounded compute/token cost). Chain-of-Structured-Thought (CoST). In our design, the CoST template is the input to a language model: a schema-aware instruction that specifies step-wise, structure-first requirements. When executed, the language model produces two complementary outputs: (i) a CoST trace, i.e., the auditable, step-wise reasoning record that documents schema selection, evidence alignment, normalization, and verification; and (i) a serialized structured output (SSO), i.e., the machine-checkable artifact (table, graph, list, or record set) linked with provenance to the source documents. This inputâoutput separation ensures that the LLMâs role is well-defined: given a CoST template, it must emit both a reasoning trace and a structured output, enabling supervision, verification, and reuse. The whole CoST procedure consists of four key steps: (A1) structure analysis, (A2) trace generation, (A3) quality verification, and (A4) iterative refinement (see Sec. 3.1 for more details). Two Research Goals. Our research goals are as follows. (G1) Accurate and verifiable QA. Obtain high-quality CoST traces and SSOsâi.e., schema-complete, format-consistent, and provenance-grounded outputsâfrom which we can compute correct answers. (G2) Low latency via SLMs. Achieve CoST-style reasoning at SLM speeds. While strong LLMs are effective CoST generators, their latency/cost hinder deployment. Our objective is to transfer this structure-first behavior to compact models (SLMs) through fine-tuning, so that SLM-generated structures SSLMS_SLM are as useful for answering as their LLM counterparts SLLMS_LLM, at much lower latency: LLMâ(Q,SSLM)âLLMâ(Q,SLLM)andLatencyâ(SSLM)âŞLatencyâ(SLLM).LLM(Q,S_SLM)\;â\;LLM(Q,S_LLM) (S_SLM)\; \;Latency(S_LLM). (1) Operationally, we will (i) use LLMs once to generate high-quality CoST traces/SSOs (Pillar 1) and (i) fine-tune SLMs to internalize schema/format/step discipline and process consistency (Pillar 2), enabling accurate, auditable QA at low cost. 3 LiteCoST: From LLM CoST Generation to SLM Adaptation Next, we present LiteCoST (see Fig. 3), a two-stage framework designed to achieve the dual goals in Sec. 2: (G1) accurate and verifiable QA through high-quality CoST traces and SSOs, and (G2) low-latency execution via compact SLMs. In Stage A, a strong LLM executes the CoST template as input and produces auditable CoST traces and machine-checkable SSOs as outputs. These outputs serve as supervision signals that capture schema, normalization, alignment, and verification. In Stage B, we transfer this structure-first reasoning behavior into an SLM through a lightweight two-phase recipe: supervised fine-tuning (SFT) for schema/format/step compliance, followed by group-relative policy optimization (GRPO) to jointly reward answer quality and process consistency. 3.1 Stage A (G1): CoST (Structure-First Reasoning and Trace Generation) As illustrated in Fig. 3, we operationalize CoST as a structure-first, inputâ procedure: given a question, document, the ground truth answer, and CoST template, a strong LLM generates two outputsâan auditable CoST trace and a serialized structured output SSO. (A1) Structure Analysis. The first step is to dynamically select the most suitable data structure and instantiate an accurate schema to support answering a given question. Specifically, LiteCoST incorporates a question-oriented structure selection mechanism that, for example, chooses tables for statistical comparison or graphs for relational reasoning, without exhaustively processing the entire corpus. Once the structure type is chosen, we invoke a dynamic schema construction procedure in which the LLM parses the question and enumerates task-specific attributes/entities (e.g., Company, Asset, Year), ensuring precise alignment with the question semantics. (A2) CoST Trace Generation. Following structure analysis, we adopt an instruction-based chain-of-thought paradigm that performs step-by-step reasoning to progressively generate the trace to guide schema-aligned extraction. The task is specified through three key components: 1) task description, a template specifying step-wise requirements; 2) input text, the source documents; and 3) the dynamically generated schema. Guided by schema-informed instructions, a strong LLM extracts, aligns, and serializes into a deterministic structured format, emitting both the reasoning trace and the final structured output. The template of trace generation is provided in Appendix A.2. (A3) Quality Verification. The module aims to assess the quality of the generated structured data by evaluating its ability to answer the original question. Since ground-truth structured data is unavailable, we adopt an LLM-as-Judge approach (Zheng et al., 2023), where a strong LLM evaluator (e.g., GPT-4o) assesses the extracted responses. Inference outputs that exactly match the reference answers are deemed correct and retained for subsequent training. Further details are provided in Appendix A.3. (A4) Iterative Refinement. At its core, the module employs an Iterative Structuralizer that refines low-quality samples by regenerating structured knowledge for GRPO training. Rather than discarding flawed but challenging cases, it reuses them recursively with the question and context, reframing the task as supplemental extraction and providing richer supervision than vanilla fine-tuning. The iterative update rule, sufficiency evaluator, and stopping criteria are detailed in Appendix A.4. Final Output. After the CoST pipeline, the final output is (câ,Sâ)(c^*,S^*), where câc^* is the CoST trace (generated in A2), and SâS^* the structured output refined through quality verification (A3) and iterative refinement (A4). This pair provides high-quality supervision for training and downstream reasoning. Figure 3: Overview of LiteCoST, containing two stages: (1) CoST: Structure-First Reasoning and Trace Generation through structure analysis, trace generation, quality verification, and iterative refinement; and (2) SLM Fine-Tuning: SFT â GRPO process, including SFT for structure/format/steps, followed by GRPO with dual signals for answer/format quality and process consistency. 3.2 Stage B (G2): SLM Fine-Tuning (SFT â GRPO) Given the supervised training data, LiteCoST first warms up the model with Supervised Fine-Tuning (SFT). We then apply reinforcement learning with Group Relative Policy Optimization (GRPO), introducing a dual-level reward that jointly optimizes (1) outcome reward, which evaluates the format compliance and answer correctness, and (2) process reward, which scores step-wise reasoning against ground-truth evidence to enforce a reliable extraction path. Training Data Template. Each training sample is defined as z=(i,d,câ,yâ)z=(i,d,c^*,y^*), where i is the question, d the document input, câc^* the CoST reasoning trace (enclosed by <reasoning>...</reasoning>), and yây^* the structured output (enclosed by <answer>...</answer>). In SFT, the model learns to generate (câ,Tâ)(c^*,T^*) from (i,d)(i,d), while GRPO also conditions on (i,d)(i,d) and optimizes with dual-level rewards (process, outcome) against the verified targets. Supervised Fine-tuning (SFT). We initially performed Supervised Fine-Tuning (SFT) on a general-purpose base model, specifically enhancing its capability for CoT-driven information extraction. This process enables the model to acquire fundamental extraction capability (e.g., handling structure, format, and step-wise reasoning) in a specific domain, thus substantially mitigating the errors observed when deploying the base model on complex extraction tasks. Figure 4: The GRPO training pipeline based on dual-level reward. Group Relative Policy Optimization (GRPO). We then employ GRPO via a three-level reward mechanism, as illustrated in Fig. 4. Formulation. For each question q, GRPO samples a group of outputs o1,o2,âŚ,oG\o_1,o_2,âŚ,o_G\ from the old policy Ďθ _θ. Each output receives a reward rir_i, yielding a set of G rewards =r1,r2,âŚ,rGr=\r_1,r_2,âŚ,r_G\. From these rewards, we compute the group-relative advantage Ai=riâmeanâ(r1ââŚârG)stdâ(r1ââŚârG)A_i= r_i-mean(r_1⌠r_G)std(r_1⌠r_G) and then optimizes the policy model by maximizing the following objective: GRPOâ(θ)=â[âźPâ(),oii=1GâźĎθoldâ(|)] _GRPO(θ)=E [v P(V),\o_i\_i=1^G _ _old(O|v) ] (2) 1Gââi=1G(minâĄ(riratioâAi,clipâ(riratio,1âĎľ,1+Ďľ)âAi)âβâDKLâ(ĎθâĽĎref)), 1G _i=1^G ( (r_i^ratioA_i,clip (r_i^ratio,1-Îľ,1+Îľ )A_i )-β D_KL( _θ\| _ref) ), where β and Ͼξ are hyper-parameters, riratior^ratio_i is the importance sampling ratio comparing the likelihood of output oio_i under the new and old policies, and AiA_i is the group-relative advantage. The clipping operator would stabilize updates within a trust region, and the minimum operation ensures conservative yet effective policy updates (Shao et al., 2024). Further details are provided in Appendix B.1. Format Compliance. Fig. 4 (a) illustrates the hierarchical design of the format reward: a soft reward (0.5) is given if the output contains a single reasoning sequence in <reasoning> and a final answer in <answer> without extraneous content; a hard reward (1.0) is assigned if the reasoning is further structured with explicit step labels (e.g., Step 1, Step 2); otherwise, the score is 0. Answer Correctness. As illustrated in Fig. 4(b), we address the limitations of rule-based evaluation by adopting a hybrid metric that combines structural alignment and semantic similarity: fscore=Îąâ struct+(1âÎą)â semf_score=ι¡S_struct+(1-Îą)¡S_sem (3) For structS_struct, we use rule-based checks (e.g., row-column alignment in tables) to verify structural correctness. For semS_sem, we adopt GPT-4o-mini as an automatic evaluator, comparing the content within <answer>...</answer> tags against the reference; outputs with higher semantic similarity receive higher rewards. The raw score fscoref_score is scaled from [0,100][0,100] to [0,1][0,1], with NULL rewards assigned to empty outputs. The detailed LLM-based evaluation prompts are provided in Appendix B.2. Process Reward. Outcome rewards alone are sparse and insufficient for fine-grained guidance. We therefore introduce a consistency-based process reward to supervise reasoning at the step level. Consistency is evaluated from both the entity-level and the tuple-level, enabling the model to capture fine-grained errors such as partially incorrect entities or mismatched relations. For each step i, LLM is prompted with an instruction IconsistencyI_consistency to judge whether the predicted step result sis_i is consistent with the corresponding ground truth siâs_i^*. If the consistency holds, the step is assigned a score of 11; otherwise, it receives 0. The overall process reward is formally defined as: Rprocessâ(si)=1Nââi=1Nâ[Consâ(si,siââŁIconsistency)],R_process(s_i)\;=\; 1N _i=1^N1\! [Cons(s_i,s_i^* I_consistency) ], (4) where N denotes the total number of reasoning steps, Consâ(â )Cons(¡) is the LLM-based consistency function, and â[â ]1[¡] is the indicator function that returns 11 if the consistency check is satisfied and 0 otherwise. This formulation provides a dense and fine-grained training signal, guiding the model towards faithful step-by-step extraction while complementing the sparse outcome reward, as shown in Fig. 4 (c). Overall Reward. The overall reward is defined as the sum of the format compliance, answer correctness, and process rewards. To prevent training dynamics from being dominated by other reward signals, we introduce a scaling factor that modulates the process reward along each trajectory, R~processâ(si)=Rprocessâ(si)â Îłâ(Ti) R_process(s_i)=R_process(s_i)¡γ(T_i). Here, Îłâ(Ti)Îł(T_i) is a trajectory-level coefficient: positive for correct answers to reinforce reasoning, negative for incorrect or overthought trajectories to discourage such behaviors, and 11 for format errors to isolate penalties to specific steps. 4 Experiments on Long-Document QA with CoST and SLMs In this section, we evaluate the performance of our proposed LiteCoST framework on the Loong benchmark (Wang et al., 2024), which effectively captures the challenges of generating serialized structured output (SSO) across varying context lengths. Rather than directly answering questions, we focus on the ability of LiteCoST to produce reliable SSO that supports long-document QA. We further assess its efficiency and conduct ablation studies to analyze contributing factors. Specifically, we aim to address the following research questions: (1) Benefits of Structured Data: How do structured outputs enhance long-document QA? (2) Effectiveness: How effective is LiteCoST in generating high-quality SSO for long-document QA, compared with current LLMs and state-of-the-art methods? (3) Efficiency: How efficient is LiteCoST relative to LLMs in terms of SSO generation speed? (4) Ablation Study: What factors contribute to performance gains in structured output generation? (5) Generalization: How well does the framework generalize to other datasets and domains? 4.1 Experimental Setup Training Dataset. To support two-phase training, we construct two domain-specific datasets via LiteCoST from four large-scale multi-task resources: FinQA (Chen et al., 2021), TAT-QA (Zhu et al., 2021), Squad (Rajpurkar et al., 2016), and LegalBench (Pipitone and Alami, 2024). The datasets target the finance, legal and general knowledge, capturing diverse reasoning patterns (e.g., aggregation, comparison, multi-hop inference) in realistic settings drawn from diverse documents. Evaluation Dataset. We adopt the Loong benchmark (Wang et al., 2024), a real-world multi-document QA dataset with 1,600 test samples spanning three domains (Finance, Legal, Paper), four task categories (Spotlight Locating, Comparison, Clustering, Chain of Reasoning), and four document length settings where longer contexts disperse relevant information. Our analysis focuses primarily on an in-depth analysis of the finance domain, with legal results provided in Appendix E.1. Evaluation Details. Defining ground truth for the structured output from long-context documents, poses significant challenges. To address this, we adopt a 2-hop evaluation paradigm by leveraging downstream QA tasks (Jain et al., 2024). Specifically, we employ the GPT-4o as an automatic judge, scoring model responses from 0 to 100 based on accuracy, hallucination, and completeness. It also introduces the Perfect Rate, which measures the proportion of responses that achieve a perfect score. Baselines. To comprehensively evaluate the generation capability of LiteCoST, we compare the performance gains achieved through both LLMs and SLMs. Specifically, we consider two categories of baselines: the first targets reasoning, where LLMs are prompted to generate structured output (e.g., Zero-shot and Chain-of-Thought (CoT) (Wei et al., 2022)). The second focuses on improvements with SLMs, where we compare against several state-of-the-art models, including Llama3.2-3B-Instruct, Qwen2-7B-Instruct, Llama-3.1-8B-Instruct, Qwen2.5-14B-Instruct, GPT4o-mini, GPT-4o, and DeepSeek-R1. We further include two categories of baselines: (1) Fine-tuned IE models, such as ODIE (Jiao et al., 2023), IEpile (Gui et al., 2024b), and Struc-bench (Tang et al., 2024b); and (2) Modular extraction frameworks that leverage component modules to extract structured knowledge, including StructRAG (Li et al., 2025c). For a fair comparison, we evaluate the baseline methods using the same backbones (i.e., LLaMA-3.2-3B-Instruct, Qwen2-7B-Instruct) as those used for our LiteCoST. These baselines act as structured output generator, with GPT-4o employed as the reasoning model to produce responses. More details are provided in Appendix C.2. Implementation Details. During the training phase, LiteCoST employs a two-phase training pipeline comprising LoRA fine-tuning followed by GRPO optimization using trl and verl. The model is trained in two stages: first, fine-tuning for 3 epochs with a learning rate of 2e-4 and batch size of 16 using a LoRA adapter (rank 16, lora alpha 32); followed by reinforcement learning with GRPO using a learning rate of 1e-5, batch size of 16, and 5 sampled generations per query. In Equation 3, the weighting parameter Îą is set to 0.3; the training cost is about $â20 20, and the maximum generation length is extended to 2,048 tokens to support CoT-style reasoning. Table 1: Comparison of different models generating structured outputs for long-document QA on the Finance Subset of Loong. Green highlights the remarkable improvements over the base model. 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 Deepseek-R1 (Guo et al., 2025) 671B 84.27 0.62 78.97 0.55 75.42 0.34 74.40 0.35 78.18 0.46 LLaMA-3.2-3B-Instruct (Base) 3B 49.90 0.16 52.10 0.14 47.89 0.07 46.85 0.06 49.37 0.11 LLaMA-3.2-3B-Instruct (Ours) 3B 81.27 0.53 78.08 0.49 78.34 0.36 64.75 0.16 76.95 0.40 â 31.37 â 0.37 â 25.98 â 0.35 â 30.45 â 0.29 â 17.90 â 0.10 â 27.58 â 0.29 Qwen2-7B-Instruct (Base) 7B 63.10 0.36 67.85 0.37 60.83 0.18 52.25 0.09 62.10 0.26 Qwen2-7B-Instruct (Ours) 7B 83.97 0.62 81.55 0.59 81.00 0.43 67.98 0.18 79.93 0.48 â 20.87 â 0.26 â 13.70 â 0.22 â 20.17 â 0.25 â 15.73 â 0.09 â 17.83 â 0.22 Figure 5: Radar plot of detailed scores for different prompting methods on 4 subtasks on the Finance subset of Loong. Figure 6: Quality assessment of CoST-generated structured data via reasoning performance on Loong across popular LLMs (SD denotes structured data). 4.2 The Benefits of Structured Data This experiment evaluates how structured data improves model performance on knowledge-intensive reasoning, emphasizing the need for accurate serialized structured output (SSO). The data is curated by LiteCoST using GPT-4o as the base model; structure distributions are detailed in Appendix C.5. High-quality SSO from CoST improves LLM Reasoning. As shown in Fig. 6, all models achieve stronger reasoning when leveraging the structured data rather than raw long documents. With LiteCoST, overall scores rise by 12.41, 8.77, 9.04, and 8.47 points, and perfect rates improve by +0.10, +0.05, +0.04, and +0.08 for Qwen2-72B-Instruct, GPT-4o-mini, GPT-4o, and Claude-3.5-Sonnet, respectively. These consistent gains highlight the value of high-quality structured knowledge in improving both accuracy and reliability. Full results are provided in Appendix C.5. 4.3 Effectiveness: How good is LiteCoST for SSO Generation? In this section, we evaluate the effectiveness of LiteCoST across both LLMs and compact SLMs on the Finance subset of Loong, compared with state-of-the-art models and baseline methods. The in-depth analysis demonstrate that LiteCoST consistently outperforms other comparable strategies, achieving substantial gains in correctness, and Sec. 4.6 further confirms its broader generalization. Efficacy of Chain-of-Structured-Thought. Fig. 5 presents a radar chart comparing the performance of different prompting methods across four task categories, evaluated on two backbone LLMs. The results show that step-wise reasoning substantially improves SSO generation and yields high-quality supervision signals, with CoT consistently outperforming Zero-Shot, especially on Qwen2.5-14B-Instruct. Beyond this, our structured prompting paradigm (CoST) yields the strongest improvements, consistently reaching the outer boundary (green line) and achieving top performance across nearly all tasks, notably in Chain of Reasoning (GPT-4o), Clustering (Qwen2.5-14B-Ins), and Spotlight Locating, underscoring its consistent effectiveness. See full numerical results in the Appendix C.3. Our fine-tuned SLMs ⍠other SLMs. Table 1 demonstrates that our model consistently outperforms all evaluated small language models (defined as open-source models with fewer than 8 billion parameters). Both fine-tuned variants, LLaMA-LiteCoST and Qwen-LiteCoST, achieve substantial improvements over their base models, with gains of (+27.58, +0.29) and (+17.83, +0.22), and consistent enhancements across all sub-tasks. Compared with other small scales, the LLaMA-LiteCoST significantly outperforms the 7B, and 8B models by (+14.85, +0.14) and (+25.63, +0.30) in overall score and perfect rate, respectively, while Qwen-LiteCoST delivers even larger improvements, underscoring the effectiveness of our approach. Our fine-tuned SLMs â LLMs. On one hand, both variants surpass Qwen-14B-Instruct despite having far fewer parameters, with improvements of (+1.35, +0.02) on the LLaMA backbone and (+4.33, +0.10) on the Qwen backbone. On the other hand, Qwen-LiteCoST achieves the best overall performance among all evaluated models, surpassing all small baselines and even exceeding GPT-4o-mini by 1.85, Deepseek-R1 by 1.75, and GPT-4o by 0.61. It achieves top-2 performance on 5 out of 8 evaluation points across the four subtasks, highlighting the effectiveness of our training strategy in narrowing the gap between lightweight and large-scale models for structured output generation. Full results across different document sizes are provided in Appendix F. RL-enhanced gains for SLMs. Compared with other state-of-the-art methods, including fine-tuned models and modular extraction frameworks, LiteCoST achieves superior performance across all tasks, as shown in Table 2. In particular, LiteCoST substantially outperforms the strong baseline StructRAG, with gains of (+30.91, +0.39) on LLaMA and (+30.47, +0.46) on Qwen, Moreover, relative to the previous best fine-tuned methods, it sets a new state of the art, achieving improvements of (+15.05, +0.18) over IEPile on LLaMA and (+6.41, +0.05) over Strucbench on Qwen. These results indicate that our RL-enhanced framework provides a principled advancement over conventional fine-tuning for information extraction, further underscoring its effectiveness and robustness. Table 2: Performance of the Finance subset of Loong compared with other state-of-the-art methods 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 Qwen2-7B-Ins ODIE (Jiao et al., 2023) 82.13 0.59 73.85 0.48 73.54 0.32 55.30 0.12 72.86 0.40 IEpile (Gui et al., 2024b) 71.83 0.45 72.60 0.46 70.86 0.29 54.20 0.11 69.19 0.35 Struc-bench (Tang et al., 2024b) 81.60 0.63 74.90 0.53 73.40 0.36 60.35 0.19 73.72 0.44 StructRAG (Li et al., 2025c) 48.83 0.03 46.80 0.02 55.34 0.06 42.55 0.00 49.68 0.03 LiteCoST (Ours) 83.97 0.62 81.55 0.59 81.00 0.43 67.98 0.18 79.93 0.48 4.4 Efficiency: How fast are SLMs compared with LLMs for SSO generation? Figure 7: Comparison of extraction time and accuracy across different scale models. SLMs are much faster than LLMs. The latency comparison in Fig. 7 demonstrates that our model offers an optimal trade-off between accuracy and efficiency in structured output generation tasks, measured as the average time per sample on the Loong dataset. Qwen-LiteCoST attains lower latency (12.09s) than LLaMA3.1-8B-Instruct (13.19s) and Qwen2.5-14B-Instruct (14.71s), while delivering substantial accuracy gains. Notably, it maintains latency comparable to its base model (Qwen2-7B-Instruct at 11.89s), while running nearly 2Ă faster than GPT-4o (21.15s) and 4Ă faster than DeepSeek-R1 (44.44s), without relying on proprietary APIs. For scenarios requiring faster extraction, LLaMA-LiteCoST is preferable, running in just 8.04s while achieving performance comparable to 14B-scale models. 4.5 Ablation Study Effect of Different Reward. To identify the key drivers of LiteCoST âs performance, we ablated reinforcement learning configurations (Table 3). When we remove the process reward component from the complete model, performance drops by 1.43 points on the LLaMA backbone (76.95â 75.52) and 2.54 points on Qwen (79.93â 77.39). This demonstrates that fine-grained process rewards effectively guide step-wise extraction, complementing outcome-based signals to yield stronger overall performance. Similarly, excluding the outcome reward causes a much larger drop (â4.40 on LLaMA, -4.50 on Qwen), underscoring its importance for answer correctness. These results highlight the synergistic effects of process- and outcome-level supervision, yielding a more robust training strategy. Case studies in Appendix D further illustrate how RL-enhancement improves extraction quality. Table 3: Effect of different reward designs in ablation study on the Finance subset of Loong. 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 64.7564.75 0.16 76.95 0.40 w/o Process Reward 79.1079.10 0.480.48 77.9577.95 0.470.47 76.0376.03 0.300.30 63.9863.98 0.130.13 75.5275.52 0.370.37 w/o Outcome Reward 76.0776.07 0.450.45 73.1073.10 0.410.41 71.7271.72 0.230.23 68.22 0.150.15 72.5572.55 0.320.32 Qwen-Ours 83.9783.97 0.62 81.55 0.59 81.00 0.43 67.98 0.18 79.93 0.48 w/o Process Reward 87.93 0.630.63 77.9577.95 0.550.55 77.3277.32 0.420.42 60.6060.60 0.150.15 77.3977.39 0.460.46 w/o Outcome Reward 86.2986.29 0.570.57 75.6575.65 0.450.45 73.5673.56 0.310.31 63.3563.35 0.180.18 75.4375.43 0.390.39 4.6 Generalization To further demonstrate the broad applicability of LiteCoST beyond financial analysis, we extend our evaluation to two additional distinct domains: Legal and Scientific Question Answering. Legal Domain. We evaluate performance on Loong legal subset (Wang et al., 2024) to assess the capability of LiteCoST in generating serialized structured outputs within complex legal contexts. As shown in Table 4, our LiteCoST-tuned 3B and 7B models substantially outperform their base versions, achieving Average Score and Perfect Rate gains of (+14.78, +0.06) and (+6.89, +0.02), respectively. Remarkably, both compact variants surpass significantly larger models despite having far fewer parameters. Specifically, the LLaMA-based model outperforms Qwen2.5-14B-Instruct, GPT-4o-mini, and GPT-4o by (+7.94, +0.03), (+3.51, +0.00), and (+3.39, +0.03), respectively, with the Qwen-based variant demonstrating similar superiority. More details are discussed in Appendix E.1. Table 4: Performance Comparison on the Legal subset of Loong. Green highlights the remarkable improvements over the base model, while Red indicates relative drops. 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 LLaMA-3.2-3B-Instruct (Ours) 3B 62.20 0.30 45.20 0.02 45.00 0.09 36.55 0.02 45.45 0.09 â 21.20 â 0.22 â 20.10 â 0.01 â 13.26 â 0.07 â 9.26 â 0.01 â 14.78 â 0.06 Qwen2-7B-Instruct (Base) 7B 37.90 0.05 18.90 0.00 57.85 0.18 35.44 0.08 38.05 0.08 Qwen2-7B-Instruct (Ours) 7B 52.85 0.12 31.00 0.00 60.37 0.22 37.88 0.06 44.94 0.10 â 14.95 â 0.07 â 12.10 â 0.00 â 2.52 â 0.04 â 2.44 â 0.02 â 6.89 â 0.02 Results on Open-domain QA. In addition to the Loong benchmark, we verify the performance of CoST and LiteCoST on LongBench (Bai et al., 2024), a comprehensive benchmark tailored for multi-task long-document QA that covers key long-text application scenarios. Our analysis focuses on both single-document and multi-document QA tasks across four datasets. We compare LiteCoST against state-of-the-art models using the standard F1 score, which assesses the quality of reasoning results derived from the extracted information. Consistent with the experimental setup in Loong, GPT-4o is employed as the reasoning agent to generate final answers based on the structured outputs. Table 5: Performance comparison on LongBench benchmark (a) Quality assessment of CoST-generated structured data via reasoning performance on LongBench across LLMs (SD denotes structured data). Model Single-doc Multi-docs NarQA Qasper HotpotQA 2Wiki Qwen-14B 29.78 45.07 62.59 60.00 w/SD 31.77 47.17 67.41 67.11 GPT-4o 32.59 46.80 70.93 67.75 w/SD 35.09 49.28 73.47 72.98 (b) Performance Comparison Between LiteCoST-Tuned Models and LLM-Based Baselines on LongBench. IE Model Single-doc Multi-docs NarQA Qasper HotpotQA 2Wiki LLaMA-3.2-3B 16.94 34.46 54.92 51.82 Qwen2-7B 19.49 35.67 45.06 41.40 GPT-4o-mini 24.38 40.28 65.03 65.15 GPT-4o 28.68 43.39 67.68 68.29 LLaMA-LiteCoST 27.24 41.37 66.86 67.52 Qwen-LiteCoST 30.40 44.64 68.39 65.73 As presented in Table 5, the results align with our findings in other domains, highlighting two consistent insights: (1) CoST enhances LLM reasoning (Table 5): applying CoST consistently boosts performance for both Qwen2.5-14B-Instruct and GPT-4o across all datasets, yielding F1 gains of up to +7.11 and +5.23 points, respectively. (2) SLMs rival proprietary models (Table 5): Qwen-LiteCoST achieves the best performance on NarrativeQA, Qasper, and HotpotQA, surpassing GPT-4o by 0.71â1.72 points. Notably, it improves over its base model by substantial margins (up to +23.33), with both LiteCoST variants consistently ranking in the top three across all datasets. Collectively, these results demonstrate the strong effectiveness and broad generality of CoST and LiteCoST across diverse domains and varying task complexities. 5 Related Work Long-Document Question Answering is a critical test of LLM reasoning (Wang et al., 2024; Zhang et al., 2024), where dispersed evidence, noise, and complex reasoning make it more challenging than short-passage QA. Existing approaches, including long-context models (Yang et al., 2024; Guo et al., 2025), retrieval augmentation (Lewis et al., 2020), and chain-of-thought prompting (Wei et al., 2022), mitigate these challenges but remain brittle, often yielding hallucinations in high-stakes domains. Structured knowledge has also been explored (Li et al., 2025c; Panda et al., 2024; Edge et al., 2024; Chen et al., 2023), yet such methods require repeated large-LLM calls, leading to high cost and limited scalability. To address this, we propose a structure-first design with efficient SLM execution. LLMs for Long-Context Information Extraction. Information Extraction (IE) underpins many downstream NLP tasks (Xu et al., 2024; Zhang et al., ). While large language models (LLMs) perform well on diverse IE tasks, even in zero- and few-shot settings (Lu et al., 2023; Wei et al., 2023; Ashok and Lipton, 2023; Wang et al., 2023b; 2025; Jain et al., 2024), existing methods remain confined to short texts. In long contexts, dispersed evidence and noise impede reliable integration. Prior âQA-by-structuringâ systems (Li et al., 2025c; Tang et al., 2024b) focus on structured generation rather than verifiable step-wise extraction, and thus do not achieve reliable evidence tracing. To address this, we propose the Chain-of-Structured-Thought (CoST) paradigm, which uses step-wise reasoning for structured extraction, yielding schema-aligned outputs and rich supervision for fine-tuning. Fine-tuned Lightweight Models. While LLMs provide high-quality extraction, their computational cost and latency limit real-time use. Fine-tuned smaller models improve efficiency (Gui et al., 2024a; Xiao et al., 2023; Wang et al., 2023a; Wu et al., 2025), but instruction-tuning on short texts (Wu et al., 2022; Gui et al., 2024b; Tang et al., 2024b; Lin et al., 2025) yields shallow supervision and struggles with long-document reasoning. Reinforcement learning (RL) offers a stronger alternative by refining models with rewards (Shao et al., 2024; Xie et al., 2025), enhancing outcome correctness and step-wise reasoning. Building on this (Trung et al., 2024; Liu et al., 2025), we propose RL-enhanced lightweight models with a two-phase, dual-reward scheme to bridge the accuracyâefficiency gap. 6 Conclusion In this work, we present LiteCoST, a reinforcement learning-enhanced framework that fine-tunes lightweight small language models (SLMs) to generate high-quality structured output for long-document QA. Through Chain-of-Structured-Thought (CoST) procedure and Group Relative Policy Optimization (GRPO), LiteCoST enables a 3B-scale model to approach GPT-4o-mini and 7B models to achieve GPT-4oâlevel performance, while substantially reducing inference latency and resource consumption. We further discuss the potential applications of LiteCoST across diverse domains in Appendix E. This works demonstrate the potential of scalable, cost-efficient long-document QA and paves the way for effective LLM reasoning grounded in structured representations. Limitations. While LiteCoST demonstrates strong performance across financial, legal, and open-domain QA, its generalization to other distinct domains remains to be fully verified. Despite the current scarcity of domain-specific document QA datasets suitable for constructing training data, we reserve the exploration of broader domain adaptation and more diverse QA scenarios for future work. Acknowledgement This work is supported by National Key R&D Program of China under Grant No.2024YFA1012700, Guangdong provincial project 2023CX10X008, NSF of China (62402409), Youth S&T Talent Support Programme of Guangdong Provincial Association for Science and Technology (SKXRC2025461), and the Young Talent Support Project of Guangzhou Association for Science and Technology (QT-2025-001). References A. B. Abacha, W. Yim, Y. Fu, Z. Sun, M. Yetisgen-Yildiz, F. Xia, and T. Lin (2025) Medec: a benchmark for medical error detection and correction in clinical notes. In Findings of the Association for Computational Linguistics, p. 22539â22550. Cited by: Table 1. J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al. (2023) Gpt-4 technical report. arXiv preprint arXiv:2303.08774. Cited by: §C.2. D. Ashok and Z. C. Lipton (2023) Promptner: prompting for named entity recognition. arXiv preprint arXiv:2305.15444. Cited by: §5. Y. Bai, X. Lv, J. Zhang, H. Lyu, J. Tang, Z. Huang, Z. Du, X. Liu, A. Zeng, L. Hou, et al. (2024) Longbench: a bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, p. 3119â3137. Cited by: §C.1, §E.2, §4.6. Z. Chen, W. Chen, C. Smiley, S. Shah, I. Borova, D. Langdon, R. Moussa, M. Beane, T. Huang, B. Routledge, et al. (2021) Finqa: a dataset of numerical reasoning over financial data. arXiv preprint arXiv:2109.00122. Cited by: §4.1. Z. Chen, Z. Gu, L. Cao, J. Fan, S. Madden, and N. Tang (2023) Symphony: towards natural language query answering over multi-modal data lakes. In 13th Conference on Innovative Data Systems Research, Cited by: §1, §5. R. Chew, J. Bollenbacher, M. Wenger, J. Speer, and A. Kim (2023) LLM-assisted content analysis: using large language models to support deductive coding. arXiv preprint arXiv:2306.14924. Cited by: §1. P. Dasigi, K. Lo, I. Beltagy, A. Cohan, N. A. Smith, and M. Gardner (2021) A dataset of information-seeking questions and answers anchored in research papers. arXiv preprint arXiv:2105.03011. Cited by: §E.2. D. Edge, H. Trinh, N. Cheng, J. Bradley, A. Chao, A. Mody, S. Truitt, D. Metropolitansky, R. O. Ness, and J. Larson (2024) From local to global: a graph rag approach to query-focused summarization. arXiv preprint arXiv:2404.16130. Cited by: §1, §5. A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Vaughan, et al. (2024) The llama 3 herd of models. arXiv preprint arXiv:2407.21783. Cited by: §C.2. H. Gui, S. Qiao, J. Zhang, H. Ye, M. Sun, L. Liang, J. Z. Pan, H. Chen, and N. Zhang (2024a) InstructIE: a bilingual instruction-based information extraction dataset. In International Semantic Web Conference, p. 59â79. Cited by: §5. H. Gui, L. Yuan, H. Ye, N. Zhang, M. Sun, L. Liang, and H. Chen (2024b) IEPile: unearthing large scale schema-conditioned information extraction corpus. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, Cited by: §4.1, Table 2, Table 2, §5. D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, et al. (2025) Deepseek-r1: incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948. Cited by: §C.2, Table 1, §5. X. Ho, A. D. Nguyen, S. Sugawara, and A. Aizawa (2020) Constructing A multi-hop QA dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, Cited by: §E.2. P. Jain, A. Marzoca, and F. Piccinno (2024) STRUCTSUM generation for faster text comprehension. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, L. Ku, A. Martins, and V. Srikumar (Eds.), Cited by: §C.1, §4.1, §5. Y. Jiao, M. Zhong, S. Li, R. Zhao, S. Ouyang, H. Ji, and J. Han (2023) Instruct and extract: instruction tuning for on-demand information extraction. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, H. Bouamor, J. Pino, and K. Bali (Eds.), Cited by: §4.1, Table 2, Table 2. O. Khattab, A. Singhvi, P. Maheshwari, Z. Zhang, K. Santhanam, S. Vardhamanan, S. Haq, A. Sharma, T. T. Joshi, H. Moazam, H. Miller, M. Zaharia, and C. Potts (2023) DSPy: compiling declarative language model calls into self-improving pipelines. CoRR abs/2310.03714. External Links: 2310.03714 Cited by: §C.3, Table 6, Table 6. T. KoÄiskáťł, J. Schwarz, P. Blunsom, C. Dyer, K. M. Hermann, G. Melis, and E. Grefenstette (2018) The narrativeqa reading comprehension challenge. Transactions of the Association for Computational Linguistics 6, p. 317â328. Cited by: §E.2. P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. KĂźttler, M. Lewis, W. Yih, T. Rocktäschel, S. Riedel, and D. Kiela (2020) Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, Cited by: §5. B. Li, C. Chen, Z. Xue, Y. Mei, and Y. Luo (2025a) DeepEye-sql: A software-engineering-inspired text-to-sql framework. CoRR abs/2510.17586. Cited by: §1. B. Li, Y. Luo, C. Chai, G. Li, and N. Tang (2024) The dawn of natural language to SQL: are we fully ready? [experiment, analysis & benchmark ]. Proc. VLDB Endow. 17 (11), p. 3318â3331. Cited by: §1. B. Li, J. Zhang, J. Fan, Y. Xu, C. Chen, N. Tang, and Y. Luo (2025b) Alpha-sql: zero-shot text-to-sql using monte carlo tree search. In ICML, Cited by: §1. Z. Li, X. Chen, H. Yu, H. Lin, Y. Lu, Q. Tang, F. Huang, X. Han, L. Sun, and Y. Li (2025c) StructRAG: boosting knowledge intensive reasoning of llms via inference-time hybrid information structurization. In The Thirteenth International Conference on Learning Representations, Cited by: §C.2, §1, §4.1, Table 2, Table 2, §5, §5. X. Lin, Y. Qi, Y. Zhu, T. Palpanas, C. Chai, N. Tang, and Y. Luo (2025) LEAD: iterative data selection for efficient LLM instruction tuning. CoRR abs/2505.07437. External Links: 2505.07437 Cited by: §5. Z. Liu, X. Guo, F. Lou, L. Zeng, J. Niu, Z. Wang, J. Xu, W. Cai, Z. Yang, X. Zhao, et al. (2025) Fin-r1: a large language model for financial reasoning through reinforcement learning. arXiv preprint arXiv:2503.16252. Cited by: §5. D. Lu, S. Ran, J. R. Tetreault, and A. Jaimes (2023) Event extraction as question generation and answering. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), p. 1666â1688. Cited by: §5. P. Panda, A. Agarwal, C. Devaguptapu, M. Kaul, and A. P. Prathosh (2024) HOLMES: hyper-relational knowledge graphs for multi-hop question answering using llms. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, L. Ku, A. Martins, and V. Srikumar (Eds.), p. 13263â13282. Cited by: §5. N. Pipitone and G. H. Alami (2024) Legalbench-rag: a benchmark for retrieval-augmented generation in the legal domain. arXiv preprint arXiv:2408.10343. Cited by: §E.1, §4.1. L. Qin, Q. Chen, X. Feng, Y. Wu, Y. Zhang, Y. Li, M. Li, W. Che, and P. S. Yu (2024) Large language models meet NLP: A survey. CoRR abs/2405.12819. External Links: 2405.12819 Cited by: §1. P. Rajpurkar, J. Zhang, K. Lopyrev, and P. Liang (2016) Squad: 100,000+ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250. Cited by: §4.1. Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. (2024) Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §B.1, §3.2, §5. N. Tang, C. Yang, J. Fan, L. Cao, Y. Luo, and A. Y. Halevy (2024a) VerifAI: verified generative AI. In 14th Conference on Innovative Data Systems Research, Cited by: §1. X. Tang, Y. Zong, J. Phang, Y. Zhao, W. Zhou, A. Cohan, and M. Gerstein (2024b) STRUC-bench: are large language models good at generating complex structured tabular data?. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Cited by: §1, §4.1, Table 2, Table 2, §5, §5. L. Q. Trung, X. Zhang, Z. Jie, P. Sun, X. Jin, and H. Li (2024) ReFT: reasoning with reinforced fine-tuning. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), L. Ku, A. Martins, and V. Srikumar (Eds.), p. 7601â7614. Cited by: §5. M. Wang, L. Chen, F. Cheng, S. Liao, X. Zhang, B. Wu, H. Yu, N. Xu, L. Zhang, R. Luo, Y. Li, M. Yang, F. Huang, and Y. Li (2024) Leave no document behind: benchmarking long-context llms with extended multi-doc QA. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Cited by: §C.1, §E.1, item 3, §4.1, §4.6, §4, §5. S. Wang, X. Sun, X. Li, R. Ouyang, F. Wu, T. Zhang, J. Li, G. Wang, and C. Guo (2025) GPT-NER: named entity recognition via large language models. In NAACL (Findings), p. 4257â4275. Cited by: §1, §5. X. Wang, W. Zhou, C. Zu, H. Xia, T. Chen, Y. Zhang, R. Zheng, J. Ye, Q. Zhang, T. Gui, et al. (2023a) Instructuie: multi-task instruction tuning for unified information extraction. arXiv preprint arXiv:2304.08085. Cited by: §5. X. Wang, S. Li, and H. Ji (2023b) Code4Struct: code generation for few-shot event structure prediction. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 3640â3663. Cited by: §5. J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. H. Chi, Q. V. Le, and D. Zhou (2022) Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (Eds.), Cited by: Table 6, Table 6, §4.1, §5. X. Wei, X. Cui, N. Cheng, X. Wang, X. Zhang, S. Huang, P. Xie, J. Xu, Y. Chen, M. Zhang, et al. (2023) Zero-shot information extraction via chatting with chatgpt. arXiv e-prints, p. arXivâ2302. Cited by: §1, §5. X. Wu, J. Zhang, and H. Li (2022) Text-to-table: A new way of information extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 2518â2533. Cited by: §5. Y. Wu, J. Shi, B. Wu, J. Zhang, X. Lin, N. Tang, and Y. Luo (2025) Concise reasoning, big gains: pruning long reasoning trace with difficulty-aware prompting. CoRR abs/2505.19716. Cited by: §5. X. Xiao, Y. Wang, N. Xu, Y. Wang, H. Yang, M. Wang, Y. Luo, L. Wang, W. Mao, and D. Zeng (2023) Yayi-uie: a chat-enhanced instruction tuning framework for universal information extraction. arXiv preprint arXiv:2312.15548. Cited by: §5. Y. Xie, Z. Zhang, Y. Wu, S. Lu, J. Zhang, Z. Yu, J. Wang, S. Hong, B. Liu, C. Wu, et al. (2025) Visjudge-bench: aesthetics and quality assessment of visualizations. arXiv preprint arXiv:2510.22373. Cited by: §5. D. Xu, W. Chen, W. Peng, C. Zhang, T. Xu, X. Zhao, X. Wu, Y. Zheng, Y. Wang, and E. Chen (2024) Large language models for generative information extraction: a survey. Frontiers of Computer Science 18 (6), p. 186357. Cited by: §1, §5. A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, et al. (2024) Qwen2. 5 technical report. arXiv preprint arXiv:2412.15115. Cited by: §C.2, §5. Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. Cohen, R. Salakhutdinov, and C. D. Manning (2018) HotpotQA: a dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 conference on empirical methods in natural language processing, p. 2369â2380. Cited by: §E.2. Z. Zhang, Z. Liang, Y. Wu, T. Lin, Y. Luo, and N. Tang (2025) DataMosaic: explainable and verifiable multi-modal data analytics through extract-reason-verify. arXiv preprint arXiv:2504.10036. Cited by: §1. Z. Zhang, Y. Wu, Y. Luo, and N. Tang (2024) Mar: matching-augmented reasoning for enhancing visual-based entity question answering. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, p. 1520â1530. Cited by: §5. [50] Z. Zhang, W. Yin, Z. Liang, C. Chai, Y. Luo, and N. Tang CycleIE: robust document information extraction through iterative verification and refinement. Cited by: §5. L. Zheng, W. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, Z. Lin, Z. Li, D. Li, E. Xing, et al. (2023) Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems 36, p. 46595â46623. Cited by: §3.1. F. Zhu, W. Lei, Y. Huang, C. Wang, S. Zhang, J. Lv, F. Feng, and T. Chua (2021) TAT-qa: a question answering benchmark on a hybrid of tabular and textual content in finance. In Proceedings of the 59th annual meeting of the Association for Computational Linguistics and the 11th international joint conference on natural language processing (volume 1: long papers), p. 3277â3287. Cited by: §4.1. Y. Zhu, L. Wang, C. Yang, X. Lin, B. Li, W. Zhou, X. Liu, Z. Peng, T. Luo, Y. Li, C. Chai, C. Chen, S. Di, J. Fan, J. Sun, N. Tang, F. Tsung, J. Wang, C. Wu, Y. Xu, S. Zhang, Y. Zhang, X. Zhou, G. Li, and Y. Luo (2025) A survey of data agents: emerging paradigm or overstated hype?. CoRR abs/2510.23587. Cited by: §1. Appendix Contents Appendix A. Implementation of Chain-of-Structured Thought (CoST) ........................................................................................................................................................................A A.1 The Prompt of Structure Analysis ........................................................................................................................................................................A.1 A.2 The Prompt of CoST Trace Generation ........................................................................................................................................................................A.2 A.3 The Prompt of Quality Verification ........................................................................................................................................................................A.3 A.3 The Prompt of Iterative Refinement ........................................................................................................................................................................A.4 Appendix B. Additional Details of Reinforcement Learning ........................................................................................................................................................................B B.1 Group-Relative Advantage and KL Divergence ........................................................................................................................................................................B.1 B.2 The Prompt of Answer Completeness ........................................................................................................................................................................B.2 Appendix C. Experimental Details ........................................................................................................................................................................C C.1 Evaluation Metrics and Scoring Criteria ........................................................................................................................................................................C.1 C.2 Details of Experimental Setting ........................................................................................................................................................................C.2 C.3 Numerical Results of The Radar Chart ........................................................................................................................................................................C.3 C.4 Robust Long-Document Handling ........................................................................................................................................................................C.4 C.5 Full Results of Reasoning w/Structured Data ........................................................................................................................................................................C.5 C.6 Computational Resource ........................................................................................................................................................................C.6 Appendix D. Case Studies on Practical Long-Document QA Tasks ........................................................................................................................................................................D D.1 Case Study on RL-Enhancement ........................................................................................................................................................................D.1 Appendix E. Generalization on Other Domains ........................................................................................................................................................................E E.1 Legal Domain ........................................................................................................................................................................E.1 E.2 Open-domain QA ........................................................................................................................................................................E.2 E.3 Others ........................................................................................................................................................................E.3 Appendix F. Full Performance of Effectness on Loong (Finance) ........................................................................................................................................................................F Appendix A Implementation of Chain-of-Structured-Thought (CoST) During the entire CoST: Structure-First Reasoning and Trace Generation process, we construct prompts in four key processes respectively. Firstly, in the structure analysis stage, we construct the prompt about structure selection and schema construction, as shown in Fig. 8 and Fig. 9. Secondly, we adopt an instruction-based chain-of-thought paradigm that performs step-by-step reasoning to progressively extract structured knowledge and generate the CoST trace, as shown in Fig. 10. Finally, in order to obtain high-quality serialized structured output (SSO), we conduct the quality verification, followed by iterative refinement. The details are shown in Fig. 11, 12. A.1 The Prompt of Structure Analysis To dynamically select appropriate data structures and perform question preprocessing, we conduct structure analysis, which includes both structure selection and schema construction. On one hand, we design prompts that enable question-oriented structure selection. On the other hand, we construct an accurate, task-specific schema through careful preprocessing of the question, before instruction-based information extraction. The prompts of structure analysis are shown in Fig. 8, 9. A.2 The Prompt of CoST Trace Generation To generate high-quality trace and structured output, we adopt an schema guided chain-of- thought paradigm composed of: (1) step-by-step task instructions, (2) input text, and (3) a schema dynamically generated from the question. GPT-4o is prompted with these schema-informed instructions to produce intermediate reasoning traces, which are then used to supervise instruction-tuned models in zero-shot or few-shot settings. Fig. 10 illustrates this reasoning process for the structured output (e.g., table) . Figure 8: The prompt for selecting the most optimal structure. Figure 9: The prompt for dynamically constructing schema. Figure 10: The prompt for extracting table step-by-step. A.3 The Prompt of Quality Verification To evaluate the quality of the generated structured output, we employ an LLM-as-Judge framework. Given the original question and the model-generated answer derived from the extracted structure, we prompt GPT-4o to assess whether the answer correctly addresses the question. An inference is considered correct and retained only if it exactly matches the expected answer based on the prompt instructions. The prompt includes the original question, the extracted result, and evaluation instructions guiding the model to make a binary decision, as detailed in Fig. 11. Figure 11: The prompt for verifying the data quality. A.4 The Prompt of Iterative Refinement To enhance Group Relative Policy Optimization (GRPO) training with more challenging learning signals, we introduce an Iterative Structuralizer module that refines low-quality samples through recursive structured knowledge regeneration. The prompt for refining structured data extraction (e.g., table) is detailed in Fig. 12. Formally, this process is implemented as a recursive function over the evolving extraction state, gradually improving coverage and accuracy across iterations: S(t+1)=S(t),if â(S(t),q)=Truefextractâ(q,c,S(t)),otherwise,S^(t+1)= casesS^(t),&if K(S^(t),q)= True\\ f_extract(q,c,S^(t)),&otherwise, cases (5) where â(S(t),q)K(S^(t),q) is a sufficiency evaluator that returns True if the current structured knowledge can answer the question; fextractf_extract is the structured knowledge extraction function, and c is the context. The process terminates when â(K(t),q)=TrueS(K^(t),q)= True or when a predefined maximum number of iterations is reached. The final structured knowledge SâS^* is then used for downstream reasoning. Figure 12: The prompt for refining low-quality data. Appendix B Additional Details of Reinforce Learning B.1 Group-Relative Advantage and KL Divergence For completeness, we provide additional details of the GRPO optimization. The importance sampling ratio is defined as riratio=Ďθâ(oiâŁ)Ďθoldâ(oiâŁ)r^ratio_i= _θ(o_i ) _ _old(o_i ), which quantifies the relative likelihood of generating output oio_i under the new policy compared with the old policy Ďθ _θ. The group-relative advantage AiA_i is calculated based on the relative rewards of outputs within the same group only. To ensure stable optimization, the clipping operator clipâ(riratio,1âĎľ,1+Ďľ)clip(r^ratio_i,1-Îľ,1+Îľ) restricts the update magnitude within the trust region [1âĎľ, 1+Ďľ][1-Îľ,\,1+Îľ], thereby avoiding destabilizing large parameter changes. Finally, taking the minimum between the unclipped term riratioâAir^ratio_iA_i and its clipped counterpart enforces a conservative update, which balances aggressive improvements with training stability. In addition, the KL divergence term DKLâ(ĎθâĽĎref)D_KL( _θ\| _ref) plays a critical role in regularizing policy updates. It penalizes large deviations from a stable reference policy Ďref _ref, preventing overfitting to noisy reward signals and maintaining alignment with the base modelâs distribution. The coefficient β controls the strength of this regularization, striking a balance between exploration (deviation from the reference) and stability (consistency with the pretrained policy). This regularization is particularly important when rewards are sparse or noisy, such as process rewards, as it prevents the model from overfitting to unstable signals while still enabling gradual improvement (Shao et al., 2024). B.2 The Prompt of Answer Completeness To measure the semantic similarity between the generated structured outputs and the ground truth during the GRPO process, we employ GPT-4o-mini as an automatic evaluator. The evaluator examines the outputs along four dimensions: null check, core field coverage, semantic alignment, and semantic equivalenceâand then produces a score within the range [0, 100]. This score, denoted as semS_sem in Equation 5, provides an accurate quantification of the semantic similarity of the structured data, with the prompting details shown in Fig. 13. Figure 13: The prompt for verifying the similarity of generated output and ground truth. Appendix C Experimental Details C.1 Evaluation metrics Following the approach of Loong (Wang et al., 2024), we prompt GPT-4o as a judge to against the golden answer and question requirements in three dimensions: Accuracy, Hallucinations, and Completeness, on a 0â100 scale, as detailed in Figure 15. With this evaluation method, the Judger model would output a percentage score along with its corresponding explanation. Given the limited ground-truth annotations for information extraction on long-context documents, we adopt a 2-hop evaluation following the principle of StructSum (Jain et al., 2024), which uses the structured outputs to answer QA pairs derived from the input text. Our core intuition is that if an LLM can accurately answer questions based solely on the extracted data, the extraction process has likely preserved the essential information-thus reflecting its quality. For experiments on LongBench (Bai et al., 2024), we additionally use the standard F1 score to assess the quality of reasoning based on the extracted information. Consistent with the Loong setup, GPT-4o is employed as the reasoning agent to generate final answers from the structured outputs. C.2 Details of Experimental Setting. Base Models. To comprehensively evaluate the extraction ability of LiteCoST, we compare it with several state-of-the-art models, including Llama3.2-3B-Instruct (Grattafiori et al., 2024), Qwen2-7B-Instruct (Yang et al., 2024), Llama-3.1-8B-Instruct, Qwen2.5-14B-Instruct, GPT4o-mini, GPT-4o (Achiam et al., 2023), and Deepseek-R1 (Guo et al., 2025). For fairness, all models are evaluated under the same prompting setup, where each is guided by a task-specific schema derived from the given question or instruction. To avoid exceeding the context window, all models perform document-level extraction and merged the resulting structured sub-knowledge. Fine-tuned IE Models. For comparison with fine-tuned IE models, both LiteCoST and the baselines are trained on our CoST-curated dataset under identical conditions. We then evaluate their extraction performance to highlight differences in fine-tuning strategies and demonstrate the relative advantages of our approach. Modular Frameworks. We further consider modular extraction frameworks such as StructRAG (Li et al., 2025c). In this setup, we configure the Router and Structurizer components with the same backbones (i.e., LLaMA-3.2-3B-Instruct and Qwen2-7B-Instruct), while employing GPT-4o as the Utilizer for reasoning. This setup ensures that the comparison between StructRAG and our LiteCoST remains both fair and rigorous. Baseline Prompting Template. To ensure fairness, all baselines and our model use the same input prompting format for structured extraction, as shown in Fig. 14. The LLM baselines are evaluated in a zero-shot setting, and entries labeled âLLM baselineâ refer to this zero-shot performance. Our LiteCoST-tuned models are compared directly against these baselines because both rely on the identical prompt template, ensuring that performance differences arise from CoST distillation and the two-stage training procedure rather than from prompting variations or model-capacity differences. Figure 14: The baseline prompt template for different structured extraction. Table 6: The performance of various LLMs under different prompting settings, showing Average Scores (AS, 0-100) and Perfecr Rate (PR, 0-1) on the Finance subset of Loong benchmark. 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 CoT (Wei et al., 2022) 85.57 0.69 84.40 0.66 79.58 0.44 64.45 0.30 80.08 0.54 Dspy (Khattab et al., 2023) 86.17 0.74 82.65 0.62 80.00 0.47 67.25 0.27 80.26 0.54 LiteCoST (CoST) 88.80 0.75 84.50 0.65 82.24 0.50 68.90 0.28 82.39 0.56 C.3 Numerical Results of The Radar Chart Table 6 provides the detailed numerical results on the Finance subset of Loong across backbone LLMs. Relative to Zero-Shot prompting, Chain-of-Thought (CoT) consistently improves overall performance, raising the average score (AS) from 75.60 to 77.51 on Qwen2.5-14B-Ins and from 79.32 to 80.08 on GPT-4o. Building further on CoT, our CoST-based LiteCoST achieves the strongest results across all backbones, with overall AS/PR reaching 79.01/0.48 on Qwen2.5-14B-Ins, and 82.39/0.56 on GPT-4o. The improvements are consistent across subtasksâfor example, CoST yields a gain of +6.62 AS on Clustering with GPT-4o and +8.62 AS on Spotlight Locating with Qwen2.5-14B-Ins, demonstrating its robustness in enhancing reasoning-intensive extraction. We have also integrate prompt-optimization methods, including DSPy (Khattab et al., 2023), into our evaluation. Specifically, we use the same zero-shot structured-extraction instructions as the initial input prompts for GPT-4o and Qwen2.5-14B-Instruct, and then apply the MiPRO optimizer to refine these promptsâautomatically generating Chain-of-Thoughtâstyle reasoning steps and optimized structured prompts. MiPRO is conditioned on examples drawn from a randomly sampled 10% subset of the LiteCoST training data (finance). We observe that although DSPy provides slight improvements over the zero-shot and CoT baselines, our method still performs substantially better. This highlights both the effectiveness and robustness of CoST, and further illustrates the challenges of applying automated prompt optimization to structure-aware extraction tasks. C.4 Robust Long-Document Handling. The results in Fig. 16 show that both Chain-of-Structured-Thought (CoST) and LiteCoST exhibit strong robustness as document length increases. LLM+CoST. The overall score of LLM equipped with CoST decreases by only 25.21 points when moving from Set1 (91.46) to the most challenging Set4 (66.25), whereas zero-shot prompting exhibits a much sharper decline (92.33 â 58.42) and CoT similarly drops from 87.90 to 60.49. On Set4, CoST surpasses zero-shot and CoT by 5.76 and 7.83 points, respectively, indicating that CoST provides substantially greater robustness under increasing difficulty. LiteCoST-tuned SLM. Our LiteCoST-tuned SLM also demonstrates strong robustness, exhibiting only a modest 24.46-point decline as document length increases. Even on the most challenging Set4, it achieves a score of 64.89, outperforming all LLM-based baselines: +6.47 over GPT-4o, +4.77 over Qwen2.5-14B-Instruct, and +12.01 over LLaMA-3.1-8B-Instruct. These results underscore the particular strength of CoST and LiteCoST in handling long-document inputs, consistently maintaining high reasoning accuracy even as context length increases. Figure 15: The prompt for evaluation using LLM Score. Figure 16: Performance (LLM score) versus document-set size for (a) CoST with baseline methods (zero-shot and CoT) and (b) LiteCoST-tuned models with different base models. C.5 Full Results of Reasoning w/ Structured Data. By selecting the optimal structure for each QA sample in the Loong benchmark, the dataset comprises 823 tables, 400 graphs, and 377 text chunks. The purpose of this experiment is to explore how serialized structured output (SSO) contributes to model performance on knowledge-intensive reasoning tasks. Therefore, we curate such structures through our LiteCoST framework with GPT-4o as the base model, and then evaluate the results of LLMs reasoning over these structured representation. Table 8 shows that all models achieve better reasoning performance when leveraging the extracted structured information, compared to the baseline that directly processes the raw long-form documents, underscoring the necessity of accurate and effective structured knowledge extraction. Pros. The gains are particularly notable in comparison and clustering tasks, where all models show improvements in LLM scores, along with at least 0.11 and 0.17 increases in Perfect Rate, respectively. These results highlight the value of structured knowledge in capturing entity relationships and aggregating discrete information for complex reasoning. Cons. We observe slight performance drops in certain subtasks (Spotlight Locating and Chain-of-Reasoning) after integrating structured data. These results reflect a trade-off between structured clarity and the flexibility of unstructured reasoning: ⢠Advantages of structured data: Improves aggregation and clustering tasks by enabling more effective comparison and summarization. ⢠Challenge in Spotlight Locating: Fine-grained localization may degrade when structured data omits subtle contextual cues, reducing recall. ⢠Challenge in Chain-of-Reasoning: Complex multi-step inference may lose nuance when context is compressed into structured formats. Here, we provide a case to illustrate this issue with the following Spotlight Locating task: ⢠Question: What is the name of the company with $â30,179 30,179 in Accounts Receivable? ⢠Ground Truth: CIRTRAN CORP ⢠LLM Answer: The information provided in the context does not list a company with $â30,179 30,179 in Accounts Receivable. Therefore, the answer is Not Provided Not Provided Table 7: Extracted table for the given query. Company Accounts Receivable AXIM Biotechnologies, Inc. $23,642 CIRTRAN CORP. None Arax Holdings Corp. $453,837 High Wire Networks, Inc. $4,483,1 In this case, due to value corruption or omission during extraction, CIRTRAN CORPâs relevant numerical value is missing in the structured table, leading the model to respond incorrectly. A large language model performing direct reasoning over the full text, in contrast, can flexibly match partial evidence (e.g., approximate figures or nearby mentions) without being constrained by structure. Table 8: Structured data quality evaluation of LiteCoST via Chain-of-Structured-Thought (CoST) on the Loong benchmark, compared against popular LLMs. SD denotes structured data. 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 54.1754.17 0.360.36 42.3842.38 0.200.20 36.7136.71 0.040.04 47.7647.76 0.180.18 43.2943.29 0.150.15 SD â Qwen2-72B-Ins 128k 57.3057.30 0.310.31 54.8054.80 0.380.38 61.4661.46 0.230.23 46.3646.36 0.160.16 55.70 0.25 GPT-4o-mini 128k 59.4659.46 0.490.49 51.9051.90 0.270.27 34.5534.55 0.040.04 64.2864.28 0.390.39 49.2549.25 0.240.24 SD â GPT-4o-mini 128k 63.2363.23 0.440.44 53.0453.04 0.380.38 59.6359.63 0.210.21 55.9855.98 0.260.26 58.02 0.29 GPT-4o 128k 73.9573.95 0.620.62 50.5050.50 0.280.28 44.2944.29 0.090.09 57.0557.05 0.280.28 53.4753.47 0.260.26 SD â GPT-4o 128k 62.1162.11 0.330.33 63.2763.27 0.410.41 68.0668.06 0.290.29 53.5253.52 0.220.22 62.51 0.30 Claude3.5-Sonnet 200k 58.4558.45 0.490.49 54.2154.21 0.250.25 45.7745.77 0.070.07 43.9243.92 0.250.25 48.8548.85 0.230.23 SD â Claude3.5-Sonnet 200k 47.6047.60 0.340.34 54.6454.64 0.410.41 66.9566.95 0.310.31 50.4550.45 0.230.23 57.32 0.31 C.6 Computational Resource. Model Deployment. We deployed and run models ranging from 3B to 14B model size on a cluster equipped with eight NVIDIA RTX 4090 GPUs, each with 24GB of VRAM. For closed sourced large language models such as GPT and Claude, we accessed them via API calls. Computational cost. Our cost mainly comes from two components: ⢠Data Generation. This includes structure analysis, CoST trace generation, quality verification, and iterative refinement using GPT-4o. The average cost is approximately $30 per domain. ⢠GRPO Fine-tuning. Reward computation relies on GPT-4o-mini to evaluate structural alignment, format compliance, and answer correctness. This adds an additional $10 per training run. The total cost of $40 is necessary and acceptable because it amortizes extremely well: once LiteCoST is trained, downstream inference relies solely on compact SLMs, eliminating repeated LLM calls and yielding substantial savings during deployment. Appendix D Case Study on Practical Long-Document QA Tasks. D.1 Case Study on RL-Enhancement As shown in Fig. 17, we present a representative long-context QA example to evaluate the modelâs information extraction capabilities. This question is particularly challenging, as it requires the model to retrieve multiple pieces of evidence from the input text and accurately integrate them into coherent structured information. Specifically, the case study includes the question and documents input (grey box), predictions from the base LLaMA-3.2-3B-Instruct model (blue box), its finetuned variant (orange box) and our LiteCoST model (green box). In addition, incorrect predictions are highlighted in red, while correct ones are marked in green. The results show that the Llama base model performs poorly at information extraction and fails to organize content into structured formats such as tables. The fine-tuned model exhibits partial extraction ability but remains inaccurate in long-context, multi-document settings. In contrast, our LiteCoST accurately integrates dispersed information into high-quality structured tables, with gains largely attributed to supervised CoT reasoning and reinforcement learning. As shown in Fig. 17, LiteCoST provides significantly enhanced interpretability compared to its base model. Figure 17: Case study on representative information extraction tasks for large language models, comparing the information extraction capabilities of three Llama-3.2-3B-Instruct variants. Appendix E Generalization on Different Domains E.1 Legal Domain. To examine the generalization capabilities of LiteCoST, we apply it to the legal domain by curated by from LegalBenchRAG (Pipitone and Alami, 2024), a dataset of 6,858 query-answer pairs over a corpus of over 79M characters, entirely human-annotated by legal experts. Leveraging the training data described in Sec. 4.1, we perform RL fine-tuning on small language models. The fine-tuned models are subsequently evaluated on the legal subset of Loong (Wang et al., 2024) to assess their ability to generate structured outputs in complex legal contexts. Table 4 shows that our LiteCoST-tuned 3B/7B models, LLaMA-LiteCoST and Qwen-LiteCoST, achieve substantial improvements over their respective base models and deliver performance comparable to proprietary LLMs. From these results, we further derive two key insights: (1) Notably, our method elevates LLaMA variant to surpass Qwen in overall performance. The two backbones, however, exhibit complementary strengths: LLaMA excels on the Spotlight Locating and Comparison subtasks, while Qwen achieves superior results on Clustering and Chain-of-Reasoning. (2) Qwen2-7B-Instruct performs exceptionally well on the legal domain, even surpassing its 14B counterpart, potentially due to: âś stronger domain adaptation from a larger proportion of legal corpora in training; ⡠the tendency of larger models to over-generate in long, highly structured legal texts, leading to hallucinations or format drift, whereas the smaller 7B model more faithfully adheres to schemas and maintains consistency. E.2 Open-domain QA. Beyond the Loong benchmark, we further evaluate our method on LongBench (Bai et al., 2024), a widely recognized multi-task benchmark for long-document QA that covers key real-world application scenarios across literature, science, encyclopedias, etc. These datasets contain far more nuanced information. As shown in Table 5, our LiteCoST effectively extends to settings with richer and more subtle semantics, demonstrating strong generalization beyond strictly structured environments. Our analysis focuses on both single- and multi-doc QA tasks across four datasets, as shown in Table 9. Single-Doc QA. For single-document QA, we focus on datasets containing longer and more challenging documents. We evaluate on NarrativeQA (KoÄiskáťł et al., 2018), consisting of full-length stories paired with questions designed to test deep reading comprehension. We also include Qasper (Dasigi et al., 2021), a dataset featuring QA over NLP research papers, annotated by domain experts. Multi-Doc QA. Multi-document QA requires models to extract and combine information from several documents to obtain the answer, which is usually more challenging than single-doc QA. We evaluate on two Wikipedia-based multi-hop QA datasets: HotpotQA (Yang et al., 2018), 2WikiMultihopQA (Ho et al., 2020). HotpotQA involves a number of 2-hop questions directly written by na- tive speakers given two related paragraphs. 2Wiki-MultihopQA consists of up to 5-hop questions that are synthesized through manually designed tem- plates to ensure that they cannot be solved through shortcuts. Each question in the original datasets is supplemented by 2-4 supporting paragraphs that provide one-step reasoning evidence and several distracting paragraphs. Table 9: An overview of the dataset statistics for a subset of LongBench. âSourceâ denotes the origin of the context. âAvg lenâ (average length) is computed using the number of words for the English (code) datasets and the number of characters for the Chinese datasets. âAccuracy (CLS)â refers to classification accuracy, while âAccuracy (EM)â refers to exact match accuracy. 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 E.3 Others. Beyond the finance, legal, and scientific QA tasks, LiteCoST can be applied to a wide range of fields, enabling effective and efficient structured extraction from large-scale unstructured corpora: ⢠Healthcare: extracting patient attributes, treatment outcomes, and adverse event reports to enhance clinical decision-making and pharmacovigilance. ⢠Scientific literature: supporting literature understanding, analysis, and question answering through the extraction of experimental settings, results, and methodological details. ⢠Policy and government: structuring entities and relations from legislative and regulatory documents to facilitate compliance monitoring and policy evaluation. ⢠Enterprise analytics: organizing information from reports, manuals, and support logs into structured forms to improve knowledge management and retrieval-augmented applications. Together, these applications highlight the broad adaptability of LiteCoST in transforming unstructured knowledge into structured representations that directly support diverse downstream tasks. Appendix F Full Performance of Effectiveness on Loongfin Table 10 presents the full results of the Table 1 in the main manuscript. Table 10: Full results of Table 1. AS represents Avg Scores (0~100) and PR denotes Perfect Rate (0~1). Bold indicates the best result within each setting, and underlined indicates the second best. Model Model Spotlight Locating Comparison Clustering Chain of Reasoning Overall Size AS PR AS PR AS PR AS PR AS PR â All\ Set (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 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 200B 84.10 0.73 80.53 0.60 81.50 0.50 64.30 0.25 79.32 0.54 Deepseek-R1 671B 84.27 0.62 78.97 0.55 75.42 0.34 74.40 0.35 78.18 0.46 LLaMA-3.2-3B-Instruct (SFT) 3B 74.39 0.45 75.53 0.45 73.64 0.29 59.15 0.12 72.27 0.35 LLaMA-3.2-3B-Instruct (Ours) 3B 81.27 0.53 78.08 0.49 78.34 0.36 64.75 0.16 76.95 0.40 Qwen2-7B-Instruct (SFT) 7B 82.23 0.58 81.15 0.56 75.91 0.33 62.40 0.11 76.83 0.42 Qwen2-7B-Instruct (Ours) 7B 83.97 0.62 81.55 0.59 81.00 0.43 67.98 0.18 79.93 0.48 Set1 (10K-50K) LLaMA-3.2-3B-Instruct 3B 54.13 0.17 43.33 0.13 44.25 0.07 55.50 0.10 47.28 0.12 Qwen2-7B-Instruct 7B 73.26 0.48 80.17 0.53 68.25 0.28 65.00 0.30 72.52 0.40 LLaMA-3.1-8B-Instruct 8B 46.09 0.04 35.50 0.00 47.38 0.00 40.50 0.00 42.96 0.01 GPT-4o-mini 8B 96.09 0.91 93.00 0.90 86.62 0.70 75.50 0.40 89.51 0.78 Qwen2.5-14B-Instruct 14B 95.00 0.74 87.00 0.63 84.45 0.53 84.30 0.20 87.53 0.57 GPT-4o 200B 96.09 0.91 90.00 0.80 91.25 0.78 95.00 0.90 92.33 0.83 Deepseek-R1 671B 91.96 0.78 90.50 0.80 88.75 0.68 99.50 0.90 91.02 0.76 LLaMA-3.2-3B-Instruct (SFT) 3B 80.43 0.61 83.10 0.60 82.70 0.47 67.00 0.30 80.79 0.52 LLaMA-3.2-3B-Instruct (Ours) 3B 91.52 0.78 81.33 0.57 88.95 0.60 75.00 0.50 85.95 0.62 Qwen2-7B-Instruct (SFT) 7B 91.30 0.83 89.17 0.73 81.75 0.53 81.50 0.20 86.02 0.62 Qwen2-7B-Instruct (Ours) 7B 92.17 0.83 89.67 0.77 88.75 0.72 84.80 0.60 89.40 0.75 Set2 (50K-100K) LLaMA-3.2-3B-Instruct 3B 41.62 0.10 57.16 0.19 57.13 0.13 44.88 0.05 52.61 0.13 Qwen2-7B-Instruct 7B 80.00 0.62 71.13 0.45 63.11 0.24 58.75 0.12 67.61 0.35 LLaMA-3.1-8B-Instruct 8B 55.88 0.23 55.15 0.20 51.44 0.03 48.75 0.03 52.86 0.11 GPT-4o-mini 8B 96.12 0.90 88.93 0.80 86.07 0.58 64.62 0.28 85.09 0.65 Qwen2.5-14B-Instruct 14B 88.88 0.68 88.67 0.68 76.11 0.28 64.25 0.20 80.10 0.45 GPT-4o 200B 90.38 0.80 96.27 0.72 89.67 0.71 66.88 0.33 85.02 0.67 Deepseek-R1 671B 85.75 0.68 83.04 0.61 81.17 0.50 78.62 0.45 82.07 0.56 LLaMA-3.2-3B-Instruct (SFT) 3B 82.83 0.57 77.93 0.49 79.09 0.40 65.12 0.15 77.07 0.42 LLaMA-3.2-3B-Instruct (Ours) 3B 88.12 0.60 81.33 0.56 83.98 0.48 65.25 0.20 80.79 0.40 Qwen2-7B-Instruct (SFT) 7B 87.88 0.70 84.73 0.63 80.53 0.41 66.12 0.20 80.67 0.40 Qwen2-7B-Instruct (Ours) 7B 90.00 0.72 85.53 0.68 85.28 0.56 68.50 0.23 83.39 0.50 Set3 (100K-200K) LLaMA-3.2-3B-Instruct 3B 54.42 0.22 51.24 0.09 44.06 0.02 45.14 0.09 48.67 0.10 Qwen2-7B-Instruct 7B 56.00 0.30 63.73 0.28 59.63 0.13 45.57 0.03 58.08 0.20 LLaMA-3.1-8B-Instruct 8B 57.92 0.27 55.13 0.17 52.06 0.04 39.71 0.00 52.63 0.13 GPT-4o-mini 8B 84.00 0.77 77.40 0.57 71.78 0.22 64.57 0.09 75.25 0.43 Qwen2.5-14B-Instruct 14B 88.93 0.68 76.93 0.49 63.39 0.16 64.14 0.00 73.29 0.35 GPT-4o 200B 88.33 0.83 76.13 0.49 77.00 0.32 53.43 0.06 76.19 0.45 Deepseek-R1 671B 91.17 0.73 76.80 0.47 71.22 0.16 67.57 0.20 76.94 0.38 LLaMA-3.2-3B-Instruct (SFT) 3B 75.25 0.48 74.24 0.40 67.67 0.16 55.14 0.09 69.63 0.29 LLaMA-3.2-3B-Instruct (Ours) 3B 83.75 0.60 77.73 0.47 72.37 0.22 62.43 0.06 75.20 0.36 Qwen2-7B-Instruct (SFT) 7B 85.33 0.63 78.60 0.48 74.06 0.24 56.29 0.03 75.58 0.37 Qwen2-7B-Instruct (Ours) 7B 86.92 0.68 8.73 0.53 79.11 0.33 63.86 0.11 78.75 0.40 Set4 (200K-250K) LLaMA-3.2-3B-Instruct 3B 48.52 0.11 49.50 0.15 36.50 0.00 50.33 0.00 45.11 0.07 Qwen2-7B-Instruct 7B 45.19 0.00 52.50 0.15 47.67 0.00 42.00 0.00 47.07 0.03 LLaMA-3.1-8B-Instruct 8B 55.00 0.15 49.25 0.15 55.50 0.07 48.67 0.07 52.88 0.11 GPT-4o-mini 8B 58.07 0.07 41.50 0.20 55.83 0.03 63.67 0.00 54.65 0.08 Qwen2.5-14B-Instruct 14B 55.55 0.00 59.75 0.25 51.93 0.00 65.53 0.00 56.75 0.05 GPT-4o 200B 55.19 0.22 61.25 0.25 57.50 0.03 62.33 0.07 58.42 0.14 Deepseek-R1 671B 60.19 0.15 54.50 0.25 53.00 0.00 62.33 0.07 56.96 0.11 LLaMA-3.2-3B-Instruct (SFT) 3B 54.81 0.07 60.00 0.20 63.17 0.13 47.33 0.00 57.45 0.11 LLaMA-3.2-3B-Instruct (Ours) 3B 56.89 0.04 2.25 0.20 65.17 0.10 62.00 0.07 61.59 0.10 Qwen2-7B-Instruct (SFT) 7B 59.26 0.07 65.25 0.30 59.83 0.10 54.00 0.00 59.89 0.12 Qwen2-7B-Instruct (Ours) 7B 61.48 0.15 67.75 0.30 66.67 0.07 65.33 0.00 65.16 0.13