What is mLSTM (Matrix Long Short-Term Memory)?
mainmLSTM is a variant of the LSTM architecture that replaces the traditional scalar memory cell state with a matrix memory structure ($C$). It uses a covariance update rule and represents input information as key-value pairs ($k, v$) to enhance storage capacity.
Key components include:
- Input Gate ($i$): Controls input flow into the memory cell.
- Forget Gate ($f$): Determines how much previous memory to retain.
- Output Gate ($o$): Controls information flow from the cell to the hidden state.
- Cell State ($C$): A matrix storing long-term memory.
- Key ($k$) and Value ($v$): Represent input information for memory updates.
- Query ($q$): Used to retrieve information from the memory matrix.
Because it relies on matrix operations rather than sequential scalar updates, mLSTM is highly suitable for parallel computation on hardware accelerators like GPUs.