{"url":"/method/cpc-v2","slug":"cpc-v2","name":"CPC v2","full_name":"CPC v2","full_name_withheld":false,"description_markdown":"**Contrastive Predictive Coding v2 (CPC v2)** is a self-supervised learning approach that builds upon the original [CPC](https://paperswithcode.com/method/contrastive-predictive-coding) with several improvements. These improvements include:\r\n\r\n- **Model capacity** - The third residual stack of [ResNet](https://paperswithcode.com/method/resnet)-101 (originally containing 23 blocks, 1024-dimensional feature maps, and 256-dimensional bottleneck layers), is converted to use 46 blocks, with 4096-dimensional feature maps and 512-dimensional bottleneck layers: ResNet-161.\r\n\r\n- **Layer Normalization** - The authors find CPC with [batch normalization](https://paperswithcode.com/method/batch-normalization) harms downstream performance. They hypothesize this is due to batch normalization allowing large models to find a trivial solution to CPC: it introduces a dependency between patches (through the batch statistics) that can be exploited to bypass the constraints on the receptive field. They replace batch normalization with [layer normalization](https://paperswithcode.com/method/layer-normalization).\r\n\r\n- **Predicting lengths and directions** - patches are predicted with contexts from both directions rather than just spatially underneath.\r\n\r\n- **Patch-based Augmentation** - Utilising \"color dropping\" which randomly drops two of the three color channels in each patch, as well as random horizontal flips.\r\n\r\n\r\nConsistent with prior results, this new architecture delivers better performance regardless of","description_state":"present","introduced_year":null,"introduced_by":{"title":"Data-Efficient Image Recognition with Contrastive Predictive Coding","paper":"/paper/data-efficient-image-recognition-with","first_author":"Olivier J. Hénaff","n_authors":7,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/data-efficient-image-recognition-with"},"source":{"url":"https://arxiv.org/abs/1905.09272v3","title":"Data-Efficient Image Recognition with Contrastive Predictive Coding","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"General","area_id":"general","collection":"Semi-Supervised Learning Methods","url":"/methods/category/semi-supervised-learning-methods","pwc_aliases":[]},{"area":"General","area_id":"general","collection":"Self-Supervised Learning","url":"/methods/category/self-supervised-learning","pwc_aliases":[]}],"n_papers_tagged":1,"archive_num_papers":1,"papers_newest_first":[{"paper":"/paper/data-efficient-image-recognition-with","title":"Data-Efficient Image Recognition with Contrastive Predictive Coding","date":"2019-05-22","arxiv_id":"1905.09272","n_code_links":4,"syntology":{"ran":2,"of":2,"unverified":0,"pointer_only":2}}],"papers_shown":1,"tasks":[{"task":"/task/contrastive-learning","name":"Contrastive Learning","papers":1},{"task":"/task/classification","name":"General Classification","papers":1},{"task":"/task/object-detection","name":"Object Detection","papers":1},{"task":"/task/self-supervised-image-classification","name":"Self-Supervised Image Classification","papers":1},{"task":"/task/semi-supervised-image-classification","name":"Semi-Supervised Image Classification","papers":1},{"task":"/task/transfer-learning","name":"Transfer Learning","papers":1},{"task":"/task/object-detection-1","name":"object-detection","papers":1}],"tasks_shown":7,"n_tasks":7,"usage_by_year":[{"year":"2019","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/cpc-v2"},"syntology_read_at":"2026-09-24T18:15:14+00:00"}