REVIEW 1 cited by
Mini-Sequence Transformer: Optimizing Intermediate Memory for Long Sequences Training
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
read the original abstract
We introduce Mini-Sequence Transformer (MsT), a simple and effective methodology for highly efficient and accurate LLM training with extremely long sequences. MsT partitions input sequences and iteratively processes mini-sequences to reduce intermediate memory usage. Integrated with activation recomputation, it enables significant memory savings in both forward and backward passes. In experiments with the Llama3-8B model, with MsT, we measure no degradation in throughput or convergence even with 12x longer sequences than standard implementations. MsT is fully general, implementation-agnostic, and requires minimal code changes to integrate with existing LLM training frameworks. Integrated with the huggingface library, MsT successfully extends the maximum context length of Qwen, Mistral, and Gemma-2 by 12-24x.
Forward citations
Cited by 1 Pith paper
-
StreamBP: Memory-Efficient Exact Backpropagation for Long Sequence Training of LLMs
StreamBP partitions backpropagation over the sequence dimension to compute exact gradients with much lower activation memory, extending maximum trainable sequence length by roughly 3-5x over gradient checkpointing.
Discussion (0). Continue with ORCID to comment.