SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.08473 · 2023

EGE-UNet: an Efficient Group Enhanced UNet for skin lesion segmentation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2307.08473.json · badge: /api/ran/2307.08473.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
jcruan519/ege-unet canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
get_logger Ran
ran; our contract draft was wrong, not the code
jcruan519/ege-unet/utils.py
code served (permissive licence) · get_code("23a1f34627822bb3")
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 Logger. 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 logging.handlers

# Create a temporary directory for logs
temp_log_dir = tempfile.mkdtemp()

ARGS = {
    'name': 'test_logger',
    'log_dir': temp_log_dir
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
get_optimizer Ran
ran; our contract draft was wrong, not the code
jcruan519/ege-unet/utils.py
code served (permissive licence) · get_code("ae1a2dd9d62e7fad")
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 Adam. 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 minimal model with parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = TinyModel()

# Create a config class with all required attributes
class Config:
    def __init__(self, opt='Adam'):
        self.opt = opt
        self.lr = 0.001
        self.rho = 0.9
        self.eps = 1e-8
        self.weight_decay = 0.0
        self.lr_decay = 0.0
        self.betas = (0.9, 0.999)
        self.amsgrad = False
        self.lambd = 0.0001
        self.alpha = 0.75
        self.t0 = 1e6
        self.momentum = 0.9
        self.alpha_rmsprop = 0.99
        self.centered = False
        self.etas = (0.5, 1.2)
        self.step_sizes = (1e-6, 50)
        self.dampening = 0.0
        self.nesterov = False

config = Config(opt='Adam')

ARGS = {
    'config': config,
    'model': model,
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
get_scheduler Ran
ran; our contract draft was wrong, not the code
jcruan519/ege-unet/utils.py
code served (permissive licence) · get_code("dea42821258184c2")
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 CosineAnnealingLR. 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 math

torch.manual_seed(0)

# Create a simple model and optimizer
model = torch.nn.Linear(4, 2)
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)

# Create config class with all necessary attributes
class Config:
    def __init__(self, sch_type):
        self.sch = sch_type
        self.step_size = 10
        self.gamma = 0.1
        self.last_epoch = -1
        self.milestones = [30, 60, 90]
        self.T_max = 100
        self.eta_min = 0.0
        self.mode = 'min'
        self.factor = 0.1
        self.patience = 10
        self.threshold = 1e-4
        self.threshold_mode = 'rel'
        self.cooldown = 0
        self.min_lr = 0.0
        self.eps = 1e-8
        self.T_0 = 10
        self.T_mult = 2
        self.warm_up_epochs = 5
        self.epochs = 100

# Test with one scheduler type
config = Config('CosineAnnealingLR')

ARGS = {
    'config': config,
    'optimizer': optimizer
}
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 CosineAnnealingLR — a CosineAnnealingLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CosineAnnealingLR 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
train_one_epoch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jcruan519/ege-unet/engine.py
code served (permissive licence) · get_code("deb813c8006d655f")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
from torch.optim import SGD
from torch.optim.lr_scheduler import StepLR

torch.manual_seed(0)

# Create a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 3)
    
    def forward(self, images):
        # Function expects (gt_pre, out) tuple
        gt_pre = self.fc(images)
        out = self.fc(images)
        return gt_pre, out

# Create a minimal criterion
class MinimalCriterion(nn.Module):
    def forward(self, gt_pre, out, targets):
        # Expects three arguments: gt_pre, out, targets
        loss = torch.mean((gt_pre - targets) ** 2)
        return loss

# Create minimal config with required attributes
class MinimalConfig:
    def __init__(self):
        self.print_interval = 1

# Create minimal logger
class MinimalLogger:
    def info(self, msg):
        pass

# Create minimal writer
class MinimalWriter:
    def add_scalar(self, name, value, global_step):
        pass

# Create train_loader as list of batches
train_loader = [
    (torch.randn(2, 4), torch.randn(2, 3)),
    (torch.randn(2, 4), torch.randn(2, 3)),
]

model = MinimalModel()
criterion = MinimalCriterion()
optimizer = SGD(model.parameters(), lr=0.01)
scheduler = StepLR(optimizer, step_size=1)
epoch = 0
step = 0
logger = MinimalLogger()
config = MinimalConfig()
writer = MinimalWriter()

ARGS = {
    'train_loader': train_loader,
    'model': model,
    'criterion': criterion,
    'optimizer': optimizer,
    'scheduler': scheduler,
    'epoch': epoch,
    'step': step,
    'logger': logger,
    'config': config,
    'writer': writer,
}
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
val_one_epoch Not yet run
unverified (harvested, no recorded run)
jcruan519/ege-unet/engine.py
code served (permissive licence) · get_code("c7232cb9288d6346")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
get_logger 6 other papers
6 later
2401.10166 (2024-01)
VMamba: Visual State Space Model
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here
get_optimizer 6 other papers
6 later
2401.10166 (2024-01)
VMamba: Visual State Space Model
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here
get_scheduler 6 other papers
6 later
2401.10166 (2024-01)
VMamba: Visual State Space Model
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here

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

Repositories linked to this paper

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

Abstract

Transformer and its variants have been widely used for medical image segmentation. However, the large number of parameter and computational load of these models make them unsuitable for mobile health applications. To address this issue, we propose a more efficient approach, the Efficient Group Enhanced UNet (EGE-UNet). We incorporate a Group multi-axis Hadamard Product Attention module (GHPA) and a Group Aggregation Bridge module (GAB) in a lightweight manner. The GHPA groups input features and performs Hadamard Product Attention mechanism (HPA) on different axes to extract pathological information from diverse perspectives. The GAB effectively fuses multi-scale information by grouping low-level features, high-level features, and a mask generated by the decoder at each stage. Comprehensive experiments on the ISIC2017 and ISIC2018 datasets demonstrate that EGE-UNet outperforms existing state-of-the-art methods. In short, compared to the TransFuse, our model achieves superior segmentation performance while reducing parameter and computation costs by 494x and 160x, respectively. Moreover, to our best knowledge, this is the first model with a parameter count limited to just 50KB. Our code is available at https://github.com/JCruan519/EGE-UNet.

For agents

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

get_harvested_code_for_paper("2307.08473")
get_code_for_paper("2307.08473")
have("2307.08473")

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

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

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

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

Connect an agent — have() is free.