[Paper Review] Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence
Eagle (RWKV-5) and Finch (RWKV-6) enhance RWKV with matrix-valued states and data-dependent recurrence, achieving competitive multilingual and long-context performance while preserving efficient inference; models and dataset are publicly released.
We present Eagle (RWKV-5) and Finch (RWKV-6), sequence models improving upon the RWKV (RWKV-4) architecture. Our architectural design advancements include multi-headed matrix-valued states and a dynamic recurrence mechanism that improve expressivity while maintaining the inference efficiency characteristics of RNNs. We introduce a new multilingual corpus with 1.12 trillion tokens and a fast tokenizer based on greedy matching for enhanced multilinguality. We trained four Eagle models, ranging from 0.46 to 7.5 billion parameters, and two Finch models with 1.6 and 3.1 billion parameters and find that they achieve competitive performance across a wide variety of benchmarks. We release all our models on HuggingFace under the Apache 2.0 license. Models at: https://huggingface.co/RWKV Training code at: https://github.com/RWKV/RWKV-LM Inference code at: https://github.com/RWKV/ChatRWKV Time-parallel training code at: https://github.com/RWKV/RWKV-infctx-trainer
Motivation & Objective
- Motivate the development of more expressive yet efficient sequence models by extending RWKV beyond vector-valued states.
- Introduce matrix-valued attention states and data-dependent decay and recurrence to improve expressivity.
- Create and release a multilingual dataset and tokenizer to boost performance on non-English and code data.
- Provide open training/inference pipelines and public pretrained models to bolster reproducibility and research in alternative-architecture LLMs.
Proposed method
- Introduce Eagle (RWKV-5) with multi-headed matrix-valued states, a reformulated receptance, and additional gating.
- Develop Finch (RWKV-6) with data-dependent time-mixing and token-shift using parameterized linear interpolations and LoRA-based augmentation.
- Propose a RWKV World Tokenizer based on a Trie-based greedy matching scheme for multilingual efficiency.
- Present RWKV World v2 dataset (1.12 trillion tokens) to improve multilingual and code data coverage.
- Describe architectural details and training setup to enable replication and comparison with Transformer-based models.
Experimental results
Research questions
- RQ1How do matrix-valued states and dynamic recurrence affect modeling expressivity and efficiency relative to RWKV-4?
- RQ2What gains do Eagle and Finch offer on multilingual benchmarks, long-context tasks, and associative recall compared to prior RWKV versions?
- RQ3Can the new tokenizer and RWKV World v2 dataset improve multilingual and code-data performance without sacrificing inference speed?
- RQ4What are the trade-offs in speed and memory for Finch and Eagle at scale and across modalities?
- RQ5Do the proposed architectures extend effectively to multimodal tasks (music, vision-language)?
Key findings
- Eagle and Finch achieve competitive multilingual and English benchmarks across multiple scales (0.46B–7.5B parameters for Eagle; 1.6B–3.1B for Finch).
- Multilingual benchmarks show Eagle/Finch outperforming similarly-sized models on a Pareto frontier of FLOPs versus accuracy.
- Associative recall (MQAR) improves significantly with Eagle and Finch, with Finch achieving very high accuracy.
- Long-context experiments (PG19) show substantial loss reductions for Eagle and further improvements for Finch beyond RWKV-4.
- Bamboo benchmark results indicate superior long-context reasoning performance for Finch and Eagle at 1.5B and 3B scales compared to baselines.
- VisualRWKV and RWKV Music models demonstrate multimodal capabilities with competitive performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.