{"about":{"site":"https://codewithpapers.app","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.","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"},"url":"/paper/pixelpyramids-exact-inference-models-from-1","title":"PixelPyramids: Exact Inference Models from Lossless Image Pyramids","arxiv_id":"2110.08787","date":"2021-10-17","proceeding":"ICCV 2021 10","authors":["Shweta Mahajan","Stefan Roth"],"abstract":"Autoregressive models are a class of exact inference approaches with highly flexible functional forms, yielding state-of-the-art density estimates for natural images. Yet, the sequential ordering on the dimensions makes these models computationally expensive and limits their applicability to low-resolution imagery. In this work, we propose Pixel-Pyramids, a block-autoregressive approach employing a lossless pyramid decomposition with scale-specific representations to encode the joint distribution of image pixels. Crucially, it affords a sparser dependency structure compared to fully autoregressive approaches. Our PixelPyramids yield state-of-the-art results for density estimation on various image datasets, especially for high-resolution data. For CelebA-HQ 1024 x 1024, we observe that the density estimates (in terms of bits/dim) are improved to ~44% of the baseline despite sampling speeds superior even to easily parallelizable flow-based models.","url_abs":"https://arxiv.org/abs/2110.08787v1","url_pdf":"https://arxiv.org/pdf/2110.08787v1.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":"pixelpyramids-exact-inference-models-from-1","repo_url":"https://github.com/visinf/pixelpyramids","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"density-estimation","task_name":"Density Estimation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2110.08787","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.08787"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/visinf/pixelpyramids","reach":null}],"summary":{"ran":8,"ran_draft_wrong":3},"by_repo_kind":{"official":{"samples":8,"ran":8,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":3,"samples":[{"code_sha256_prefix":"6387ca84ef0e560e","entry":"Conv2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6387ca84ef0e560e"}},{"code_sha256_prefix":"c0d558a50b50d636","entry":"ConvTranspose2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c0d558a50b50d636"}},{"code_sha256_prefix":"b26a0b96c0a3af73","entry":"DownRightShiftedConv2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b26a0b96c0a3af73"}},{"code_sha256_prefix":"da898124203f12d6","entry":"DownRightShiftedConvTranspose2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"da898124203f12d6"}},{"code_sha256_prefix":"15071eacd675873d","entry":"DownShiftedConv2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"15071eacd675873d"}},{"code_sha256_prefix":"bf8af0a07b2898f7","entry":"DownShiftedConvTranspose2d","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bf8af0a07b2898f7"}},{"code_sha256_prefix":"9bf0b7848adc2035","entry":"GatedResidualLayer","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9bf0b7848adc2035"}},{"code_sha256_prefix":"5e5e8e9bdd22d08b","entry":"PixelCNNpp","repo":"visinf/pixelpyramids","repo_kind":"official","path":"unet/pixelcnnpp.py","file_url":"https://github.com/visinf/pixelpyramids/blob/HEAD/unet/pixelcnnpp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e5e8e9bdd22d08b"}},{"code_sha256_prefix":"1bc8478089c8a7c9","entry":"concat_elu","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"1bc8478089c8a7c9"}},{"code_sha256_prefix":"a65cc793ef279a03","entry":"down_shift","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"a65cc793ef279a03"}},{"code_sha256_prefix":"1074bb941737a16e","entry":"right_shift","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"1074bb941737a16e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}