atlas

Research map / Large language models / Agents, code and math

Encoder of Thoughts: Enhancing Planning Ability in Language Agents Through Structural Embedding

AAAI 2025 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Encoder of Thoughts (EoT), a GNN-based graph transformer that encodes planning action graphs into special token embeddings fed to LLM agents, improving BFS/MCTS planning on GSM8K, MATH, and Blockworlds.

Problem

Complex reasoning structures used by planning-based prompting (ToT, GoT, RAP) exceed LLMs' ability to process and comprehend them, and describing graphs in natural language inflates token cost and confusion.

Approach

Encode the action graph with a graph transformer and project node-level structural embeddings into the LLM input space as soft tokens, so the generator and evaluator in search algorithms (BFS/MCTS) see compact structural information instead of textual paths; the encoder is trained on LLM-generated (Llama3-8B + ToT-style BFS) data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use EoT structural embeddings with BFS rather than the corresponding baselineLanguage agents · GSM8Kaccuracy: 0.4% in BFSHelped
Use EoT structural embeddings with MCTS rather than the corresponding baselineLanguage agents · GSM8Kaccuracy: 5.0% in MCTSHelped
Replace EoT embeddings with textual graph descriptions (ablation)Existing reasoning methods · GSM8KaccuracyHurt
Replace graph-transformer GNN with GCN (ablation)EoT-MCTS · GSM8KaccuracyNo clear effect
Remove the projection layer (ablation)EoT-MCTS · GSM8KaccuracyHurt
Remove the GNN (ablation)EoT-MCTS · GSM8KaccuracyHurt
Add all EoT paths as in-context demonstrations (ablation)CoT · GSM8Kaccuracy: 68.5 -> 71.6Helped
Add random EoT paths as in-context demonstrations (ablation)CoT · GSM8Kaccuracy: 68.5 -> 70.3No clear effect
Add incorrect EoT paths as in-context demonstrations (ablation)CoT · GSM8Kaccuracy: 68.5 -> 69.2No clear effect
Add correct EoT paths as in-context demonstrations (ablation)CoT · GSM8Kaccuracy: 68.5 -> 73.2Helped
Use EoT structural embeddings with BFSLanguage agents · MATHaccuracy: 34.6 -> 36.7Helped
Use EoT structural embeddings with MCTSLanguage agents · MATHaccuracy: 32.1 -> 37.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K Blockworlds MATH

Benchmarks: GSM8K MATH Blockworlds

Metrics: solve rate accuracy

Baselines: CoT Self-Refine ToT-BFS RAP-MCTS Prompt-tuning Textual graph

Builds on: Tree of Thoughts Reasoning via Planning Graph Transformer Prompt tuning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy