Papers › Generating astronomical spectra from photometry with conditional diffusion models

Generating astronomical spectra from photometry with conditional diffusion models

10 Nov 2022arXiv:2211.05556links table onlyarchive 2025-07-28

Lars Doorenbos, Stefano Cavuoti, Giuseppe Longo, Massimo Brescia, Raphael Sznitman, Pablo Márquez-Neila

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

A trade-off between speed and information controls our understanding of astronomical objects. Fast-to-acquire photometric observations provide global properties, while costly and time-consuming spectroscopic measurements enable a better understanding of the physics governing their evolution. Here, we tackle this problem by generating spectra directly from photometry, through which we obtain an estimate of their intricacies from easily acquired images. This is done by using multi-modal conditional diffusion models, where the best out of the generated spectra is selected with a contrastive network. Initial experiments on minimally processed SDSS galaxy data show promising results.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 16 code samples harvested from 1 repository linked to this paper: 10 ran (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 1 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: official repository: 16 samples from 1 repository, 10 ran (9 with no instrument failure; 1 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

larsdoorenbos/generate-spectra officialmentioned in papermentioned on GitHubpytorchSyntology: 16 samples, 10 ran (1 instrument-failed) · 6 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested: 10 ran (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 1 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
8ran
6unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from larsdoorenbos/generate-spectra. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 3 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

larsdoorenbos/generate-spectra official repository 16 samples, 10 ran (1 instrument-failed) · 6 unverified
Activation in 28 papers generative/unet.py ran fingerprinted MIT (permissive) · 7dbaa0d3af9946c4 · report fixture: returned Activation · level recorded 2026-09-22
CrossAttention in 85 papers generative/unet.py ran MIT (permissive) · 7eb48a00e07ad73f · report fixture: returned CrossAttention · level recorded 2026-09-22
DefaultClassBuilder generative/unet.py ran MIT (permissive) · a90c5fd81174c167 · report fixture: returned DefaultClassBuilder · level recorded 2026-09-22
DownBlock in 13 papers generative/unet.py ran MIT (permissive) · 9d96d3cfa9795e5c · report fixture: returned DownBlock · level recorded 2026-09-22
DummyEncoder generative/unet.py ran fingerprinted MIT (permissive) · e00241be8f072013 · report fixture: returned DummyEncoder · level recorded 2026-09-22
ResNetEncoder in 6 papers generative/unet.py ran fingerprinted MIT (permissive) · 9e57b13fd1c0cbb7 · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-24
SinCosEncoder generative/unet.py ran fingerprinted MIT (permissive) · b882174e4d98b1b9 · report fixture: returned SinCosEncoder · level recorded 2026-09-22
UpBlock in 15 papers generative/unet.py ran MIT (permissive) · 2b5306125b24e7ca · report fixture: signature x:Tensor/3/float, skip_x:Tensor/3/float, time_emb:Tensor/2/float · returned Tensor · level recorded 2026-09-24
checkpoint in 42 papers generative/unet.py ran · honoured contract MIT (permissive) · aafea5a6cd6d98ab · report fixture: signature func:callable/0/?, inputs:list/1/Tensor, params:list/1/Tensor, flag:bool/0/bool · returned Tensor · level recorded 2026-09-22
get_conv_builder generative/unet.py ran · our draft was wrong MIT (permissive) · d856c2e2a4088353 · report fixture: signature dims:int/0/int, conv_args:dict/0/? · returned DefaultClassBuilder · level recorded 2026-09-22
BasicTransformerBlock in 22 papers generative/unet.py unverified MIT (permissive) · e3b8a2acc2178d99 · report
GenericUnet generative/unet.py unverified MIT (permissive) · 5f89d283defedab0 · report
SpatialTransformer in 23 papers generative/unet.py unverified MIT (permissive) · 1607e524b1f67f02 · report
SpatialTransformerCustom generative/unet.py unverified MIT (permissive) · 96f32faddaeb1602 · report
TimestepEmbedSequential in 28 papers generative/unet.py unverified MIT (permissive) · da007c56087b5a65 · report
TimestepEmbedSequentialUp generative/unet.py unverified MIT (permissive) · 9980636c8c2c2599 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for conditional diffusion models (graph method: conditional diffusion models). 24 bricks; individually on a fixture: 18 ran (of which 9 constructed an object rather than computing a result; 14 with no instrument failure: 1 honoured, 2 violated, 11 with no contract checked; 4 where Syntology's instrument failed) · 6 unverified. The assembly has not been run end-to-end.

  1. GenericUnet entry · level 0 · unverified · 5f89d283defedab0
  2. Activation helper · level 1 · ran · 7dbaa0d3af9946c4
  3. DownBlock model · level 1 · ran · 9d96d3cfa9795e5c
  4. DummyEncoder helper · level 1 · ran · e00241be8f072013
  5. ResNetEncoder model · level 1 · ran · 9e57b13fd1c0cbb7
  6. SinCosEncoder helper · level 1 · ran · b882174e4d98b1b9
  7. SpatialTransformer helper · level 0 · unverified · 1607e524b1f67f02
  8. SpatialTransformerCustom helper · level 0 · unverified · 96f32faddaeb1602
  9. TimestepEmbedSequential model · level 0 · unverified · da007c56087b5a65
  10. TimestepEmbedSequentialUp model · level 0 · unverified · 9980636c8c2c2599
  11. UpBlock model · level 1 · ran · 2b5306125b24e7ca
  12. get_conv_builder helper · level 1 · ran · our draft was wrong · d856c2e2a4088353
  13. BasicTransformerBlock helper · level 0 · unverified · e3b8a2acc2178d99
  14. Normalize helper · level 1 · ran · our draft was wrong · c3a6b977022957cb
  15. zero_module helper · level 1 · ran · our draft was wrong · 129b804760b3115f
  16. DefaultClassBuilder helper · level 1 · ran · a90c5fd81174c167
  17. CrossAttention helper · level 1 · ran · 7eb48a00e07ad73f
  18. FeedForward helper · level 1 · ran · 3abfca8077fe9d76
  19. checkpoint helper · level 1 · ran · honoured contract · aafea5a6cd6d98ab
  20. default helper · level 1 · ran · violated contract · 424012cb37b31172
  21. exists helper · level 1 · ran · violated contract · aa5486a3650902d8
  22. max_neg_value helper · level 1 · ran · our draft was wrong · f2fe51a4a5646c6f
  23. GEGLU helper · level 1 · ran · 387673fa5780bf50
  24. CheckpointFunction helper · level 1 · ran · 69360f5b0cc8f069

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2211.05556") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections