E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Liao, Zihan, Wang, Jun, Yu, Hang, Wei, Lingxiao, Li, Jianguo, Zhang, Wei
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918444211896320
author Liao, Zihan
Wang, Jun
Yu, Hang
Wei, Lingxiao
Li, Jianguo
Wang, Jun
Zhang, Wei
author_facet Liao, Zihan
Wang, Jun
Yu, Hang
Wei, Lingxiao
Li, Jianguo
Wang, Jun
Zhang, Wei
contents Processing long contexts is increasingly important for Large Language Models (LLMs) in tasks like multi-turn dialogues, code generation, and document summarization. This paper addresses the challenges of achieving high long-context performance, low computational complexity, and compatibility with pretrained models -- collectively termed the ``impossible triangle''. We introduce E2LLM (Encoder Elongated Large Language Models), a novel approach that effectively navigates this paradox. E2LLM divides long contexts into chunks, compresses each into soft prompts using a pretrained text encoder, and aligns these representations with a decoder-only LLM via an adapter. To enhance the LLM's reasoning with these soft prompts, we employ two training objectives: encoder output reconstruction and long-context instruction fine-tuning. Extensive experiments reveal that E2LLM not only outperforms 8 state-of-the-art (SOTA) methods in effectiveness and efficiency for document summarization and question answering, but also achieves the best performance on LongBench v2 among models of comparable size.
format Preprint
id arxiv_https___arxiv_org_abs_2409_06679
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning
Liao, Zihan
Wang, Jun
Yu, Hang
Wei, Lingxiao
Li, Jianguo
Wang, Jun
Zhang, Wei
Computation and Language
Processing long contexts is increasingly important for Large Language Models (LLMs) in tasks like multi-turn dialogues, code generation, and document summarization. This paper addresses the challenges of achieving high long-context performance, low computational complexity, and compatibility with pretrained models -- collectively termed the ``impossible triangle''. We introduce E2LLM (Encoder Elongated Large Language Models), a novel approach that effectively navigates this paradox. E2LLM divides long contexts into chunks, compresses each into soft prompts using a pretrained text encoder, and aligns these representations with a decoder-only LLM via an adapter. To enhance the LLM's reasoning with these soft prompts, we employ two training objectives: encoder output reconstruction and long-context instruction fine-tuning. Extensive experiments reveal that E2LLM not only outperforms 8 state-of-the-art (SOTA) methods in effectiveness and efficiency for document summarization and question answering, but also achieves the best performance on LongBench v2 among models of comparable size.
title E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning
topic Computation and Language
url https://arxiv.org/abs/2409.06679