神经素数筛:密度驱动的泛化与Hardy-Littlewood渐近性的实证
Neural Prime Sieves: Density-Driven Generalization and Empirical Evidence for Hardy-Littlewood Asymptotics
AI总结:
本文提出PrimeFamilyNet,通过素数间隙和模数素数残差学习素数家族的概率过滤器,实现从10^7到10^16的九个数量级泛化,验证Hardy-Littlewood渐近预测。
摘要:
特殊素数家族(孪生素数、索菲亚·热尔曼素数、安全素数、亲生素数、性感素数、陈素数和孤立素数)是解析数论的核心对象,但目前没有高效的概率过滤器能识别已知素数中的潜在成员。传统筛法不为存活候选者分配概率权重,而先前的机器学习方法受限于素数指示序列的算法随机性,导致真阳性率接近零。我们提出了PrimeFamilyNet,一个基于后向素数间隙和已知素数p的模数素数残差的多头残差网络,同时学习所有七个家族的概率过滤器,并在从训练(10^7-10^9)到评估(10^16)的九个数量级范围内进行泛化。孤立素数召回率从5×10^8时的0.809增加到10^16时的0.984,提升17.5个百分点,是唯一随规模提升的家族。由于召回率不受类别普及率影响,这反映了真实的决策边界锐化,而非极端规模下孤立素数比例的上升。仅训练到10^9的模型在无密度监督下仍能正确预测渐近方向,验证了Hardy-Littlewood k-元预测。因果模型在接近10^10时保持五个家族超过95%的召回率,同时将搜索空间减少62-88%。对于陈素数,因果召回率在所有尺度均超过非因果召回率(10^16时边际+0.245),因为g+=2仅编码陈条件的素数情况。聚焦损失将稀疏代数家族召回率降至0.000。非对称损失在分布内表现优于加权BCE,但分布外表现更差,表明分布内召回率单独作为尺度泛化任务的评估标准是误导的。
英文摘要:
Special prime families (twin, Sophie Germain, safe, cousin, sexy, Chen, and isolated primes) are central objects of analytic number theory, yet no efficiently computable probabilistic filter exists for identifying likely members among known primes at large scale. Classical sieves assign no probability weights to surviving candidates, and prior machine learning approaches are limited by the algorithmic randomness of the prime indicator sequence, yielding near-zero true positive rates. We present PrimeFamilyNet, a multi-head residual network conditioned on the backward prime gap and modular primorial residues of a known prime $p$, learning probabilistic filters for all seven families simultaneously and generalising across nine orders of magnitude from training ($10^7$--$10^9$) to evaluation at $10^{16}$. Isolated prime recall increased monotonically from $0.809$ at $5\times10^8$ to $0.984$ at $10^{16}$, a gain of $17.5$ percentage points and the only family among seven to improve with scale. Because recall is invariant to class prevalence, this reflects genuine decision boundary sharpening, not the rising isolated-prime fraction at extreme scales. A model trained only to $10^9$ reproduced the correct asymptotic direction without density supervision, corroborating Hardy--Littlewood $k$-tuple predictions. The causal model retained over $95\%$ recall for five families near $10^{10}$ while reducing the search space by $62$--$88\%$. For Chen primes, causal recall exceeded non-causal recall at every scale (margin $+0.245$ at $10^{16}$) because $g^+=2$ encodes only the prime case of the Chen condition. Focal Loss collapsed sparse algebraic family recall to $0.000$. Asymmetric Loss outperformed weighted BCE in-distribution but degraded more steeply out-of-distribution, showing that in-distribution recall alone is a misleading criterion for scale-generalisation tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。