paper-with-me

Papers

Graph Reasoning with Large Language Models via Pseudo-code Prompting

2024-09-26 · Konstantinos Skianis, Giannis Nikolentzos, Michalis Vazirgiannis

Large language models (LLMs) have recently achieved remarkable success in various reasoning tasks in the field of natural language processing. This success of LLMs has also motivated their use in graph-related tasks. Among others, recent work has explored whether LLMs can solve graph problems such as counting the number of connected components of a graph or computing the shortest path distance between two nodes. Although LLMs possess preliminary graph reasoning abilities, they might still struggle to solve some seemingly simple problems. In this paper, we investigate whether prompting via pseudo-code instructions can improve the performance of LLMs in solving graph problems. Our experiments demonstrate that using pseudo-code instructions generally improves the performance of all considered LLMs. The graphs, pseudo-code prompts, and evaluation code are publicly available.

📄 PDF Abstract BibTeX arXiv:2409.17906

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Pseudocode-Injection Magic: Enabling LLMs to Tackle Graph Computational Tasks

2025-01-23 · Chang Gong, Wanrui Bian, Zhijie Zhang, Weiguo Zheng

Graph computational tasks are inherently challenging and often demand the development of advanced algorithms for effective solutions. With the emergence of large language models (LLMs), researchers have begun investigati…

Code GenerationComputational Efficiency

Language Models as Compilers: Simulating Pseudocode Execution Improves Algorithmic Reasoning in Language Models

2024-04-03 · Hyungjoo Chae, Yeonghyeon Kim, Seungone Kim, Kai Tzu-iunn Ong 외

Algorithmic reasoning refers to the ability to understand the complex patterns behind the problem and decompose them into a sequence of reasoning steps towards the solution. Such nature of algorithmic reasoning makes it …

Commonsense for Zero-Shot Natural Language Video Localization

2023-12-29 · Meghana Holla, Ismini Lourentzou

Zero-shot Natural Language-Video Localization (NLVL) methods have exhibited promising results in training NLVL models exclusively with raw video data by dynamically generating video segments and pseudo-query annotations.…

CoT-RAG: Integrating Chain of Thought and Retrieval-Augmented Generation to Enhance Reasoning in Large Language Models

2025-04-18 · Feiyang Li, Peng Fang, Zhan Shi, Arijit Khan 외

Chain-of-thought (CoT) reasoning boosts large language models' (LLMs) performance on complex tasks but faces two key limitations: a lack of reliability when solely relying on LLM-generated reasoning chains and interferen…

Knowledge GraphsRAGRetrieval-augmented Generation

PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimization

2025-06-02 · Zouying Cao, Runze Wang, Yifei Yang, Xinbei Ma 외

Large Language Model (LLM) agents have demonstrated impressive capabilities in handling complex interactive problems. Existing LLM agents mainly generate natural language plans to guide reasoning, which is verbose and in…

Language ModelingLanguage ModellingLarge Language Model