[2405.17534] SMR: State Memory Replay for Long Sequence Modeling