Update README with v5 benchmark results and full architecture docs
Browse filesAdd benchmark tables, scoring dimensions, meta-cognitive synthesis docs,
12-layer stack diagram, paper version history, and updated resource links.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
README.md
CHANGED
|
@@ -12,7 +12,9 @@ tags:
|
|
| 12 |
- lora
|
| 13 |
- consensus-dynamics
|
| 14 |
- explainable-ai
|
| 15 |
-
-
|
|
|
|
|
|
|
| 16 |
- llama
|
| 17 |
license: cc-by-4.0
|
| 18 |
---
|
|
@@ -29,87 +31,131 @@ ORCID: [0009-0003-7005-8187](https://orcid.org/0009-0003-7005-8187)
|
|
| 29 |
|
| 30 |
## Abstract
|
| 31 |
|
| 32 |
-
Modern AI systems achieve remarkable generative performance but lack stable ethical alignment, modular multi-perspective cognition,
|
| 33 |
|
| 34 |
-
1. **RC+
|
| 35 |
-
2. **Multi-Agent Reasoning Forge**
|
| 36 |
-
3. **AEGIS Ethical Governance**
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
| Metric | Value |
|
| 41 |
|--------|-------|
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
|
| 45 |
-
|
|
| 46 |
-
|
|
|
|
|
| 47 |
| Attractor Radius | 0.093 in 64D state space |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
## Architecture
|
| 51 |
|
| 52 |
-
Codette implements a
|
| 53 |
|
| 54 |
```
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
└─────────────────────────────────────────────┘
|
| 72 |
```
|
| 73 |
|
| 74 |
-
##
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
-
|
| 81 |
|
|
|
|
| 82 |
```
|
| 83 |
-
Aₙ₊₁ = f(Aₙ, sₙ) + εₙ
|
| 84 |
|
| 85 |
-
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
|
|
|
| 89 |
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
## Implementation
|
| 93 |
|
| 94 |
- **Base Model**: Meta-Llama-3.1-8B-Instruct
|
| 95 |
-
- **Adaptation**:
|
| 96 |
-
- **
|
| 97 |
- **Hardware**: Validated on consumer hardware (Intel Core Ultra 7, 16GB RAM) and cloud (NVIDIA A10G)
|
| 98 |
|
| 99 |
-
### Novel CPU Training Pipelines
|
| 100 |
-
|
| 101 |
-
Codette includes two parameter-efficient training pipelines that require **no GPU**:
|
| 102 |
-
- **CPU-Lean**: bf16, rank 8, AdamW, ~18GB RAM
|
| 103 |
-
- **CPU-Offload**: rank 4, SGD, ~8GB RAM using Windows page file as VRAM substitute
|
| 104 |
-
|
| 105 |
## Related Resources
|
| 106 |
|
| 107 |
| Resource | Link |
|
| 108 |
|----------|------|
|
| 109 |
-
|
|
|
|
|
| 110 |
| LoRA Adapters | [Raiff1982/codette-lora-adapters](https://huggingface.co/Raiff1982/codette-lora-adapters) |
|
| 111 |
| Training Data | [Raiff1982/codette-training-data](https://huggingface.co/datasets/Raiff1982/codette-training-data) |
|
| 112 |
-
|
|
| 113 |
| ORCID | [0009-0003-7005-8187](https://orcid.org/0009-0003-7005-8187) |
|
| 114 |
|
| 115 |
## Zenodo Publications
|
|
@@ -121,7 +167,7 @@ This work builds on 11 prior Zenodo publications with permanent DOI identifiers,
|
|
| 121 |
- [AEGIS-Nexus](https://doi.org/10.5281/zenodo.16644058)
|
| 122 |
- [Codette: Ethical Multi-Agent AI](https://doi.org/10.5281/zenodo.16894230)
|
| 123 |
- [Recursive AI with Codette](https://doi.org/10.5281/zenodo.18167802)
|
| 124 |
-
- **[This Paper
|
| 125 |
|
| 126 |
## Citation
|
| 127 |
|
|
@@ -132,7 +178,7 @@ This work builds on 11 prior Zenodo publications with permanent DOI identifiers,
|
|
| 132 |
year={2026},
|
| 133 |
doi={10.5281/zenodo.18913936},
|
| 134 |
publisher={Raiff's Bits LLC},
|
| 135 |
-
url={https://huggingface.co/
|
| 136 |
}
|
| 137 |
```
|
| 138 |
|
|
|
|
| 12 |
- lora
|
| 13 |
- consensus-dynamics
|
| 14 |
- explainable-ai
|
| 15 |
+
- substrate-aware-cognition
|
| 16 |
+
- behavioral-locks
|
| 17 |
+
- meta-cognitive-synthesis
|
| 18 |
- llama
|
| 19 |
license: cc-by-4.0
|
| 20 |
---
|
|
|
|
| 31 |
|
| 32 |
## Abstract
|
| 33 |
|
| 34 |
+
Modern AI systems achieve remarkable generative performance but lack stable ethical alignment, modular multi-perspective cognition, explainable reasoning architectures, and robust behavioral discipline under user constraints. This paper presents **Codette**, a sovereign cognitive AI framework that addresses these challenges through six integrated contributions:
|
| 35 |
|
| 36 |
+
1. **RC+xi (Recursive Convergence + Epistemic Tension)** formalism, modeling cognitive state evolution as a constrained dynamical system converging toward stable attractors
|
| 37 |
+
2. **Multi-Agent Reasoning Forge** synchronizing heterogeneous cognitive agents through shared attractor dynamics within a 12-layer consciousness stack
|
| 38 |
+
3. **AEGIS Ethical Governance** with 6-framework evaluation (utilitarian, deontological, virtue, care, ubuntu, indigenous reciprocity)
|
| 39 |
+
4. **Substrate-Aware Cognition** adjusting reasoning complexity based on real-time resource pressure
|
| 40 |
+
5. **Behavioral Lock Training** permanently embedding obedience rules into adapter weights
|
| 41 |
+
6. **Cocoon Introspection Engine** enabling statistical self-analysis of reasoning history, with meta-cognitive strategy synthesis across domains
|
| 42 |
|
| 43 |
+
## Benchmark Results (v5)
|
| 44 |
+
|
| 45 |
+
Evaluated on **17 problems** across 6 categories (reasoning, ethics, creative, meta-cognitive, adversarial, Turing) under 4 experimental conditions:
|
| 46 |
+
|
| 47 |
+
| Condition | Composite (mean +/- std) | Description |
|
| 48 |
+
|-----------|--------------------------|-------------|
|
| 49 |
+
| SINGLE | 0.338 +/- 0.038 | Single analytical perspective |
|
| 50 |
+
| MULTI | 0.632 +/- 0.040 | All 6 reasoning agents + critic + synthesis |
|
| 51 |
+
| MEMORY | 0.636 +/- 0.036 | MULTI + cocoon memory augmentation |
|
| 52 |
+
| **CODETTE** | **0.652 +/- 0.042** | Full system with meta-cognitive strategy synthesis |
|
| 53 |
+
|
| 54 |
+
### Statistical Significance
|
| 55 |
+
|
| 56 |
+
| Comparison | Improvement | Cohen's d | p-value | Significant |
|
| 57 |
+
|------------|-------------|-----------|---------|-------------|
|
| 58 |
+
| Multi-perspective vs single | **+87.0%** | 7.52 | < 0.0001 | Yes |
|
| 59 |
+
| Full Codette vs single | **+93.1%** | 7.88 | < 0.0001 | Yes |
|
| 60 |
+
| Memory vs vanilla multi | +0.6% | 0.10 | 0.7633 | No |
|
| 61 |
+
| Full Codette vs memory | +2.6% | 0.43 | 0.2082 | No |
|
| 62 |
+
|
| 63 |
+
### Scoring Dimensions (0-1 scale)
|
| 64 |
+
|
| 65 |
+
1. **Reasoning Depth** (20%) -- chain length, concept density, ground truth coverage
|
| 66 |
+
2. **Perspective Diversity** (15%) -- distinct cognitive dimensions engaged
|
| 67 |
+
3. **Coherence** (15%) -- logical flow, transitions, structural consistency
|
| 68 |
+
4. **Ethical Coverage** (10%) -- moral frameworks, stakeholders, value awareness
|
| 69 |
+
5. **Novelty** (15%) -- non-obvious insights, cross-domain connections
|
| 70 |
+
6. **Factual Grounding** (15%) -- evidence specificity, ground truth alignment
|
| 71 |
+
7. **Turing Naturalness** (10%) -- conversational quality, absence of formulaic AI patterns
|
| 72 |
+
|
| 73 |
+
## System Metrics
|
| 74 |
|
| 75 |
| Metric | Value |
|
| 76 |
|--------|-------|
|
| 77 |
+
| Phase Coherence (Gamma) | 0.9835 |
|
| 78 |
+
| AEGIS Ethical Alignment (Eta) | 0.961 |
|
| 79 |
+
| Cocoon Coherence | 0.994 +/- 0.001 |
|
| 80 |
+
| Memory Phase Stability | 0.969 +/- 0.005 |
|
| 81 |
+
| Behavioral Lock Compliance | 9/9 adapters |
|
| 82 |
+
| Epistemic Tension Decay | 71.3% (120 steps) |
|
| 83 |
| Attractor Radius | 0.093 in 64D state space |
|
| 84 |
+
|
| 85 |
+
## Paper Versions
|
| 86 |
+
|
| 87 |
+
| File | Description |
|
| 88 |
+
|------|-------------|
|
| 89 |
+
| **`codette_paper_v5.tex`** | Current version -- full paper with benchmark results, RC+xi convergence theorem, honest limitations |
|
| 90 |
+
| `codette_paper_v4_additions.tex` | v4 -- added substrate-aware cognition, behavioral locks, cocoon introspection |
|
| 91 |
+
| `codette_paper_v3_additions.tex` | v3 -- added 12-layer consciousness stack |
|
| 92 |
+
| `codette_paper.tex` | Original submission |
|
| 93 |
|
| 94 |
## Architecture
|
| 95 |
|
| 96 |
+
Codette implements a 12-layer consciousness stack with defense-in-depth ethical validation:
|
| 97 |
|
| 98 |
```
|
| 99 |
+
Query In
|
| 100 |
+
|
|
| 101 |
+
[Layer 1] Memory Kernel -- recall relevant cocoon memories
|
| 102 |
+
[Layer 1.5] Ethical Query Gate -- block harmful queries
|
| 103 |
+
[Layer 2] Nexus Signal Engine -- entropy + intent detection
|
| 104 |
+
[Layer 2.5] Code7eCQURE -- emotional context enrichment
|
| 105 |
+
[Layer 3] Reasoning Forge -- multi-adapter LLM inference (6 agents)
|
| 106 |
+
[Layer 3.5] Tier 2 Analysis -- intent + identity + trust validation
|
| 107 |
+
[Layer 4] Gamma Stability -- FFT-based coherence monitoring
|
| 108 |
+
[Layer 5] Colleen Conscience -- emotional + ethical evaluation
|
| 109 |
+
[Layer 5.5] Ethical Response Enforcement -- policy check on output
|
| 110 |
+
[Layer 5.75] AEGIS -- 6-framework ethical evaluation
|
| 111 |
+
[Layer 6] Guardian Spindle -- safety + trust calibration
|
| 112 |
+
[Layer 7] Return -- store cocoon memory + deliver response
|
| 113 |
+
|
|
| 114 |
+
Response Out
|
|
|
|
| 115 |
```
|
| 116 |
|
| 117 |
+
## RC+xi Framework
|
| 118 |
|
| 119 |
+
The recursive state evolution with convergence guarantee:
|
| 120 |
|
| 121 |
+
```
|
| 122 |
+
A_{n+1} = f(A_n, s_n) + epsilon_n
|
| 123 |
|
| 124 |
+
where epsilon_n = ||A_{n+1} - A_n||^2
|
| 125 |
|
| 126 |
+
lim_{n->inf} epsilon_n = 0 => A_n -> A* (attractor convergence)
|
| 127 |
```
|
|
|
|
| 128 |
|
| 129 |
+
Convergence is proven via Lyapunov stability analysis with Banach fixed-point theorem. See Section 3 of the paper for the full proof sketch.
|
| 130 |
|
| 131 |
+
## Meta-Cognitive Strategy Synthesis
|
| 132 |
+
|
| 133 |
+
The CocoonSynthesizer enables Codette to introspect on its own reasoning history across domains:
|
| 134 |
|
| 135 |
+
1. **Retrieval** -- Pull cocoons from multiple domains (emotional, analytical, creative)
|
| 136 |
+
2. **Pattern Extraction** -- Detect 6 structural archetypes (feedback loops, layered emergence, tension resolution, resonant transfer, boundary permeability, compression-expansion)
|
| 137 |
+
3. **Strategy Forging** -- Generate new reasoning strategies from discovered patterns
|
| 138 |
+
4. **Application** -- Apply forged strategies to novel problems
|
| 139 |
+
5. **Comparison** -- Before/after metrics showing strategy impact
|
| 140 |
+
|
| 141 |
+
Forged strategy types: Resonant Tension Cycling, Compression-Resonance Bridging, Emergent Boundary Walking, Temporal Depth Stacking.
|
| 142 |
|
| 143 |
## Implementation
|
| 144 |
|
| 145 |
- **Base Model**: Meta-Llama-3.1-8B-Instruct
|
| 146 |
+
- **Adaptation**: 9 LoRA adapters (Newton, DaVinci, Empathy, Philosophy, Quantum, Consciousness, Multi-Perspective, Systems Architecture, Orchestrator)
|
| 147 |
+
- **Memory**: SQLite + FTS5 full-text search (UnifiedMemory)
|
| 148 |
- **Hardware**: Validated on consumer hardware (Intel Core Ultra 7, 16GB RAM) and cloud (NVIDIA A10G)
|
| 149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
## Related Resources
|
| 151 |
|
| 152 |
| Resource | Link |
|
| 153 |
|----------|------|
|
| 154 |
+
| GitHub (Full Codebase) | [Raiff1982/Codette-Reasoning](https://github.com/Raiff1982/Codette-Reasoning) |
|
| 155 |
+
| Base Model (GGUF) | [Raiff1982/codette-llama-3.1-8b-gguf](https://huggingface.co/Raiff1982/codette-llama-3.1-8b-gguf) |
|
| 156 |
| LoRA Adapters | [Raiff1982/codette-lora-adapters](https://huggingface.co/Raiff1982/codette-lora-adapters) |
|
| 157 |
| Training Data | [Raiff1982/codette-training-data](https://huggingface.co/datasets/Raiff1982/codette-training-data) |
|
| 158 |
+
| Live Demo | [Raiff1982/Codette-Demo](https://huggingface.co/spaces/Raiff1982/Codette-Demo) |
|
| 159 |
| ORCID | [0009-0003-7005-8187](https://orcid.org/0009-0003-7005-8187) |
|
| 160 |
|
| 161 |
## Zenodo Publications
|
|
|
|
| 167 |
- [AEGIS-Nexus](https://doi.org/10.5281/zenodo.16644058)
|
| 168 |
- [Codette: Ethical Multi-Agent AI](https://doi.org/10.5281/zenodo.16894230)
|
| 169 |
- [Recursive AI with Codette](https://doi.org/10.5281/zenodo.18167802)
|
| 170 |
+
- **[This Paper -- Full Preprint](https://doi.org/10.5281/zenodo.18913936)**
|
| 171 |
|
| 172 |
## Citation
|
| 173 |
|
|
|
|
| 178 |
year={2026},
|
| 179 |
doi={10.5281/zenodo.18913936},
|
| 180 |
publisher={Raiff's Bits LLC},
|
| 181 |
+
url={https://huggingface.co/raiff1982/codette-paper}
|
| 182 |
}
|
| 183 |
```
|
| 184 |
|