SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.06870 · 2026

Continuous First, Discrete Later: VQ-VAEs Without Dimensional Collapse

Paul Liang, Mit, Hamed Hassani, Xinyu Zhao, Nikita Karagodin, Sinan Hersek, Mit Yury, Polyanskiy Mit

arXiv · PDF

Code that ran

13 of 16 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 3 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/2605.06870.json · badge: /api/ran/2605.06870.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
xyz-zy/vqvae_latent_span_collapse canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_waterfill Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_vqgan_waterfilling.py
code served (permissive licence) · get_code("95e19c7fd52aa466")
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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - compute_waterfill takes two parameters: variances and R_total
# - variances: appears to be an array-like of numeric values (sorted, indexed, compared)
# - R_total: a numeric value used in comparison with rate

# Create test data
variances = np.array([2.5, 1.8, 3.2, 0.9, 1.5])
R_total = 5.0

ARGS = {
    "variances": variances,
    "R_total": R_total
}
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 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
compute_waterfill Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_waterfilling.py
code served (permissive licence) · get_code("ab48634212ca75af")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create variance values - these should be positive numbers
# representing channel variances in a water-filling algorithm context
variances = np.array([2.5, 1.8, 0.9, 0.3, 0.1], dtype=np.float64)

# Set total rate budget - should be a positive number
R_total = 2.5

ARGS = {
    "variances": variances,
    "R_total": R_total,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
find_ae_ckpt Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_waterfilling.py
code served (permissive licence) · get_code("5c141b2be9354bae")
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 PosixPath. 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 tempfile
from pathlib import Path

# Create a temporary directory structure with checkpoint files
temp_dir = tempfile.mkdtemp()
ae_dir = temp_dir

# Create the ckpts subdirectory
ckpts_dir = Path(ae_dir) / "ckpts"
ckpts_dir.mkdir(parents=True, exist_ok=True)

# Create some checkpoint files with the expected naming pattern
step = 42
checkpoint_file = ckpts_dir / f"step_{step:07d}_model.pt"
checkpoint_file.touch()

# Also create another checkpoint with a different suffix to test sorting
other_checkpoint = ckpts_dir / f"step_{step:07d}_optimizer.pt"
other_checkpoint.touch()

ARGS = {
    "ae_dir": ae_dir,
    "step": step,
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
find_ckpt Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_val_std.py
code served (permissive licence) · get_code("b33525f44c0b0db9")
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 PosixPath. 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 tempfile
from pathlib import Path

# Create a temporary directory structure to simulate a run_dir with checkpoints
temp_dir = tempfile.TemporaryDirectory()
run_dir = Path(temp_dir.name)
ckpts_dir = run_dir / 'ckpts'
ckpts_dir.mkdir(parents=True, exist_ok=True)

# Create some checkpoint files to test the function
(ckpts_dir / 'best.pt').touch()
(ckpts_dir / 'last.pt').touch()
(ckpts_dir / 'step_100.pt').touch()
(ckpts_dir / 'step_200.pt').touch()

ARGS = {
    'run_dir': run_dir
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
find_config_for_run Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_val_std.py
code served (permissive licence) · get_code("06acef828d85d18a")
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 PosixPath. 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.

from pathlib import Path
import tempfile
import os

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create configs directory
configs_dir = temp_path / 'configs'
configs_dir.mkdir(exist_ok=True)

# Create some dummy config files
config_files = [
    'imagenet_vqgan_ref128_nodisc_cb65k_vanilla.yaml',
    'imagenet_vqgan_ref128_nodisc_cb65k_respawn.yaml',
    'imagenet_vqgan_ref128_nodisc_cb16k_vanilla.yaml',
    'imagenet_vqgan_ref128_nodisc_cb16k_respawn.yaml',
    'imagenet_vqgan_ref128_nodisc_cb1k_vanilla.yaml',
    'imagenet_vqgan_ref128_nodisc_cb1k_respawn.yaml',
]

for cfg_file in config_files:
    (configs_dir / cfg_file).touch()

# Create a test run directory with a specific name
run_dir = temp_path / 'runs' / 'experiment_cb65k_vanilla'
run_dir.mkdir(parents=True, exist_ok=True)

# Create the DATA_ROOT and CONFIGS_DIR to match the function's expectations
import sys
sys.path.insert(0, str(temp_path))

# Override the module-level DATA_ROOT and CONFIGS_DIR
DATA_ROOT = temp_path
CONFIGS_DIR = DATA_ROOT / 'configs'

ARGS = {
    'run_dir': run_dir
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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_final_metrics Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_warmup_scatter.py
code served (permissive licence) · get_code("d54d3242c568bac6")
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.

from pathlib import Path
import tempfile
import json
import os

# Create a temporary directory structure with a metrics.jsonl file
temp_dir = tempfile.mkdtemp()
run_dir = Path(temp_dir)

# Create a metrics.jsonl file with sample data
metrics_file = run_dir / 'metrics.jsonl'

# Write sample metrics in JSONL format
with open(metrics_file, 'w') as f:
    # Write a training metric line
    train_metric = {
        'train/codebook_eff_dim_99': 42.5,
        'step': 100
    }
    f.write(json.dumps(train_metric) + '\n')
    
    # Write a validation metric line
    val_metric = {
        'val': {
            'val/rec_loss': 0.15,
            'val/lpips': 0.08,
            'val/rfid': 0.22,
            'val/codebook_used': 0.95
        },
        'step': 100
    }
    f.write(json.dumps(val_metric) + '\n')

ARGS = {
    'run_dir': run_dir
}
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 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
get_final_metrics Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_warmup_scatter_cbdim.py
code served (permissive licence) · get_code("70c57936d066c47a")
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 tempfile
import json
from pathlib import Path

# Create a temporary directory to serve as run_dir
temp_dir = tempfile.mkdtemp()
run_dir = Path(temp_dir)

# Create a metrics.jsonl file with sample data
metrics_file = run_dir / 'metrics.jsonl'
with open(metrics_file, 'w') as f:
    # Write some sample metric lines
    json.dump({'step': 1, 'loss': 0.5}, f)
    f.write('\n')
    json.dump({'step': 2, 'train/codebook_eff_dim_99': 42.5, 'loss': 0.3}, f)
    f.write('\n')
    json.dump({'step': 3, 'train/codebook_eff_dim_99': 45.2, 'loss': 0.2}, f)
    f.write('\n')

ARGS = {
    'run_dir': run_dir
}
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 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
get_final_std Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_warmup_scatter.py
code served (permissive licence) · get_code("67195b3a6afd3017")
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 json
import numpy as np
from pathlib import Path
import tempfile
import os

# Create a temporary directory with a metrics.jsonl file
temp_dir = tempfile.mkdtemp()
run_dir = Path(temp_dir)

# Create metrics.jsonl with sample data
metrics_file = run_dir / 'metrics.jsonl'
with open(metrics_file, 'w') as f:
    # Write 5 entries with val metrics
    for i in range(5):
        record = {
            'val': {
                'val/rec_loss': 0.5 + i * 0.01,
                'val/lpips': 0.3 + i * 0.01,
                'val/rfid': 0.2 + i * 0.005
            }
        }
        f.write(json.dumps(record) + '\n')

ARGS = {
    'run_dir': run_dir,
    'n': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
is_main Ran
ran, violated the contract we drafted
xyz-zy/vqvae_latent_span_collapse/VQGAN/train_small2.py
code served (permissive licence) · get_code("7f4da51e0bc41db4")
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
import torch.nn as nn

ARGS = {
    "rank": 0
}
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
kmeans_full Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_ae_kmeans_step0_allsamples.py
code served (permissive licence) · get_code("7b2110d938733a3f")
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. 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

torch.manual_seed(0)

# Create a small tensor of latent samples
# Shape: (N, D) where N=samples, D=dimension
z_samples = torch.randn(8, 4)

# Number of clusters
k = 3

# Number of iterations for k-means
n_iters = 5

# Random seed for reproducibility
seed = 42

# Chunk size for distance computation
chunk_size = 2

ARGS = {
    "z_samples": z_samples,
    "k": k,
    "n_iters": n_iters,
    "seed": seed,
    "chunk_size": chunk_size,
}
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 — a tuple output has no array shape of its own; none is 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
load_metric Ran
ran, honoured the contract we drafted
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_cb16k_3panel.py
code served (permissive licence) · get_code("cda9542f1cb60640")
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 2, 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 json
import tempfile
from pathlib import Path

# Create a temporary directory with a metrics.jsonl file
temp_dir = tempfile.mkdtemp()
metrics_file = Path(temp_dir) / 'metrics.jsonl'

# Write sample metrics data
with open(metrics_file, 'w') as f:
    # Validation metrics with nested structure
    f.write(json.dumps({'step': 0, 'val': {'accuracy': 0.85, 'loss': 0.23}}) + '\n')
    f.write(json.dumps({'step': 1, 'val': {'accuracy': 0.87, 'loss': 0.21}}) + '\n')
    f.write(json.dumps({'step': 2, 'val': {'accuracy': 0.89, 'loss': 0.19}}) + '\n')
    # Training metrics with flat structure
    f.write(json.dumps({'step': 0, 'train_loss': 0.45, 'train_acc': 0.75}) + '\n')
    f.write(json.dumps({'step': 1, 'train_loss': 0.35, 'train_acc': 0.80}) + '\n')
    # Invalid JSON line (should be skipped)
    f.write('{"invalid": json line\n')
    f.write(json.dumps({'step': 2, 'train_loss': 0.25, 'train_acc': 0.85}) + '\n')

ARGS = {
    'run_dir': temp_dir,
    'metric_key': 'accuracy',
    'step_offset': 0,
    'source': 'val'
}
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 tuple, ndim 2, 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
to_uint8 Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_ae_kmeans_step0_allsamples.py
code served (permissive licence) · get_code("392ea4d7aa702e8c")
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 int, 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)

# The function to_uint8 takes a single parameter 'x' which is a tensor
# It performs: ((x + 1) * 127.5).clamp(0, 255).to(torch.uint8)
# This suggests x should be a float tensor, likely in range [-1, 1]

# Create a small float tensor in the expected input range [-1, 1]
x = torch.randn(2, 4) * 0.5  # Small random tensor roughly in [-1, 1] range

ARGS = {
    "x": x
}
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 int, 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
to_uint8_minus1_to_1 Ran
ran; our contract draft was wrong, not the code
xyz-zy/vqvae_latent_span_collapse/VQGAN/train_small2.py
code served (permissive licence) · get_code("3b024007f61d19cb")
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 int, 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 float tensor in [-1, 1] range
x = torch.rand(2, 4) * 2 - 1  # Values in [-1, 1]

ARGS = {
    "x": x
}
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 int, 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
find_ae_run Not yet run
unverified (harvested, no recorded run)
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_waterfilling.py
code served (permissive licence) · get_code("6a6a9dd34a779613")
How it ran

no invocation recorded.

find_run Not yet run
unverified (harvested, no recorded run)
xyz-zy/vqvae_latent_span_collapse/VQGAN/plot_ae_warmup_scatter.py
code served (permissive licence) · get_code("a9cade3c46a1d9b5")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
xyz-zy/vqvae_latent_span_collapse/VQGAN/eval_val_std.py
code served (permissive licence) · get_code("a8836f887cef4509")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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

While many approaches to improve VQ-VAE performance focus on codebook size and utilization, the effect of dimensional collapse, where trained VQ-VAE representations live in an extremely low-dimensional subspace (1 -2% of full rank), remains unaddressed. We show theoretically and empirically that dimension collapse causes a hard loss lower bound that various codebook improvement techniques fail to surpass. Our analytic framework extends the sequential learning effect of Saxe et al. [2014] by introducing ideas from rate-distortion theory and explains how the latent collapse is caused by the VQ suppressing lower-variance directions. Our theory justifies a simple solution: a "warm-up phase" that trains the model as an (unquantized) autoencoder before introducing VQ. On both synthetic experiments and large-scale image (VQGAN) and audio (WavTokenizer) VQ-VAEs, we show that AE Warm-Up successfully restores representation dimension, leading to lower reconstruction and perceptual loss at the same training budget. Across codebook sizes K ∈ {2 10 , 2 14 , 2 16 }, AE warm-up raises VQGAN codebook effective dimension from 3-5 to 17-19 and reduces rFID by 17-35%; on WavTokenizer at K ∈ {2 13 , 2 14 }, it raises codebook dimension from 4 to 17-19 and improves PESQ by 11-14%. We empirically characterize how warm-up duration governs the achievable final loss. In agreement with experiment, our theoretical analysis predicts downstream performance as a function of warm-up length, enabling an adaptive criterion for switching from AE Warm-up to VQ-VAE training. 2 * Equal contribution. 2 Code for our experiments can be found at https://github.com/xyz-zy/vqvae_latent_span_collapse.

For agents

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

get_harvested_code_for_paper("2605.06870")
get_code_for_paper("2605.06870")
have("2605.06870")

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

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

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

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

Connect an agent — have() is free.