A hybrid model based on transformer and Mamba for enhanced sequence modeling

State Space Models (SSMs) have made remarkable strides in language modeling in recent years. With the introduction of Mamba, these models have garnered increased attention, often surpassing Transformers in specific areas. Nevertheless, despite Mamba's unique strengths, Transformers remain essential due to their advanced computational capabilities and proven effectiveness. In this paper, we propose a novel model that effectively integrates the strengths of both Transformers and Mamba. Specifically, our model utilizes the Transformer's encoder for encoding tasks while employing Mamba as the decoder for decoding tasks. We introduce a feature fusion technique that combines the features generated by the encoder with the hidden states produced by the decoder. This approach successfully merges the advantages of the Transformer and Mamba, resulting in enhanced performance. Comprehensive experiments across various language tasks demonstrate that our proposed model consistently achieves competitive results, outperforming existing benchmarks.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-04-03
DOI
https://doi.org/10.1038/s41598-025-87574-8
Citations
5
Primary Topic
Genomics and Phylogenetic Studies
Type
article
Field-Weighted Citation Impact
4.03

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A hybrid model based on transformer and Mamba for enhanced sequence modeling

Sai Qian, Qunsheng Ruan, Miaohui Zhang, Xiaocui Zhu
5 citations
Scientific Reports
Genomics and Phylogenetic Studies
4.03
article

A hybrid model based on transformer and Mamba for enhanced sequence modeling

Sai Qian, Qunsheng Ruan, Miaohui Zhang, Xiaocui Zhu
article en
5 citations

Abstract

State Space Models (SSMs) have made remarkable strides in language modeling in recent years. With the introduction of Mamba, these models have garnered increased attention, often surpassing Transformers in specific areas. Nevertheless, despite Mamba's unique strengths, Transformers remain essential due to their advanced computational capabilities and proven effectiveness. In this paper, we propose a novel model that effectively integrates the strengths of both Transformers and Mamba. Specifically, our model utilizes the Transformer's encoder for encoding tasks while employing Mamba as the decoder for decoding tasks. We introduce a feature fusion technique that combines the features generated by the encoder with the hidden states produced by the decoder. This approach successfully merges the advantages of the Transformer and Mamba, resulting in enhanced performance. Comprehensive experiments across various language tasks demonstrate that our proposed model consistently achieves competitive results, outperforming existing benchmarks.

Scientific ReportsVol. 15(1)
Ganzhou People's Hospital (CN), Gannan Normal University (CN), Jiangxi Academy of Sciences (CN)
Education Department of Jiangxi Province
Affordable and clean energy
Openalex Percentile: Top 7%
Genomics and Phylogenetic Studies
4.03
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.