SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.10873 · NeurIPS · 2021

Controllable and Compositional Generation with Latent-Space Energy-Based Models

Anima Anandkumar, Weili Nie, Arash Vahdat

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 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/2110.10873.json · badge: /api/ran/2110.10873.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
RameenAbdal/StyleFlow community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
Lambda Ran
ran on a synthesized input · constructed an object; no result was computed
RameenAbdal/StyleFlow/module/odefunc.py
pointer only (licence: NONE) · get_code("a1d6850ddee0aa9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RameenAbdal/StyleFlow when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Swish Ran
ran on a synthesized input
RameenAbdal/StyleFlow/module/odefunc.py
pointer only (licence: NONE) · get_code("786a3a61ba912ea9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RameenAbdal/StyleFlow when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ODEnet Not yet run
unverified (harvested, no recorded run)
RameenAbdal/StyleFlow/module/odefunc.py
pointer only (licence: NONE) · get_code("9fdbd8742a4e9e74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RameenAbdal/StyleFlow when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 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
Swish
brick of this paper's assembly: helper
1 other paper
1 later
2204.09410 (2022-04)
Generating 3D Molecules for Target Protein Binding

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

Controllable generation is one of the key requirements for successful adoption of deep generative models in real-world applications, but it still remains as a great challenge. In particular, the compositional ability to generate novel concept combinations is out of reach for most current models. In this work, we use energybased models (EBMs) to handle compositional generation over a set of attributes. To make them scalable to high-resolution image generation, we introduce an EBM in the latent space of a pre-trained generative model such as StyleGAN. We propose a novel EBM formulation representing the joint distribution of data and attributes together, and we show how sampling from it is formulated as solving an ordinary differential equation (ODE). Given a pre-trained generator, all we need for controllable generation is to train an attribute classifier. Sampling with ODEs is done efficiently in the latent space and is robust to hyperparameters. Thus, our method is simple, fast to train, and efficient to sample. Experimental results show that our method outperforms the state-of-the-art in both conditional sampling and sequential editing. In compositional generation, our method excels at zero-shot generation of unseen attribute combinations. Also, by composing energy functions with logical operators, this work is the first to achieve such compositionality in generating photo-realistic images of resolution 1024×1024. Code is available at https://github.com/NVlabs/LACE. Recent works have attempted to overcome these issues by first training an unconditional generator, and then converting it to a conditional model with a small cost [26,20,1,42]. This is often achieved by discovering semantically meaningful directions in the latent space of the unconditional model. This way, one would pay the most computational cost only once for training the unconditional model. However, these approaches often struggle with compositional generation, in particular with rare 35th Conference on Neural Information Processing Systems (NeurIPS 2021).

For agents

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

get_harvested_code_for_paper("2110.10873")
get_code_for_paper("2110.10873")
have("2110.10873")

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

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

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

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

Connect an agent — have() is free.