An Effective Framework to Help Large Language Models Handle Numeric-involved Long-context Tasks
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated remarkable capabilities in handling long texts and have almost perfect performance in traditional retrieval tasks. However, their performance significantly degrades when it comes to numerical calculations in the long-context. Numeric-involved long-context tasks typically cannot be addressed by current LLMs in normal settings due to their inherent limitations in simultaneously handling complex and massive information. Some CoT like prompting methods can improve accuracy but demands massive output tokens, which is costly and slow. To address this issue, we propose a workflow, which decompose a numeric-involved long-context task into 4 low-level subtasks: judging, extracting and processing with code and conclusion. The former 2 subtasks is relatively simple, which allows us to use smaller models for efficiently processing long context. When numerical calculations are required, we use code generated by LLMs to avoid the disadvantage of LLM not being good at calculations. The results in 2 numeric-involved long-context benchmarks demonstrate our workflow can not only improve accuracy, but also significantly reduce the cost of API calls.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 6 of its 8 references that are in the map. First posted on arXiv 15 Nov 2024.
Builds on
6 of 8 references.
References · 6
- 2023GPT-4 Technical Reportcited by 18,396
- 2024Qwen2 Technical Reportcited by 2,120
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 872
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
- 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 122
- 2024Long-context Language Models Fail in Basic Retrieval Tasks Without Sufficient Reasoning Stepscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Retrieval meets Long Context Large Language Models
- 2025Systematic Evaluation of Optimization Techniques for Long-Context Language Models
- 2025LongFuncEval: Measuring the effectiveness of long context models for function calling
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving
- 2025Generalizing From Short to Long: Effective Data Synthesis for Long-Context Instruction Tuning
- 2024ACER: Automatic Language Model Context Extension via Retrieval