{"url":"/method/funnel-transformer","slug":"funnel-transformer","name":"Funnel Transformer","full_name":"Funnel Transformer","full_name_withheld":false,"description_markdown":"**Funnel Transformer** is a type of [Transformer](https://paperswithcode.com/methods/category/transformers) that gradually compresses the sequence of hidden states to a shorter one and hence reduces the computation cost. By re-investing the saved FLOPs from length reduction in constructing a deeper or wider model, the model capacity is further improved. In addition, to perform token-level predictions as required by common pretraining objectives, Funnel-[transformer](https://paperswithcode.com/method/transformer) is able to recover a deep representation for each token from the reduced hidden sequence via a decoder.\r\n\r\nThe proposed model keeps the same overall skeleton of interleaved S-[Attn](https://paperswithcode.com/method/scaled) and P-[FFN](https://paperswithcode.com/method/dense-connections) sub-modules wrapped by [residual connection](https://paperswithcode.com/method/residual-connection) and [layer normalization](https://paperswithcode.com/method/layer-normalization). But differently, to achieve representation compression and computation reduction, THE model employs an encoder that gradually reduces the sequence length of the hidden states as the layer gets deeper. In addition, for tasks involving per-token predictions like pretraining, a simple decoder is used to reconstruct a full sequence of token-level representations from the compressed encoder output. Compression is achieved via a pooling operation,","description_state":"present","introduced_year":null,"introduced_by":{"title":"Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing","paper":"/paper/funnel-transformer-filtering-out-sequential","first_author":"Zihang Dai","n_authors":4,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/funnel-transformer-filtering-out-sequential"},"source":{"url":"https://arxiv.org/abs/2006.03236v1","title":"Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"Natural Language Processing","area_id":"natural-language-processing","collection":"Transformers","url":"/methods/category/transformers","pwc_aliases":[]}],"n_papers_tagged":2,"archive_num_papers":2,"papers_newest_first":[{"paper":null,"title":"Revisiting Funnel Transformers for Modern LLM Architectures with Comprehensive Ablations in Training and Inference Configurations","date":"2025-04-02","arxiv_id":"2504.02877","n_code_links":0,"syntology":null},{"paper":"/paper/funnel-transformer-filtering-out-sequential","title":"Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing","date":"2020-06-05","arxiv_id":"2006.03236","n_code_links":3,"syntology":{"ran":2,"of":2,"unverified":0,"pointer_only":0}}],"papers_shown":2,"tasks":[{"task":"/task/computational-efficiency","name":"Computational Efficiency","papers":1},{"task":"/task/decoder","name":"Decoder","papers":1},{"task":"/task/reading-comprehension","name":"Reading Comprehension","papers":1},{"task":"/task/text-classification","name":"Text Classification","papers":1}],"tasks_shown":4,"n_tasks":4,"usage_by_year":[{"year":"2020","papers":1},{"year":"2025","papers":1}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/funnel-transformer"},"syntology_read_at":"2026-09-24T18:15:14+00:00"}