Topologies of Reasoning: Demystifying Chains, Trees, and Graphs of Thoughts
Besta, Maciej, Memedi, Florim, Zhang, Zhenyu, Gerstenberger, Robert, Blach, Nils, Nyczyk, Piotr, Copik, Marcin, Kwaśniewski, Grzegorz, Müller, Jürgen, Gianinazzi, Lukas, Kubicek, Ales, Niewiadomski, Hubert, Mutlu, Onur, Hoefler, Torsten
–arXiv.org Artificial Intelligence
The field of natural language processing (NLP) has witnessed significant progress in recent years, with a notable focus on improving large language models' (LLM) performance through innovative prompting techniques. Among these, prompt engineering coupled with structures has emerged as a promising paradigm, with designs such as Chain-of-Thought, Tree of Thoughts, or Graph of Thoughts, in which the overall LLM reasoning is guided by a structure such as a graph. As illustrated with numerous examples, this paradigm significantly enhances the LLM's capability to solve numerous tasks, ranging from logical or mathematical reasoning to planning or creative writing. To facilitate the understanding of this growing field and pave the way for future developments, we devise a general blueprint for effective and efficient LLM reasoning schemes. For this, we conduct an in-depth analysis of the prompt execution pipeline, clarifying and clearly defining different concepts. We then build the first taxonomy of structure-enhanced LLM reasoning schemes. We focus on identifying fundamental classes of harnessed structures, and we analyze the representations of these structures, algorithms executed with these structures, and many others. We refer to these structures as reasoning topologies, because their representation becomes to a degree spatial, as they are contained within the LLM context. Our study compares existing prompting schemes using the proposed taxonomy, discussing how certain design choices lead to different patterns in performance and cost. We also outline theoretical underpinnings, relationships between prompting and others parts of the LLM ecosystem such as knowledge bases, and the associated research challenges. Our work will help to advance future prompt engineering techniques.
arXiv.org Artificial Intelligence
Jan-25-2024
- Country:
- South America > Colombia
- Meta Department > Villavicencio (0.04)
- North America
- Dominican Republic (0.04)
- United States
- District of Columbia > Washington (0.04)
- Maryland (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Texas > Dallas County
- Dallas (0.04)
- Colorado > Denver County
- Denver (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Massachusetts > Middlesex County
- Cambridge (0.04)
- Georgia > Fulton County
- Atlanta (0.04)
- Alaska > Anchorage Municipality
- Anchorage (0.04)
- California
- San Francisco County > San Francisco (0.14)
- San Diego County > San Diego (0.04)
- Orange County > Newport Beach (0.04)
- Puerto Rico > Peñuelas
- Peñuelas (0.04)
- Canada
- Ontario > Toronto (0.04)
- Quebec > Capitale-Nationale Region
- Québec (0.04)
- Quebec City (0.04)
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Europe
- Germany > Berlin (0.04)
- Switzerland > Zürich
- Zürich (0.04)
- Italy > Apulia
- Bari (0.04)
- Portugal > Lisbon
- Lisbon (0.04)
- Middle East > Cyprus
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- France > Auvergne-Rhône-Alpes
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Asia
- South America > Colombia
- Genre:
- Workflow (1.00)
- Research Report (1.00)
- Overview (1.00)
- Industry:
- Leisure & Entertainment > Sports (0.46)
- Technology: