[2405.21060] Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality