Paper Reading AI Learner

Minimalist Softmax Attention Provably Learns Constrained Boolean Functions

2025-05-26 05:33:26
Jerry Yao-Chieh Hu, Xiwen Zhang, Maojiang Su, Zhao Song, Han Liu

Abstract

We study the computational limits of learning $k$-bit Boolean functions (specifically, $\mathrm{AND}$, $\mathrm{OR}$, and their noisy variants), using a minimalist single-head softmax-attention mechanism, where $k=\Theta(d)$ relevant bits are selected from $d$ inputs. We show that these simple $\mathrm{AND}$ and $\mathrm{OR}$ functions are unsolvable with a single-head softmax-attention mechanism alone. However, with teacher forcing, the same minimalist attention is capable of solving them. These findings offer two key insights: Architecturally, solving these Boolean tasks requires only minimalist attention, without deep Transformer blocks or FFNs. Methodologically, one gradient descent update with supervision suffices and replaces the multi-step Chain-of-Thought (CoT) reasoning scheme of [Kim and Suzuki, ICLR 2025] for solving Boolean problems. Together, the bounds expose a fundamental gap between what this minimal architecture achieves under ideal supervision and what is provably impossible under standard training.

Abstract (translated)

我们研究了使用简约的单头softmax注意力机制(其中$ k=\Theta(d) $相关的位从$d$个输入中被选出)来学习$k$-位布尔函数(特别是$\mathrm{AND}$、$\mathrm{OR}$及其噪声变体)的计算极限。结果显示,这些简单的$\mathrm{AND}$和$\mathrm{OR}$函数仅靠单头softmax注意力机制是无法解决的。然而,在使用教师强制训练的情况下,相同的简约注意力机制能够解决这些问题。 这些发现提供了两个关键见解:从架构的角度来看,解决布尔任务只需要简约注意机制,而不需要深层Transformer块或全连接层(FFNs)。从方法论角度来看,一次带有监督的梯度下降更新足以替代[Kim和Suzuki, ICLR 2025]为解决布尔问题提出的多步骤链式思考(CoT)推理方案。总的来说,这些界限揭示了在理想监督下这种最小架构所能实现的效果与在标准训练条件下无法证明可能之间存在着一个根本性的差距。

URL

https://arxiv.org/abs/2505.19531

PDF

https://arxiv.org/pdf/2505.19531.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot