AI engineering glossary · Transformers LLM architecture

What is reformer?

Reformer: An efficient Transformer that uses locality-sensitive hashing to group similar queries and keys so attention is computed only within buckets, and reversible layers to save memory. It reduces long-sequence cost from quadratic towards near-linear.

Level: advancedTopic: Transformers LLM architecture

Reformer: an example

Tokens whose query vectors hash to the same bucket attend to each other only, instead of to all 64,000 tokens.

Related terms

More Transformers LLM architecture terms

Where you learn it

Reformer is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.