SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.07215 · 2023

Efficient and Robust Quantization-aware Training via Adaptive Coreset Selection

arXiv · PDF · Open in the Atlas

Code that ran

5 of 12 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, 1 violated it and 3 have no contract verdict; 1 failure of our instrument; 7 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/2306.07215.json · badge: /api/ran/2306.07215.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
huangowen/qat-acs canonical (classifier label)
classifier basis: census
5 ran · 7 no recorded run
FunctionStatusWhere it lives
ImageNet Ran
ran on a synthesized input
huangowen/qat-acs/deepcore/datasets/imagenet.py
code served (permissive licence) · get_code("9beb54d33ed4ee2c")
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
import torch.nn as nn
from torchvision import datasets, transforms
import tempfile
import os
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a temporary directory structure with minimal ImageNet-like data
temp_dir = tempfile.mkdtemp()
train_dir = os.path.join(temp_dir, 'train')
val_dir = os.path.join(temp_dir, 'val')

# Create class directories
for split_dir in [train_dir, val_dir]:
    for class_idx in range(2):
        class_dir = os.path.join(split_dir, f'class_{class_idx}')
        os.makedirs(class_dir, exist_ok=True)
        
        # Create a few dummy images per class
        for img_idx in range(2):
            img_array = np.random.randint(0, 256, (224, 224, 3), dtype=np.uint8)
            img = Image.fromarray(img_array)
            img_path = os.path.join(class_dir, f'img_{img_idx}.jpg')
            img.save(img_path)

ARGS = {
    'data_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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
TinyImageNet Ran
ran on a synthesized input
huangowen/qat-acs/deepcore/datasets/tinyimagenet.py
code served (permissive licence) · get_code("84195e4ca0a5fd78")
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 os
import tempfile
import shutil
from pathlib import Path

# Create a temporary directory for the test
temp_dir = tempfile.mkdtemp()

# Create minimal fake Tiny-ImageNet structure
data_path = temp_dir
tiny_imagenet_dir = os.path.join(data_path, 'tiny-imagenet-200')
train_dir = os.path.join(tiny_imagenet_dir, 'train')
test_dir = os.path.join(tiny_imagenet_dir, 'test')

# Create directory structure
os.makedirs(train_dir, exist_ok=True)
os.makedirs(test_dir, exist_ok=True)

# Create fake class directories and image files for train
for i in range(2):
    class_dir = os.path.join(train_dir, f'class_{i}')
    os.makedirs(class_dir, exist_ok=True)
    # Create a minimal valid image file (1x1 pixel PNG)
    for j in range(2):
        img_path = os.path.join(class_dir, f'img_{j}.JPEG')
        # Write minimal JPEG header
        with open(img_path, 'wb') as f:
            f.write(b'\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00'
                   b'\xFF\xDB\x00C\x00\x08\x06\x06\x07\x06\x05\x08\x07\x07\x07\t\t'
                   b'\x08\n\x0c\x14\r\x0c\x0b\x0b\x0c\x19\x12\x13\x0f\x14\x1d\x1a'
                   b'\x1f\x1e\x1d\x1a\x1c\x1c $.\' ",#\x1c\x1c(7),01444\x1f\''
                   b'\t-\xFF\xC0\x00\x0b\x08\x00\x01\x00\x01\x01\x11\x00\xFF\xC4\x00\x1f'
                   b'\x00\x00\x01\x05\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00'
                   b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xFF\xDA\x00\x08\x01\x01'
                   b'\x00\x00?\x00\xfb\xd0\xff\xd9')

# Create fake test class directories
for i in range(2):
    class_dir = os.path.join(test_dir, f'class_{i}')
    os.makedirs(class_dir, exist_ok=True)
    for j in range(2):
        img_path = os.path.join(class_dir, f'img_{j}.JPEG')
        with open(img_path, 'wb') as f:
            f.write(b'\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00'
                   b'\xFF\xDB\x00C\x00\x08\x06\x06\x07\x06\x05\x08\x07\x07\x07\t\t'
                   b'\x08\n\x0c\x14\r\x0c\x0b\x0b\x0c\x19\x12\x13\x0f\x14\x1d\x1a'
                   b'\x1f\x1e\x1d\x1a\x1c\x1c $.\' ",#\x1c\x1c(7),01444\x1f\''
                   b'\t-\xFF\xC0\x00\x0b\x08\x00\x01\x00\x01\x01\x11\x00\xFF\xC4\x00\x1f'
                   b'\x00\x00\x01\x05\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00'
                   b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xFF\xDA\x00\x08\x01\x01'
                   b'\x00\x00?\x00\xfb\xd0\xff\xd9')

ARGS = {
    'data_path': data_path,
    'downsize': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests, torchvision — 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
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huangowen/qat-acs/utils.py
code served (permissive licence) · get_code("32e1b7ae1cecaac7")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 output tensor: batch_size=2, num_classes=4
# shape should be (batch_size, num_classes)
output = torch.randn(2, 4)

# Create target tensor: batch_size=2
# Contains class indices (0-3)
target = torch.tensor([0, 2])

# topk parameter: tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "topk": topk,
}
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 list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
str_to_bool Ran
ran, violated the contract we drafted
huangowen/qat-acs/utils.py
code served (permissive licence) · get_code("4918e53fae09c808")
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 bool, ndim 0, dtype family float, 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
from argparse import ArgumentTypeError

def str_to_bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise ArgumentTypeError('Boolean value expected.')

ARGS = {
    'v': 'true'
}
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 bool, ndim 0, dtype family float, 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
test Ran
ran on a synthesized input
huangowen/qat-acs/utils.py
code served (permissive licence) · get_code("18733a91af2b5207")
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 float, ndim 0, dtype family float, 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Define a simple network
class SimpleNetwork(nn.Module):
    def __init__(self):
        super(SimpleNetwork, self).__init__()
        self.fc = nn.Linear(4, 10)
    
    def forward(self, x):
        return self.fc(x)

# Define a simple criterion
criterion = nn.CrossEntropyLoss(reduction='mean')

# Create test_loader: list of (input, target) tuples
test_loader = [
    (torch.randn(2, 4), torch.tensor([0, 1])),
    (torch.randn(2, 4), torch.tensor([2, 3])),
    (torch.randn(2, 4), torch.tensor([1, 4])),
]

# Create network
network = SimpleNetwork()

# Create epoch number
epoch = 1

# Define args object with required attributes
class Args:
    def __init__(self):
        self.device = 'cpu'
        self.print_freq = 2

args = Args()

# Create rec object for recording statistics
class RecordStats:
    def __init__(self):
        self.test_step = []
        self.test_loss = []
        self.test_acc = []

rec = RecordStats()

ARGS = {
    'test_loader': test_loader,
    'network': network,
    'criterion': criterion,
    'epoch': epoch,
    'args': args,
    'rec': rec,
}
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 float, ndim 0, dtype family float, 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
CIFAR10 Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/cifar10.py
code served (permissive licence) · get_code("75af3219fc982938")
How it ran

no invocation recorded.

CIFAR100 Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/cifar100.py
code served (permissive licence) · get_code("40f14e833983504f")
How it ran

no invocation recorded.

FashionMNIST Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/fashionmnist.py
code served (permissive licence) · get_code("3a1159843af3c3ec")
How it ran

no invocation recorded.

MNIST Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/mnist.py
code served (permissive licence) · get_code("386d95ec922f5372")
How it ran

no invocation recorded.

QMNIST Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/qmnist.py
code served (permissive licence) · get_code("40ede1696f832327")
How it ran

no invocation recorded.

SVHN Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/svhn.py
code served (permissive licence) · get_code("dc073038485c5091")
How it ran

no invocation recorded.

permutedMNIST Not yet run
unverified (harvested, no recorded run)
huangowen/qat-acs/deepcore/datasets/mnist.py
code served (permissive licence) · get_code("833c06fc635e87be")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 9 later) and 3 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
accuracy 116 other papers
75 dated earlier, 2 the same month, 37 later, 2 same year, order not determinable · 8 only as an assembly brick
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1610.05820 (2016-10)
Membership Inference Attacks Against Machine Learning Models
1905.03696 (2019-05)
HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision
and 113 more not named here
CIFAR10 2 other papers
2 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
CIFAR100 2 other papers
2 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
FashionMNIST 2 other papers
2 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
MNIST 2 other papers
2 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
permutedMNIST 2 other papers
2 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
QMNIST 1 other paper
1 later
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
SVHN 1 other paper
1 later
2511.17399 (2025-11)
Stable Coresets via Posterior Sampling: Aligning Induced and Full Loss Landscapes
str_to_bool 1 other paper
1 later
2506.14473 (2025-06)
Foundation Model Insights and a Multi-Model Approach for Superior Fine-Grained One-shot Subset Selection

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

Quantization-aware training (QAT) is a representative model compression method to reduce redundancy in weights and activations. However, most existing QAT methods require end-to-end training on the entire dataset, which suffers from long training time and high energy costs. In addition, the potential label noise in the training data undermines the robustness of QAT. We propose two metrics based on analysis of loss and gradient of quantized weights: error vector score and disagreement score, to quantify the importance of each sample during training. Guided by these two metrics, we proposed a quantization-aware Adaptive Coreset Selection (ACS) method to select the data for the current training epoch. We evaluate our method on various networks (ResNet-18, MobileNetV2, RetinaNet), datasets(CIFAR-10, CIFAR-100, ImageNet-1K, COCO), and under different quantization settings. Specifically, our method can achieve an accuracy of 68.39\% of 4-bit quantized ResNet-18 on the ImageNet-1K dataset with only a 10\% subset, which has an absolute gain of 4.24\% compared to the baseline. Our method can also improve the robustness of QAT by removing noisy samples in the training set.

For agents

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

get_harvested_code_for_paper("2306.07215")
get_code_for_paper("2306.07215")
have("2306.07215")

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

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

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

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

Connect an agent — have() is free.