Neural Theorizer (NEO): Explanatory Program Induction
- Neural Theorizer (NEO) is a probabilistic neural model that inductively infers executable, compositional programs as explicit theories from raw, non-textual data.
- It leverages a shared encoder, decoder, and theory programmer to learn discrete, reusable primitives that support systematic generalization and transfer across contexts.
- NEO employs MDL-based length selection and state grounding to generate concise, explanation-driven representations, outperforming traditional predictive world models.
Searching arXiv for the specified NEO paper and the acronym-overlap paper to ground the article in current arXiv records. Neural Theorizer (NEO) is a probabilistic neural model introduced within the Learning-to-Theorize (L2T) paradigm for inferring explicit explanatory theories of the world from raw, non-textual observations (Baek et al., 5 May 2026). In this formulation, a theory is an executable, compositional program built from learned primitives whose semantics are induced from data rather than specified a priori. NEO operationalizes understanding not as accurate future prediction alone, but as discovering abstract, reusable, compositional mechanisms that explain how observations are generated and transformed, support intervention, and transfer across instances (Baek et al., 5 May 2026).
1. Conceptual basis and relation to world modeling
Learning-to-Theorize reframes “understanding” as inferring explicit explanatory theories of how observations are generated and transformed (Baek et al., 5 May 2026). The motivating claim is drawn from developmental “theory-theory”: children build internal theories before mature language, and these theories function as abstract, reusable, compositional mechanisms rather than as instance-specific predictive mappings. In NEO, this perspective is instantiated by treating programs as “mental programs” whose compositionality yields systematic generalization and productivity, including length generalization to longer programs (Baek et al., 5 May 2026).
This contrasts with standard world models that optimize predictive reconstruction such as next-frame prediction. In the L2T view, conventional predictive objectives often learn entangled, instance-specific mappings or monolithic latent actions, whereas NEO induces explicit programmatic explanations with shared primitives and a shared executor (Baek et al., 5 May 2026). The distinction is not merely architectural. NEO explicitly targets transfer of inferred programs across new inputs and unseen compositions, together with length generalization to longer programs than those observed during training (Baek et al., 5 May 2026).
A common source of confusion is the acronym itself. “NEO” in this context denotes the Neural Theorizer of “Learning to Theorize the World from Observation” (Baek et al., 5 May 2026), not the unrelated test-time adaptation method “NEO: No-Optimization Test-Time Adaptation through Latent Re-Centering” (Murphy et al., 7 Oct 2025). The two works share an acronym but address different problem classes: the former concerns latent program induction and explanation-driven generalization, while the latter concerns optimization-free test-time adaptation through feature re-centering.
2. Probabilistic formulation and latent program semantics
NEO models each phenomenon as a source–target pair and introduces a latent program , an ordered sequence over a finite primitive set (Baek et al., 5 May 2026). Latent states are denoted , with and each subsequent state obtained by executing a primitive from the current state (Baek et al., 5 May 2026). The shared transition model , implemented as either or a deterministic counterpart , assigns operational semantics to primitive symbols (Baek et al., 5 May 2026).
For observation pairs, the conditional likelihood is marginalized over the latent program and execution trace:
The prior over program and execution trace factorizes as
Here, 0 functions as a state-conditioned program prior, while 1 is the observation likelihood via the decoder (Baek et al., 5 May 2026).
Training uses an amortized posterior 2 and maximizes the ELBO:
3
The posterior shares the encoder and executor with the generative model:
4
In practical implementation, execution is deterministic,
5
with reconstruction loss 6 (Baek et al., 5 May 2026).
Program length is selected by a Minimum Description Length criterion:
7
This penalizes longer explanations while favoring the shortest accurate theory (Baek et al., 5 May 2026). A plausible implication is that NEO’s notion of explanation is explicitly complexity-controlled rather than emerging only indirectly from predictive fit.
3. Architecture and learned Language of Thought
NEO consists of an observation encoder 8, a decoder 9, a program induction network 0 called the theory programmer, a discrete codebook implemented via VQ-VAE, and a shared executor 1 (Baek et al., 5 May 2026). The encoder and decoder map raw, non-text inputs to latent states and back; for GridWorld and Image Editing, a pretrained CNN VAE defines the latent space, whereas Arithmetic uses learned embeddings and a linear decoder (Baek et al., 5 May 2026). These components are shared across training examples and across the generative and variational paths.
The theory programmer is a goal-conditioned policy over primitive symbols. It takes the current latent state 2 and the encoded target 3 and outputs a categorical distribution over codebook entries (Baek et al., 5 May 2026). Discreteness is implemented with a VQ-VAE codebook 4, yielding a learned symbolic vocabulary and inducing programs by iteratively selecting 5 (Baek et al., 5 May 2026). The primitive set 6 is therefore not preset; its symbols are learned as VQ codes, and the grammar is sequence composition 7 (Baek et al., 5 May 2026).
The executor is shared across all phenomena and operationally defines primitive meaning through its effect on latent states (Baek et al., 5 May 2026). Intermediate states are decoded both for MDL length selection and for a state grounding regularizer,
8
where 9 denotes stop-gradient and the update applies only to the transition model (Baek et al., 5 May 2026). This keeps intermediate states on the observation manifold.
The program representation is syntactically simple: a flat sequence of primitive symbols executed by sequential application of the shared transition model (Baek et al., 5 May 2026). In the Image Editing example, learned primitive codes correspond to rot (90° clockwise), br_p (brightness+), and mask (gray square mask), so that
0
induces the trace
1
with 2 (Baek et al., 5 May 2026). The same inferred program can then be transferred to a new input 3 to obtain 4 generated by the same latent program (Baek et al., 5 May 2026). This is the core operational meaning of explanation-driven transfer in NEO.
4. Training, inference, and test-time scaling
Training initializes pretrained 5 and 6 together with the theory programmer 7, executor 8, a maximum step count 9, and learning rate 0 (Baek et al., 5 May 2026). For each minibatch of pairs 1, the model computes 2 and 3, then iterates for 4: sample or select a primitive 5, execute 6, and optionally decode each 7 to 8 (Baek et al., 5 May 2026). MDL selects
9
after which the model applies reconstruction, grounding, and VQ losses, truncated to 0 (Baek et al., 5 May 2026).
The practical objective is
1
This combines program-conditioned reconstruction with discrete codebook learning and latent-state grounding (Baek et al., 5 May 2026).
At inference, NEO receives a support pair 2, rolls out the theory programmer greedily with
3
and uses MDL to obtain an inferred program 4 (Baek et al., 5 May 2026). The model then transfers 5 to a query input 6 by applying the same executor sequence to 7 and decoding the result (Baek et al., 5 May 2026). Evaluation distinguishes self-explainability on the support pair and transferability on the query pair.
A further variant, NEO-S, performs test-time scaling by sampling 8 candidate programs on the support pair using a temperature 9 over the programmer’s softmax, filtering candidates with MDL, and selecting the most frequent successful program by majority voting (Baek et al., 5 May 2026). Larger 0 and higher temperature improve exploration and length-OOD performance, notably in Arithmetic (Baek et al., 5 May 2026). This suggests that, in some regimes, the limiting factor is not primitive discovery but long-horizon search over compositions.
5. Benchmark structure and empirical behavior
The Observation-to-Theory Induction Benchmark (OTIB) contains three domains: GridWorld, Arithmetic Factorization Reasoning, and Image Editing (Baek et al., 5 May 2026). Each test instance provides a support pair 1 and a query pair 2 sharing the same latent program 3, so the model must infer 4 from the support pair and transfer it to the query input (Baek et al., 5 May 2026). Evaluation uses self-explainability and transferability, with splits into in-distribution, compositional OOD, and length OOD regimes (Baek et al., 5 May 2026).
| Domain | Latent primitives and training lengths | Evaluation |
|---|---|---|
| GridWorld | 10×10 grid; up/down/left/right; train length 1–3; test length 4–8 | Exact match accuracy |
| Arithmetic | Integer pairs with 5; train length 1–3; test length 4–6 | Exact correctness |
| Image Editing | CIFAR-10 with 8 edit primitives; train length 1–2; test length 3–4 | L1 pixel loss |
In GridWorld, at 6, NEO achieves transfer 0.933 on compositional OOD and 0.845 on length OOD; NEO-S with 7 improves these to 0.976 and 0.907, while monolithic baselines collapse on OOD, near 0 (Baek et al., 5 May 2026). The same study reports robustness across 8 and 9, with NEO maintaining high transfer accuracy while baselines fail to generalize (Baek et al., 5 May 2026).
In Arithmetic Factorization, NEO shows strong compositional OOD behavior, for example 0.573 at 0, but greedy inference struggles on long sequences, with length OOD around 0.02–0.04 (Baek et al., 5 May 2026). NEO-S raises length OOD to 0.696 at 1 and 0.707 at 2 using 3 and temperature, indicating that primitives were learned and that additional test-time search resolves long-horizon recomposition (Baek et al., 5 May 2026).
In Image Editing, NEO yields the lowest L1 distances across all 4 splits for compositional and length OOD; the reported compositional OOD range is approximately 0.09–0.12 versus baselines at approximately 0.12–0.18, and length OOD is approximately 0.10–0.13, substantially better than the identity baseline (Baek et al., 5 May 2026). Qualitative examples show NEO decomposing novel edit sequences such as brightness+ followed by mask and selecting instance-specific 5 values matching ground-truth step counts under MDL, whereas baselines attempt monolithic mappings and fail (Baek et al., 5 May 2026).
6. Ablations, limitations, and research significance
Ablation analysis attributes a central role to state grounding. Removing 6 causes catastrophic collapse: primitiveness is approximately 0.002, and both self-explainability and transferability drop to zero (Baek et al., 5 May 2026). The reported interpretation is that intermediate states drift off-manifold and reusable building blocks are not discovered (Baek et al., 5 May 2026). Code–primitive alignment matrices further show near one-to-one mapping between learned codes and ground-truth primitives, even when many primitives are never seen in isolation, and the primitiveness metric often approaches 1.0, surpassing the fraction directly observable in training (Baek et al., 5 May 2026).
MDL tuning governs the granularity of learned explanations. Overcomplete codebooks, such as 36 codes in GridWorld or 16 in Arithmetic with many extras, still yield primitive-level codes when MDL is tuned appropriately (Baek et al., 5 May 2026). By contrast, too large a 7, for example 1.2, incentivizes overly short, entangled explanations and degrades transfer and primitiveness, whereas moderate values in the range 0.8–1.0 recover ground-truth-like explanation lengths and full primitive sets (Baek et al., 5 May 2026). This suggests that compactness alone is insufficient; it must be balanced against state-grounded reconstructive adequacy.
The method’s stated limitations are also explicit. Experiments use discrete, small primitive sets and short programs, so scalability to very long horizons or complex continuous dynamics remains open (Baek et al., 5 May 2026). Semantics are induced via reconstruction and are not guaranteed to align with human-interpretable or causal variables (Baek et al., 5 May 2026). Deterministic execution and reconstruction-threshold stopping may be brittle in noisy or partially observable settings, and no explicit program annotations are provided, so learning can depend on encoder/decoder quality and latent manifold structure (Baek et al., 5 May 2026). Computationally, NEO incurs sequential execution of 8 and test-time sampling of 9; it trains approximately 0 slower than single-pass baselines, though faster than gradient-based latent optimization at inference (Baek et al., 5 May 2026).
Within the broader literature, NEO is positioned as related to program induction and synthesis systems such as NTM, NPI, and DreamCoder, but it departs from them by learning a latent Language of Thought from raw observations without DSL supervision (Baek et al., 5 May 2026). It also connects to latent action models such as LAPO, Genie, and AdaWorld, and to world models such as RSSM and Dreamer, while differing in its emphasis on transferable explanatory programs rather than monolithic predictive latents (Baek et al., 5 May 2026). The paper’s stated contributions are to formulate Learning-to-Theorize, propose NEO with learned primitives, shared executor, MDL-based length selection, and state grounding, introduce OTIB, and demonstrate explanation-driven generalization across transfer, compositional OOD, and length OOD settings (Baek et al., 5 May 2026).
Future directions identified for the framework include stochastic transition executors, proper Bayesian priors over programs, richer grammars with branching, loops, and hierarchy, object-centric and relational primitives, causal and intervention-aware training signals, and jointly learning encoders and decoders end-to-end (Baek et al., 5 May 2026). Proposed application domains include scientific modeling from raw data, robot manipulation or edit pipelines, explainable image or video editing, counterfactual simulation, compositional world modeling in reinforcement learning, and education and cognitive modeling (Baek et al., 5 May 2026). A plausible implication is that NEO is best understood not as a finished world model, but as a research program for theory induction in which compositional explanation is the primary target of learning.