Trapped by simplicity: When Transformers fail to learn from noisy features
Evan Peters, Ando Deng, Matheus H. Zambianco, Devin Blankespoor, Achim Kempf
TL;DR
The paper investigates whether transformers can learn target Boolean functions from data with feature noise and generalize to noiseless inputs. Using a noisy bitflip model, it analyzes the Bayes-optimal predictor $f_N^* = \mathrm{sign}(T_{1-2p} f)$ and examines learning on $\mathsf{parity}$, $\mathsf{maj}$, and random $k$-juntas, comparing transformers to LSTMs. It shows that transformers succeed on sparse parity/odd-majority tasks under noise but falter on random $k$-juntas, attributing failures to a simplicity bias that biases learning toward low-sensitivity predictors when the noisy-optimal predictor $f_N^*$ is simpler than the target $f$. The authors demonstrate a trap scenario and show that a sensitivity-penalty loss can mitigate the trap in some cases, highlighting a path to improve noise-robust learning. Overall, the work reveals fundamental limits of current transformer inductive biases for learning complex Boolean relations from noisy data and motivates regularization strategies or data design to counteract simplicity bias in algorithmic/discrete tasks and potentially in natural language under stochastic inputs.
Abstract
Noise is ubiquitous in data used to train large language models, but it is not well understood whether these models are able to correctly generalize to inputs generated without noise. Here, we study noise-robust learning: are transformers trained on data with noisy features able to find a target function that correctly predicts labels for noiseless features? We show that transformers succeed at noise-robust learning for a selection of $k$-sparse parity and majority functions, compared to LSTMs which fail at this task for even modest feature noise. However, we find that transformers typically fail at noise-robust learning of random $k$-juntas, especially when the boolean sensitivity of the optimal solution is smaller than that of the target function. We argue that this failure is due to a combination of two factors: transformers' bias toward simpler functions, combined with an observation that the optimal function for noise-robust learning typically has lower sensitivity than the target function for random boolean functions. We test this hypothesis by exploiting transformers' simplicity bias to trap them in an incorrect solution, but show that transformers can escape this trap by training with an additional loss term penalizing high-sensitivity solutions. Overall, we find that transformers are particularly ineffective for learning boolean functions in the presence of feature noise.
