The attention mechanism is the core innovation behind the Transformer architecture that powers ChatGPT.
The 2017 paper 'Attention Is All You Need' by Vaswani et al. introduced this architecture.
Reference:
Wikipedia: Attention Mechanism
TaskLoco™ — The Sticky Note GOAT