Reclaiming Low-Quality Instruction Data with Rule-Guided LLM Reconstruction
Organizations: The Hong Kong University of Science and Technology (Guangzhou) · University of California, Santa Cruz · Hong Kong Baptist University
Abstract
Data selection for supervised fine-tuning (SFT) often discards low-scoring instruction examples that may retain useful supervision. We propose a rule-guided LLM reconstruction framework to reclaim this information. The framework identifies low-scoring samples through LLM-based rating and score correction, selects semantically representative sources, and reconstructs instruction-response pairs through strategy-guided generation, criteria-based validation, and failure-guided repair. From 123,786 low-scoring samples, it constructs 54,888 training examples. Across three 7B/8B base LLMs, the reconstructed data achieves higher average downstream performance than the low-scoring source set and all evaluated data-selection baselines. Despite using substantially fewer examples than the full source dataset (approximately 300K), it achieves higher reported average scores than full-data training across all three base models. Stepwise ablations identify rule-guided reconstruction as the largest source of observed improvements over direct fusion, while a manual audit reveals remaining limitations in source integration and answer faithfulness. These findings support reconstruction as a complementary approach to selection-based SFT data curation.
Figures & tables
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Mistral-7B-v0.3 | ||||||
| Vanilla Base Model | 59.7 | 30.4 | 38.0 | 47.6 | 54.8 | 46.1 |
| LQ Set (123786) | 47.5 | 43.7 | 43.5 | 52.7 | 41.1 | 45.7 |
| HQ Set (131247) | 58.4 | 39.2 | 46.0 | 55.5 | 52.5 | 50.3 |
| Full Set (300932) | 52.6 10.5 | 43.1 0.6 | 43.5 0.0 | 53.2 0.9 | 51.4 2.9 | 48.7 2.6 |
| Completion Length | 25.4 | 43.5 | 43.0 | 55.7 | 45.8 | 42.7 |
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Llama-3.1-8B | ||||||
| Vanilla Base Model | 64.1 | 32.9 | 58.0 | 55.3 | 22.1 | 46.5 |
| LQ Set (123786) | 52.7 | 44.3 | 57.0 | 61.0 | 43.9 | 51.8 |
| HQ Set (131247) | 62.3 | 41.8 | 57.5 | 59.3 | 58.9 | 56.0 |
| Full Set (300932) | 62.1 2.0 | 40.7 1.9 | 60.8 0.4 | 59.2 0.1 | 61.4 2.1 | 56.8 1.3 |
| Completion Length | 59.5 | 45.8 | 60.0 | 58.6 | 61.2 | 57.0 |
| Dataset | MMLU (EM ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Mistral-7B-v0.3 | |||||
| LQ Set (123786) | 47.5 | 43.5 | 52.7 | 41.1 | 46.2 |
| HQ Set (131247) | 58.4 | 46.0 | 55.5 | 52.5 | 53.1 |
| Full Set (300932) | 52.6 10.5 | 43.5 0.0 | 53.2 0.9 | 51.4 2.9 | 50.1 3.1 |
| Ours-20% | 56.7 3.7 | 42.8 1.8 | 52.2 3.4 | 53.2 3.2 | 51.2 2.1 |
| Ours-60% | 56.0 4.4 | 45.8 0.4 | 52.5 0.3 | 53.2 4.2 | 51.9 2.0 |
| Criterion | Passed | Rate |
| Source integration | 20/30 | 66.7% |
| Context completeness | 28/30 | 93.3% |
| Question clarity | 28/30 | 93.3% |
| Answer faithfulness | 18/30 | 60.0% |
| Overall usability | 14/30 | 46.7% |
| All five criteria | 14/30 | 46.7% |
Appendix figures & tables41 assets
Supplementary material from the paper’s appendix.
Appendix
| Datasets | Derived From | Data size | |||
| Stanford Alpaca | Generated w/ Davinci-003 | 52K | 1.0 | 23.5 | 56.4 |
| Flan V2 | Human Annotation | 100K | 1.0 | 304.1 | 27.7 |
| Open-Assistant 1 | Human Annotation | 33K | 1.6 | 32.3 | 189.1 |
| WizardLM | ChatGPT Annotation | 100K | 1.0 | 122.3 | 352.5 |
| Dolly | Human Annotation | 15K | 1.0 | 99.5 | 79.3 |
| Stage | Hyperparameter or Setting | Value |
| Steps 1, 3 | External LLM | gpt-4o-mini-2024-07-18 |
| Steps 1–2 | Embedding model | BAAI/bge-large-en-v1.5 |
| Step 1 | Mapped quality-score range | – |
| Step 1 | Low-/high-quality score partition | LQ: – ; HQ: – |
| Step 2 | One-hop cosine-similarity threshold | |
| Step 2 | Candidate number of sub-clusters ( ) |
| Hyperparameter | Value |
| LoRA rank | 64 |
| LoRA scaling parameter | 16 |
| Batch size | 128 |
| Learning rate | |
| Training epochs | 5 |
| LoRA dropout | 0.1 |
| LESS ( 2024 ) | MathFusion ( 2025 ) | Evol-Instruct ( 2024 ) | Ours | |
| Average API Cost (in USD) | 0 | 0.004 | 0.003 | 0.005 |
| GPU Runtime (in GPU-hours) | 152.5 | 17 | 17 | 17 |
| Validation Set | Required | Not Required | Not Required | Not Required |
| Dataset | MMLU (EM ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Qwen2.5-7B | |||||
| Vanilla Base Model | 71.8 | 83.5 | 58.1 | 25.3 | 59.7 |
| LQ Set (123786) | 69.3 | 77.5 | 58.6 | 55.4 | 65.2 |
| HQ Set (131247) | 72.2 | 79.0 | 60.4 | 60.2 | 68.0 |
| Full Set (300932) | 72.0 | 78.0 | 59.8 | 65.2 | 68.8 |
| Completion Length | 67.2 | 75.5 | 57.9 | 62.7 | 65.8 |
| Manual quality criterion | Passed | Rate |
| Source integration | 20/30 | 66.7% |
| Context completeness | 28/30 | 93.3% |
| Question clarity | 28/30 | 93.3% |
| Answer faithfulness and consistency | 18/30 | 60.0% |
| Overall transformation usability | 14/30 | 46.7% |
| All five criteria | 14/30 | 46.7% |
| Reconstruction setting | Audited | Passed | Rate |
| Pairwise cross-cluster | 13 | 11/13 | 84.6% |
| Multi-source intra-cluster | 17 | 9/17 | 52.9% |
| Example | SI | CC | QC | AF | OU |
| Sick-leave email | 1 | 1 | 1 | 1 | 1 |
| La Paz / botany | 0 | 0 | 1 | 0 | 0 |
| Apps as companions | 0 | 0 | 0 | 0 | 0 |
| Dataset | MMLU (EM ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Mistral-7B-v0.3 | |||||
| LQ Set (123786) | 47.5 | 43.5 | 52.7 | 41.1 | 46.2 |
| HQ Set (131247) | 58.4 | 46.0 | 55.5 | 52.5 | 53.1 |
| Full Set (300932) | 60.0 | 43.5 | 52.5 | 53.4 | 52.4 |
| Ours-20% | 59.3 | 41.5 | 54.6 | 55.4 | 52.7 (+6.5) |
| Ours-40% | 58.9 | 42.0 | 50.5 | 56.8 | 52.1 (+5.9) |
| Dataset | MMLU (EM ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Qwen2.5-7B | |||||
| Vanilla Base Model | 71.8 | 83.5 | 58.1 | 25.3 | 59.7 |
| LQ Set (123786) | 69.3 | 77.5 | 58.6 | 55.4 | 65.2 |
| HQ Set (131247) | 72.2 | 79.0 | 60.4 | 60.2 | 68.0 |
| Full Set (300932) | 72.0 | 78.0 | 59.8 | 65.2 | 68.8 |
| Intra-20% | 71.2 | 86.5 | 58.1 | 67.8 | 70.9 (+5.7) |
| Dataset | MMLU (EM ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Mistral-7B-v0.3 | |||||
| Vanilla Base Model | 59.7 | 38.0 | 47.6 | 54.8 | 50.0 |
| LQ Set (123786) | 47.5 | 43.5 | 52.7 | 41.1 | 46.2 |
| HQ Set (131247) | 58.4 | 46.0 | 55.5 | 52.5 | 53.1 |
| Full Set (300932) | 60.0 | 43.5 | 52.5 | 53.4 | 52.4 |
| Inter-20% | 59.4 | 37.0 | 54.3 | 57.5 | 52.1 (+5.9) |
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Llama-3.1-8B | ||||||
| Vanilla Base Model | 64.1 | 32.9 | 58.0 | 55.3 | 22.1 | 46.5 |
| LQ Set (123786) | 52.7 | 44.3 | 57.0 | 61.0 | 43.9 | 51.8 |
| HQ Set (131247) | 62.3 | 41.8 | 57.5 | 59.3 | 58.9 | 56.0 |
| Full Set (300932) | 63.5 | 42.0 | 61.0 | 59.1 | 62.8 | 57.7 |
| HQ+Inter-40% | 62.0 | 45.3 | 58.0 | 59.9 | 55.0 | 56.0 (+0.0) |
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Qwen2.5-7B | ||||||
| Vanilla Base Model | 71.8 | 11.1 | 83.5 | 58.1 | 25.3 | 50.0 |
| LQ Set (123786) | 69.3 | 43.5 | 77.5 | 58.6 | 55.4 | 60.9 |
| HQ Set (131247) | 72.2 | 38.2 | 79.0 | 60.4 | 60.2 | 62.0 |
| Full Set (300932) | 72.0 | 41.4 | 78.0 | 59.8 | 65.2 | 63.3 |
| HQ+Intra-40% | 72.0 | 36.3 | 72.5 | 58.7 | 63.6 | 60.6 |
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Qwen2.5-7B | ||||||
| Vanilla Base Model | 71.8 | 11.1 | 83.5 | 58.1 | 25.3 | 50.0 |
| LQ Set (123786) | 69.3 | 43.5 | 77.5 | 58.6 | 55.4 | 60.9 |
| HQ Set (131247) | 72.2 | 38.2 | 79.0 | 60.4 | 60.2 | 62.0 |
| Full Set (300932) | 72.0 | 41.4 | 78.0 | 59.8 | 65.2 | 63.3 |
| HQ+Inter-20% | 71.6 | 37.3 | 73.0 | 59.5 | 64.0 | 61.1 |
| Dataset | MMLU (EM ) | TruthfulQA (I T ) | GSM8K (EM ) | BBH (EM ) | TydiQA (1-Shot F1 ) | Average |
| Base Model: Mistral-7B-v0.3 | ||||||
| Vanilla Base Model | 59.7 | 30.4 | 38.0 | 47.6 | 54.8 | 46.1 |
| LQ Set (123786) | 47.5 | 43.7 | 43.5 | 52.7 | 41.1 | 45.7 |
| HQ Set (131247) | 58.4 | 39.2 | 46.0 | 55.5 | 52.5 | 50.3 |
| Full Set (300932) | 60.0 | 43.5 | 43.5 | 52.5 | 53.4 | 50.6 |
| HQ+Ours-40% | 57.8 | 42.4 | 45.0 | 54.4 | 55.2 | 51.0 |