[Paper Review] Trapped by simplicity: When Transformers fail to learn from noisy features
Transformers can learn noise-robustly for sparse parity and odd sparse majority functions but generally fail for random k-juntas due to their simplicity bias; introducing a high-sensitivity penalty in training can help escape traps.
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.
Motivation & Objective
- Investigate whether transformers can learn target boolean functions from training data with feature noise.
- Compare noise-robust learning performance of transformers versus LSTMs on parity, majority, and random juntas.
- Understand why transformers fail or succeed in noise-robust learning and identify factors like function simplicity and sensitivity.
- Explore methods to mitigate simplicity bias to improve learning from noisy features.
Proposed method
- Model and train self-attention networks (SANs) and LSTMs on binary input tasks with iid bitflip noise.
- Evaluate learning on sparse majority and parity functions, and on random k-juntas across multiple hyperparameter settings and random initializations.
- Quantify noiseless generalization error and noisy-feature generalization error to assess noise-robust learning.
- Analyze function simplicity via sensitivity and compare f and f_N^* (optimal noisy predictor) across function classes.
- Conduct controlled trap-function experiments and test a loss penalty that discourages high-sensitivity solutions to study potential remedies.
Experimental results
Research questions
- RQ1Can transformers learn the underlying boolean function from noisy input features for parity and majority tasks?
- RQ2Do transformers with simplicity bias outperform or underperform LSTMs in noise-robust learning across function classes?
- RQ3Under what conditions does the optimal noisy predictor have lower sensitivity than the target function, and how does this affect learning?
- RQ4Can adding a penalty for high-sensitivity solutions help transformers escape learning traps and improve noise-robust learning?
Key findings
- Transformers reliably learn parity and odd-length sparse majorities from noisy features at high rates, outperforming LSTMs on these tasks.
- Transformers generally fail at noise-robust learning for random k-juntas, especially when the target function’s sensitivity is higher than the optimal noisy predictor’s sensitivity.
- The optimal predictor for noisy data (f_N^*) typically has lower average sensitivity than a random boolean function, biasing transformers toward suboptimal solutions when trained on noisy data.
- Transformers can be trapped by an incorrect, similarly performing function on noisy validation data, but adding a loss term penalizing high-sensitivity solutions can help them escape the trap.
- LSTMs also struggle with noise-robust learning, but for different reasons, including overfitting and lack of simplicity bias.
- Overall, transformers are particularly ineffective for learning boolean functions in the presence of feature noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.