Saved in:
Bibliographic Details
Main Authors: Alon, Yoav, David, Cristina
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.13501
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929547918704640
author Alon, Yoav
David, Cristina
author_facet Alon, Yoav
David, Cristina
contents Large Language Models (LLMs) were shown to struggle with long-term planning, which may be caused by the limited way in which they explore the space of possible solutions. We propose an architecture where a Reinforcement Learning (RL) Agent guides an LLM's space exploration: (1) the Agent has access to domain-specific information, and can therefore make decisions about the quality of candidate solutions based on specific and relevant metrics, which were not explicitly considered by the LLM's training objective; (2) the LLM can focus on generating immediate next steps, without the need for long-term planning. We allow non-linear reasoning by exploring alternative paths and backtracking. We evaluate this architecture on the program equivalence task, and compare it against Chain of Thought (CoT) and Tree of Thoughts (ToT). We assess both the downstream task, denoting the binary classification, and the intermediate reasoning steps. Our approach compares positively against CoT and ToT.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13501
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Integrating Large Language Models and Reinforcement Learning for Non-Linear Reasoning
Alon, Yoav
David, Cristina
Machine Learning
Programming Languages
Large Language Models (LLMs) were shown to struggle with long-term planning, which may be caused by the limited way in which they explore the space of possible solutions. We propose an architecture where a Reinforcement Learning (RL) Agent guides an LLM's space exploration: (1) the Agent has access to domain-specific information, and can therefore make decisions about the quality of candidate solutions based on specific and relevant metrics, which were not explicitly considered by the LLM's training objective; (2) the LLM can focus on generating immediate next steps, without the need for long-term planning. We allow non-linear reasoning by exploring alternative paths and backtracking. We evaluate this architecture on the program equivalence task, and compare it against Chain of Thought (CoT) and Tree of Thoughts (ToT). We assess both the downstream task, denoting the binary classification, and the intermediate reasoning steps. Our approach compares positively against CoT and ToT.
title Integrating Large Language Models and Reinforcement Learning for Non-Linear Reasoning
topic Machine Learning
Programming Languages
url https://arxiv.org/abs/2410.13501