Active Inference Architecture for LLM Response Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large Language Models (LLMs) face challenges in response accuracy and reliability due to their non-deterministic nature, which is particularly problematic in high-reliability applications like medicine, law, and education.

Innovation Solution

A dual-component prompting method inspired by active inference principles, which includes a generative stage for creative output and a critical stage for evaluating accuracy, relevance, and reliability, mimicking the human cognitive process of generating and refining expectancies.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a single-stage prompting method is used for LLM responses, then the response generation is simple and fast, but the accuracy and reliability of the responses deteriorate due to the non-deterministic nature of LLMs

Engineering Contradiction:
Improveresponse accuracyVSAvoidprompting architecture complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The prompting architecture is segmented into two distinct components: a generative component that creates initial responses and a critical component that evaluates and refines them. This segmentation allows each component to specialize in its function, improving overall response reliability while maintaining manageable complexity through clear separation of concerns.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The generative component performs preliminary action by producing initial responses before the critical component evaluates them. This preliminary generation allows the critical component to focus solely on evaluation and refinement, ensuring that accuracy checks are performed systematically before final output is generated.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If a dual-component prompting method with generative and critical stages is implemented, then the accuracy and reliability of LLM responses improve, but the response generation time and processing complexity increase

Engineering Contradiction:
Improveresponse reliabilityVSAvoidresponse generation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The critical component provides feedback to the generative component by evaluating initial responses and identifying areas for improvement. This feedback mechanism allows the system to iteratively refine responses, improving reliability while managing time loss through targeted rather than exhaustive evaluation processes.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The critical component performs partial evaluation by focusing on specific aspects of the generative component's output that most impact reliability. Rather than exhaustively analyzing every aspect of each response, the system applies critical evaluation selectively to the most critical dimensions, reducing time loss while maintaining improved reliability.

Inventive Principle:
Principle #16Partial or excessive action

3Adaptability or versatility

If the generative component focuses on creativity and novelty, then the innovativeness of responses improves, but the accuracy and factual correctness may deteriorate

Engineering Contradiction:
Improveresponse creativityVSAvoidfactual accuracy
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The critical component acts as an intermediary between the generative component's creative output and the final response. It mediates by evaluating the creative content for factual accuracy and reliability, ensuring that creative responses maintain factual correctness without suppressing the generative component's creativity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

Instead of prioritizing accuracy first and then creativity, the system inverts the traditional approach by prioritizing creativity and novelty in the generative phase, then applying accuracy checks in the critical phase. This inversion allows maximum creative freedom initially, with accuracy enforcement applied subsequently as a refinement step.

Inventive Principle:
Principle #13The other way round (Inversion)

Data Source

PatentUS20250036870A1Active inference architecture for optimizing large language model responses
Publication Date: 2025.01.30 BRAIN ELECTROPHYSIOLOGY LABORATORY CO LLC
  • US20250036870A1 patent drawing

AI summary

A method for controlling the behavior of Large Language Models (LLMs) based on the principles of active inference that are integral to human natural language behavior and are thereby manifest implicitly by LLMs. These principles are similar to the actor component of control systems that achieve optimal behavior when conditions of the system's fit to the environment are known and feedforward control is best, compared to more uncertain conditions when close feedback from external criteria is needed to guide behavior optimally by the external evidence. The structured prompting of LLMs then achieves the single optimal response for both the generative creativity of the LLM response and the accuracy and control of the response through alternating, and then integrating, the contextual prompts according to these principles.