paper-with-me

홈 › Papers

GoldFinch: High Performance RWKV/Transformer Hybrid with Linear Pre-Fill and Extreme KV-Cache Compression

2024-07-16 · Daniel Goldstein, Fares Obeid, Eric Alcaide, Guangyu Song, Eugene Cheah

We introduce GoldFinch, a hybrid Linear Attention/Transformer sequence model that uses a new technique to efficiently generate a highly compressed and reusable KV-Cache in linear time and space with respect to sequence length. GoldFinch stacks our new GOLD transformer on top of an enhanced version of the Finch (RWKV-6) architecture. We train up to 1.5B parameter class models of the Finch, Llama, and GoldFinch architectures, and find dramatically improved modeling performance relative to both Finch and Llama. Our cache size savings increase linearly with model layer count, ranging from 756-2550 times smaller than the traditional transformer cache for common sizes, enabling inference of extremely large context lengths even on limited hardware. Although autoregressive generation has O(n) time complexity per token because of attention, pre-fill computation of the entire initial cache state for a submitted context costs only O(1) time per token due to the use of a recurrent neural network (RNN) to generate this cache. We release our trained weights and training code under the Apache 2.0 license for community use.

📄 PDF Abstract BibTeX arXiv:2407.12077

Code (2)

SmerkyG/GoldFinch-paper 공식 구현 pytorch
recursal/GoldFinch-paper 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

FINCH Please enter a description about the method here

Similar Papers 제목 키워드 기반

ARWKV: Pretrain is not what we need, an RNN-Attention-Based Language Model Born from Transformer

2025-01-26 · Lin Yueyu, Li Zhiyuan, Peter Yue, Liu Xiao

As is known, hybrid quadratic and subquadratic attention models in multi-head architectures have surpassed both Transformer and Linear RNN models , with these works primarily focusing on reducing KV complexity and improv…

Language ModelingLanguage ModellingTransfer Learning

Med-URWKV: Pure RWKV With ImageNet Pre-training For Medical Image Segmentation

2025-06-12 · Zhenhuan Zhou

Medical image segmentation is a fundamental and key technology in computer-aided diagnosis and treatment. Previous methods can be broadly classified into three categories: convolutional neural network (CNN) based, Transf…

Image SegmentationLong-range modelingMedical Image SegmentationSegmentation+1

RWKV-X: A Linear Complexity Hybrid Language Model

2025-04-30 · Haowen Hou, Zhiyi Huang, Kaifeng Tan, Rongchang Lu 외

In this paper, we introduce RWKV-X, a novel hybrid architecture that combines the efficiency of RWKV for short-range modeling with a sparse attention mechanism designed to capture long-range context. Unlike previous hybr…

Language ModelingLanguage Modellingmodel

A Survey of RWKV

2024-12-19 · Zhiyuan Li, Tingyu Xia, Yi Chang, Yuan Wu

The Receptance Weighted Key Value (RWKV) model offers a novel alternative to the Transformer architecture, merging the benefits of recurrent and attention-based systems. Unlike conventional Transformers, which depend hea…

Natural Language UnderstandingSurveyText Generation

Quantum-Enhanced Natural Language Generation: A Multi-Model Framework with Hybrid Quantum-Classical Architectures

2025-08-29 · Chi-Sheng Chen, En-Jui Kuo arxiv

This paper presents a comprehensive evaluation of quantum text generation models against traditional Transformer/MLP architectures, addressing the growing interest in quantum computing applications for natural language p…

Text Generation