paper-with-me

홈 › Papers

Attention Learning is Needed to Efficiently Learn Parity Function

2025-02-11 · Yaomengxi Han, Debarghya Ghoshdastidar

Transformers, with their attention mechanisms, have emerged as the state-of-the-art architectures of sequential modeling and empirically outperform feed-forward neural networks (FFNNs) across many fields, such as natural language processing and computer vision. However, their generalization ability, particularly for low-sensitivity functions, remains less studied. We bridge this gap by analyzing transformers on the $k$-parity problem. Daniely and Malach (NeurIPS 2020) show that FFNNs with one hidden layer and $O(nk^7 \log k)$ parameters can learn $k$-parity, where the input length $n$ is typically much larger than $k$. In this paper, we prove that FFNNs require at least $\Omega(n)$ parameters to learn $k$-parity, while transformers require only $O(k)$ parameters, surpassing the theoretical lower bound needed by FFNNs. We further prove that this parameter efficiency cannot be achieved with fixed attention heads. Our work establishes transformers as theoretically superior to FFNNs in learning parity function, showing how their attention mechanisms enable parameter-efficient generalization in functions with low sensitivity.

📄 PDF Abstract BibTeX arXiv:2502.07553

Code (0)

등록된 구현이 없습니다.

Tasks

Sensitivity

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Lower bounds for one-layer transformers that compute parity

2026-05-12 · Daniel Hsu arxiv

This note shows that no self-attention layer post-processed by a rational function can sign-represent the parity function unless the product of the number of heads and the degree of the post-processing function grows lin…

Attention-based View Selection Networks for Light-field Disparity Estimation

2020-02-07 · AAAI 2020 : The Thirty-Fourth AAAI Conference on Artificial Intelligence 2020 2 · Yu-Ju Tsai, Yu-Lun Liu, Ming Ouhyoung, Yung-Yu Chuang

This paper introduces a novel deep network for estimating depth maps from a light field image. For utilizing the views more effectively and reducing redundancy within views, we propose a view selection module that genera…

Depth EstimationDisparity Estimation

Road Damage Detection Based on Unsupervised Disparity Map Segmentation

2019-10-11 · Rui Fan, Ming Liu

This paper presents a novel road damage detection algorithm based on unsupervised disparity map segmentation. Firstly, a disparity map is transformed by minimizing an energy function with respect to stereo rig roll angle…

Road Damage Detection

Transformers Provably Solve Parity Efficiently with Chain of Thought

2024-10-11 · Juno Kim, Taiji Suzuki

This work provides the first theoretical analysis of training transformers to solve complex problems by recursively generating intermediate states, analogous to fine-tuning for chain-of-thought (CoT) reasoning. We consid…

Frequency-Structured Field Learning for Light-Field Disparity Estimation

2026-07-16 · Sara Monji-Azad, Yulin Liu, Jürgen Hesser arxiv

Light-field disparity estimation requires global consistency in smooth or textureless regions and local precision near occlusion boundaries, thin structures, and abrupt depth transitions. Existing methods address these r…

Disparity Estimation