Math cracks how AI understands 'bark' means both tree-skin and dog-sound.
This paper mathematically proves how Transformers use multiple word meanings for in-context learning
https://arxiv.org/abs/2411.02199
π€ Original Problem:
LLMs show remarkable in-context learning abilities without fine-tuning, but we lack theoretical understanding of how they leverage word semantics across different concepts for this capability.
-----
π§ Solution in this Paper:
β Introduces a concept-based sparse coding prompt model where words and labels have multiple feature embeddings for different concepts
β Analyzes a two-layer Transformer with softmax attention and ReLU-activated feed-forward network
β Maintains positive inner products within concepts and orthogonality across concepts
β Uses cross-entropy loss and stochastic gradient descent for training
-----
π‘ Key Insights:
β Words can have different semantic meanings across multiple concepts
β The model achieves exponential convergence despite non-convex optimization
β Multi-concept encoded linear semantic geometry enables efficient out-of-distribution tasks
β No requirement on demonstration length or batch size for training
-----
π Results:
β Achieves Bayes optimal test error with logarithmic number of iterations
β Proves exponential convergence of 0-1 loss with cross-entropy training
β First theoretical framework handling softmax attention, ReLU-MLP, and cross-entropy loss simultaneously










