用知识图谱生成更丰富的合成数据,提升小语料下大模型的泛化能力。
Synthesize-on-Graph: Knowledgeable Synthetic Data Generation for Continue Pre-training of Large Language Models
- 构建文档间知识关联的图结构,通过图遍历采样生成多样合成数据。
- 在多跳问答任务上超越现有方法,长文本理解也表现优异。
- 适合低资源领域知识增强,尤其适用于数据受限的垂直场景。
大型语言模型虽取得显著进展,但在小规模、专有语料上的学习仍存在数据效率低的问题。现有合成数据生成方法聚焦于文档内内容,忽视跨文档的知识关联,限制了内容的多样性与深度。本文提出Synthetic-on-Graph(SoG)框架,通过从原始语料中提取实体与概念构建上下文图,表示跨文档关联,并采用图遍历策略进行知识关联采样,从而提升合成数据的多样性和连贯性,使模型能学习复杂知识结构并处理罕见知识。为进一步提高合成数据质量,引入链式思维(CoT)和对比澄清(CC)两种互补策略,增强推理能力与判别力。大量实验表明,SoG在多跳问答和领域特定问答任务上优于当前最优方法,长文本阅读理解也表现良好。结果凸显其卓越的泛化能力。本工作推动了合成数据生成范式的发展,为大模型在数据稀缺场景下的高效知识获取提供了实用方案。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have achieved remarkable success but remain data-inefficient, especially when learning from small, specialized corpora with limited and proprietary data. Existing synthetic data generation methods for continue pre-training focus on intra-document content and overlook cross-document knowledge associations, limiting content diversity and depth. We propose Synthetic-on-Graph (SoG), a synthetic data generation framework that incorporates cross-document knowledge associations for efficient corpus expansion. SoG constructs a context graph by extracting entities and concepts from the original corpus, representing cross-document associations, and employing a graph walk strategy for knowledge-associated sampling. This enhances synthetic data diversity and coherence, enabling models to learn complex knowledge structures and handle rare knowledge. To further improve the quality of synthetic data, we integrate two complementary strategies, Chain-of-Thought (CoT) and Contrastive Clarifying (CC), to enhance both reasoning capability and discriminative power. Extensive experiments demonstrate that SoG surpasses state-of-the-art (SOTA) methods on multi-hop and domain-specific question answering, while achieving competitive performance on long-context reading comprehension. These results highlight the superior generalization ability of SoG. Our work advances the paradigm of synthetic data generation and offers practical solutions for efficient knowledge acquisition in LLMs, particularly for downstream tasks and domains with limited training data.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。