SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.13195 · 2021

FitVid: Overfitting in Pixel-Level Video Prediction

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 2 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/2106.13195.json · badge: /api/ran/2106.13195.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
google-research/fitvid canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
blend Ran
ran on a synthesized input
google-research/fitvid/randaug.py
code served (permissive licence) · get_code("76704dc2cbc1cfb0")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf1
import numpy as np

tf1.disable_eager_execution()

# Create small uint8 image tensors
image1_data = np.array([[[100, 150, 200], [50, 75, 125]]], dtype=np.uint8)
image2_data = np.array([[[150, 180, 220], [80, 100, 140]]], dtype=np.uint8)

image1 = tf1.constant(image1_data, dtype=tf1.uint8)
image2 = tf1.constant(image2_data, dtype=tf1.uint8)

factor = 0.5

ARGS = {
    "image1": image1,
    "image2": image2,
    "factor": factor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
cutout Ran
ran on a synthesized input
google-research/fitvid/randaug.py
code served (permissive licence) · get_code("fddcd1f71282b74e")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf1
import tensorflow.compat.v2 as tf2

# Disable v2 behavior for tf1 compatibility
tf1.disable_v2_behavior()

# Create a small uint8 image tensor (height=4, width=3, channels=3)
image = tf1.constant([
    [[255, 128, 64], [200, 100, 50], [180, 90, 45]],
    [[220, 110, 55], [210, 105, 52], [190, 95, 47]],
    [[230, 115, 57], [215, 107, 53], [195, 97, 48]],
    [[240, 120, 60], [225, 112, 56], [205, 102, 51]]
], dtype=tf1.uint8)

# Create a seed for stateless random operations (required by tf2.random.stateless_uniform)
# Seed should be a tensor of shape [2] with int32 dtype
seed = tf1.constant([42, 123], dtype=tf1.int32)

# Pad size for the cutout mask (2*pad_size x 2*pad_size)
pad_size = 1

# Replace value (what pixel value to fill in the cutout area)
replace = 0

ARGS = {
    'image': image,
    'seed': seed,
    'pad_size': pad_size,
    'replace': replace
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
discretize Ran
ran on a synthesized input
google-research/fitvid/utils.py
code served (permissive licence) · get_code("b89a68818addda7d")
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 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 jax
import jax.numpy as jnp
from flax import linen as nn

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

# Create a small input tensor for the discretize function
# The function takes x and applies tanh, then performs discretization
# Shape: (batch_size=2, features=4)
x = jnp.ones((2, 4), dtype=jnp.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
flatten Ran
ran on a synthesized input
google-research/fitvid/utils.py
code served (permissive licence) · get_code("7b07756752650e29")
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 2, dtype family float, shape (2, 12) 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

# The function takes a single parameter 'x' which should be a JAX array
# The function reshapes x to (x.shape[0], -1), flattening all dimensions after the first
# x needs to have at least 2 dimensions (batch dimension + others to flatten)

# Create a small JAX array with batch size 2 and some additional dimensions
x = jnp.ones((2, 4, 3))  # batch=2, then 4x3 spatial/feature dims to flatten

ARGS = {
    "x": x
}
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 2, dtype family float, shape (2, 12) — shape (2, 12) 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
flatten_video Ran
ran on a synthesized input
google-research/fitvid/metrics.py
code served (permissive licence) · get_code("6456844306d956b5")
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 3, dtype family float, shape (6, 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 numpy as np

# flatten_video takes a video array and reshapes it
# The function uses np.reshape(video, (-1,) + video.shape[2:])
# This flattens the first two dimensions while preserving dimensions from index 2 onwards
# A typical video has shape (batch, time, height, width, channels) or similar
# Let's create a video with shape (2, 3, 4, 5) - batch=2, time=3, height=4, width=5

video = np.random.randn(2, 3, 4, 5).astype(np.float32)

ARGS = {
    "video": video
}
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 ndarray, ndim 3, dtype family float, shape (6, 4, 5) — shape (6, 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
kl_divergence Ran
ran on a synthesized input
google-research/fitvid/utils.py
code served (permissive licence) · get_code("edaff51d9900895f")
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 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 jax.numpy as jnp
import numpy as np

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

# Create small tensors for the KL divergence function
batch_size = 2
latent_dim = 4

# Generate random means and log-variances
mean1 = jnp.array(np.random.randn(batch_size, latent_dim), dtype=jnp.float32)
logvar1 = jnp.array(np.random.randn(batch_size, latent_dim), dtype=jnp.float32)
mean2 = jnp.array(np.random.randn(batch_size, latent_dim), dtype=jnp.float32)
logvar2 = jnp.array(np.random.randn(batch_size, latent_dim), dtype=jnp.float32)

ARGS = {
    "mean1": mean1,
    "logvar1": logvar1,
    "mean2": mean2,
    "logvar2": logvar2,
    "batch_size": batch_size,
}
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 ArrayImpl, 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
psnr Ran
ran on a synthesized input
google-research/fitvid/metrics.py
code served (permissive licence) · get_code("f594dd5c8033f7ba")
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 float32, 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 numpy as np
import tensorflow.compat.v2 as tf

# Create two small video tensors
# Videos should have shape (batch, height, width, channels) or similar
# The function flattens them to (-1,) + video.shape[2:]
# So we need at least 3 dimensions

# Create video_1: shape (2, 4, 3, 3) - batch=2, height=4, width=3, channels=3
video_1 = np.random.rand(2, 4, 3, 3).astype(np.float32)

# Create video_2: shape (2, 4, 3, 3) - same shape as video_1
video_2 = np.random.rand(2, 4, 3, 3).astype(np.float32)

# Clip values to [0, 1] range since max_val=1.0 is used in psnr
video_1 = np.clip(video_1, 0.0, 1.0)
video_2 = np.clip(video_2, 0.0, 1.0)

ARGS = {
    "video_1": video_1,
    "video_2": video_2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, 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
rand_crop Ran
ran on a synthesized input
google-research/fitvid/data.py
code served (permissive licence) · get_code("ed8d0299fb8adf25")
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 EagerTensor, ndim 4, dtype family float, shape (2, 3, 3, 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 tensorflow as tf
import numpy as np

# Create a valid video tensor
# Shape: (batch, height, width, channels)
# The function expects height < width
batch_size = 2
height = 4
width = 6
channels = 3
video = tf.random.normal([batch_size, height, width, channels], dtype=tf.float32)

# Create seeds for stateless random operations
# Each seed is a tensor of shape [2] with dtype int32
seed1 = tf.constant([42, 0], dtype=tf.int32)
seed2 = tf.constant([43, 1], dtype=tf.int32)
seeds = [seed1, seed2]

# wiggle parameter
# Must be positive and less than height
wiggle = 1

ARGS = {
    "seeds": seeds,
    "video": video,
    "width": width,
    "height": height,
    "wiggle": wiggle
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 3, 3, 3) — shape (2, 3, 3, 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
solarize Ran
ran on a synthesized input
google-research/fitvid/randaug.py
code served (permissive licence) · get_code("6a5f91515bf55921")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf1
import numpy as np

# Disable TensorFlow v2 behavior
tf1.disable_v2_behavior()

# Create a small test image tensor
# The function uses tf1.where which works with TensorFlow tensors
# Image should have pixel values in range [0, 255]
image_data = np.array([
    [[50, 100, 150, 200],
     [30, 120, 180, 240]],
    [[60, 110, 160, 210],
     [40, 130, 190, 250]]
], dtype=np.uint8)

image = tf1.constant(image_data, dtype=tf1.uint8)

seed = 42

threshold = 128

ARGS = {
    "image": image,
    "seed": seed,
    "threshold": threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
augment_dataset Not yet run
unverified (harvested, no recorded run)
google-research/fitvid/data.py
code served (permissive licence) · get_code("aa222c5d1a821996")
How it ran

no invocation recorded.

ssim Not yet run
unverified (harvested, no recorded run)
google-research/fitvid/metrics.py
code served (permissive licence) · get_code("133efa94b78e79cb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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

An agent that is capable of predicting what happens next can perform a variety of tasks through planning with no additional training. Furthermore, such an agent can internally represent the complex dynamics of the real-world and therefore can acquire a representation useful for a variety of visual perception tasks. This makes predicting the future frames of a video, conditioned on the observed past and potentially future actions, an interesting task which remains exceptionally challenging despite many recent advances. Existing video prediction models have shown promising results on simple narrow benchmarks but they generate low quality predictions on real-life datasets with more complicated dynamics or broader domain. There is a growing body of evidence that underfitting on the training data is one of the primary causes for the low quality predictions. In this paper, we argue that the inefficient use of parameters in the current video models is the main reason for underfitting. Therefore, we introduce a new architecture, named FitVid, which is capable of severe overfitting on the common benchmarks while having similar parameter count as the current state-of-the-art models. We analyze the consequences of overfitting, illustrating how it can produce unexpected outcomes such as generating high quality output by repeating the training data, and how it can be mitigated using existing image augmentation techniques. As a result, FitVid outperforms the current state-of-the-art models across four different video prediction benchmarks on four different metrics.

For agents

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

get_harvested_code_for_paper("2106.13195")
get_code_for_paper("2106.13195")
have("2106.13195")

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

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

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

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

Connect an agent — have() is free.