SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.22549 · NeurIPS · 2025

Diff-ICMH: Harmonizing Machine and Human Vision in Image Compression with Generative Prior

Xin Li, Zhibo Chen, Xin Jin, Ruoyu Feng, Yunpeng Qi, Jinming Liu, Yixin Gao

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 no recorded run), measured 2026-11-23; 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/2511.22549.json · badge: /api/ran/2511.22549.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
RuoyuFeng/Diff-ICMH canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
check Ran
ran; our contract draft was wrong, not the code
RuoyuFeng/Diff-ICMH/diagnise_tensorboard.py
code served (permissive licence) · get_code("374fa6e4af2b9ea8")
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 function. 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 functools
import torch

torch.manual_seed(0)

CHECKS = []

def check(fn):
    """Decorator to register a function as a check.

    Checks are run in the order in which they are registered.

    Args:
      fn: A function that takes no arguments and either returns `None` or
        returns a generator of `Suggestion`s. (The ability to return
        `None` is to work around the awkwardness of defining empty
        generator functions in Python.)

    Returns:
      A wrapped version of `fn` that returns a generator of `Suggestion`s.
    """

    @functools.wraps(fn)
    def wrapper():
        result = fn()
        return iter(()) if result is None else result
    CHECKS.append(wrapper)
    return wrapper


def sample_check_fn_1():
    """A check function that returns None."""
    return None


def sample_check_fn_2():
    """A check function that returns a generator of suggestions."""
    def suggestion_generator():
        yield {"suggestion": "test_suggestion_1"}
        yield {"suggestion": "test_suggestion_2"}
    return suggestion_generator()


ARGS = {
    "fn": sample_check_fn_1
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
extract_image_data Ran
ran; our contract draft was wrong, not the code
RuoyuFeng/Diff-ICMH/process_lsdir.py
code served (permissive licence) · get_code("3de8654989cb6e39")
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 bytes. 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 numpy as np

# The function expects image_info as a dict with 'bytes' key
# or bytes directly, or something else

# Create valid test cases
image_bytes_data = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01'

# Test case 1: dict with 'bytes' key
image_info_dict = {
    'bytes': image_bytes_data,
    'metadata': 'some_metadata'
}

ARGS = {
    'image_info': image_info_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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_denominator Ran
ran, honoured the contract we drafted
RuoyuFeng/Diff-ICMH/model/diffeic.py
code served (permissive licence) · get_code("4f8734a02fc01ca2")
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 int, ndim 0, dtype family int, shape () 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
import numpy as np

torch.manual_seed(0)

# Analyzing the function find_denominator:
# - It takes two parameters: number and start
# - Both are used in arithmetic operations (%, !=, >=, -=)
# - Both should be integers
# - The function finds the largest divisor of 'number' that is <= 'start'

ARGS = {
    "number": 24,
    "start": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
normalization Ran
ran; our contract draft was wrong, not the code
RuoyuFeng/Diff-ICMH/model/diffeic.py
code served (permissive licence) · get_code("2cc202bbb038146d")
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 GroupNorm_leq32. 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)

def find_denominator(number, start):
    if start >= number:
        return number
    while start != 0:
        residual = number % start
        if residual == 0:
            return start
        start -= 1

class GroupNorm_leq32(nn.GroupNorm):

    def forward(self, x):
        return super().forward(x.float()).type(x.dtype)

def normalization(channels):
    """
    Make a standard normalization layer.
    :param channels: number of input channels.
    :return: an nn.Module for normalization.
    """
    return GroupNorm_leq32(find_denominator(channels, 32), channels)

ARGS = {
    "channels": 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 GroupNorm_leq32 — a GroupNorm_leq32 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GroupNorm_leq32 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
pip Ran
ran; our contract draft was wrong, not the code
RuoyuFeng/Diff-ICMH/diagnise_tensorboard.py
code served (permissive licence) · get_code("420023ecc34d9f0e")
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 bytes. 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 os
import sys

# The function 'pip' takes a single parameter 'args' which should be a list of command-line arguments
# Looking at the function body, it:
# 1. Reads environment variables
# 2. Constructs a command list starting with sys.executable, '-m', 'pip', '--disable-pip-version-check'
# 3. Extends the command with the 'args' parameter
# 4. Calls subprocess.check_output with the command
# 5. Manages PYTHONWARNINGS environment variable

# The 'args' parameter should be a list of strings representing pip command-line arguments
# For a minimal valid execution, we can use a simple pip command like 'list' which doesn't require installation

ARGS = {
    'args': ['list']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
reflow Ran
ran; our contract draft was wrong, not the code
RuoyuFeng/Diff-ICMH/diagnise_tensorboard.py
code served (permissive licence) · get_code("ff4e47075f7a0c0a")
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 str. 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 textwrap

ARGS = {
    "paragraph": """
        This is a sample paragraph that needs to be reflowed.
        It has multiple lines and some extra whitespace.
        The function will dedent and strip it, then reflow to a nice format.
    """
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
space_timesteps Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RuoyuFeng/Diff-ICMH/model/spaced_sampler.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ianyeung/mgld-vsr, is pointer only (licence: NOASSERTION) · get_code("ea9dbc131adf582e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ianyeung/mgld-vsr, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 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
space_timesteps 57 other papers
55 dated earlier, 1 the same month, 1 later · 2 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 54 more not named here
find_denominator 4 other papers
3 dated earlier, 1 later
2404.18820 (2024-04)
Towards Extreme Image Compression with Latent Feature Guidance and Diffusion Prior
2409.09144 (2024-09)
PrimeDepth: Efficient Monocular Depth Estimation with a Stable Diffusion Preimage
2410.02640 (2024-10)
RDEIC: Accelerating Diffusion-Based Extreme Image Compression with Relay Residual Diffusion
and 1 more not named here
normalization 3 other papers
2 dated earlier, 1 later
2404.18820 (2024-04)
Towards Extreme Image Compression with Latent Feature Guidance and Diffusion Prior
2410.02640 (2024-10)
RDEIC: Accelerating Diffusion-Based Extreme Image Compression with Relay Residual Diffusion
2602.01570 (2026-02)
One-Step Diffusion for Perceptual Image Compression

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-23.

Repositories linked to this paper

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

Abstract

Image compression methods are usually optimized isolatedly for human perception or machine analysis tasks. We reveal fundamental commonalities between these objectives: preserving accurate semantic information is paramount, as it directly dictates the integrity of critical information for intelligent tasks and aids human understanding. Concurrently, enhanced perceptual quality not only improves visual appeal but also, by ensuring realistic image distributions, benefits semantic feature extraction for machine tasks. Based on this insight, we propose Diff-ICMH, a generative image compression framework aiming for harmonizing machine and human vision in image compression. It ensures perceptual realism by leveraging generative priors and simultaneously guarantees semantic fidelity through the incorporation of Semantic Consistency loss (SC loss) during training. Additionally, we introduce the Tag Guidance Module (TGM) that leverages highly semantic image-level tags to stimulate the pre-trained diffusion model's generative capabilities, requiring minimal additional bit rates. Consequently, Diff-ICMH supports multiple intelligent tasks through a single codec and bitstream without any task-specific adaptation, while preserving high-quality visual experience for human perception. Extensive experimental results demonstrate Diff-ICMH's superiority and generalizability across diverse tasks, while maintaining visual appeal for human perception. Code is available at: https://github.com/RuoyuFeng/Diff-ICMH.

For agents

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

get_harvested_code_for_paper("2511.22549")
get_code_for_paper("2511.22549")
have("2511.22549")

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

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

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

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

Connect an agent — have() is free.