Breaking through the learning plateaus of in-context learning in Transformer
Jingwen Fu, Tao Yang, Yuwang Wang, Yan Lu, Nanning Zheng
TL;DR
This work investigates why Transformers exhibit learning plateaus in in-context learning and introduces a conceptual split of internal representations into a weights component and a context component. Using a controllable Shapes3D-based synthetic task, the authors show that plateau duration correlates with dysfunction in the weights component, and they demonstrate three methods—weights warm-up, mixed training, and an extra weights loss—to accelerate learning without increasing model size. The proposed framework is validated through probes measuring component quality and extended to NLP tasks, where weights-focused interventions continue to improve in-context learning. The findings suggest an eco-friendly path to endowing AI systems with robust in-context learning by directly enhancing the weights component rather than scaling up models.
Abstract
In-context learning, i.e., learning from context examples, is an impressive ability of Transformer. Training Transformers to possess this in-context learning skill is computationally intensive due to the occurrence of learning plateaus, which are periods within the training process where there is minimal or no enhancement in the model's in-context learning capability. To study the mechanism behind the learning plateaus, we conceptually seperate a component within the model's internal representation that is exclusively affected by the model's weights. We call this the "weights component", and the remainder is identified as the "context component". By conducting meticulous and controlled experiments on synthetic tasks, we note that the persistence of learning plateaus correlates with compromised functionality of the weights component. Recognizing the impaired performance of the weights component as a fundamental behavior drives learning plateaus, we have developed three strategies to expedite the learning of Transformers. The effectiveness of these strategies is further confirmed in natural language processing tasks. In conclusion, our research demonstrates the feasibility of cultivating a powerful in-context learning ability within AI systems in an eco-friendly manner.
