A small causal world makes the question of how an agent learns testable.
Editorial draft: This page describes work in progress. Its repository facts have been checked against the current source snapshot, but the owner has not verified this project's narrative yet.
After closing Active Sensing, I wanted to ask a more basic question: when an agent enters an unfamiliar world, how should it choose what to try and revise its explanation from what happens? A future agent might also need to pass something useful to another agent, but I first need to understand the policy that gathers and uses evidence. This repository is a controlled place to study that question while the research is still taking shape.
Building an answer key before a learned agent
The current testbed defines small, deterministic Boolean worlds with hidden AND, OR, and NOT rules. An agent chooses an intervention, observes the result, and has only a limited number of actions. An exact oracle keeps the worlds still consistent with those observations. Random action choice and information-gain choice provide baselines for asking whether a particular intervention was informative.
That setup lets me distinguish uncertainty that no available observation has resolved from a poor choice of action. The oracle is exact only inside this finite world family and its assumptions. It is a measurement tool for later experiments, not a learned world model and not a solution to open-ended real-world reasoning.
The repository currently contains the world generator, intervention and inference machinery, and initial action-selection experiments. A reusable learned policy for learning has not been demonstrated here, and the content of a useful agent-to-agent message is still an open question. This page will need another editorial pass as those experiments develop.
Causal World Learning and Transfer
How can an agent understand a hidden causal world when it can perform only a limited number of interventions? Once it has learned something useful, how can it pass that knowledge to another agent?
This research project starts with finite, deterministic Boolean worlds so those questions can be studied under controlled conditions. The current phase builds exact inference and action-selection baselines. Learning a compact internal representation and transferring it between agents are the longer-term goals.
Current setup
- Each world is a directed acyclic system of Boolean variables. Its hidden rules use
AND,OR, andNOT. - An agent chooses an intervention, observes the resulting variables, and repeats within an action budget.
- Stages A, B, and C allow progressively more interventions: setting the input variables, forcing one output variable, or forcing any subset of output variables.
- An exact oracle tracks every world consistent with the observations. Random and greedy information-gain policies provide baselines; a finite candidate limit gives sampled information gain.
The checked-in d=4, m=4 dataset contains 705,600 canonical worlds. Current experiment work studies how many episodes are needed for precise comparisons, how candidate limits affect quality and computation, and how the problem changes with world size.
Try the baseline
The code uses Python and NumPy; plotting also uses Matplotlib. Run commands from src/ so core and experiments resolve as packages:
cd src
python -m unittest discover -s tests -v
python -m experiments.exp_001_stage_comparison --dataset dataset/worldgen-4-4
The smoke run is one Stage-A action, but its first response column still evaluates all 705,600 worlds, so it may take a while. See experiment instructions for more options and plotting, and architecture overview for the implementation contracts.
Repository map
ideas/— research notes (some internal links use Obsidian syntax):src/core/— world generation, interventions, storage, and exact inference.src/experiments/— policies, episode runner, and exploratory studies.src/dataset/worldgen-4-4/— reference Boolean-world dataset.
License
Original code and documentation authored by Jakkarin Promsee are licensed under the MIT License. Third-party code, assets, datasets, and other materials are not covered by this license; their original terms apply.