{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/pvtv2-improved-baselines-with-pyramid-vision","title":"PVT v2: Improved Baselines with Pyramid Vision Transformer","arxiv_id":"2106.13797","date":"2021-06-25","proceeding":null,"authors":["Wenhai Wang","Enze Xie","Xiang Li","Deng-Ping Fan","Kaitao Song","Ding Liang","Tong Lu","Ping Luo","Ling Shao"],"abstract":"Transformer recently has presented encouraging progress in computer vision. In this work, we present new baselines by improving the original Pyramid Vision Transformer (PVT v1) by adding three designs, including (1) linear complexity attention layer, (2) overlapping patch embedding, and (3) convolutional feed-forward network. With these modifications, PVT v2 reduces the computational complexity of PVT v1 to linear and achieves significant improvements on fundamental vision tasks such as classification, detection, and segmentation. Notably, the proposed PVT v2 achieves comparable or better performances than recent works such as Swin Transformer. We hope this work will facilitate state-of-the-art Transformer researches in computer vision. Code is available at https://github.com/whai362/PVT.","url_abs":"https://arxiv.org/abs/2106.13797v7","url_pdf":"https://arxiv.org/pdf/2106.13797v7.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/whai362/PVT","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/Owais-Ansari/Unet3plus","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/martinsbruveris/tensorflow-image-models","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/open-mmlab/mmpose","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/rwightman/pytorch-image-models","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/sithu31296/semantic-segmentation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/xiaohu2015/pvt_detectron2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/BR-IDL/PaddleViT/blob/main/image_classification/PVTv2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/MS-Mind/MS-Code-02/tree/main/configs/pvt","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/MS-Mind/MS-Code-02/tree/main/configs/pvt_v2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/Mind23-2/MindCode-110","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":{"status":"ok"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/PaddlePaddle/PaddleClas","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/justld/PVTV2_paddle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":{"status":"ok"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/leondgarse/keras_cv_attention_models/tree/main/keras_cv_attention_models/pvt","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"tf","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/mindspore-courses/External-Attention-MindSpore/blob/main/model/backbone/PVT.py","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/open-mmlab/mmdetection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://github.com/shinya7y/UniverseNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"pvtv2-improved-baselines-with-pyramid-vision","repo_url":"https://gitlab.com/birder/birder","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"panoptic-segmentation","task_name":"Panoptic Segmentation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"depthwise-convolution","method_name":"Depthwise Convolution"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"pvtv2","method_name":"PVTv2"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"stochastic-depth","method_name":"Stochastic Depth"},{"method_slug":"swin-transformer","method_name":"Swin Transformer"},{"method_slug":"transformer","method_name":"Transformer"},{"method_slug":"vision-transformer","method_name":"Vision Transformer"}],"datasets_introduced":[],"methods_introduced":[{"slug":"pvtv2","name":"PVTv2","full_name":"Pyramid Vision Transformer v2"}],"results":[{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"PVTv2-B4","rank_in_archive_order":391,"of":1060,"metrics":{"GFLOPs":"11.8","Number of params":"82M","Top 1 Accuracy":"83.8%"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"PVTv2-B3","rank_in_archive_order":457,"of":1060,"metrics":{"GFLOPs":"6.9","Number of params":"45.2M","Top 1 Accuracy":"83.2%"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"PVTv2-B2","rank_in_archive_order":585,"of":1060,"metrics":{"GFLOPs":"4","Number of params":"25.4M","Top 1 Accuracy":"82%"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"PVTv2-B1","rank_in_archive_order":813,"of":1060,"metrics":{"GFLOPs":"2.1","Number of params":"13.1M","Top 1 Accuracy":"78.7%"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"PVTv2-B0","rank_in_archive_order":1021,"of":1060,"metrics":{"GFLOPs":"0.6","Number of params":"3.4M","Top 1 Accuracy":"70.5%"},"uses_additional_data":false},{"leaderboard":"/sota/object-detection-on-coco-minival","task":"Object Detection","dataset":"COCO minival","model":"Sparse R-CNN (PVTv2-B2)","rank_in_archive_order":80,"of":220,"metrics":{"AP50":"69.5","AP75":"54.9","box AP":"50.1"},"uses_additional_data":false},{"leaderboard":"/sota/object-detection-on-coco-o","task":"Object Detection","dataset":"COCO-O","model":"PVTv2-B5\n(Mask R-CNN)","rank_in_archive_order":23,"of":45,"metrics":{"Average mAP":"28.2","Effective Robustness":"6.85"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.13797","atlas_url":"https://app.syntology.ai/?focus=2106.13797","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"2106.13797"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2106.13797\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2106.13797"},"call":"get_concepts_for_paper(arxiv_id=\"2106.13797\")"}],"by_repo":[{"repo":"whai362/PVT","kind":"official","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2102.12122"],"harvested_for_calls":[{"arxiv_id":"2102.12122","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2102.12122"},"call":"get_harvested_code_for_paper(arxiv_id=\"2102.12122\")"}]},{"repo":"Owais-Ansari/Unet3plus","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":3,"harvested_for":["1505.04597","2004.08790","2201.03545"],"harvested_for_calls":[{"arxiv_id":"1505.04597","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"1505.04597"},"call":"get_harvested_code_for_paper(arxiv_id=\"1505.04597\")"},{"arxiv_id":"2004.08790","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2004.08790"},"call":"get_harvested_code_for_paper(arxiv_id=\"2004.08790\")"},{"arxiv_id":"2201.03545","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2201.03545"},"call":"get_harvested_code_for_paper(arxiv_id=\"2201.03545\")"}]},{"repo":"martinsbruveris/tensorflow-image-models","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2105.01601"],"harvested_for_calls":[{"arxiv_id":"2105.01601","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2105.01601"},"call":"get_harvested_code_for_paper(arxiv_id=\"2105.01601\")"}]},{"repo":"open-mmlab/mmpose","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2312.07526"],"harvested_for_calls":[{"arxiv_id":"2312.07526","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2312.07526"},"call":"get_harvested_code_for_paper(arxiv_id=\"2312.07526\")"}]},{"repo":"rwightman/pytorch-image-models","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2006.08217"],"harvested_for_calls":[{"arxiv_id":"2006.08217","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2006.08217"},"call":"get_harvested_code_for_paper(arxiv_id=\"2006.08217\")"}]},{"repo":"sithu31296/semantic-segmentation","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":3,"harvested_for":["2105.15203","2108.07058","2201.03545"],"harvested_for_calls":[{"arxiv_id":"2105.15203","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2105.15203"},"call":"get_harvested_code_for_paper(arxiv_id=\"2105.15203\")"},{"arxiv_id":"2108.07058","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2108.07058"},"call":"get_harvested_code_for_paper(arxiv_id=\"2108.07058\")"},{"arxiv_id":"2201.03545","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2201.03545"},"call":"get_harvested_code_for_paper(arxiv_id=\"2201.03545\")"}]},{"repo":"xiaohu2015/pvt_detectron2","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"BR-IDL/PaddleViT","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"MS-Mind/MS-Code-02","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2206.10589"],"harvested_for_calls":[{"arxiv_id":"2206.10589","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2206.10589"},"call":"get_harvested_code_for_paper(arxiv_id=\"2206.10589\")"}]},{"repo":"Mind23-2/MindCode-110","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"PaddlePaddle/PaddleClas","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"justld/PVTV2_paddle","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"leondgarse/keras_cv_attention_models","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2307.09283"],"harvested_for_calls":[{"arxiv_id":"2307.09283","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2307.09283"},"call":"get_harvested_code_for_paper(arxiv_id=\"2307.09283\")"}]},{"repo":"mindspore-courses/External-Attention-MindSpore","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"open-mmlab/mmdetection","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2401.02361"],"harvested_for_calls":[{"arxiv_id":"2401.02361","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2401.02361"},"call":"get_harvested_code_for_paper(arxiv_id=\"2401.02361\")"}]},{"repo":"shinya7y/UniverseNet","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"gitlab.com/birder/birder","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_harvested_for_is":"harvested_for: the arXiv ids (as Syntology's graph holds them) of every paper whose samples Syntology's graph links to this repository, in arXiv-id order, complete; the page names the first 3 and says how many more. A link only: it does not say the papers are the same work, that one copied the other, or that the code implements this paper's method; harvested_for_calls gives the get_harvested_code_for_paper call for each arXiv-shaped id among them","by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"f791148b528d876abb17b10d04192adb914166bcabb5f5c19ee4d02692537e4c","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}