Work

Validation of the Logic Meta-Phase Space Model: A Code-Completion Evaluation

Year: 2026
Type: preprint
Abstract: This paper validates the theoretical predictions of the Logic Meta-Phase Space (LMPS) model on the task of AST node-type completion (predict the next node type τ given the ancestor-type path p), over three corpora: base 115 / big 1615 / full 5618 Python files (9.4M (p,τ) pairs, |T|=80–104), with an MLP as the standard-network baseline (numpy implementation; no PyTorch in this environment, LSTM/Transformer pending environment). The evaluation uses a clean protocol (fixed test set + scaled MLP training budget), eliminating two confounds (C1 test-set drift with corpus size; C2 fixed MLP training subsample). Main results: (1) on all three splits (in-distribution/compositional/length), LMPS-direct is fully ≥ MLP at full scale on the fixed test set (+3.6/+1.7/+3.4pp), with the length advantage monotone in scale (−0.8→+1.5→+3.4pp); (2) sample efficiency (10% LMPS vs 100% MLP) holds significantly at full scale (+2.3pp, z=+7.53), is directionally consistent but not significant at big (p=0.078), and does not hold at base; (3) the accuracy lower bound (theoretical paper Proposition 3.6) turns positive in both directions under the same-distribution setting and is verified (+0.0656/+0.0863, A_exact ≥ bound ✓), while the cross-distribution setting is negative and monotonically worsens with scale (−0.044/−0.157/−0.183) — a direct numerical verification of a theorem-level prediction and an honest readout of distribution mismatch; (4) the path mechanism exhibits a task-conditional division of labor: on the single-step task, path aggregation is strongly negative (all three implementations ≤ direct emission); on the goal-directed multi-step task (path completion), U2 navigation significantly beats greedy emission (rare targets, long paths: 0.572 vs 0.127, z=+13.30, d=+1.05) and improves significantly with corpus scale (paired z=+3.64, the B2 prediction); on common targets, emission tracking overtakes — the division of labor is predicted by the theory and confirmed by experiment. n-gram(k=3) is ≥ LMPS on all three splits — a syntax-level ceiling, stated honestly. The self-imposed strong criterion "+10pp" does not hold and is withdrawn; six rounds of audits of this paper's own conclusions (including two corrections) are fully archived (§8). Lock statement: this paper is a locked edition; no further experiments will be pursued unless an explicit new hypothesis is proposed. Keywords: logic meta-phase space; code completion; clean protocol; confound audit; accuracy lower bound; path search; mechanism division of labor; sample efficiency 本文验证逻辑元相空间(LMPS)模型的理论预言,任务为 AST 节点类型补全(给定祖先类型路径 p 预测下一节点类型 τ),语料三档:base 115 / big 1615 / full 5618 个 Python 文件(9.4M (p,τ) 对,|T|=80–104),标准网络基线为 MLP(numpy 实现;本环境无 PyTorch,LSTM/Transformer 待环境)。评估采用干净协议(固定测试集 + MLP 训练预算缩放),剔除两个混杂(C1 测试集随语料漂移、C2 MLP 训练子样本固定)。主要结果:(1) 分布内/组合/长度三切分上,full 规模固定测试 LMPS-direct 全面 ≥ MLP(+3.6/+1.7/+3.4pp),长度优势随规模单调(−0.8→+1.5→+3.4pp);(2) 样本效率(10% 的 LMPS vs 100% 的 MLP)在 full 规模显著成立(+2.3pp,z=+7.53),big 方向一致未达显著(p=0.078),base 不成立;(3) 准确率下界(理论文章命题 3.6)在同分布设定下双向转正并被验证(+0.0656/+0.0863,A_exact ≥ 下界 ✓),跨分布设定为负且随规模单调恶化(−0.044/−0.157/−0.183)——定理级预言的直接数值验证与分布错配的诚实读数;(4) 路径机制呈任务条件分工:单步任务上路径聚合强阴性(三种实现均 ≤ 直接发射);目标导向多步任务(路径补全)上 U2 导航显著优于贪心发射(罕见目标长路径 0.572 vs 0.127,z=+13.30,d=+1.05)且随语料规模显著增强(配对 z=+3.64,B2 预言);常见目标上发射追踪占优——机制分工由理论预言、由实验证实。n-gram(k=3) 三切分均 ≥ LMPS,为语法层上界,如实声明。自设强判据"+10pp"不成立并撤回;评估期间对自身结论的六轮审计(含两次更正)全部归档(§8)。锁定声明:本文为锁定版,不再追新实验,除非提出明确的新假设。 关键词: 逻辑元相空间;代码补全;干净协议;混杂审计;准确率下界;路径搜索;机制分工;样本效率
Author: chen, kaifa
Language: English
Open Access status: green
OpenAlex ID: W7213612204
Cites:
Cited by:
Related to: 10