Skip to content

About

Babel: pre-registered tests of a small emoji-meaning neural engine with functional trait modules

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babel engine

Babel is a small, deterministic research sandbox for asking one question: can we build functional computational analogs of mind-like traits, and do they measurably change how a simple learning agent behaves?

What this is not. The traits here (recursion, detail focus, "bipolar", "ADHD", anger, pain, pleasure, companionship, esteem, regret, remorse, and so on) are computational analogs. Each one is a piece of state, an update rule, and an effect on behavior. They are not clinical conditions, not diagnoses, and not claims of felt experience or consciousness. The names are metaphors for the mechanism. Nothing here is medical or psychological advice.

Everything runs in plain JavaScript (Node.js, no dependencies) or as a standalone HTML page in a browser.

How the engine works

  • A small "fly-style" neural core (1000 neurons, seeded pseudo-random generator, one meaning vector per symbol). Same seed means the same run, bit for bit.
  • A layer of "areas" and a global-workspace-style ignition: a confident answer held for several ticks gets broadcast to the other areas (v11).
  • Trait modules (v12 on). Each has its own on/off flag, and all new flags default to OFF.
  • An "arena" of tasks (core questions, challenges, social trials, offers, delays, hazards) that the agents are scored on.
  • A dyad mode (v13 on): two agents that can give each other hints.

Method: controlled replay and pre-registration

Every claim is tested the same way:

  1. Pre-register first. Hypotheses, metrics, pass rules and seed ranges are written in a PREREG*.md file before the test seeds are run. Tuning is allowed only on separate calibration seeds, never on the test seeds (usually 0-199).
  2. Controlled replay. Clone the state, use the same random numbers, and change one flag. Any difference is caused by that flag.
  3. Statistics. Paired bootstrap 95% confidence intervals, Cohen's dz, per-seed +/-/= counts, Holm correction, and max-T sign-flip permutation correction.
  4. Labels. Each metric is labeled built-in (the module itself writes the scored number, so a "win" is partly by construction), constructed, or hypothesized. Each flag also gets an off-target metric so side effects show up.
  5. Negative results are reported. The wording is "CAUSAL EFFECT NOT CONFIRMED". Opposite-direction effects are reported as such.
  6. Checks before scoring. Determinism (reruns match exactly), identity (flag OFF equals baseline), and, from v16, exact equality of training budgets.

Version history, with honest results

All numbers are from the committed results files in each version folder.

version what it added what happened
v11 Global-workspace ignition, dreaming, mirror/theory-of-mind/qualia-style probes Small but confirmed accuracy gain (+0.005, CI [0.002, 0.008]); coherence up (+0.015). Dream gain not confirmed. The 12 module metrics are mostly built-in.
v12 14 trait modules plus ignition feedback 11 of 16 tests confirmed in the predicted direction (e.g. anger, pain, clock, regret, remorse; mostly built-in or constructed metrics). Recursion and detail focus came out the opposite way (small accuracy loss). Subconscious and premonition not confirmed.
v13 22 tests, pair-interaction screen, first dyad Detail focus hurt (-0.008 accuracy, antagonistic with several other modules); recursion, subconscious, premonition and two others not confirmed; esteem calibration failed validity (r = -0.07). The first dyad gave no meaningful gain.
v14 Challenge-revision gate (icr2), lagged esteem calibration, adaptive detail, dyad14 icr2 confirmed: challenge accuracy 0.790 to 0.870, and when it flips an answer it is right 90% of the time vs 3%. Esteem calibration passed (lagged r = 0.23). Adaptive detail removed v13's antagonisms. Dyad primary FAILED: no core-accuracy gain, specialization -0.023; two identical learners converge.
v15 Dyad decorrelation (different seeds and/or disjoint training data) Error correlation fell from about 0.63-0.74 to about 0.0. Core accuracy beat a fair solo control (+0.013 to +0.015 in the data/both arms). Specialization criterion failed by design. Specialists start weak (about 0.60-0.64) and stay well below a full-data agent (about 0.77).
v16 Dyad vs an equal-budget generalist (same total training presentations, 71) GENERALIST BETTER. Dyad minus generalist overall accuracy: -0.157 [-0.165, -0.149], max-T p = 0.0001, 198 of 200 seeds favor the generalist (dyad 0.646 vs generalist 0.804). It was predicted to fail, and it did. Shared-wrong errors were lower for the dyad (0.063 vs 0.142 for two generalist clones), because the clones repeat each other's mistakes (phi 0.75) while the dyad's errors are nearly independent (phi 0.04). The dyad still beats its own solo control by +0.030. Splitting the data costs far more accuracy than independence gives back.

Take-away so far: decorrelating two agents works, but at equal training budget it does not beat one generalist. Many "confirmed" trait effects are on metrics the module itself writes, so read them as "the mechanism does what its rule says", not as evidence of anything deeper.

Repository layout

html/        standalone browser builds: babel-v11-human, v12, v13, v14, v15 (open the file in a browser)
v11 ... v15/ pre-registrations, module specs, READMEs and results for each version
v16/         current engine, harness, analysis, v16 results shards (about 600 KB), smoke test

Running it

You need Node.js (any recent version). There are no dependencies.

Smoke test (about 10 seconds). Runs seed 0 of the v16 test and checks it matches the committed result shard, plus a snapshot round-trip hash check:

cd v16
node smoke.js

Re-analyze v16 (writes results_dyad16.md and .json). Note: the identity check in analyze16.js compares against the v14 and v15 result shards (dyad14_*.json, dyad15_*.json), which are about 1.2 MB and are not included in this repo. To re-analyze, run those versions or place their shards in ../babel-v14 and ../babel-v15 relative to v16/. The committed results_dyad16.md and .json are the recorded output, and smoke.js below checks the engine against the committed v16 shards without needing them.

Re-run v16 from scratch (200 seeds, 8 parallel shards, resumable at seed level; delete the dyad16_*_*.json shards first, otherwise finished shards are skipped):

cd v16
./runall.sh

Run a single shard of seeds, for example seeds 0 to 4:

cd v16
node dyad16.js 0 5

engine16.js is generated by v16/build.py from the layer files and is byte-identical to the v15 engine. Open any file in html/ directly in a browser for the interactive version.

Reading the evidence

Start with v16/PREREG16.md, then v16/IMPLEMENTATION16_NOTES.md, then v16/results_dyad16.md. The pre-registration was written before any v16 code or test seeds existed. Amendment 1 in that file was added after review and also before any seeds ran.

License

MIT. See LICENSE.

About

Babel: pre-registered tests of a small emoji-meaning neural engine with functional trait modules

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages