In this post, I want to explain the transformer. It is the architecture behind ChatGPT and most other large language models, and it came out in 2017. At the end, we look at what it means for prompt injection.
Before transformers
Before transformers, we mostly used Recurrent Neural Networks (RNNs) for text. An RNN reads one word at a time and keeps a small…



