Leveraging the Power of LLMs and Graph Transformers in Reasoning and Planning

Pavan Keerthi

Hatched by Pavan Keerthi

Dec 21, 2023

3 min read

0

Leveraging the Power of LLMs and Graph Transformers in Reasoning and Planning

Introduction:
In recent years, there have been significant advancements in the field of natural language processing, particularly with models like Graph Transformers and Language Model-based Planners (LLMs). These models have shown great potential in reasoning and planning tasks, although some skepticism remains regarding their true capabilities. In this article, we will explore the possibilities and limitations of LLMs and Graph Transformers in reasoning and planning, highlighting their unique features and discussing how they can be effectively utilized in conjunction with external solvers and human expertise.

LLMs: A Hub of Idea Generation:
One of the key strengths of LLMs lies in their exceptional ability to generate ideas and potential candidate solutions for various tasks, including those involving reasoning and planning. While it is important to note that LLMs may not possess autonomous reasoning capabilities, their role in idea generation can be harnessed effectively in "LLM-Modulo" setups. In such setups, LLMs work in tandem with model-based planners, external solvers, or expert humans to refine and validate the generated ideas.

The Role of Graph Transformers in Generalizing Transformers to Graphs:
Graph Transformers provide a powerful framework for generalizing transformers to arbitrary graphs. When applying transformers to graph structures, two crucial considerations come into play: handling sparse graph structures during attention and incorporating positional encodings at the inputs. By addressing these challenges, Graph Transformers enable the application of transformer-based models to a wide range of graph-based tasks, including reasoning and planning.

The Performance of LLMs in Planning Tasks:
To evaluate the planning capabilities of LLMs, researchers have conducted experiments using GPT4, a state-of-the-art LLM model. The effectiveness of approximate retrieval was reduced by obfuscating the names of actions and objects in planning problems. Surprisingly, GPT4's empirical performance drastically decreased in these obfuscated domains, even though standard AI planners had no trouble with the same obfuscation. However, it is worth noting that GPT4 still exhibited 30% empirical accuracy in the Blocks World domain, showcasing its potential in certain planning tasks.

Overcoming Limitations with External Verifiers:
To overcome the limitations of LLMs, particularly in the context of planning, one approach is to incorporate external model-based plan verifiers. These verifiers can perform back prompting and certify the correctness of the final solution generated by the LLM. By leveraging external verifiers, the reliance on the Clever Hans effect, where the LLM is steered by human knowledge, can be minimized. The combination of LLMs and external verifiers enables a more robust and reliable planning process.

Actionable Advice for Leveraging LLMs and Graph Transformers:

  1. Identify the strengths and limitations of LLMs: Understanding the capabilities of LLMs in idea generation and their lack of autonomous reasoning is crucial for effectively utilizing them in planning tasks. Avoid ascribing autonomous reasoning capabilities to LLMs and instead focus on leveraging their idea generation potential.

  2. Harness the power of Graph Transformers: When working with graph-based tasks, such as reasoning and planning, consider incorporating Graph Transformers to generalize transformer-based models. Pay attention to handling sparse graph structures during attention and incorporating positional encodings to ensure optimal performance.

  3. Combine LLMs with external solvers and experts: To enhance the reliability and accuracy of planning tasks, leverage external model-based plan verifiers, expert humans, or other solvers in conjunction with LLMs. This collaborative approach can help validate and refine the solutions generated by LLMs, reducing the reliance on the Clever Hans effect.

Conclusion:
LLMs and Graph Transformers offer promising avenues for reasoning and planning tasks. While LLMs excel in idea generation and can be effectively utilized in conjunction with external solvers, Graph Transformers provide a framework to extend transformers to graph structures. By understanding the strengths and limitations of LLMs and incorporating external verifiers, we can harness the power of these models and enhance the accuracy and reliability of reasoning and planning processes.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣