paper-with-me

홈 › Papers

MOTIF: Modular Thinking via Reinforcement Fine-tuning in LLMs

2025-07-03 · Purbesh Mitra, Sennur Ulukus arxiv

Recent advancements in the reasoning capabilities of large language models (LLMs) show that employing group relative policy optimization (GRPO) algorithm for reinforcement learning (RL) training allows the models to use more thinking/reasoning tokens for generating better responses. However, LLMs can generate only a finite amount of tokens while maintaining attention to the previously generated tokens. This limit, also known as the context size of an LLM, is a bottleneck in LLM reasoning with arbitrarily large number of tokens. To think beyond the limit of context size, an LLM must employ a modular thinking strategy to reason over multiple rounds. In this work, we propose $\textbf{MOTIF: Modular Thinking via Reinforcement Finetuning}$ -- an RL training method for generating thinking tokens in multiple rounds, effectively allowing the model to think with additional context size. We trained the open-source model Qwen2.5-3B-Instruct on GSM8K dataset via parameter efficient fine-tuning and tested its accuracy on MATH500 and AIME2024 benchmarks. Our experiments show 3.8\% and 3.3\% improvements over vanilla GRPO based training in the respective benchmarks. Furthermore, this improvement was achieved with only 15\% of samples, thus demonstrating sample efficiency of MOTIF. Our code and models are available at https://github.com/purbeshmitra/MOTIF and https://huggingface.co/purbeshmitra/MOTIF, respectively.

📄 PDF Abstract BibTeX arXiv:2507.02851

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Bridging Modal Isolation in Interleaved Thinking: Supervising Modality Transitions via Stepwise Reinforcement

2026-06-11 · Tingyu Li, Le Zhou, Siyuan Li, Yujun Wu 외 arxiv

Interleaved thinking, where a unified multimodal model alternates between textual reasoning and visual generation, has shown promise on spatial and physical tasks. However, in complex long-chain scenarios, we identify a …

Reinforcement LearningImage Generation

Think or Not Think: A Study of Explicit Thinking in Rule-Based Visual Reinforcement Fine-Tuning

2025-03-20 · Ming Li, Jike Zhong, Shitian Zhao, Yuxiang Lai 외

This paper investigates the role of explicit thinking process in rule-based reinforcement fine-tuning (RFT) for MLLMs. We first propose CLS-RL for MLLM image classification, using verifiable rewards for fine-tuning. Expe…

ClassificationFew-Shot Learningimage-classificationImage Classification+3

Motif-2-12.7B-Reasoning: A Practitioner's Guide to RL Training Recipes

2025-12-11 · Junghwan Lim, Sungmin Lee, Dongseok Kim, Taehyun Kim 외 arxiv

We introduce Motif-2-12.7B-Reasoning, a 12.7B parameter language model designed to bridge the gap between open-weight systems and proprietary frontier models in complex reasoning and long-context understanding. Addressin…

Long-Context UnderstandingReinforcement Learning

Motif 3: Technical Report

2026-08-10 · Junghwan Lim, Joon Son Chung, Sungmin Lee, Wai Ting Cheung 외 hf

We introduce Motif 3, a decoder-only Mixture-of-Experts language model with 314 billion total parameters and 13.2 billion activated per token. Each sparse MoE layer contains 384 routed experts, with eight selected per to…

Long-Context UnderstandingReinforcement LearningMathematical ReasoningInstruction Following

Motif-Centric Representation Learning for Symbolic Music

2023-09-19 · Yuxuan Wu, Roger B. Dannenberg, Gus Xia

Music motif, as a conceptual building block of composition, is crucial for music structure analysis and automatic composition. While human listeners can identify motifs easily, existing computational models fall short in…

Contrastive LearningDiversityInformation RetrievalMusic Information Retrieval+2