SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.18590 · NeurIPS · 2025

From Simulations to Surveys: Domain Adaptation for Galaxy Observations

Kaley Brauer, Aditya Dash, Meet Vyas, Ahmed Salim, Stiven Massala

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 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/2511.18590.json · badge: /api/ran/2511.18590.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
ahmedsalim3/galaxy-da canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_hard_ot_cost Ran
ran; our contract draft was wrong, not the code
ahmedsalim3/galaxy-da/nebula/modeling/ota_loss.py
code served (permissive licence) · get_code("6081aafcf9139bfb")
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 numpy as np

torch.manual_seed(0)

# Create small 2D tensors for source and target features
# src_feats: shape (2, 4) - batch size 2, feature dim 4
# tgt_feats: shape (3, 4) - batch size 3, feature dim 4 (different batch size to test non-square case)
src_feats = torch.randn(2, 4)
tgt_feats = torch.randn(3, 4)

ARGS = {
    'src_feats': src_feats,
    'tgt_feats': tgt_feats,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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
get_lambda_grl_schedule Ran
ran, honoured the contract we drafted
ahmedsalim3/galaxy-da/nebula/modeling/schedulers.py
code served (permissive licence) · get_code("26170c51fcb687ef")
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 math

class DAAdversarialConfig:
    def __init__(self, num_epochs, warmup_epochs=0, lambda_grl=0.25, lambda_grl_schedule=None):
        self.num_epochs = num_epochs
        self.warmup_epochs = warmup_epochs
        self.lambda_grl = lambda_grl
        self.lambda_grl_schedule = lambda_grl_schedule

# Test case 1: linear schedule
config_linear = DAAdversarialConfig(
    num_epochs=100,
    warmup_epochs=10,
    lambda_grl=0.25,
    lambda_grl_schedule={
        'type': 'linear',
        'start': 0.0,
        'end': 1.0
    }
)

ARGS = {
    'epoch': 50,
    'config': config_linear
}
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 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
get_sigma_schedule Ran
ran, honoured the contract we drafted
ahmedsalim3/galaxy-da/nebula/modeling/schedulers.py
code served (permissive licence) · get_code("89eca2530cb0f3d4")
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 math

class SigmaConfig:
    def __init__(self, schedule_type='exponential', sigma_initial_blur=1.0, 
                 sigma_final_blur=0.1, num_epochs=100, warmup_epochs=10,
                 sigma_min_blur=0.01, sigma_decay_rate=0.95, sigma_step_size=10,
                 sigma_step_gamma=0.9, sigma_poly_power=2.0):
        self.sigma_schedule_type = schedule_type
        self.sigma_initial_blur = sigma_initial_blur
        self.sigma_final_blur = sigma_final_blur
        self.num_epochs = num_epochs
        self.warmup_epochs = warmup_epochs
        self.sigma_min_blur = sigma_min_blur
        self.sigma_decay_rate = sigma_decay_rate
        self.sigma_step_size = sigma_step_size
        self.sigma_step_gamma = sigma_step_gamma
        self.sigma_poly_power = sigma_poly_power

config = SigmaConfig()

ARGS = {
    'epoch': 25,
    'config': config
}
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 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
grad_reverse Ran
ran; our contract draft was wrong, not the code
ahmedsalim3/galaxy-da/nebula/modeling/domin_classifier.py
code served (permissive licence) · get_code("e0c19e1fde092ece")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a small input tensor for testing
# Shape: (2, 4) - batch size 2, feature dimension 4
x = torch.randn(2, 4, requires_grad=True)

# Create a scalar lambda_grl value
lambda_grl = 0.5

# Define ARGS dict mapping all parameters to their values
ARGS = {
    "x": x,
    "lambda_grl": lambda_grl
}
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

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

Large photometric surveys will image billions of galaxies, but we currently lack quick, reliable automated ways to infer their physical properties like morphology, stellar mass, and star formation rates. Simulations provide galaxy images with ground-truth physical labels, but domain shifts in PSF, noise, backgrounds, selection, and label priors degrade transfer to real surveys. We present a preliminary domain adaptation pipeline that trains on simulated TNG50 galaxies and evaluates on real SDSS galaxies with morphology labels (elliptical/spiral/irregular). We train three backbones (CNN, E(2)-steerable CNN, ResNet-18) with focal loss and effective-number class weighting, and a feature-level domain loss L D built from GeomLoss (entropic Sinkhorn OT, energy distance, Gaussian MMD, and related metrics). We show that a combination of these losses with an OT-based "top-k soft matching" loss that focuses L D on the worst-matched source-target pairs can further enhance domain alignment. With Euclidean distance, scheduled alignment weights, and top-k matching, target accuracy (macro F1) rises from ∼46% (∼30%) at no adaptation to ∼87% (∼ 62.6%), with a domain AUC near 0.5, indicating strong latent-space mixing. https://github.com/ahmedsalim3/galaxy-da

For agents

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

get_harvested_code_for_paper("2511.18590")
get_code_for_paper("2511.18590")
have("2511.18590")

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

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

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

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

Connect an agent — have() is free.