SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.19125 · ICCV · 2025

Learned Image Compression with Hierarchical Progressive Context Modeling

Dong Liu, Haotian Zhang, Li Li, Yuqi Li

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2507.19125.json · badge: /api/ran/2507.19125.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lyq133/LIC-HPCM canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/layers/conv.py
code served (permissive licence) · get_code("85ade02481fdcbb6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_ch": 3,
    "out_ch": 64,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv2x2_down Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/layers/conv.py
code served (permissive licence) · get_code("38aa4295199795e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_ch": 3,
    "out_ch": 16,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv3x3 Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/layers/conv.py
code served (permissive licence) · get_code("4550840ab238e2c8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_ch": 3,
    "out_ch": 64,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_named_buffer Ran
ran, honoured the contract we drafted
lyq133/LIC-HPCM/src/utils/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from micmic123/qmapcompression, is pointer only (licence: NONE) · get_code("a94389b554ddc179")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from micmic123/qmapcompression, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_named_module Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/utils/utils.py
code served (permissive licence) · get_code("0b4d7c9d1baaf828")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Linear. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple nested module structure
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)

class RootModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = SimpleModule()
        self.layer2 = nn.Linear(2, 1)

# Instantiate the root module
root_module = RootModule()

# The function uses module.named_modules() which returns tuples of (name, module)
# We need to provide a valid module and a query string that matches one of the named modules
# Valid queries for root_module would be: '', 'layer1', 'layer1.linear1', 'layer1.linear2', 'layer2'

ARGS = {
    "module": root_module,
    "query": "layer1.linear1"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lower_bound_bwd Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/entropy_models/bound_ops.py
code served (permissive licence) · get_code("07f8484bf7fe9b22")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function parameters
x = torch.randn(2, 4)  # Input tensor
bound = torch.randn(2, 4)  # Bound tensor for comparison
grad_output = torch.randn(2, 4)  # Gradient output tensor

ARGS = {
    "x": x,
    "bound": bound,
    "grad_output": grad_output,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lower_bound_fwd Ran
ran; our contract draft was wrong, not the code
lyq133/LIC-HPCM/src/entropy_models/bound_ops.py
code served (permissive licence) · get_code("9d2139d32f9bca32")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor

torch.manual_seed(0)

# Create small tensors for testing lower_bound_fwd
x = torch.randn(2, 4)
bound = torch.randn(2, 4)

ARGS = {
    "x": x,
    "bound": bound,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pmf_to_cdf Not yet run
unverified (harvested, no recorded run)
lyq133/LIC-HPCM/src/entropy_models/entropy_models.py
code served (permissive licence) · get_code("af8222ec91c09e18")
How it ran

no invocation recorded.

pmf_to_quantized_cdf Not yet run
unverified (harvested, no recorded run)
lyq133/LIC-HPCM/src/entropy_models/entropy_models.py
code served (permissive licence) · get_code("b5dd898abb1e9dd4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 2 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
find_named_buffer 9 other papers
9 dated earlier · 1 only as an assembly brick
Deng_Deep_Homography_for_Efficient_Stereo_Image_Compression_CVPR_2021_paper (2021 (year only))
Deep Homography for Efficient Stereo Image Compression
2108.03690 (2021-08)
Enhanced Invertible Encoding for Learned Image Compression
2108.09551 (2021-08)
Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform
and 6 more not named here
find_named_module 8 other papers
8 dated earlier
Deng_Deep_Homography_for_Efficient_Stereo_Image_Compression_CVPR_2021_paper (2021 (year only))
Deep Homography for Efficient Stereo Image Compression
2108.03690 (2021-08)
Enhanced Invertible Encoding for Learned Image Compression
aaai_19890 (2022 (year only))
OoDHDR-Codec: Out-of-Distribution Generalization for HDR Image Compression
and 5 more not named here
lower_bound_bwd 4 other papers
3 dated earlier, 1 later
aaai_19890 (2022 (year only))
OoDHDR-Codec: Out-of-Distribution Generalization for HDR Image Compression
2203.08450 (2022-03)
The Devil Is in the Details: Window-based Attention for Image Compression
2403.00628 (2024-03)
Region-Adaptive Transform with Segmentation Prior for Image Compression
and 1 more not named here
lower_bound_fwd 4 other papers
3 dated earlier, 1 later
aaai_19890 (2022 (year only))
OoDHDR-Codec: Out-of-Distribution Generalization for HDR Image Compression
2203.08450 (2022-03)
The Devil Is in the Details: Window-based Attention for Image Compression
2403.00628 (2024-03)
Region-Adaptive Transform with Segmentation Prior for Image Compression
and 1 more not named here
pmf_to_quantized_cdf 3 other papers
2 dated earlier, 1 the same month · 1 only as an assembly brick
2305.16025 (2023-05)
NVTC: Nonlinear Vector Transform Coding
2406.01597 (2024-06)
End-to-End Rate-Distortion Optimized 3D Gaussian Representation
2507.17336 (2025-07)
Temporal Smoothness-Aware Rate-Distortion Optimized 4D Gaussian Splatting

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Context modeling is essential in learned image compression for accurately estimating the distribution of latents. While recent advanced methods have expanded context modeling capacity, they still struggle to efficiently exploit long-range dependency and diverse context information across different coding steps. In this paper, we introduce a novel Hierarchical Progressive Context Model (HPCM) for more efficient context information acquisition. Specifically, HPCM employs a hierarchical coding schedule to sequentially model the contextual dependencies among latents at multiple scales, which enables more efficient long-range context modeling. Furthermore, we propose a progressive context fusion mechanism that incorporates contextual information from previous coding steps into the current step, effectively exploiting diverse contextual information. Experimental results demonstrate that our method achieves state-of-the-art rate-distortion performance and strikes a better balance between compression performance and computational complexity. The code is available at https: //github.com/lyq133/LIC-HPCM .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2507.19125")
get_code_for_paper("2507.19125")
have("2507.19125")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2507.19125.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2507.19125.svg)](https://syntology.ai/paper/2507.19125)

Connect an agent — have() is free.