SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2512.15657 · ICLR · 2025

SoFlow: Solution Flow Models for One-Step Generative Modeling

Zhuang Liu, Tianze Luo, Haotian Yuan

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2512.15657.json · badge: /api/ran/2512.15657.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
zlab-princeton/SoFlow community
Papers with Code archive
4 ran · 4 no recorded run
FunctionStatusWhere it lives
Conv2d Ran
ran on a synthesized input · constructed an object; no result was computed
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("ba2131e39006711e")
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 an instance of its own class, Conv2d: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel': 3,
    'bias': True,
    'up': False,
    'down': False,
    'resample_filter': [1, 1],
    'fused_resample': False,
    'init_mode': 'kaiming_normal',
    'init_weight': 1,
    'init_bias': 0,
}
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 Conv2d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Conv2d 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
DiTBlock Ran
ran on a synthesized input · constructed an object; no result was computed
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("1e83208270ae8579")
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 an instance of its own class, DiTBlock: the run constructed the object and did not call it, so no result was computed. 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 timm.models.vision_transformer import Attention, Mlp

torch.manual_seed(0)

# Build the DiTBlock with minimal arguments
hidden_size = 4
num_heads = 2
mlp_ratio = 4.0

ARGS = {
    "hidden_size": hidden_size,
    "num_heads": num_heads,
    "mlp_ratio": mlp_ratio,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiTBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DiTBlock 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
FourierEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("5d43ecfe1ca7febe")
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 an instance of its own class, FourierEmbedding: the run constructed the object and did not call it, so no result was computed. 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)

# Construct arguments for FourierEmbedding
num_channels = 8
scale = 16

ARGS = {
    'num_channels': num_channels,
    'scale': scale
}
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 FourierEmbedding — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FourierEmbedding 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
Scheduler Ran
ran on a synthesized input · constructed an object; no result was computed
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("b4d97812ee2cd239")
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 an instance of its own class, Scheduler: the run constructed the object and did not call it, so no result was computed. 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)

# The Scheduler class only uses its __init__ parameters
# noising_type and coefficient_type are Literal strings
# No other parameters are needed for initialization

ARGS = {
    'noising_type': 'Linear',
    'coefficient_type': 'Euler'
}
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 Scheduler — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Scheduler 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
DiT Not yet run
unverified (harvested, no recorded run)
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("72607a52b62083aa")
How it ran

no invocation recorded.

Soflow Not yet run
unverified (harvested, no recorded run)
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("91716233417626bb")
How it ran

no invocation recorded.

SongUNet Not yet run
unverified (harvested, no recorded run)
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("9ca63b53c5347576")
How it ran

no invocation recorded.

UNetBlock Not yet run
unverified (harvested, no recorded run)
zlab-princeton/SoFlow/models.py
code served (permissive licence) · get_code("490bb1fd3a9997ce")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 7 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
DiTBlock
brick of this paper's assembly: helper
5 other papers
4 dated earlier, 1 later · 2 only as an assembly brick
2401.08741 (2024-01)
Fixed Point Diffusion Models
2404.07292 (2024-04)
Solving Masked Jigsaw Puzzles with Diffusion Vision Transformers *
2501.00910 (2025-01)
Population Aware Diffusion for Time Series Generation
and 2 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-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

The multi-step denoising process in diffusion and Flow Matching models causes major efficiency issues, which motivates research on few-step generation. We present Solution Flow Models (SoFlow), a framework for one-step generation from scratch. By analyzing the relationship between the velocity function and the solution function of the velocity ordinary differential equation (ODE), we propose a Flow Matching loss and a solution consistency loss to train our models. The Flow Matching loss allows our models to provide estimated velocity fields for Classifier-Free Guidance (CFG) during training, which improves generation performance. Notably, our consistency loss does not require the calculation of the Jacobian-vector product (JVP), a common requirement in recent works that is not well-optimized in deep learning frameworks like PyTorch. Experimental results indicate that, when trained from scratch using the same Diffusion Transformer (DiT) architecture and an equal number of training epochs, our models achieve better FID-50K scores than MeanFlow models on the ImageNet 256×256 dataset. Our code is available at github.com/zlab-princeton/SoFlow.

For agents

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

get_harvested_code_for_paper("2512.15657")
get_code_for_paper("2512.15657")
have("2512.15657")

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

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

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

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

Connect an agent — have() is free.