Enhancing Transformer RNNs with Multiple Temporal Perspectives

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Dumitru, Razvan-Gabriel, Peteleaza, Darius, Surdeanu, Mihai
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929417919397888
author Dumitru, Razvan-Gabriel
Peteleaza, Darius
Surdeanu, Mihai
author_facet Dumitru, Razvan-Gabriel
Peteleaza, Darius
Surdeanu, Mihai
contents We introduce the concept of multiple temporal perspectives, a novel approach applicable to Recurrent Neural Network (RNN) architectures for enhancing their understanding of sequential data. This method involves maintaining diverse temporal views of previously encountered text, significantly enriching the language models' capacity to interpret context. To show the efficacy of this approach, we incorporate it into the Receptance Weighted Key Value (RWKV) architecture, addressing its inherent challenge of retaining all historical information within a single hidden state. Notably, this improvement is achieved with a minimal increase in the number of parameters --even as little as $0.04\%$ of the original number of parameters. Further, the additional parameters necessary for the multiple temporal perspectives are fine-tuned with minimal computational overhead, avoiding the need for a full pre-training. The resulting model maintains linear computational complexity during prompt inference, ensuring consistent efficiency across various sequence lengths. The empirical results and ablation studies included in our research validate the effectiveness of our approach, showcasing improved performance across multiple benchmarks. The code, model weights and datasets are open-sourced at: https://github.com/RazvanDu/TemporalRNNs.
format Preprint
id arxiv_https___arxiv_org_abs_2402_02625
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Transformer RNNs with Multiple Temporal Perspectives
Dumitru, Razvan-Gabriel
Peteleaza, Darius
Surdeanu, Mihai
Machine Learning
Artificial Intelligence
Computation and Language
I.2.0; I.2.7
We introduce the concept of multiple temporal perspectives, a novel approach applicable to Recurrent Neural Network (RNN) architectures for enhancing their understanding of sequential data. This method involves maintaining diverse temporal views of previously encountered text, significantly enriching the language models' capacity to interpret context. To show the efficacy of this approach, we incorporate it into the Receptance Weighted Key Value (RWKV) architecture, addressing its inherent challenge of retaining all historical information within a single hidden state. Notably, this improvement is achieved with a minimal increase in the number of parameters --even as little as $0.04\%$ of the original number of parameters. Further, the additional parameters necessary for the multiple temporal perspectives are fine-tuned with minimal computational overhead, avoiding the need for a full pre-training. The resulting model maintains linear computational complexity during prompt inference, ensuring consistent efficiency across various sequence lengths. The empirical results and ablation studies included in our research validate the effectiveness of our approach, showcasing improved performance across multiple benchmarks. The code, model weights and datasets are open-sourced at: https://github.com/RazvanDu/TemporalRNNs.
title Enhancing Transformer RNNs with Multiple Temporal Perspectives
topic Machine Learning
Artificial Intelligence
Computation and Language
I.2.0; I.2.7
url https://arxiv.org/abs/2402.02625