University of Saskatchewan
Towards Discovering Thought Chains for Reasoning Tasks with Reinforcement Learning
Abstract
dc:description.abstractRecent advances in Large Language Models (LLMs) have demonstrated strong performance on reasoning tasks, particularly using the Chain-of-Though (CoT) method that enables models to solve complex reason- ing tasks by generating explicit intermediate reasoning steps before producing a final answer. While CoT significantly improves reasoning performance, it is computationally expensive and relies on curated datasets containing detailed reasoning traces, which are often costly and, in some cases, impractical to construct for complex tasks. To address this limitation, this thesis explores how the Reinforcement Learning (RL) framework could be used to discover thought chains for a reasoning task, removing the reliance on explicitly curated reasoning datasets. Specifically, this work examines whether an RL agent can learn to generate valid reasoning sequences that transform an initial state into a desired goal state without relying on a labelled or chain-of-thought dataset. We consider small-scale reasoning tasks, for example, list sorting and string reversal, and formulate solving them in the RL framework. After learning from a set of training tasks, we test if the RL agent can solve novel reasoning task instances correctly and efficiently. Our results demonstrate that under a task-specific formulation, an adaptation of the Deep Q-Network algorithm can learn an optimal policy for solving list sorting tasks. The results further demonstrate that the task-specific RL agent produces significantly shorter reasoning traces compared to a Bubble sort reference implementation, indicating that our RL system can minimize the number of steps needed for solving a sorting problem. Moreover, we extend our approach to a generic RL formulation to support a wider range of reasoning tasks. This generalized formulation is defined as a memory-based environment in which the agent modifies one memory cell at each time step to reach the goal state, the solution of the reasoning task. In this setting, our RL system is capable of solving a small number of task instances optimally but struggles to learn general reasoning rules as the number of training task instances increases, making generalization to novel test task instances difficult. These results suggest that discovering general reasoning rules from a family of training tasks without any form of supervision seems computationally challenging. While our findings highlight that our RL formulation can successfully learn structured reasoning behaviours in task-specific settings, its ability to scale to more diverse and complex tasks remains unclear.
Degree
thesis:*- Name thesis:degree_name
- Master of Science (M.Sc.)
- Level thesis:degree_level
- Masters
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor
- University of Saskatchewan
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ahmed, Tasnova
- Advisors dc:contributor.advisor
-
- Lehnert, Lucas
- Roy, Chanchal
- Committee members dc:contributor.committeemember
-
- Stavness, Ian
- Eramian, Mark
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10388/18384