GLaM: Fine-Tuning Large Language Models for Domain Knowledge Graph Alignment via Neighborhood Partitioning and Generative Subgraph Encoding

LLM SFT HDFE KR / KRR LSKGAC Neural-Symbolic
2024年02月09日
将大型语言模型(LLMs)与基于特定领域数据的知识图谱集成,是朝着更强大和事实推理的方向迈出的重要一步。随着这些模型变得越来越强大,使它们能够在现实世界的知识图谱上进行多步推理并最小化幻觉是至关重要的。虽然大型语言模型擅长对话和文本生成,但它们在处理相互连接的实体的领域专业图谱时的推理能力仍然有限。例如,我们能否查询LLM,根据私人数据库中的关系和属性,确定特定目标的专业网络中的最佳联系人?答案是否定的——这些能力超出了当前的方法。然而,这个问题强调了必须解决的关键技术差距。许多高价值应用程序(如科学、安全和电子商务)依赖于编码独特结构、关系和逻辑约束的专有知识图谱。我们介绍了一个微调框架,用于开发与图形对齐的语言模型(GLaM),将知识图谱转换为带有标记的问答对的替代文本表示形式。我们证明,将模型基于特定的基于图形的知识进行基础,可以扩展模型的结构推理能力。我们的方法利用大型语言模型的生成能力创建数据集,并提出了一种有效的替代检索增强生成样式的方法。
Integrating large language models (LLMs) with knowledge graphs derived from domain-specific data represents an important advancement towards more powerful and factual reasoning. As these models grow more capable, it is crucial to enable them to perform multi-step inferences over real-world knowledge graphs while minimizing hallucination. While large language models excel at conversation and text generation, their ability to reason over domain-specialized graphs of interconnected entities remains limited. For example, can we query a LLM to identify the optimal contact in a professional network for a specific goal, based on relationships and attributes in a private database? The answer is no--such capabilities lie beyond current methods. However, this question underscores a critical technical gap that must be addressed. Many high-value applications in areas such as science, security, and e-commerce rely on proprietary knowledge graphs encoding unique structures, relationships, and logical constraints. We introduce a fine-tuning framework for developing Graph-aligned LAnguage Models (GLaM) that transforms a knowledge graph into an alternate text representation with labeled question-answer pairs. We demonstrate that grounding the models in specific graph-based knowledge expands the models' capacity for structure-based reasoning. Our methodology leverages the large-language model's generative capabilities to create the dataset and proposes an efficient alternate to retrieval-augmented generation styled methods.
许愿