arXiv:2511.17550cs.NEcs.AI2025-11

用逻辑门模拟图像,实现高速可解释的神经网络

Gate-level boolean evolutionary geometric attention neural networks

  • 像素作为布尔变量,在几何网格上通过逻辑门与扩散机制更新
  • 引入异或注意力与布尔位置编码,实现逻辑自注意力机制
  • 全布尔运算设计,适合硬件加速,兼具可解释性与通用表达能力

本文提出一种基于逻辑门的布尔进化几何注意力神经网络,将图像建模为由逻辑门控制的布尔场。每个像素为0或1的布尔变量,位于二维几何流形(如离散环面格点)上,定义像素间邻接关系与信息传播路径。网络通过布尔反应-扩散机制更新图像状态:像素接收邻域布尔扩散(扩散过程),并通过可训练的门级逻辑核进行局部逻辑更新(反应过程),构成反应-扩散逻辑网络。引入基于异或的布尔自注意力机制,利用XNOR型查询-键(Q-K)注意力调控邻域扩散路径,实现逻辑注意力。提出布尔旋向位置编码(RoPE),通过奇偶位翻转编码相对距离,模拟布尔“相位”偏移。整体结构类似Transformer,但完全在布尔域运行。可训练参数包括Q-K模式比特和门级核配置。因输出为离散值,采用连续松弛方法(如sigmoid近似或软逻辑算子)保证可微训练。理论分析表明,该网络具备通用表达性、可解释性与硬件高效性,可重现卷积与注意力机制。应用涵盖高速图像处理、可解释人工智能及数字硬件加速,具有广阔研究前景。

原文摘要 · Abstract (English)

This paper presents a gate-level Boolean evolutionary geometric attention neural network that models images as Boolean fields governed by logic gates. Each pixel is a Boolean variable (0 or 1) embedded on a two-dimensional geometric manifold (for example, a discrete toroidal lattice), which defines adjacency and information propagation among pixels. The network updates image states through a Boolean reaction-diffusion mechanism: pixels receive Boolean diffusion from neighboring pixels (diffusion process) and perform local logic updates via trainable gate-level logic kernels (reaction process), forming a reaction-diffusion logic network. A Boolean self-attention mechanism is introduced, using XNOR-based Boolean Query-Key (Q-K) attention to modulate neighborhood diffusion pathways and realize logic attention. We also propose Boolean Rotary Position Embedding (RoPE), which encodes relative distances by parity-bit flipping to simulate Boolean ``phase'' offsets. The overall structure resembles a Transformer but operates entirely in the Boolean domain. Trainable parameters include Q-K pattern bits and gate-level kernel configurations. Because outputs are discrete, continuous relaxation methods (such as sigmoid approximation or soft-logic operators) ensure differentiable training. Theoretical analysis shows that the network achieves universal expressivity, interpretability, and hardware efficiency, capable of reproducing convolutional and attention mechanisms. Applications include high-speed image processing, interpretable artificial intelligence, and digital hardware acceleration, offering promising future research directions.

布尔神经网络逻辑注意力硬件加速可解释AI

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。