SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.17022 · 2026

Learning the Geometry of Data: A Mathematical Review of Shape Space Analysis

Chi Zhang, Khanh Dao Duc, Felix Zhou, Christoph Von Tycowicz, Emmanuel Hartman, Gary Choi, Shira Faigenbaum-Golovin, Karen Habermann, Wenjun Zhao

arXiv · PDF

Code that ran

8 of 12 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, 1 violated it and 0 have no contract verdict; 5 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/2606.17022.json · badge: /api/ran/2606.17022.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
pyg-team/pytorch_geometric canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
google-deepmind/jraph canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
GraphMapFeatures Ran
ran; our contract draft was wrong, not the code
google-deepmind/jraph/jraph/_src/models.py
code served (permissive licence) · get_code("083fdc1346d4a41f")
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 function. 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 jax.numpy as jnp
import numpy as np

# Define simple embedding functions
def embed_edge_fn(edges):
    """Simple embedding function for edges"""
    if isinstance(edges, jnp.ndarray):
        return edges * 2
    return edges

def embed_node_fn(nodes):
    """Simple embedding function for nodes"""
    if isinstance(nodes, jnp.ndarray):
        return nodes + 1
    return nodes

def embed_global_fn(globals_):
    """Simple embedding function for globals"""
    if isinstance(globals_, jnp.ndarray):
        return globals_ - 0.5
    return globals_

# Create simple JAX arrays for testing
edges_array = jnp.array([[1.0, 2.0, 3.0, 4.0],
                          [5.0, 6.0, 7.0, 8.0]])
nodes_array = jnp.array([[0.1, 0.2, 0.3, 0.4],
                          [0.5, 0.6, 0.7, 0.8]])
globals_array = jnp.array([[0.9, 0.1, 0.2, 0.3]])

ARGS = {
    'embed_edge_fn': embed_edge_fn,
    'embed_node_fn': embed_node_fn,
    'embed_global_fn': embed_global_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
get_num_clusters Ran
ran, honoured the contract we drafted
pyg-team/pytorch_geometric/torch_geometric/datasets/hydro_net.py
code served (permissive licence) · get_code("7080188a5f04e65f")
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 int, ndim 0, dtype family int, 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 os.path as osp
import tempfile
import os

# Create a temporary directory and file with a name matching the expected pattern
temp_dir = tempfile.mkdtemp()
test_filepath = osp.join(temp_dir, "c42_clusters_data.txt")

# Create the file so it exists
with open(test_filepath, 'w') as f:
    f.write("test")

ARGS = {
    "filepath": test_filepath
}
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 int, ndim 0, dtype family int, 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
map_annotation Ran
ran; our contract draft was wrong, not the code
pyg-team/pytorch_geometric/torch_geometric/config_store.py
code served (permissive licence) · get_code("0a76eaa4d06d2d91")
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 _UnionGenericAlias. 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
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from dataclasses import dataclass, is_dataclass

torch.manual_seed(0)

# Mock the dataclass_from_class function that's referenced in the code
def dataclass_from_class(annotation):
    """Mock function - returns None for most inputs"""
    return None

# Test with various annotation types
@dataclass
class SampleDataclass:
    field1: int
    field2: str

# Create a simple generic annotation
test_annotation = List[int]

# Create a mapping dict
test_mapping = {
    int: str,
    float: bool,
}

ARGS = {
    "annotation": Union[int, str],
    "mapping": {int: str, float: bool, str: list}
}
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 _UnionGenericAlias — a _UnionGenericAlias output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _UnionGenericAlias 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
read_energy Ran
ran, honoured the contract we drafted
pyg-team/pytorch_geometric/torch_geometric/datasets/hydro_net.py
code served (permissive licence) · get_code("37b2364ea0f56557")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np
import tempfile
import os

# Create a temporary file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_energy.txt")

# Write test data to the file
# For chunk_size=13 (since 13-2=11), we need data formatted appropriately
# The function checks if chunk_size - 2 == 11 * 3 = 33
# So chunk_size would need to be 35 for that condition
# Let's use chunk_size=13 to test the else branch

chunk_size = 13

# Write data that will be read with skiprows logic
# skipatoms returns True for rows to skip: (i-1) % chunk_size != 0
# So rows 1, 14, 27, etc. (i=1, 14, 27...) are kept (when (i-1) % chunk_size == 0)
with open(temp_file, 'w') as f:
    for i in range(1, 50):
        if (i - 1) % chunk_size == 0:
            # These rows are kept
            f.write(f"label_{i} 3.14\n")
        else:
            # These rows are skipped
            f.write(f"skip_{i} 1.0\n")

ARGS = {
    "file": temp_file,
    "chunk_size": chunk_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
segment_mean Ran
ran; our contract draft was wrong, not the code
google-deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("6c720ecf7652656d")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update("jax_platform_name", "cpu")

# Create small test data
data = jnp.arange(6, dtype=jnp.float32)  # [0, 1, 2, 3, 4, 5]
segment_ids = jnp.array([0, 0, 1, 1, 2, 2], dtype=jnp.int32)
num_segments = 3
indices_are_sorted = False
unique_indices = False

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
    "indices_are_sorted": indices_are_sorted,
    "unique_indices": unique_indices,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
segment_sum Ran
ran; our contract draft was wrong, not the code
google-deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("b02dcff8929a613b")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax.numpy as jnp

ARGS = {
    "data": jnp.arange(5, dtype=jnp.float32),
    "segment_ids": jnp.array([0, 0, 1, 1, 2], dtype=jnp.int32),
    "num_segments": 3,
    "indices_are_sorted": False,
    "unique_indices": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
segment_variance Ran
ran; our contract draft was wrong, not the code
google-deepmind/jraph/jraph/_src/utils.py
code served (permissive licence) · get_code("fa85b4d47d64d575")
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 ArrayImpl, ndim 1, dtype family float, shape (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 jax.numpy as jnp

# Create small test data
data = jnp.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0])
segment_ids = jnp.array([0, 0, 1, 1, 2, 2])
num_segments = 3

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments,
    "indices_are_sorted": False,
    "unique_indices": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (3,) — shape (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
use_segment_matmul_heuristic Ran
ran, violated the contract we drafted
pyg-team/pytorch_geometric/torch_geometric/backend.py
code served (permissive licence) · get_code("c19c99d92c84e9b8")
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 bool, 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 torch

torch.manual_seed(0)

ARGS = {
    "num_segments": 100,
    "max_segment_size": 256,
    "in_channels": 64,
    "out_channels": 32,
}
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 bool, 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
compile Not yet run
unverified (harvested, no recorded run)
pyg-team/pytorch_geometric/torch_geometric/_compile.py
code served (permissive licence) · get_code("a56e8eaabb61634b")
How it ran

no invocation recorded.

read_atoms Not yet run
unverified (harvested, no recorded run)
pyg-team/pytorch_geometric/torch_geometric/datasets/hydro_net.py
code served (permissive licence) · get_code("8349c934df099399")
How it ran

no invocation recorded.

safe_onnx_export Not yet run
unverified (harvested, no recorded run)
pyg-team/pytorch_geometric/torch_geometric/_onnx.py
code served (permissive licence) · get_code("51ea4acdfd945732")
How it ran

no invocation recorded.

to_dataclass Not yet run
unverified (harvested, no recorded run)
pyg-team/pytorch_geometric/torch_geometric/config_store.py
code served (permissive licence) · get_code("977c76c93dace67a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
GraphMapFeatures 1 other paper
1 dated earlier
1806.01261 (2018-06)
Relational inductive biases, deep learning, and graph networks
compile 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
get_num_clusters 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
map_annotation 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
read_atoms 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
read_energy 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
safe_onnx_export 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
segment_mean 1 other paper
1 dated earlier
1806.01261 (2018-06)
Relational inductive biases, deep learning, and graph networks
segment_sum 1 other paper
1 dated earlier
1806.01261 (2018-06)
Relational inductive biases, deep learning, and graph networks
segment_variance 1 other paper
1 dated earlier
1806.01261 (2018-06)
Relational inductive biases, deep learning, and graph networks
to_dataclass 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?
use_segment_matmul_heuristic 1 other paper
1 dated earlier
2105.14491 (2021-05)
How Attentive are Graph Attention Networks?

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

A fundamental objective of machine learning is to analyze structural discrepancies and identify patterns within data. Advancements in acquisition techniques have increasingly produced datasets where data takes shape and has its own complex geometry. These "shape spaces" often exhibit subtle variations between objects, presenting unique challenges that traditional machine learning frameworks frequently overlook. This article reviews the emerging field of shape space analysis, providing a unified mathematical and computational foundation for studying collections of geometric data. By standing on the shoulders of classical analysis, this framework introduces specialized tools designed to leverage the structural richness and nuances of shape-based datasets. The analytical pipeline begins with optimal shape parameterization to capture geometric variations, followed by a discussion of the choice of a robust distance metric. Through the lens of manifold learning approaches, we illuminate dynamic trajectories and establish rigorous statistical inferences for fluctuations. By extending classical machine learning into geometry-aware frameworks, we bridge theoretical abstractions with empirical rigor. This foundation is grounded by two multiscale case studies (subcellular morphology, primate dental evolution) offering a roadmap for researchers as they transition from classical learning to geometry-aware domains. Finally, we evaluate cross-disciplinary opportunities and identify pivotal open questions currently facing the emerging shape space community. This review reveals that, despite the vast diversity of applications spanning neurology, microbiology, anthropology, and computer vision, researchers face similar challenges rooted in unaligned, subtly varying geometries. We identified a significant fragmentation in terminology across disciplines, which this survey aims to resolve by formulating a unified language for shape space analysis. Our findings demonstrate that geometric learning frameworks consistently outperform standard models, particularly when navigating limited labeled datasets and intricate local variations. Ultimately, we show that what appear to be domain-specific hurdles are actually universal geometric properties, requiring a specialized mathematical approach to unlock structural insights across all scales of data. This comprehensive survey provides a unique view by synthesizing perspectives from mathematics, statistics, and computer science to establish a foundational reference for high-dimensional, geometrically constrained data. While traditional studies focus on single-object analysis, this work demonstrates the superior rigour achieved by analyzing entire shape collections to capture structural variation. We offer a practical guide for researchers navigating application-driven challenges. By bridging abstract geometric theory with empirical learning across scales, from microbiology to anthropology, the article offers a unique, unified view of shape modeling. It transforms domain-specific observations into a cross-disciplinary framework for any data possessing physical or structural form.

For agents

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

get_harvested_code_for_paper("2606.17022")
get_code_for_paper("2606.17022")
have("2606.17022")

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

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

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

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

Connect an agent — have() is free.