Traditional Transformer models face a quadratic computational complexity with respect to sequence length, limiting them to around 512 tokens. Longformer's sparse attention mechanism, however, reduced this to linear complexity, making it feasible to process sequences of thousands of tokens, like 16,384.