Agentic Graph of Thoughts: a Reasoning Framework for LLM Agents

Raggini, Marco (2026) Agentic Graph of Thoughts: a Reasoning Framework for LLM Agents. [Laurea magistrale], Università di Bologna, Corso di Studio in Ingegneria e scienze informatiche [LM-DM270] - Cesena
Documenti full-text disponibili:
[thumbnail of Thesis] Documento PDF (Thesis)
Disponibile con Licenza: Creative Commons: Attribuzione - Non commerciale - Condividi allo stesso modo 4.0 (CC BY-NC-SA 4.0)

Download (2MB)

Abstract

Modern Large Language Models (LLMs) exhibit structural limitations that reduce their reliability, including opaque reasoning, error propagation, and limited exploration of alternative solution paths. Existing prompting techniques such as Chain of Thoughts (CoT), Tree of Thoughts (ToT), and Graph of Thoughts (GoT) partially make reasoning more explicit, but GoT-style approaches usually require task-specific graph structures designed before execution. This thesis introduces an Agentic Graph of Thoughts (AGoT) architecture based on a runtime-generated graph, in which the LLM reasoning is guided by a directed graph constructed dynamically during execution. Such a graph contains various kinds of nodes, each representing a specific step: reasoning generation, tool invocation, response evaluation, and backtracking to alternative paths. Moreover, this approach supports the dynamic tool crafting mechanism when no available tool is sufficient to solve the problem. A dedicated agent generates and registers new tools at runtime, extending the system’s capabilities without requiring human intervention. Intermediate reasoning process is evaluated by an LLM judge with an adaptive threshold based on the estimated complexity of the problem. The framework is evaluated on the Hendrycks MATH benchmark, comparing the proposed architecture against a Zero-Shot CoT baseline across three different Gemini models. The results suggest that the AGoT can make more robust models with stronger reasoning capabilities, where the backtracking mechanism and multi-path exploration help recover from incorrect intermediate steps.

Abstract
Tipologia del documento
Tesi di laurea (Laurea magistrale)
Autore della tesi
Raggini, Marco
Relatore della tesi
Correlatore della tesi
Scuola
Corso di studio
Ordinamento Cds
DM270
Parole chiave
LLM,Large Language Model,Agentic LLM,Agent,GoT,Graph of Thoughts,LLM Reasoning,Tool Invocation
Data di discussione della Tesi
16 Luglio 2026
URI

Altri metadati

Statistica sui download

Gestione del documento: Visualizza il documento

^