SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.13079 · ICML · 2022

Geometrical Homogeneous Clustering for Image Data Reduction

Shril Mody, Janvi Thakkar, Devvrat Joshi, Siddharth Soni, Rohan Patil, Nipun Batra

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2208.13079.json · badge: /api/ran/2208.13079.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
sonisiddharth/ghcidr canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
FunctionStatusWhere it lives
CWKC Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sonisiddharth/ghcidr/algorithms/cwkc.py
code served (permissive licence) · get_code("58a766d5a34971cd")
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) and returned list. 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 numpy as np
import pickle
import os
from unittest.mock import patch

# Create mock functions that are called by CWKC
def checkClusters(args):
    return True

def homogeneousClustering(X_train, Y_train, args):
    pass

def getL2NormDistnce(v1, v2):
    return np.linalg.norm(v1 - v2)

def loadFromPickle(path):
    # Return mock clusters data
    # Each cluster is [list_of_images, label]
    image1 = np.random.rand(4, 3)
    image2 = np.random.rand(4, 3)
    image3 = np.random.rand(4, 3)
    image4 = np.random.rand(4, 3)
    
    cluster1 = [[image1, image2, image3], 0]
    cluster2 = [[image4], 1]
    
    return [cluster1, cluster2]

# Mock the pickle loading
original_load = pickle.load

def mock_load(f):
    return loadFromPickle('')

# Create training data
X_train = np.array([
    np.random.rand(4, 3),
    np.random.rand(4, 3),
])

Y_train = np.array([0, 1])

# Create args object
class Args:
    def __init__(self):
        self.datasetName = 'test_dataset'
        self.alpha = 0.5

args = Args()

# Patch the functions and file operations
with patch('builtins.open', create=True):
    with patch('pickle.load', side_effect=mock_load):
        with patch('os.path.exists', return_value=True):
            pass

datasets = (X_train, Y_train)

ARGS = {
    'datasets': datasets,
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
KONCW Ran
ran; our contract draft was wrong, not the code
sonisiddharth/ghcidr/algorithms/koncw.py
code served (permissive licence) · get_code("de037068bce3aa43")
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) and returned list. 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 numpy as np
import pickle
import os
from unittest.mock import patch, MagicMock

# Create mock functions that are called by KONCW
def checkClusters(args):
    return True

def homogeneousClustering(X_train, Y_train, args):
    pass

def loadFromPickle(path):
    # Return mock clusters structure
    # Each cluster is [cImages, label]
    # cImages is a list of image arrays
    cluster1_images = [
        np.random.rand(4, 3).astype(np.float32),
        np.random.rand(4, 3).astype(np.float32),
        np.random.rand(4, 3).astype(np.float32),
    ]
    cluster2_images = [
        np.random.rand(4, 3).astype(np.float32),
        np.random.rand(4, 3).astype(np.float32),
    ]
    return [
        [cluster1_images, 0],
        [cluster2_images, 1],
    ]

def getL2NormDistnce(v1, v2):
    return np.linalg.norm(v1 - v2)

# Patch the functions in the module namespace
import sys
current_module = sys.modules[__name__]
current_module.checkClusters = checkClusters
current_module.homogeneousClustering = homogeneousClustering
current_module.loadFromPickle = loadFromPickle
current_module.getL2NormDistnce = getL2NormDistnce

# Create datasets
X_train = np.random.rand(5, 4, 3).astype(np.float32)
Y_train = np.array([0, 0, 1, 1, 0])

datasets = (X_train, Y_train)

# Create args object
class Args:
    def __init__(self):
        self.datasetName = 'test_dataset'
        self.alpha = 0.3

args = Args()

ARGS = {
    'datasets': datasets,
    'args': args,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
RHCKON Ran
ran; our contract draft was wrong, not the code
sonisiddharth/ghcidr/algorithms/rhckon.py
code served (permissive licence) · get_code("ecc618bacb1a4e87")
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) and returned list. 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 numpy as np
import pickle
import os
from unittest.mock import patch, MagicMock

# Create mock functions that are called by RHCKON
def getL2NormDistnce(v1, v2):
    """Mock L2 distance function"""
    return np.linalg.norm(v1 - v2)

def checkClusters(args):
    """Mock function to check if clusters exist"""
    return True

def homogeneousClustering(X_train, Y_train, args):
    """Mock clustering function"""
    pass

def loadFromPickle(path):
    """Mock pickle loader that returns synthetic clusters"""
    # Create synthetic clusters: each cluster is [images_array, label]
    cluster1_images = np.random.rand(5, 4).astype(np.float32)
    cluster2_images = np.random.rand(3, 4).astype(np.float32)
    cluster3_images = np.random.rand(4, 4).astype(np.float32)
    
    clusters = [
        [cluster1_images, 0],
        [cluster2_images, 1],
        [cluster3_images, 2]
    ]
    return clusters

# Create a mock args object
class Args:
    def __init__(self):
        self.datasetName = 'test_dataset'
        self.KFarthest = 2

# Create synthetic datasets
X_train = np.random.rand(12, 4).astype(np.float32)
Y_train = np.array([0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2])

datasets = (X_train, Y_train)

# Create args
args = Args()

# Patch the external functions to use our mocks
import sys
current_module = sys.modules[__name__]
current_module.checkClusters = checkClusters
current_module.homogeneousClustering = homogeneousClustering
current_module.loadFromPickle = loadFromPickle
current_module.getL2NormDistnce = getL2NormDistnce

ARGS = {
    'datasets': datasets,
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
GHCIDR Not yet run
unverified (harvested, no recorded run)
sonisiddharth/ghcidr/algorithms/ghcidr.py
code served (permissive licence) · get_code("eb9c25b985ace794")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

In this paper, we present novel variations of an earlier approach called homogeneous clustering algorithm for reducing dataset size. The intuition behind the approaches proposed in this paper is to partition the dataset into homogeneous clusters and select some images which contribute significantly to the accuracy. Selected images are the proper subset of the training data and thus are human-readable. We propose four variations upon the baseline algorithm-RHC. The intuition behind the first approach, RHCKON, is that the boundary points contribute significantly towards the representation of clusters. It involves selecting k farthest and one nearest neighbour of the centroid of the clusters. In the following two approaches (KONCW and CWKC), we introduce the concept of cluster weights. They are based on the fact that larger clusters contribute more than smaller sized clusters. The final variation is GH-CIDR which selects points based on the geometrical aspect of data distribution. We performed the experiments on two deep learning models-Fully Connected Networks (FCN) and VGG1. We experimented with the four variants on three datasets-MNIST, CIFAR10, and Fashion-MNIST. We found that GHCIDR gave the best accuracy of 99.35%, 81.10%, and 91.66% and a training data reduction of 87.27%, 32.34%, and 76.80% on MNIST, CIFAR10, and Fashion-MNIST respectively.

For agents

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

get_harvested_code_for_paper("2208.13079")
get_code_for_paper("2208.13079")
have("2208.13079")

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

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

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

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

Connect an agent — have() is free.