Share from 0:00
0:00
/

"Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context Learning"

The podcast on this paper is generated with Google's Illuminate.

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

Discussion about this video

User's avatar

Ready for more?