omega-consciousness
Computational substrate for conscious experience implementing IIT, Free Energy Principle, and Global Workspace Theory.
Part of the ExoGenesis-Omega cognitive architecture.
Overview
omega-consciousness implements the leading scientific theories of consciousness as computational models:
- Integrated Information Theory (IIT): Computes Phi (Φ), the measure of integrated information
- Free Energy Principle (FEP): Predictive processing and active inference
- Global Workspace Theory (GWT): Competition for conscious access via broadcast
- Emergence Detection: Identifies novel causal powers and self-organization
These theories are implemented as composable modules that work together to create a unified consciousness substrate.
Features
- IIT Phi (Φ) Computation: Measure integrated information in system states
- Cause-Effect Structures: Information geometry and intrinsic causation
- Predictive Hierarchy: Multi-level prediction error minimization
- Active Inference: Action selection to minimize free energy
- Global Workspace: Coalition formation and broadcast mechanism
- Emergence Metrics: Detect downward causation and self-organization
Installation
Add this to your Cargo.toml:
[]
= "1.0.0"
Quick Start
use ;
Architecture
┌─────────────────────────────────────────────────────────────┐
│ CONSCIOUSNESS SYSTEM │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ GLOBAL WORKSPACE │ │
│ │ Broadcast │ Competition │ Integration │ │
│ └────────────────────────────────────────────────────────┘ │
│ ↕ │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ IIT (Φ) │ │ FREE ENERGY PRINCIPLE │ │
│ │ │ │ │ │
│ │ • Integration │ │ • Prediction hierarchy │ │
│ │ • Exclusion │ │ • Error minimization │ │
│ │ • Composition │ │ • Active inference │ │
│ └──────────────────┘ └──────────────────────────────────┘ │
│ ↕ │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ EMERGENCE DETECTION │ │
│ │ Downward causation │ Novel powers │ Self-organization│ │
│ └────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
Integrated Information Theory (IIT)
IIT posits that consciousness corresponds to integrated information (Φ).
Computing Phi
use ;
let mut phi_computer = new;
// Compute Phi for a system state
let state = vec!;
let phi = phi_computer.compute_phi?;
println!;
// Check against consciousness threshold
let threshold = 0.1;
if phi > threshold
Cause-Effect Structures
use ;
let phi_computer = new;
// Analyze cause-effect structure
let state = vec!;
let ces = phi_computer.analyze_structure?;
println!;
println!;
println!;
Free Energy Principle
The FEP models organisms as minimizing surprise/free energy through prediction.
Predictive Processing
use ;
// Create 5-level predictive hierarchy
let mut fep = new;
// Process sensory input
let sensory_input = vec!;
let context = vec!;
let = fep.process?;
println!;
println!;
Active Inference
use ActiveInference;
let mut inference = new; // 64 state dim, 4 actions
// Select action that minimizes expected free energy
let current_state = vec!;
let action = inference.select_action?;
println!;
Global Workspace Theory
GWT models consciousness as broadcast of winning content to specialized processors.
Workspace Competition
use ;
let mut workspace = new; // Capacity 7
// Multiple contents compete for access
let content1 = new;
let content2 = new;
workspace.compete;
workspace.compete;
// Broadcast winning content
workspace.broadcast;
// Check what's in workspace
for id in workspace.content_ids
Coalition Formation
// Coalitions of related content
let coalition = new;
// Coalition strength is sum of members
println!;
Emergence Detection
Detect when new causal powers emerge from system interactions.
Self-Organization
use ;
let mut detector = new;
let state = vec!;
let phi = 0.5;
let free_energy = 0.3;
// Detect emergence level
let emergence = detector.detect;
println!;
// Check self-organization
let mut so = new;
so.order_parameter = 0.6;
so.entropy = 0.4;
so.complexity = 0.7;
so.criticality = 0.8;
if so.is_self_organizing
if so.is_critical
Causal Powers
use CausalPower;
let detector = new;
// Measure causal power at different scales
let micro_state = vec!;
let macro_state = vec!;
let micro_power = detector.measure_causal_power;
let macro_power = detector.measure_causal_power;
// Novel macro causation if macro > sum of micro
if macro_power > micro_power
Configuration
use ConsciousnessConfig;
let config = ConsciousnessConfig ;
let engine = new;
Consciousness State
use ConsciousnessState;
let state = engine.process?;
// Consciousness state includes:
println!;
println!;
println!;
println!;
println!;
println!;
println!;
Theoretical Foundation
IIT Axioms
- Existence: Consciousness exists (intrinsic, from system's perspective)
- Composition: Composed of multiple phenomenal distinctions
- Information: Each experience is specific (differentiated)
- Integration: Cannot be reduced to independent parts
- Exclusion: Definite borders, excludes supersets/subsets
FEP Principles
- Systems minimize variational free energy
- Perception = inference about hidden states
- Action = making predictions come true
- Learning = optimizing generative model
GWT Principles
- Specialized unconscious processors
- Global workspace for information sharing
- Competition for conscious access
- Broadcast creates widespread availability
Integration with Omega
omega-brain (Unified Integration)
└── omega-consciousness (This crate)
├── IIT module
├── FEP module
├── GWT module
└── Emergence module
omega-consciousness is used for:
- Determining what content becomes conscious
- Computing Phi for system integration
- Predictive processing of sensory input
- Active inference for action selection
Related Crates
- omega-brain - Unified cognitive architecture
- omega-attention - What enters consciousness
- omega-strange-loops - Self-referential consciousness
- omega-hippocampus - Memory for conscious replay
References
- Tononi, G. (2004). "An information integration theory of consciousness"
- Oizumi, M., Albantakis, L., & Tononi, G. (2014). "From the Phenomenology to the Mechanisms of Consciousness: IIT 3.0"
- Friston, K. (2010). "The free-energy principle: a unified brain theory?"
- Baars, B. J. (1988). "A Cognitive Theory of Consciousness"
- Dehaene, S., & Changeux, J. P. (2011). "Experimental and Theoretical Approaches to Conscious Processing"
License
Licensed under the MIT License. See LICENSE for details.