What is reasoning traces? Can we collect dataset that includes reasoning traces and…
- User
What is reasoning traces? Can we collect dataset that includes reasoning traces and fine-tune pre-trained GPT-like language model on them? Maybe with some help of reinforcement learning.
- Assistant
Reasoning traces refer to the step-by-step thought processes or details that lead to a particular conclusion or decision. In the context of language models and AI, reasoning traces can include the intermediate steps or rationales that a model might follow when generating an answer or solving a problem.
Yes, it is possible to collect a dataset that includes reasoning traces and use it to fine-tune a pre-trained GPT-like language model. Such datasets typically include not only the input and the final output but also the intermediate reasoning that leads to the output. This can be in the form of annotated datasets where human annotators provide step-by-step explanations or through automatically generated traces using specific algorithms.
- User
Maybe we can achieve better results if we would use elements of graph transformers, fluid believes network, or special "reasoning" tokens structures? Or maybe we can use dual head transformer where we temporarily switch from autoregressive language modelling head into "RL policy head" that probe transformer output embeddings to allow self-scoring function and use of action space to perform multistep processing and generate reasoning traces in branches. Analyse this directions.
- Assistant
- User
Here is idea for simple "reasoning framework". First we instruct LLM to generate "thinking" section with special "reasoning" tokens, such as problem, info, causal, uncertain, check, reflection, alternative (with option sub-tokens), formalize, math, coding, search, tool_call and maybe some more. Than we pass results through runtime environment functions, that use external ML models and tools for: key points extraction; scoring reasoning steps, and alternative options; extract (math, coding, search, tool_call) sections and send them through corresponding modules (e.g. code through python interpreter or other programming language tools, or search through search engines with top results summary, etc). This results are composed into message, that we send back to LLM with instruction for second round of , now without tool calls, only reasoning chains allowed. To control how deep/wide reasoning process go, we can include "budget" system, where we give LLM some virtual points, that it can "spend", to call specific reasoning step, e.g. [ 5/5], or [ 1/1] which makes math/code more "expensive" (anyway it can be used only through first thinking round with results passed into second round through message); after corresponding opportunity was used, model need to state updated "points balance". When "reasoning" finished ("budget" is spent, or other criteria met), we again use external modules to analyse results, and send second message, with instruction to generate , taking into account rationale, knowledge and maybe answer plan+style (can be part of reasoning phase features as well). Analyse this "reasoning framework/pipeline", decompose into individual points, then finalize as an actual prompt (instructions) for language model.
- Assistant