TLDR: A new research paper introduces PEPS (Projected Entangled Pair States), a quantum-inspired reinforcement learning approach to improve the coherence of multi-step reasoning in Large Language Models (LLMs). By representing reasoning traces as tensor networks and deriving a ‘fidelity score’ for global consistency, PEPS provides a structured reward signal for Proximal Policy Optimization (PPO). This two-stage training method significantly enhances LLMs’ ability to generate logically consistent and semantically aligned reasoning, outperforming existing baselines across various reasoning tasks.
Large Language Models (LLMs) have made remarkable strides in various natural language tasks, from answering complex questions to generating code. However, a persistent challenge remains: their ability to maintain coherent, multi-step reasoning traces, especially in tasks demanding a structured logical flow. Often, LLMs might arrive at a correct final answer, but the underlying steps in their thought process can contain logical gaps, making their reasoning opaque and unreliable for critical applications like scientific discovery or legal analysis.
A new research paper introduces a novel approach called PEPS (Projected Entangled Pair States) that draws inspiration from quantum mechanics to tackle this very problem. Unlike traditional methods that rely on direct supervision or simple comparisons, PEPS guides LLMs towards structural consistency, aiming to enforce global coherence throughout their generated reasoning traces. This quantum-inspired method integrates a ‘fidelity-based reward’ into a reinforcement learning framework, specifically Proximal Policy Optimization (PPO).
Understanding the Quantum Inspiration: PEPS
At the heart of this approach is the concept of Projected Entangled Pair States (PEPS), a formalism from quantum many-body physics used to capture entanglement across distributed systems. In this context, PEPS is used to represent an LLM’s reasoning trace—a sequence of intermediate steps—as a structured ‘tensor network’. Each step in the reasoning process is encoded as a projection entangled with the rest of the trace. By mathematically ‘contracting’ this tensor network, the model computes a ‘fidelity score’. This score is a single numerical value that reflects the overall, global consistency of the entire reasoning trace. A high fidelity score indicates a well-aligned, coherent argument where individual steps logically connect and support each other.
The Two-Stage Training Pipeline
The PEPS framework employs a two-stage training process to enhance LLM reasoning:
Stage 1: PEPS Fidelity Functional Training: Before fine-tuning the LLM, the PEPS tensor itself is trained. This involves two phases: self-supervised learning (SSL) and contrastive fine-tuning. In SSL, the PEPS tensor learns to maximize the fidelity score for a large collection of naturally coherent reasoning traces. This teaches it what a ‘good’, consistent trace looks like. Following this, contrastive fine-tuning refines the PEPS tensor’s ability to discriminate. It’s trained to assign higher fidelity scores to valid, coherent reasoning traces and significantly lower scores to corrupted or incoherent versions of those traces (generated by shuffling steps or substituting unrelated statements).
Stage 2: Fidelity-Guided PPO Fine-Tuning: Once the PEPS tensor is trained and fixed, it acts as a ‘reward critic’ for fine-tuning a causal LLM using Proximal Policy Optimization (PPO). PPO is a robust reinforcement learning algorithm well-suited for optimizing non-differentiable reward signals. When the LLM generates a reasoning trace, the PEPS-based fidelity score provides a structural reward, quantifying its global coherence. This reward is combined with a ‘novelty reward’ (which encourages informational diversity and prevents redundancy) to form a composite reward signal. The LLM then iteratively adapts its generation policy to maximize this composite reward, learning to produce reasoning traces that are both structurally coherent and semantically diverse.
Also Read:
- Unlocking Deeper Reasoning in Language Models with Continuous Thought
- Boosting Language Model Reasoning with Reinforcement Learning on Pre-Training Data
Why This Approach Matters
This quantum-inspired method offers several advantages. It provides a holistic, structure-aware measure of coherence that goes beyond simply checking the final answer. By using a non-differentiable, sequence-level reward, it directly optimizes for logical consistency, something that traditional token-level objectives often miss. The PPO framework ensures stable learning even with this complex reward signal. The research demonstrates that this approach significantly improves reasoning trace coherence in LLMs, outperforming supervised, contrastive, and pretrained baseline methods across diverse datasets like GSM8K (arithmetic), StrategyQA (intuitive), and EntailmentBank (entailment-based reasoning).
The study used the TinyLLaMA-1.1B model as the base LLM and evaluated performance using metrics such as Mean Entailment Confidence (MEC), Weighted Entailment Score (WES) for structural coherence, and BERT Score and BLEURT Score for semantic similarity. The results consistently showed that PEPS+PPO policies lead to more structurally coherent and semantically aligned reasoning traces, particularly in tasks requiring explicit multi-step reasoning. While there were minor variations depending on the task, the PEPS-guided approach demonstrated greater stability and generalization across diverse reasoning challenges compared to baselines.
This work highlights quantum-inspired reinforcement learning as a promising direction for enhancing reasoning coherence in LLMs, bridging the gap between symbolic structure and neural representations. For more in-depth information, you can read the full research paper here.


