arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.00740cs.AIcs.LG
收藏

通过结构化上下文注入实现基于大语言模型的高效图理解

Efficient Graph Understanding with LLMs via Structured Context Injection

Indian Institute of Technology, Delhi(印度理工学院德里分校)

Govind Waghmare, Sumedh BG, Sonia Gupta, Srikanta Bedathur

AI总结:

本研究提出无需微调的结构化上下文注入框架,将任务信息嵌入输入引导大语言模型解决图推理任务,在多类图任务上实现性能提升,兼具成本效益与可扩展性。

摘要:

大语言模型(LLMs)已展现出解决跨领域问题的强大能力,包括传统上由符号或算法方法处理的图相关任务。在本研究中,我们提出了一种结构化上下文注入框架,该框架将任务特定信息系统性地嵌入输入中,以引导LLMs解决各类图问题。我们的方法无需对LLMs进行微调,具备成本效益高、轻量化的特点。我们观察到,某些图推理任务对LLMs而言仍具挑战性,除非将其映射到有概念基础的表示中。然而,通过微调或重复多步查询实现这类映射的成本高昂且效率低下。我们的方法提供了一种实用替代方案:直接将结构化上下文注入输入,使LLM能够隐式地将任务与有基础的概念空间对齐。我们使用轻量化模型和大模型在多个图任务上评估了该方法,阐明了准确率与计算成本之间的权衡关系。结果显示性能得到持续提升,表明结构化输入上下文的表现可媲美甚至超越更复杂的方法。我们的研究结果凸显了结构化上下文注入作为一种有效且可扩展的策略,在利用LLMs实现图理解方面的价值。

英文摘要:

Large Language Models (LLMs) have shown strong capabilities in solving problems across domains, including graph-related tasks traditionally addressed by symbolic or algorithmic methods. In this work, we present a framework for structured context injection, where task-specific information is systematically embedded in the input to guide LLMs in solving a wide range of graph problems. Our method does not require fine-tuning of LLMs, making it cost-efficient and lightweight. We observe that certain graph reasoning tasks remain challenging for LLMs unless they are mapped to conceptually grounded representations. However, achieving such mappings through fine-tuning or repeated multi-step querying can be expensive and inefficient. Our approach offers a practical alternative by injecting structured context directly into the input, enabling the LLM to implicitly align the task with grounded conceptual spaces. We evaluate the approach on multiple graph tasks using both lightweight and large models, highlighting the trade-offs between accuracy and computational cost. The results demonstrate consistent performance improvements, showing that structured input context can rival or surpass more complex approaches. Our findings underscore the value of structured context injection as an effective and scalable strategy for graph understanding with LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑