A₁∧A₂∧A₃A₁∧A₂∧A₄A₁∧A₃∧A₄A₂∧A₃∧A₄A₁∧A₂A₁∧A₃A₁∧A₄A₂∧A₃A₂∧A₄A₃∧A₄A₁A₂A₃A₄JOINA₁∨A₂∨A₃∨A₄ · broadestMEETA₁∧A₂∧A₃∧A₄ · narrowest
/03Project · λ-lattice
v0.1.0 · Active

Talk rules,computesimilarity.

λ-lattice · Synopsis

A pre-registered instrument that measures where a language model sits between similarity-based and rule-based generalization — and whether it applies the Bayesian size principle. Five model families, two concept domains, one surprising map.

In-Context LearningBayesian InferencePre-registeredPythonPyTorchvLLMOpen Source
/01
5
Qwen · Llama · Mistral · Gemma · OLMo
Model Families
/02
0.5–32
billion parameters
Scale
/03
31/31
graded, uninstructed
Boolean Cells
/04
5,082
number-game space
Hypotheses
/05
5
exact, per trial
Reference Learners
/06
15
pre-registered
Ledger Entries
/07
14
one-command regen
Figures
/08
0
independent recompute
Audit Mismatches
/02The Question

Rules or similarity?

The literature answers both ways — on different tasks. A benchmark can't settle it. An instrument can.

When a language model generalizes a concept from a handful of in-context examples, what kind of learner is it imitating? One camp says similarity: graded feature overlap, like exemplar models from the psychology of categorization. The other says rules: entertain a hypothesis space, select a consistent rule and — in its Bayesian form — apply the size principle, trusting the narrowest rule more as consistent examples pile up.

The two accounts make opposite predictions about evidence. A similarity learner stays flat as demonstrations accumulate; a size-principle learner contracts toward the narrowest rule. Most work fits one account on one task — which can't tell “the model is a similarity learner” apart from “this task doesn't distinguish the accounts.”

So I built a coordinate system instead of a score: demonstrations that deliberately underdetermine the concept, five exact reference learners computed on every trial, and a single coordinate — λ — that reads off which learner the model behaves like. A flat λ where a rule learner predicts contraction isn't a failed experiment. It's a measurement, because the reference says exactly how large the missing effect should have been.

A benchmark asks
How well does the model do the task?
One scalar against a fixed ground truth.
An instrument asks
Which learner does the model behave like?
A coordinate among exact references. No ground truth needed.
So a null result is
A positive measurement.
The reference learner sizes the effect that failed to appear.
/03The Instrument

One coordinate: λ.

The consistent hypotheses form a lattice interval, from the meet up to the join. A probe that matches j of k attributes locates the model on it.

In-context demonstrations
wug
dax

Positives carry all four relevant attributes, negatives none — so every single attribute, every partial conjunction and the full conjunction stay consistent. The concept is underdetermined by design. Labels are counterbalanced nonce words.

Probe · choose j
?
0.000.250.500.751.001 OF 42 OF 43 OF 4ATTRIBUTES THE PROBE MATCHES · jλJ = P(JUDGED IN-CONCEPT)0.240.460.74
Observed · Qwen2.5-7B0.46
FIG. 3.1Interactive. Hover a learner to isolate it; pick a probe to read every prediction at that rung. Observed: Qwen2.5-7B-Instruct, 20 seeds — pre-registered as 0.25 / 0.50 / 0.75 before the run.
k = 4
/04Finding I · Default

One graded law, many families.

Uninstructed, every family and every scale lands on the same graded ladder — blind-predicted before the runs, and confirmed twice.

The default policy
P(in-concept) ≈ σ( β · (#matched − #unmatched) − b₀ )
β̄ = 0.56 across 9 models · algebraically the city-block Generalized Context Model (Nosofsky 1986)
  1. /01
    Graded, as predicted

    λ ≈ j/k was written down before the runs at k = 4 and k = 5 — observed within ~2 seed-clustered SE at k = 4, and 6/6 cells graded at k = 5.

  2. /02
    No version-space contraction

    λ stays flat from n = 4 to n = 32 at every scale, while the exact-Bayes reference contracts ≈ 0.11 → 0.03.

  3. /03
    No rule-shift with scale

    32B is as graded as 0.5B. Base and instruct models land on the same ladder.

  4. /04
    Exemplar residue is family-specific

    Qwen shows GCM-like sensitivity to irrelevant-attribute overlap (z = 6.96); Llama does not (z = 2.82).

Because the profile is algebraically the GCM on this design, it's framed as the models' default generalization policy — not a new law of cognition.

F9: a single sigmoid in matched-minus-unmatched attributes fits every model family at k = 4 and k = 5
FIG. F9One sigmoid fits every family — Qwen, Llama, Mistral, Gemma, OLMo — at both k = 4 and k = 5.
Full res
/05Finding II · Reasoning

Operation, statistic, policy.

A reasoning model's own thinking toggle is a same-weights causal switch. So what does RL-trained deliberation actually change?

Operation/01
Elicitable
0.699 → 0.211

A one-pass version-space instruction inside RL-trained deliberation collapses λ̄ toward the Bayes reference — with calibration intact (sanity 0.97). Intersecting hypotheses is a capacity, not a default.

Statistic/02
Only when stated
−0.136

Spell the size principle out in the instruction and contraction appears: pooled slope z = −2.81 over 68 paired seeds. Real but shallow — exact Bayes contracts 0.19 → 0.000 over the same range.

Policy/03
Absent
Null × 3

Thinking on vs. off — identical weights — is null at 8B, 14B and 32B (+0.050 / +0.039 / −0.036). No scale spontaneously manages a hypothesis space.

/CoT faithfulness
The chain of thought narrates rules. The decision computes similarity.

Reasoning traces contain rule talk, yet the stated conjunctions are never applied as meets. Reasoning training buys faithful execution of an instructed inference policy — it doesn't change the inductive bias.

60/60sampled reasoning traces with no elimination language and no acknowledgment of ambiguity
0%of thinking trials rule-committed — vs 8% in the non-reasoning control
Deadaccuracy lever: +0.049, then −0.014 on fresh seeds — killed by the pre-committed two-miss rule
/06Finding III · Domain

Same weights, two evidence laws.

Ported to Tenenbaum's number game — exact Bayes over 32 rules and 5,050 intervals — the same Qwen3-8B turns rule-like and contracts toward the Bayesian reference.

0.00.20.40.60.812481632DEMONSTRATIONS · n (LOG SCALE)λ(n) = P(JUDGED IN-CONCEPT)Exact BayesBoolean · flatslope +0.000 · z 0.00Numbers · contractslope −0.461 · z −9.63
FIG. 6.1Recomputed from the raw JSON with the paper's gates. Bars are ±1 seed-clustered SE. Number game: thinking off, two independent 36-seed samples. Tap the legend to isolate a series.
Rule vs similarity fit · Δfit
+0.561 / +0.552
z = +51.3 / +56.8 · two samples, thinking off
Contraction · λ(32) − λ(1)
−0.461 / −0.396
z = −9.63 / −8.81 · same verdict with thinking on
Probe strata decorrelate rule membership from numeric proximity by construction: far numbers inside the rule, near numbers outside it. A proximity learner and a rule learner disagree on exactly those probes.
Rule-like step vs graded staircaseFIG. 6.2
Number concepts
0.99
0.00
0.10
In-rule, far
Off-rule, near
Broader rule
Boolean concepts
0.42
0.78
0.84
1 of 4
2 of 4
3 of 4
/Interpretation

Number concepts come with a compact, nameable rule vocabulary — “even,” “multiple of 8,” “square.” Boolean conjunctions like red ∧ striped ∧ square don't. Domain-gating looks less like a switch between two inference engines and more like a reflection of which concepts are nameable in the model's prior.

Hypothesis-space induction is domain-gated.
/07Cross-Family Sweep

One default, five identities.

The pre-registered universality bar — at least 3 of 4 families rule-like and contracting — was not met. That failure is the finding.

FamilyΔfit · S1 / S2Slope λ(32)−λ(1) · S1 / S2Replicated profile
/01Qwen3-8B
+0.561 / +0.552
−0.461 / −0.396
z −9.6 / −8.8
Bayes rule induction
Off-rule acceptance dies while in-rule acceptance rises — the full signature.
/02Gemma-2-9B
+0.345 / +0.394
−0.500 / −0.450
z −9.4 / −7.6
Rule + contraction
Both headline verdicts, plus a global-tightening component.
/03Llama-3.1-8B
+0.300 / +0.347
−0.167 / −0.208
ns ×2
Rules, frozen evidence
Selects rules, but no resolvable evidence dynamics.
/04OLMo-2-13B
+0.034 / +0.035
−0.750 / −0.583
z −7.4 / −5.5
Tightening without rules
Everything collapses toward the demonstrations.
/05Mistral-7B-v0.3
−0.089 / −0.026
+0.140 / +0.183
z +2.6 / +3.0
Similarity + expansion
λ grows with n — the number-game analog of the Boolean default.
Synthesis · exploratory

The same five families that are homogeneous on Boolean concepts (31/31 cells, one graded default) are heterogeneous on numbers (five distinct, individually replicated profiles). The similarity default is family-universal; hypothesis-space induction is family-idiosyncratic. Flagged post-hoc — this contrast wasn't a pre-registered hypothesis.

/08Method · Ledger

Every kill, on the record.

Each hypothesis was frozen in a git commit before its run. Kills, exclusions and deviations carry the same weight as the positives.

H1Models sit at the join of the consistent intervalKilled · reframed
Amend. 1k = 4 blind prediction: λ ≈ 0.25 / 0.50 / 0.75Confirmed
Amend. 2k = 5 blind prediction: λ ≈ 0.2 / 0.4 / 0.6 / 0.8Confirmed · 6/6
Amend. 3GCM vs prototype residue — Qwen z = 6.96, Llama z = 2.82Mixed
K-RThinking restores contraction — toggle null at 8B / 14B / 32BNull
Amend. AToken-budget escalation after truncationInstrument fix
Amend. BA meet instruction elicits the operation — λ̄ 0.699 → 0.211Elicited
Amend. CInstructed meet improves true-AND accuracy — +0.049, below barNot claimed
Amend. C′Fresh-seed replication of C — sign reversed, −0.014Dead · two-miss
Amend. DSize principle elicitable when stated — −0.169, z = −2.21Hit · held
Amend. D′Replication of D — pooled −0.136, z = −2.81, 68 seedsClaimed
Amend. Egpt-oss-20b escalated toggle — fails the parse gate twiceExcluded
NGRule vs similarity on Tenenbaum's number gameRule + contraction
NG rep.Fresh seeds 36–71Replicated
NG-FCross-family universality (≥ 3 of 4) — gate is family-dependentNot met
Every headline was reproduced by an independent adversarial audit — recomputed from raw JSON, harness code reviewed, pre-registration timestamps verified. Zero mismatches.
/09Next · Reproduce

Structure or familiarity?

The number game bundles two properties. The next domain is built to pull them apart.

Third domain · moleculesIn progress

Scaffold rules or nearest neighbours?

Integers have both a clean, decidable hypothesis lattice and a rule vocabulary saturated in pretraining text — so the number game can't say which one switches rule-like induction on. The substructure lattice over molecules has the first and not the second: containment is decided by subgraph matching, but nothing drills “accept iff it contains a primary sulfonamide” the way arithmetic drills “multiples of 8.”

The two readings predict opposite outcomes there. The design is frozen and pre-registered, both reference identities were recovered from planted oracles end-to-end, and the runs execute locally on Apple Silicon through MLX — no rented GPU. Molecules are opaque strings: the results license claims about model induction, not chemistry.

4,620
molecules
619
hypotheses
8
admitted rules
Reproduce · no GPUPython 3.10–3.12
$ pip install -e .
$ lambda-lattice selftest
$ lambda-lattice score numbers \
    data/echo_numgame_q8.json
$ lambda-lattice figures

The self-test plants a Bayes oracle and a proximity oracle and checks the scorer recovers both. Every number on this page traces to a committed raw JSON.

PythonPyTorchTransformersvLLMMLXNumPy / SciPypytestGitHub Actions
λ
/10End

Instruments,
not benchmarks.

λ-lattice is open source under MIT, with every raw result, pre-registration and figure in the repository. If you work on in-context learning, interpretability or cognitive models of induction, I'd like to compare notes.