Manuscript Offprint

arXiv:2610.23311

Self-Reflective Chain-of-Thought (SRCoT): Evidence-Based Text Generation via a Closed-Loop Retrieve--Reflect--Revise Pipeline on Edge LLMs

Fabian Broszio, Michael Hoffmann, Adrian Paschke

Abstract

Large language models (LLMs) can generate fluent outputs that lack source support or conflict with local operational constraints. We introduce Self-Reflective Chain-of-Thought (SRCoT), a modular architecture that organizes generation as a closed Retrieve-Reflect-Revise loop. SRCoT separates environment state, persistent knowledge, accumulated experience, and short-term memory into provenance-labeled stores. BM25 retrieval supplies local context; subsequent passes expose intermediate drafts, missing-information markers, follow-up queries, and optional claim-evidence mappings. These artifacts inform retrieval, revision, clarification, or abstention decisions. We examine the architecture through qualitative, trace-based case studies in two fully synthetic settings: emergency medical services and Munich-Sim, an emergency-operations simulation. Local prototype runs on an Apple M4-family laptop with 128 GB memory illustrate source-labeled documentation, explicit gap marking, and structured dispatch-style outputs. The traces also reveal provenance-assignment errors, incomplete evidence coverage, and unsafe assumptions that remain possible despite prompting constraints. These cases demonstrate report-level inspectability and local execution, not comparative superiority, hallucination reduction, clinical validity, or operational safety. The architecture separates retrieval and control from the model interface, but behavior across different models remains to be evaluated. SRCoT is a research proof of concept requiring human review, with its principal contribution lying in an inspectable control procedure rather than a new model.

Keywords: Self-reflection, reasoning, large language models, retrieval-augmented generation, cybernetics, edge deployment

1 Introduction

Large Language Models (LLMs) have achieved strong performance across a wide range of natural language processing tasks, including text generation, summarization, and interactive reasoning. Their fluency and apparent coherence have motivated increasing interest in deploying them in applied and decision-support settings. However, despite these advances, LLMs remain prone to generating outputs that are convincing in form but unsupported by evidence, internally inconsistent, or misaligned with domain-specific constraints. Such failures—often referred to as hallucinations 1^{1}—are particularly problematic in safety-critical or operational environments, where erroneous outputs may be difficult to detect yet carry substantial consequences [1–3].

A contributing factor to this problem is the dominant usage paradigm of current LLM systems. Most deployments rely on a single, monolithic context in which persistent knowledge, task-specific state, intermediate reasoning, and action decisions are entangled within a shared prompt or hidden representation [4, 5]. While recent approaches such as chain-of-thought prompting [6], retrieval-augmented generation (RAG) 2^{2} [7], and tool use improve reasoning performance, they typically lack an explicit separation of different knowledge and state types, making it difficult to monitor, verify, or control the generation process in a principled manner [4, 5].

In this work, we argue that reliable and evidence-based text generation requires a shift toward structured, closed-loop reasoning architectures. We draw inspiration from early cybernetics, which frames intelligent behavior as the result of feedback-driven control, as well as from cognitive theories that emphasize modularity and coordination. In particular, Global Workspace Theory (GWT) [8–10] models cognition as the interaction of multiple specialized processes that compete for access to a limited shared workspace; information that enters this workspace is broadcast and used to coordinate system-wide behavior.

Guided by this perspective, a central design principle of our system is the explicit separation of different types of knowledge and state into distinct, machine-readable representations. We maintain dedicated structures for persistent knowledge and constraints, environmental state, accumulated experience, and short-term memory. Rather than interpreting these components as a biological model, we treat them as a system-level analogy: specialized information stores that are selectively integrated into a shared, task-relevant representation through a controlled coordination step.

1^{1}In LLMs, “hallucination” refers to fluent output that is not supported by the provided sources or is fabricated/inaccurate, even if it sounds plausible.

2^{2}Retrieval-augmented generation (RAG) pairs a Large Language Model (LLM) with a retrieval step over an external corpus: relevant passages are fetched for a query and inserted into the model's context so that generation can be grounded in retrieved evidence. This improves traceability (sources can be cited) but remains limited by retrieval quality and context use.

This design enables transparent state tracking, supports iterative verification against evidence, and allows the system to adapt its actions without conflating long-term knowledge with transient experiences.

Building on these ideas, we introduce Self-Reflective Chain-of-Thought (SRCoT), a framework that models LLM inference as a closed feedback loop over structured internal states. The framework operationalizes reasoning through explicit claim–evidence representations, systematic identification of information gaps and contradictions, and confidence-driven control decisions that determine whether the system should continue generation, revise prior outputs, retrieve additional information, or abstain. Importantly, the separation of memory, experience, and action allows these processes to be coordinated without interfering with one another, making the overall reasoning process more interpretable and robust.

Our main contributions are as follows:

Firstly, we propose SRCoT, a modular reasoning architecture for LLMs that explicitly separates heterogeneous knowledge and state types—environment state, accumulated experience, persistent knowledge, and short-term memory—into distinct, machine-readable representations. This design is functionally inspired by Global Workspace Theory and enables controlled integration of specialized information into a shared, task-relevant reasoning context.

Secondly, we introduce a closed-loop coordination mechanism for chain-of-thought generation in which structured states are selectively combined, evaluated against evidence and constraints, and iteratively updated. This mechanism allows reasoning, memory, and action selection to be decoupled, enabling systematic verification, confidence-based control, and revision without conflating long-term knowledge with transient task experience.

Thirdly, we implement and examine SRCoT in two synthetic settings—emergency medical services and Munich-Sim, an emergency-operations simulation. Selected reports illustrate explicit gap marking, source-labeled outputs, and failure modes under local deployment constraints. These qualitative observations do not constitute a controlled comparison with baseline generation.

References (25)