Think in Sentences: Explicit Sentence Boundaries Enhance Language Model's Capabilities
Organizations: Department of Computer Science and Engineering Southern University of Science and Technology
Abstract
Researchers have explored different ways to improve large language models (LLMs)' capabilities via dummy token insertion in contexts. However, existing works focus solely on the dummy tokens themselves, but fail to leverage the inherent sentence-level structure of natural language. This is a critical oversight, as LLMs acquire linguistic capabilities through exposure to human-generated texts, which are inherently structured at the sentence level. Motivated by this gap, we propose an approach that inserts delimiters at sentence boundaries in LLM inputs, which not only integrates dummy tokens into the context, but also facilitates LLMs with sentence-by-sentence processing behavior during reasoning. Two concrete methods: (1). In-context learning and (2). Supervised fine-tuning are experimented using 7B models to 600B Deepseek-V3. Our results demonstrate consistent improvements across various tasks, with notable gains of up to 7.7% on GSM8k and 12.5% on DROP. Furthermore, the fine-tuned LLMs can incorporate sentence awareness evidenced by their internal representations. Our work establishes a simple yet effective technique for enhancing LLM's capabilities, offering promising directions for cognitive-inspired LLM enhancement paradigm.
Figures & tables
| Qwen2-7B-Inst | Llama3-8B-Inst | Qwen2.5-72B-Inst | Deepseek-V3 | |||||||||
| Dataset | base | seg | base | seg | base | seg | base | seg | ||||
| MMLU | 64.43 | 69.96 | +5.53% | 62.89 | 67.28 | +4.39% | 86.64 | 86.40 | -0.24% | 74.04 | 74.82 | +0.78% |
| GSM8k | 73.92 | 81.65 | +7.73% | 75.51 | 78.01 | +2.5% | 90.14 | 91.96 | +1.82% | 95.00 | 95.30 | +0.3% |
| MATH | 53.33 | 54.30 | +0.97% | 32.60 | 32.26 | -0.34% | 73.04 | 75.78 | +2.74% | 89.40 | 90.60 | +1.2% |
| DROP | 38.14 | 50.64 | +12.50% | 46.39 | 53.16 | +6.77% | 58.74 | 60.38 | +1.64% | 75.10 | 79.10 | +4% |
| MMLU | GSM8k | MATH | DROP | MMLU-pro | GPQA | HumanEval | |
| Std-FT | 59.02 | 72.48 | 30.86 | 48.50 | 34.25 | 26.93 | 56.71 |
| Pause-FT | 56.11 | 75.44 | 33.50 | 55.97 | 35.71 | 24.16 | - |
| Seg-FT | 60.13 | 74.91 | 31.58 | 54.26 | 40.71 | 27.43 | 62.80 |
| Std-FT | Seg-FT | Improvement | |
| Prob | 61.90 | 61.19 | -0.71% |
| CoT | 59.02 | 60.13 | +1.12% |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| GSM8k | DROP | |
| no-seg | 71.42 | 50.90 |
| seg | 74.91 | 54.26 |
Structured Prompting
Structured prompting organizes instructions, context, reasoning steps, or output schemas to make language-model behavior more reliable and controllable.
See all 22 papers