Manuscript Offprint

arXiv:2608.30109

COGTRL: Training LLMs for Scientific Discovery Assistance using Cognitive Traces via Reinforcement Learning

Shrinidhi Kumbhar Santosh Mashetty Divij Handa Kevin Coutinho, Siddharth Sambhaji Ghule, Chitta Baral

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) trained on extensive scientific research are increasingly integrated as assistants for scientific discovery. However, most research papers omit the fine-grained cognitive process of examining constraints, failed alternatives, and iterative decisions required to achieve the desired goal. Such cognitive processes are vital for real-world scientists working toward specific goals under constraints. In this paper, we show that LLMs, when trained to produce such cognitive traces, perform better as scientific discovery assistants than when trained solely on scientific literature. We propose COGTRL, a trajectory-level reinforcement learning framework that trains LLMs to emulate cognitively grounded reasoning by jointly optimizing cognitive traces and the scientific steps produced in an interleaved manner. Across two 3B-parameter models and two scientific domains (AI and Materials Science), COGTRL improves method quality by an average of 7.85 points over comparable 3B model baselines and achieves competitive performance relative to 70B parameter models. Moreover, analysis by domain experts shows a preference for methods generated by COGTRL over the baselines.

Science is a way of thinking much more than it is a body of facts. - Carl Sagan

1 Introduction

Large Language Models (LLMs) are widely used as assistants in several domains, such as coding (Novikov et al., 2025), planning (Parmar et al., 2025), and computer-use (Awadallah et al., 2025). One such domain where LLMs show promise to accelerate research is scientific discovery (AI4Science and Quantum, 2023; Gottweis et al., 2025; Krolik et al., 2024; Yamada et al., 2025; Yang et al., 2024). For a scientific discovery assistance task, given a goal, for example, “Develop a self-healing coating for offshore environments” and constraints, for example, “Should be eco-friendly”, the model is tasked with generating a step-by-step methodology for achieving the goal while satisfying the constraints (AI4Science and Quantum, 2023; Kumbhar et al., 2025). The generated method can aid in guiding a human researcher in achieving the given goal and constraints. Such assistance has the potential to drastically reduce the time and labor costs of methodological design.

While recent research has shown promise of using LLMs in scientific discovery (AI4Science and Quantum, 2023; Gottweis et al., 2025; Sprueill et al., 2024; Wang et al., 2023; Merchant et al., 2023), they are primarily focused on agentic approaches using frontier LLMs applied to narrow scientific tasks such as information extraction, property prediction, literature synthesis, and hypotheses generation (Yang et al., 2024; Xiong et al., 2024; Tong et al., 2024; Ghafarollahi and Buehler, 2024b; Sprueill et al., 2024; Ding et al., 2024; Shojaae et al., 2024; Yang et al., 2023). In contrast, we focus on training open-source LLMs for the scientific discovery assistance task. While LLMs are traditionally trained on a wide variety of scientific data, including the latest research articles and papers, these data sources often omit the intermediate cognitive processes underlying scientific decision-making. Since scientific discovery, by nature, is a fundamentally cognitive process, in which researchers hypothesize, evaluate constraints, and iteratively refine their plans (Nersessian, 2025; Schickore, 2024; Thagard, 2012; Williams and Lombrozo, 2010; Klahr, 2000), instilling such behaviors while training is crucial.

In this paper, we propose a method to train LLMs for scientific discovery assistance with Cognitive Traces via Reinforcement Learning (COGTRL). COGTRL treats the task as a trajectory-level prob-

https://github.com/shri071/CoGTRL

Figure

Figure 1: Given a research goal and constraints, the LLM simulates a cognitive thought process and generates a step-by-step methodology by producing cognitive traces before each method step. Step NN is conditioned on traces and steps from stages 1 to N−1N-1, and generation continues until the goal is achieved and all constraints are satisfied.

lem and uses Group Relative Policy Optimization (GRPO) (Shao et al., 2024) as its reinforcement learning backbone. Given a research goal and a set of constraints, the model generates multiple rollouts, each consisting of a sequence of cognitive traces and corresponding methodological steps conditioned on those traces. The structure of CoGTRL trajectories is illustrated in Figure 1. Each cognitive trace explicitly articulates why the associated step is expected to advance the goal under the stated constraints. We then design a reward system that evaluates the quality of both the cognitive traces and the generated steps, while additionally rewarding higher-quality cognitive traces that improve downstream step quality. This design encourages the model to generate cognitive traces that are causally useful for downstream methodological step generation, rather than optimizing traces only as standalone explanations. During training, an external LLM-based reward model assigns rewards to both the cognitive traces and the method steps. Policy updates are performed using GRPO over these trajectory-level rewards, enabling the model to iteratively refine both its cognitive trace and method generation.

Across two models, Llama-3.2-3B-Instruct and Qwen-2.5-3B-Instruct, and two scientific domains, Artificial Intelligence and Materials Science, CoGTRL consistently outperforms zero-shot COT prompting, supervised fine-tuning (with and without cognitive traces), and vanilla GRPO (without cognitive traces) by an average of 7.85 points.

We find that the 3B models trained using CoGTRL match the performance of much larger (70B+ parameter) models. Moreover, in our blind human evaluation, domain experts preferred methods generated by CoGTRL 71.42% of the time across both the AI and the Materials Science do-

mains. Finally, we show that CoGTRL preserves and in some cases modestly improves the model's performance on out-of-domain reasoning tasks.

References (41)