E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning
Zihan LiaoJun WangHang YuLingxiao WeiJLJianguo LiWei Zhang
Zihan Liao
Jun Wang
Hang Yu
Lingxiao Wei
JLJianguo Li
Wei Zhang
+6
E2LLM (Encoder Elongated Large Language Models) addresses the 'impossible triangle' of high long-context performance, low computational complexity, and pretrained model compatibility. It splits long contexts into chunks, compresses each into soft prompts via a pretrained text encoder, and aligns them with a decoder-only LLM through an adapter. Training with encoder output reconstruction and long-context instruction fine-tuning improves reasoning. Experiments show E2LLM outperforms 8 state-of-the-art methods on document summarization and question answering, and achieves the best results on LongBench v2 among comparable models.

arXiv ·
· September 10, 2024