Skip to main content

A Tree of Thoughts approach to LLMs suggests we have only scratched the surface of their power.

 



In a new paper by Long from Theta Labs 'Large Language Model Guided Tree-ofThought', Long hypothesises that there are two main contributing factors which limits the problem solving ability of LLMs:

Lack of long-term planning: LLMs are trained on massive datasets of text and code, but this data is typically organized in a linear fashion. This means that LLMs are not well-equipped to handle tasks that require long-term planning and strategic thinking.

Inability to explore multiple solutions: LLMs typically generate solutions to problems by following a single path. This means that they are not able to explore multiple possible solutions and choose the best one.

We believe that these two factors can be addressed by training LLMs on data that is organized in a more hierarchical fashion. This would allow LLMs to learn how to plan for the future and explore multiple possible solutions to problems.

So What is a Tree of Thoughts?

The Tree of Thoughts framework is a way of organising and representing knowledge that can be used to solve problems. It is based on the idea that all knowledge can be represented as a tree, with the root node representing the problem to be solved, and the leaves representing the possible solutions. The branches of the tree represent the different steps that need to be taken to solve the problem.

This framework can be used to translate classical insights about problem-solving into actionable methods for contemporary LMs. Classical problem-solving methods typically involve breaking down the problem into smaller subproblems, solving the subproblems, and then combining the solutions to the subproblems to solve the original problem. The Tree of Thoughts framework provides a way to do this in a systematic and organized way.

At the same time, LMs address a weakness of these classical methods, providing a way to solve complex problems that are not easily formalised, such as creative writing. Classical problem-solving methods are typically based on logic and reasoning, and they can be difficult to apply to problems that are not easily represented in this way. LMs, on the other hand, can be used to generate creative solutions to problems by exploring different possibilities and combinations of ideas.

Here is an example of how the Tree of Thoughts framework can be used to solve a problem. Let's say you want to write a story about a character who is lost in a forest. You could start by creating a tree with the root node "Lost in Forest." The first branch could be "Character is lost." The second branch could be "Character is scared." The third branch could be "Character is trying to find their way out." The leaves of the tree could be different possible solutions to the problem, such as "Character finds a path out of the forest," "Character meets a friendly animal who helps them find their way out," or "Character gets rescued by a search party."

Once you have created the tree, you can start to explore different possibilities and combinations of ideas. For example, you could start by generating a list of all the possible ways that the character could get lost in the forest. Then, you could start to brainstorm different ways that the character could find their way out of the forest. Once you have a few different ideas, you can start to flesh them out and write a story.


The paper from Long compliments another on ToT I've recently come across, 'Tree of Thoughts: Deliberate Problem Solving with Large Language Models', from: Yao, Yu, Zhao, Shafran, Griffiths, Cao and Narasimhan. 

What these two papers found, was somewhat remarkable: a 10x efficiency of answers for certain tasks. 

The deliberate Solving paper contains a warning at the end though, prior to the conclusion:

'ToT is a framework that empowers LMs to more autonomously and intelligently make decisions and solve problems. While current tasks are limited to reasoning and search problems, future applications involving interaction with external environments or humans could bring potential danger, e.g. facilitating harmful uses of LMs. On the other hand, ToT also improves the interpretability of model decisions and the opportunity for human alignment, as the resulting representations are readable, high-level language reasoning instead of implicit, low-level token values.'

It would seem, as tools like AutoGPT have already indicated, we are still only at an early stage of maximising the potential of the current set of LLMs that exist. 

Comments

Popular posts from this blog

What is happening inside of the black box?

  Neel Nanda is involved in Mechanistic Interpretability research at DeepMind, formerly of AnthropicAI, what's fascinating about the research conducted by Nanda is he gets to peer into the Black Box to figure out how different types of AI models work. Anyone concerned with AI should understand how important this is. In this video Nanda discusses some of his findings, including 'induction heads', which turn out to have some vital properties.  Induction heads are a type of attention head that allows a language model to learn long-range dependencies in text. They do this by using a simple algorithm to complete token sequences like [A][B] ... [A] -> [B]. For example, if a model is given the sequence "The cat sat on the mat," it can use induction heads to predict that the word "mat" will be followed by the word "the". Induction heads were first discovered in 2022 by a team of researchers at OpenAI. They found that induction heads were present in

OpenAI's NSA Appointment Raises Alarming Surveillance Concerns

  The recent appointment of General Paul Nakasone, former head of the National Security Agency (NSA), to OpenAI's board of directors has sparked widespread outrage and concern among privacy advocates and tech enthusiasts alike. Nakasone, who led the NSA from 2018 to 2023, will join OpenAI's Safety and Security Committee, tasked with enhancing AI's role in cybersecurity. However, this move has raised significant red flags, particularly given the NSA's history of mass surveillance and data collection without warrants. Critics, including Edward Snowden, have voiced their concerns that OpenAI's AI capabilities could be leveraged to strengthen the NSA's snooping network, further eroding individual privacy. Snowden has gone so far as to label the appointment a "willful, calculated betrayal of the rights of every person on Earth." The tech community is rightly alarmed, with many drawing parallels to dystopian fiction. The move has also raised questions about

Prompt Engineering: Expert Tips for a variety of Platforms

  Prompt engineering has become a crucial aspect of harnessing the full potential of AI language models. Both Google and Anthropic have recently released comprehensive guides to help users optimise their prompts for better interactions with their AI tools. What follows is a quick overview of tips drawn from these documents. And to think just a year ago there were countless YouTube videos that were promoting 'Prompt Engineering' as a job that could earn megabucks... The main providers of these 'chatbots' will hopefully get rid of this problem, soon. Currently their interfaces are akin to 1970's command lines, we've seen a regression in UI. Constructing complex prompts should be relegated to Linux lovers. Just a word of caution, even excellent prompts don't stop LLM 'hallucinations'. They can be mitigated against by supplementing a LLM with a RAG, and perhaps by 'Memory Tuning ' as suggested by Lamini (I've not tested this approach yet).