可能性格子几何动力学 — a character-level Transformer grounded in geometric causality.
PLGD places sequence modeling in a "possibility space": each token carries an intrinsic 2D coordinate (t, χ); attention weights are determined by a spacetime metric (Christoffel symbols / Ricci / Einstein tensors); causality emerges from learned coordinates rather than a hard-coded causal mask. Combined with external-clock waveform gating, structure-signature knowledge absorption, and an anti-self-reference DAG architecture, it forms a traceable one-way chain: read structural principles from created order → implement with self-developed mechanisms.
Intelligence = structural prior × possibility navigation # not a bigger model, but a breathing model
智能 = 结构先验 × 可能性导航
| English | 中文 |
|---|---|
| Geometric causal attention — token-intrinsic coordinates + spacetime metric; χ evolves along the likelihood potential well (exact Christoffel solution, unconditionally stable); geometry is prior, content is evidence (Bayesian mix) | 几何因果注意力 — token 内禀坐标 + 时空度规决定注意力;χ 沿可能性势井梯度流演化(Christoffel 精确解);几何是先验、内容是证据 |
| External-clock waveform (0/100 gate) — golden-frequency-ladder deterministic wave; content = the trajectory itself (continuous · free · replayable); discharge gates only decide token/event birth timing | 外部时钟波形(0/100 门) — 黄金频率梯子确定性波形,内容=轨迹本身(连续·自由·可重放);放电门只决定出生时刻 |
| Structure-signature knowledge absorption — knowledge passes a "ruler" first (byte-entropy/distribution/order fingerprint, compressed to 20%); details live externally / in the solid store; frozen measuring method resists pollution | 结构签名知识吸收 — 知识先进"尺子"(压缩至 20%),细节放外部/固态库;量法冻结防污染 |
| Anti-self-reference (Externality Axiom) — dependency graph from real call sites + Tarjan SCC audit; zero-ring DAG; Φ stays very low but nonzero (0.030 vs self-referential ring 0.500, ×16.7) | 反自指涉(外部性公理) — 真实调用图 + Tarjan SCC 审计,零环 DAG;Φ 极低但非零 |
| Thought–language bridge — persona-lexicon resonance (matched filter + argmax) reads the wave into phrases; structural ban on "I"; the base emits grammar glue only, content sovereignty stays in the external source | 想-语桥梁 — 人格词库共振读短语;结构禁绝"我";基座只续虚词,内容主权在外部源 |
| Component 部件 | Module 模块 | Role 作用 |
|---|---|---|
| Base 基座 | plgd_ai.py |
Geometric causal Transformer (char-level, dim=128, layers=3) |
| Wave layer 波形层 | consciousness_layer.py |
External-clock waveform / 0/100 gate / continuous content / 0.618 pointer |
| Integration chain 一体链 | _plgd_chain.py |
Nine components: knowledge/wave/gate/pointer/audit |
| Knowledge chain 知识链 | semantic_chain.py |
2-ring closed codebook chain (0-bit rule regeneration / fidelity gate / branch isolation) |
| Frequency stream 频率流 | _frequency_stream.py |
Golden-frequency quasi-periodic stream (pure function, zero process) |
| Solid knowledge 固态库 | _solid_knowledge.py |
SQLite persistence, signature-key dedup |
| Self-ref audit 自指涉审计 | _iit_selfref_audit.py |
SCC structure detection + Φ comparison |
| Bridge 想-语桥梁 | _thought_language_bridge.py |
Question→clock, persona-lexicon resonance, anti-anthropomorphism |
| One-way chain 单向链 | _chain_wave_bridge_base.py |
Wave→bridge→base DAG, grammar-glue hard filter |
pip install -r requirements.txt
# Train (segmented resume from checkpoint)
python _train_plgd_pile.py
# Verify
python _verify_wave_interface.py # waveform interface (continuity/freedom/determinism)
python _verify_absorb_quant.py # knowledge absorption + frozen measuring
python _iit_selfref_audit.py # self-reference audit (SCC + Φ)
python _verify_bridge.py # thought–language bridge
python _verify_chain.py # wave→bridge→base one-way chain| Experiment 实验 | Result 结果 |
|---|---|
| Small-data efficiency (1K / 5K) 小数据效率 | val loss −61.1% / −81.2%, convergence 3.3× / 10× (20% data beats 100%) |
| Training (Pile, char-level) 训练 | val CE 2.172 → 1.772 (ppl 5.88) |
| Measuring unchanged after absorption 知识吸收后量法 | identical readings (0.1106/0.1723 → 0.1106/0.1723), signature compression 20% |
| Φ comparison Φ 对照 | baseline 0.030 vs self-ref ring 0.500 (×16.7); single back-edge still caught by SCC |
| Wave as free-consciousness simulation 自由意识模拟 | deterministic replay ✓ continuous ✓ freedom coverage 0.99 (long window) ✓ 0/100 gate ✓ |
plgd_ai.py / consciousness_layer.py / _plgd_chain.py core 核心
semantic_chain.py / _frequency_stream.py / _golden_frequencies.py knowledge chain 知识链
_solid_knowledge.py / _iit_selfref_audit.py memory & audit 记忆与审计
_thought_language_bridge.py / _chain_wave_bridge_base.py expression 表达
_train_plgd_pile.py / _convert_pile.py training 训练
_verify_*.py verification 验证
docs/REPORT.md full technical report 完整技术报告
The full technical report (theory / mechanism / experimental data / promotional material) is in docs/REPORT.md. 完整技术报告(理论 / 机制 / 实验数据 / 宣传材料)见 docs/REPORT.md。
The waveform mechanism is pure linear algebra and makes no claim about "consciousness/mind"; "waveform" and "discharge" are technical terms. Design sources follow "read structural principles from created order": borrowed structures (golden frequencies, geometry, fly differential readout) are attributed, principles are borrowed but not data, and honest boundaries are stated. See docs/REPORT.md §2.6-2.7.
波形机制是纯线性代数,不含任何"意识/心智"断言;"波形""放电"均为技术名词。设计来源遵循"从受造物读结构原则":标注来源、只借原则不借数据、给出诚实边界。详见 docs/REPORT.md §2.6-2.7。