SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.12824 · ECCV · 2022

Compositional Human-Scene Interaction Synthesis with Semantic Control

Shaofei Wang, Yan Zhang, Siyu Tang, Kaifeng Zhao, Thabo Beeler

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 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 4 have no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2207.12824.json · badge: /api/ran/2207.12824.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
zkf1997/COINS canonical (classifier label)
classifier basis not recorded on the link
8 ran · 5 no recorded run
FunctionStatusWhere it lives
batch_sparse_dense_matmul Ran
ran on a synthesized input
zkf1997/COINS/interaction/graph_layers.py
code served (permissive licence) · get_code("eeb1f268b855ffcd")
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 3, dtype family float, shape (2, 4, 3) 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

torch.manual_seed(0)

# Analyze the function:
# - sparse: used in torch.matmul(sparse, dense) where dense is shape (N, B*C)
#   So sparse must be a matrix that can multiply with (N, B*C)
#   Result is reshaped to (-1, B, C), so sparse should be shape (something, N)
#   For a sparse matrix in PyTorch, we typically use torch.sparse_coo_tensor
#   or a regular tensor. The output shape (-1, B, C) means first dim is determined.
#   If sparse is (M, N), then (M, N) @ (N, B*C) = (M, B*C), reshaped to (-1, B, C)
#   So M must equal -1 value, meaning M = B*C or we reshape appropriately.
#   Actually, output is (M, B*C) reshaped to (-1, B, C).
#   If M = B*C, then (-1, B, C) makes sense as (B*C, B, C) but that's (B, C, B, C) after permute back.
#   Let me reconsider: reshape(-1, B, C) on (M, B*C) gives us M = something where M/(B*C) works out.
#   If M = (B*C), then we get (B*C, B, C) which doesn't reshape cleanly.
#   Actually reshape just flattens then reshapes, so (M, B*C) -> (-1, B, C) means M*B*C total elements.
#   So M*B*C = total, and we want (-1, B, C) which is (total/(B*C), B, C) = (M, B, C).
#   So sparse should be (M, N) where N matches the first dimension after permute reshape.
#   dense is permuted to (N, B*C), so N is from original dense first dim which is N.
#   sparse @ (N, B*C) should give (M, B*C), which reshapes to (M, B, C).
#   Final permute(1, 0, 2) on (B, M, C) gives (M, B, C)... wait, input to final permute is (-1, B, C) = (M, B, C).
#   permute(1, 0, 2) on (M, B, C) gives (B, M, C). But we want output (B, ?, C).
#   Let me re-read: reshape(-1, B, C) gives (M, B, C), then permute(1, 0, 2) gives (B, M, C).
#   So output is (B, M, C). For this to make sense, M should be something like num_tokens or feature dim.
#   Let's use M = N (number of features/tokens), so sparse is (N, N) and output is (B, N, C).

B = 2
N = 4
C = 3

# Create a sparse matrix (N, N)
# Using a regular tensor for simplicity (PyTorch sparse matmul can work with dense too)
sparse = torch.randn(N, N)

# Create dense tensor (B, N, C)
dense = torch.randn(B, N, C)

ARGS = {
    "sparse": sparse,
    "dense": dense,
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) 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
calc_diversity Ran
ran on a synthesized input
zkf1997/COINS/evaluation/eval_results.py
code served (permissive licence) · get_code("0d9a9295115ecbdd")
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 dict. 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 numpy as np

# Create a small body_params array with shape (25, 8)
# This has enough samples to test the clustering logic
np.random.seed(0)
body_params = np.random.randn(25, 8).astype(np.float32)

# Define ARGS with all parameters
ARGS = {
    'body_params': body_params,
    'cls_num': 20
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
eval_physical_metric Ran
ran on a synthesized input
zkf1997/COINS/evaluation/posa_metric_utils.py
code served (permissive licence) · get_code("e3c7e257f04448c7")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.functional as F

torch.manual_seed(0)

# Create small tensors for vertices
# vertices should be shape (batch_size, num_vertices, 3)
batch_size = 2
num_vertices = 4
vertices = torch.randn(batch_size, num_vertices, 3)

# Create small SDF grid
# sdf_grid should be shape (grid_dim, grid_dim, grid_dim, grid_dim, 1) or similar
# Looking at the function: sdf_grid.dim() == 4, so it's 4D
# After unsqueeze(0).permute(0, 4, 1, 2, 3), it becomes (1, 1, grid_dim, grid_dim, grid_dim)
# So original shape must be (grid_dim, grid_dim, grid_dim, 1)
grid_dim = 4
sdf_grid = torch.randn(grid_dim, grid_dim, grid_dim, 1)

# grid_min and grid_max are used in normalization
grid_min = torch.tensor([-1.0, -1.0, -1.0])
grid_max = torch.tensor([1.0, 1.0, 1.0])

# Build scene_data dict with required keys
scene_data = {
    'sdf': sdf_grid,
    'grid_dim': grid_dim,
    'grid_min': grid_min,
    'grid_max': grid_max
}

ARGS = {
    'vertices': vertices,
    'scene_data': scene_data
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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_embedder Ran
ran; our contract draft was wrong, not the code
zkf1997/COINS/interaction/interaction_model.py
pointer only (licence: MIT); the stored copy get_code serves, from leolyliu/core4d-instructions, is pointer only (licence: NONE) · get_code("d402177f304ff725")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from leolyliu/core4d-instructions, and GitHub detected no licence in that repository 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.

pc_normalize Ran
ran, honoured the contract we drafted
zkf1997/COINS/interaction/pointnet2.py
pointer only (licence: MIT); the stored copy get_code serves, from aboulch/ConvPoint, is pointer only (licence: NOASSERTION) · get_code("ec413739d406e611")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from aboulch/ConvPoint, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

spmm Ran
ran on a synthesized input
zkf1997/COINS/interaction/graph_layers.py
code served (permissive licence) · get_code("9b987af9445edb28")
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

torch.manual_seed(0)

# Create a small sparse matrix (2x3)
sparse = torch.sparse_coo_tensor(
    indices=torch.tensor([[0, 1], [0, 2]]),
    values=torch.tensor([1.0, 2.0]),
    size=(2, 3)
)

# Create a small dense matrix (3x4) with requires_grad=True
dense = torch.randn(3, 4, requires_grad=True)

ARGS = {
    "sparse": sparse,
    "dense": dense,
}
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
square_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zkf1997/COINS/interaction/pointnet2.py
code served (permissive licence) · get_code("580dee6761649b29")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 5) 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

torch.manual_seed(0)

# Create source points: [B, N, C]
# B=2 (batch), N=4 (num source points), C=3 (coordinates)
src = torch.randn(2, 4, 3)

# Create destination points: [B, M, C]
# B=2 (batch), M=5 (num destination points), C=3 (coordinates)
dst = torch.randn(2, 5, 3)

ARGS = {
    "src": src,
    "dst": dst,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 3, dtype family float, shape (2, 4, 5) — shape (2, 4, 5) 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
timeit Ran
ran, honoured the contract we drafted
zkf1997/COINS/interaction/pointnet2.py
pointer only (licence: MIT); the stored copy get_code serves, from duasoi/Mind2Cloud, is pointer only (licence: NONE) · get_code("b1227ddb721e2999")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from duasoi/Mind2Cloud, and GitHub detected no licence in that repository 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.

evaluate_diversity Not yet run
unverified (harvested, no recorded run)
zkf1997/COINS/evaluation/eval_results.py
code served (permissive licence) · get_code("00f2be9bc4677fd1")
How it ran

no invocation recorded.

load_posa Not yet run
unverified (harvested, no recorded run)
zkf1997/COINS/evaluation/load_results.py
code served (permissive licence) · get_code("a88c9c2fb6e25051")
How it ran

no invocation recorded.

load_results Not yet run
unverified (harvested, no recorded run)
zkf1997/COINS/evaluation/load_results.py
code served (permissive licence) · get_code("1c8bf84ad350dd01")
How it ran

no invocation recorded.

padded_idx_to_code Not yet run
unverified (harvested, no recorded run)
zkf1997/COINS/interaction/interaction_model.py
code served (permissive licence) · get_code("f467082e21a9734c")
How it ran

no invocation recorded.

read_sdf Not yet run
unverified (harvested, no recorded run)
zkf1997/COINS/evaluation/posa_metric_utils.py
code served (permissive licence) · get_code("b5060a2fb98d78e2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 5 later) and 8 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
square_distance 75 other papers
17 dated earlier, 3 the same month, 54 later, 1 same year, order not determinable · 9 only as an assembly brick
1706.02413 (2017-06)
PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space
1811.07246 (2018-11)
PointConv: Deep Convolutional Networks on 3D Point Clouds
2003.00410 (2020-03)
PF-Net: Point Fractal Network for 3D Point Cloud Completion
and 72 more not named here
pc_normalize 36 other papers
14 dated earlier, 1 the same month, 21 later
1803.05827 (2018-03)
Local Spectral Graph Convolution for Point Set Feature Learning
1904.02375 (2019-04)
ConvPoint: Continuous Convolutions for Point Cloud Processing
1904.10014 (2019-04)
Linked Dynamic Graph CNN: Learning on Point Cloud via Linking Hierarchical Features
and 33 more not named here
timeit 33 other papers
7 dated earlier, 26 later
1811.07246 (2018-11)
PointConv: Deep Convolutional Networks on 3D Point Clouds
2003.00410 (2020-03)
PF-Net: Point Fractal Network for 3D Point Cloud Completion
2003.04618 (2020-03)
Convolutional Occupancy Networks
and 30 more not named here
spmm 4 other papers
2 dated earlier, 2 later
1905.03244 (2019-05)
Convolutional Mesh Regression for Single-Image Human Shape Reconstruction
2111.08176 (2021-11)
Coarse-to-fine Animal Pose and Shape Estimation
2211.08805 (2022-11)
Interacting Hand-Object Pose Estimation via Dense Mutual Attention
and 1 more not named here
get_embedder 2 other papers
2 later
2308.16905 (2023-08)
InterDiff: Generating 3D Human-Object Interactions with Physics-Informed Diffusion
2406.19353 (2024-06)
CORE4D: A 4D Human-Object-Human Interaction Dataset for Collaborative Object REarrangement

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

Synthesizing natural interactions between virtual humans and their 3D environments is critical for numerous applications, such as computer games and AR/VR experiences. Recent methods mainly focus on modeling geometric relations between 3D environments and humans, where the high-level semantics of the human-scene interaction has frequently been ignored. Our goal is to synthesize humans interacting with a given 3D scene controlled by high-level semantic specifications as pairs of action categories and object instances, e.g., "sit on the chair". The key challenge of incorporating interaction semantics into the generation framework is to learn a joint representation that effectively captures heterogeneous information, including human body articulation, 3D object geometry, and the intent of the interaction. To address this challenge, we design a novel transformer-based generative model, in which the articulated 3D human body surface points and 3D objects are jointly encoded in a unified latent space, and the semantics of the interaction between the human and objects are embedded via positional encoding. Furthermore, inspired by the compositional nature of interactions that humans can simultaneously interact with multiple objects, we define interaction semantics as the composition of varying numbers of atomic action-object pairs. Our proposed generative model can naturally incorporate varying numbers of atomic interactions, which enables synthesizing compositional human-scene interactions without requiring composite interaction data. We extend the PROX dataset with interaction semantic labels and scene instance segmentation to evaluate our method and demonstrate that our method can generate realistic human-scene interactions with semantic control. Our perceptual study shows that our synthesized virtual humans can naturally interact with 3D scenes, considerably outperforming existing methods. We name our method COINS, for COmpositional INteraction Synthesis with Semantic Control. Code and data are available at https://github.com/zkf1997/COINS.

For agents

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

get_harvested_code_for_paper("2207.12824")
get_code_for_paper("2207.12824")
have("2207.12824")

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

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

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

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

Connect an agent — have() is free.