InjectRBP: Steering Large Language Model Reasoning Behavior via Pattern Injection

Xiuping Wu, Zhao Yu, Yuxin Cheng, Ngai Wong, Liangjun Ke, Tapas Mishra, Konstantinos V. KatsikopoulosarXiv 2026

TL;DR

InjectRBP introduces a training-free framework to boost Large Language Model (LLM) performance by analyzing and steering the structural patterns of their internal "thinking" processes. By treating Chain-of-Thought (CoT) steps as sequences of discrete behaviors (similar to DNA sequencing), the authors introduce two inference-time injection techniques—InjectCorrect and InjectRLOpt—that guide models toward optimal reasoning paths, yielding up to an 8.67% accuracy boost without altering model weights.

What Problem Does This Paper Address?

State-of-the-art reasoning models (like OpenAI's o1 or DeepSeek-R1) generate extensive intermediate reasoning chains before producing a final answer. While simple prompting tricks (e.g., "Let's think step by step") can trigger this behavior, our understanding of how these reasoning paths unfold remains largely intuitive.

Currently, there is a lack of systematic analysis regarding how specific sequences of reasoning behaviors—such as exploring an alternative hypothesis versus verifying a calculation—impact final answer quality. Furthermore, modifying these behaviors typically requires expensive post-training, such as Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL). InjectRBP tackles this gap by asking: Can we systematically analyze these behavioral patterns and structurally steer them at inference time to improve accuracy?

Methods

The authors propose a multi-step pipeline to extract, analyze, and optimize reasoning behavior without updating model parameters:

  1. Behavioral Taxonomy: Reasoning text is segmented and mapped into six distinct functional behaviors:
  2. Objective (O): Defining the goal.
  3. Progression (P): Moving the logic forward step-by-step.
  4. Summary (S): Consolidating intermediate information.
  5. Exploration (E): Trying alternative paths or hypotheses.
  6. Verification (V): Double-checking correctness.
  7. Conclusion (C): Delivering sub-conclusions or the final answer.
  8. Reasoning DNA: By analyzing these sequences as local structural units ($n$-grams, specifically 3-grams), the authors map out the model's behavioral distribution.
  9. Structural Injection: During inference, the framework intervenes by injecting specific behavior marker tokens at paragraph boundaries, effectively forcing the model to follow a prescribed behavioral distribution.

The authors introduce two optimization methods to generate these behavioral "injectants":

  • InjectCorrect: A self-imitation approach that samples behavior patterns derived exclusively from the model's own past correct answers.
  • InjectRLOpt: Formulates the reasoning chain as a Markov Decision Process (MDP). It learns a value function based on final answer correctness and utilizes a novel Reliability-Aware Softmax Policy to down-weight rare, high-uncertainty patterns, favoring statistically robust reasoning paths.

The entire analysis and injection process is illustrated below:

Figure 1. The analysis process of reasoning behavior pattern, including how the reasoning processes are decomposed from reasoning text into a structured “Reasoning Behavior Chain” and “Reasoning DNA”, and how frequent n-gram behavior patterns are clipped and structurally injected into models to enhance their systematic reasoning ability.

Datasets

The approach was evaluated using the Qwen3 model family (4B, 8B, 14B, and 32B variants) across four demanding, reasoning-intensive benchmarks:

  • GPQA: Graduate-level Google-proof Q&A (hard science problems).
  • MATH: Competition-level high school mathematics.
  • AIME25: American Invitational Mathematics Examination 2025.
  • MBPP: Mostly Basic Python Problems (code generation).

Key Insights and Ideas

  • Domain-Specific Adaptation: LLMs naturally adapt their reasoning style to the problem type. Science questions (GPQA) trigger more exploratory patterns (e.g., EEE), creating a tree-like search space. Conversely, structured math problems (MATH/AIME25) favor linear, chain-like trajectories dominated by progression and verification (e.g., PPP, VVV, VVC).
  • Reasoning Patterns Are Not Monolithic: Cross-injecting patterns across heterogeneous domains degrades performance. For instance, injecting math-optimized reasoning patterns into coding tasks (MBPP) results in stagnant or lower accuracy. The structural pattern must match the problem's intrinsic logic.
  • Strategic Masking Helps: Experimenting with masking specific 3-gram patterns revealed that preventing certain transitions (like jumping prematurely from exploration to a conclusion) can actually increase final accuracy, proving that some emergent behaviors are counterproductive.

Key Results

Both training-free methods consistently improved model accuracy over standard baselines across multiple scales:

  • InjectRLOpt achieved the highest overall performance, delivering accuracy gains of up to 8.67% (notably boosting Qwen3-14B on the challenging AIME25 dataset from 59.33% to 67.33%).
  • InjectCorrect provided modest but steady improvements (up to 5.34%) by simply steering the model to mimic its own successful history.
  • The relative performance gains remained consistent across different model sizes (from 4B up to 32B), demonstrating that behavioral steering scales effectively.

Limitations and Future Work

  • Short Pattern Contexts: Due to computational constraints, this study only considers local 3-gram behavior patterns. It does not capture longer-range, global reasoning strategies that span across an entire essay-length chain of thought.
  • Inference-Only Intervention: While highly efficient because it requires zero parameter updates, the authors note that permanently baking these optimized behavioral distributions into models via post-training techniques (like SFT or RL) remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{wu2026injectrbp,
  author = {Xiuping Wu and Zhao Yu and Yuxin Cheng and Ngai Wong and Liangjun Ke and Tapas Mishra and Konstantinos V. Katsikopoulos},
  title = {{InjectRBP: Steering Large Language Model Reasoning Behavior via Pattern Injection}},
  year = {2026},
  eprint = {2602.12013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.12013},
}
Figure