Aha.
正在载入中英对照阅读…

arXiv:2410.12375 · 中英对照阅读

PRefLexOR:PRefLexOR(基于偏好的推理探索优化递归语言建模):用于推理与智能体式思维探索性优化的基于偏好的递归语言建模。致谢:引用:M.J.Buehler 等,PRefLexOR:用于推理与智能体式思维探索性优化的基于偏好的递归语言建模。页码……。DOI:000000/11111。

PRefLexOR: Preference-based Recursive Language Modeling for Exploratory Optimization of Reasoning and Agentic Thinking Thanks: Citation: M.J. Buehler, et al., PRefLexOR: Preference-based Recursive Language Modeling for Exploratory Optimization of Reasoning and Agentic Thinking. Pages…. DOI:000000/11111.

Markus J. Buehler

中文速览

小型语言模型在复杂科学问题上常常推理不深、容易出错,也很难靠新任务即时进步;PRefLexOR试图让它们像反复打磨答案一样,边推理边自我改进。它先从科学文献中动态生成问题并检索相关资料,再用偏好优化让模型学会区分更可靠与较差的回答,随后通过递归思考和反复筛选答案来修正推理过程。论文展示了这一方法能让仅有30亿参数的模型在生物材料等领域完成更深入的推理,并通过案例探索跨领域任务。它的意义在于,不必依赖固定的训练题库或超大模型,也能让模型借助反馈和反复推敲提升科学推理能力。

摘要

我们提出 PRefLexOR(基于偏好的推理探索优化递归语言建模),这是一种将偏好优化与强化学习(RL)理念相结合的框架,使模型能够通过迭代改进推理进行自我教学,从而创造出具备增强科学推理能力的合成智能。PRefLexOR 的核心是一种递归方法,在训练和推理阶段,该方法促使模型进行多步推理,并在生成最终输出之前重新审视和精炼中间步骤。PRefLexOR 的基础是多阶段训练:模型首先通过一种新颖的原位数据集生成算法,优化偏好响应与非偏好响应之间的对数优势,从而学习使其推理与科学上准确的决策路径相一致。为了即时生成训练数据,PRefLexOR 通过从随机文本片段生成问题并利用检索增强,从整个语料库中提取相关细节以提供上下文,进而构建动态知识图谱,最终形成严谨的推理链。在第二阶段,偏好优化策略进一步提升模型性能:通过拒绝采样微调推理质量,持续生成原位训练数据,同时屏蔽推理步骤,以专注于发现实现正确答案的新颖机制。这种混合方法体现了强化学习(RL)的关键特征:模型持续受到反馈引导,以改进决策与推理;这一自适应过程使模型能够通过实时反馈和递归处理不断改进,从而实现自我教学。我们的方法不使用预生成数据集,而是训练模型实时持续适应并改进。在特殊的思维标记化机制中进行递归优化,会引入迭代反馈回路,使模型精炼其推理,这与强化学习(RL)中的策略精炼颇为相似,从而实现更深层次的连贯性、一致性和适应性。通过反馈驱动学习递归优化推理,PRefLexOR 在处理复杂任务方面展现出显著的灵活性,并能够自主学习和发展其认知能力。PRefLexOR 的递归优化映照了生物系统适应和进化的方式。通过在训练和/或推理过程中利用反馈回路精炼推理路径,它模拟了自然界的韧性与适应性,从而增强其决策能力。我们将该方法应用于仅含 30 亿参数的极小型语言模型,结果表明,即使是极小型模型也能通过迭代自我教学,获得更深入、更具反思性的推理能力,类似于一种基于强化学习(RL)的自我改进系统,能够凭借更强的推理深度和逻辑能力解决开放领域问题。我们的实现十分简洁,可集成到任何现有的预训练大语言模型(LLM)中。我们将示例聚焦于生物材料科学中的应用,并通过多个案例研究展示该方法,涵盖从领域内应用到跨领域应用的不同情形。我们探索了多种推理策略,包括思考和反思两种模式,以构建一个多智能体递归自我改进模型;该模型能够在推理过程中通过重复采样逐步改进响应,并可灵活地集成到更大型的智能体系统中。

We introduce PRefLexOR (Preference-based Recursive Language Modeling for Exploratory Optimization of Reasoning), a framework that combines preference optimization with concepts from Reinforcement Learning (RL) to enable models to self-teach through iterative reasoning improvements, to create synthetic intelligence with enhanced scientific reasoning capabilities. Central to PRefLexOR is a recursive approach that engages the model in multi-step reasoning, revisiting, and refining intermediate steps before producing a final output in both training and inference phases. The foundation of PRefLexOR lies in multi-stage training, where the model first learns to align its reasoning with scientifically accurate decision paths by optimizing the log odds between preferred and non-preferred responses through a novel in-situ dataset generation algorithm. For on-the-fly training data generation, PRefLexOR builds a dynamic knowledge graph by generating questions from random text chunks and utilizing retrieval-augmentation to contextualize relevant details from across the entire corpus, resulting in rigorous reasoning chains. In a second stage, preference optimization strategies further enhances model performance by using rejection sampling to fine-tune reasoning quality by continually producing in-situ training data while masking the reasoning steps to focus on discovery of novel mechanisms to achieve correct answers. This hybrid approach mirrors key aspects of RL, where the model is continuously guided by feedback to improve decision-making and reasoning, and the adaptive process enables the model to self-teach as it continually improves through real-time feedback and recursive processing. Our method does not use pre-generated datasets and instead trains the model to continuously adapt and improve in real time. Recursive optimization within special thinking tokenization introduces iterative feedback loops, where the model refines its reasoning, much like policy refinement in RL, achieving deeper coherence, consistency, and adaptability. By recursively optimizing reasoning through feedback-driven learning, PRefLexOR achieves significant flexibility in its ability to handle complex tasks, learning and evolving its cognitive abilities autonomously. PRefLexOR’s recursive optimization mirrors how biological systems adapt and evolve. By using feedback loops to refine reasoning pathways during training and/or inference, it emulates nature’s resilience and adaptability, enhancing its decision-making capabilities. Implemented in very small language models with only 3 billion parameters, we showed that even tiny models can iteratively teach themselves to reason with greater depth and reflectivity, akin to an RL-based self-improving system capable of solving open-domain problems with superior reasoning depth and logic. Our implementation is straightforward and can be incorporated into any existing pretrained LLM. We focus our examples on applications in biological materials science, and demonstrate the method in a variety of case studies that range form in-domain to cross-domain applications. We explore several reasoning strategies that include both thinking and reflection modalities to construct a multi-agent recursive self-improving model that can successively improve responses via repeated sampling during inference, offering flexibility and integration into larger agentic systems.

术语表

PRefLexOR (Preference-based Recursive Language Modeling for Exploratory Optimization of Reasoning)
PRefLexOR(基于偏好的推理探索优化递归语言建模)
Preference-based Recursive Optimization and Refinement
基于偏好的递归优化与精炼
Reinforcement Learning (RL)
强化学习(RL)
Large Language Model (LLM)
大语言模型(LLM)
Artificial Intelligence (AI)
人工智能(AI)
Natural Language Processing (NLP)
自然语言处理(NLP)
preference optimization
偏好优化
recursive reasoning
递归推理
multi-step reasoning
多步推理
self-teaching
自我教学
synthetic intelligence
合成智能
scientific reasoning
科学推理
in-situ dataset generation
原位数据集生成
log odds
对数优势
retrieval-augmented generation (RAG)
检索增强生成(RAG)
dynamic knowledge graph
动态知识图谱
rejection sampling
拒绝采样
thinking tokenization
思维标记化
feedback loop
反馈回路
policy refinement
策略精炼
chain-of-thought prompting
思维链提示
few-shot learning
少样本学习
biomateriomics
生物材料组学
biomaterials science
生物材料科学
situational awareness
情境感知
self-reflection
自我反思
error correction
错误校正
multi-agent recursive self-improving model
多智能体递归自我改进模型