arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.18487cs.CL
收藏

行动胜于提示:大型语言模型在图推断中的大规模研究

Actions Speak Louder than Prompts: A Large-Scale Study of LLMs for Graph Inference

University of Oxford(牛津大学);Microsoft Research(微软研究院)

Ben Finkelshtein, Silviu Cucerzan, Sujay Kumar Jauhar, Ryen White

AI总结:

研究通过大规模评估揭示LLM在图推断中的表现,发现代码生成在长文本图中表现最佳,异质图上交互策略仍有效,且方法能灵活适应不同输入类型。

摘要:

大型语言模型(LLMs)越来越多地用于文本丰富的图机器学习任务,如欺诈检测和推荐系统等高影响力领域中的节点分类。然而,尽管兴趣激增,该领域缺乏对LLMs在与图数据交互能力的系统理解。在本工作中,我们开展了跨多个关键变量轴的大型、受控评估,以系统评估基于LLM的图推理方法在文本应用中的优缺点。这些轴包括LLM-图交互模式,比较提示、工具使用和代码生成;数据集领域,涵盖引文、网络链接、电子商务和社会网络;结构模式对比同质图和异质图;特征特性涉及短文本和长文本节点属性;以及模型配置,包括不同大小的LLM和推理能力。我们进一步通过系统地截断特征、删除边和移除标签来分析依赖性,以量化对输入类型的依赖。我们的发现提供了实用和可操作的指导。(1)作为代码生成器的LLM在图数据上整体表现最强,尤其在长文本或高度数图上,提示很快超过token预算,获得显著提升。(2)所有交互策略在异质图上仍有效,挑战了LLM方法在低同质性下崩溃的假设。(3)代码生成能够灵活地在结构、特征或标签之间调整依赖,以利用最有信息量的输入类型。这些发现为当前LLM-图交互模式的优缺点提供了全面视角,并突出了未来方法的关键设计原则。

英文摘要:

Large language models (LLMs) are increasingly used for text-rich graph machine learning tasks such as node classification in high-impact domains like fraud detection and recommendation systems. Yet, despite a surge of interest, the field lacks a principled understanding of the capabilities of LLMs in their interaction with graph data. In this work, we conduct a large-scale, controlled evaluation across several key axes of variability to systematically assess the strengths and weaknesses of LLM-based graph reasoning methods in text-based applications. The axes include the LLM-graph interaction mode, comparing prompting, tool-use, and code generation; dataset domains, spanning citation, web-link, e-commerce, and social networks; structural regimes contrasting homophilic and heterophilic graphs; feature characteristics involving both short- and long-text node attributes; and model configurations with varying LLM sizes and reasoning capabilities. We further analyze dependencies by methodically truncating features, deleting edges, and removing labels to quantify reliance on input types. Our findings provide practical and actionable guidance. (1) LLMs as code generators achieve the strongest overall performance on graph data, with especially large gains on long-text or high-degree graphs where prompting quickly exceeds the token budget. (2) All interaction strategies remain effective on heterophilic graphs, challenging the assumption that LLM-based methods collapse under low homophily. (3) Code generation is able to flexibly adapt its reliance between structure, features, or labels to leverage the most informative input type. Together, these findings provide a comprehensive view of the strengths and limitations of current LLM-graph interaction modes and highlight key design principles for future approaches.

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

↑