SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.00329 · NeurIPS · 2025

Foresight: Adaptive Layer Reuse for Accelerated and High-Quality Text-to-Video Generation

Prashant Nair, Muhammad Adnan, Nithesh Kurella, Akhil Arunkumar

arXiv · PDF · Open in the Atlas

Code that ran

13 of 14 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; 4 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.00329.json · badge: /api/ran/2506.00329.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
STAR-Laboratory/foresight canonical (classifier label)
classifier basis not recorded on the link
13 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_fvd Ran
ran on a synthesized input
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_fvd.py
code served (permissive licence) · get_code("3639daf6bd86ee19")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Mock I3D model - the function calls load_i3d_pretrained and passes it to get_fvd_feats
class MockI3D(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv3d(3, 8, kernel_size=3)
    
    def forward(self, x):
        return self.conv1(x)

# Mock the fvd modules to avoid import errors
import sys
from types import ModuleType

# Create mock fvd modules
fvd_module = ModuleType('fvd')
styleganv_module = ModuleType('styleganv')
styleganv_fvd_module = ModuleType('fvd')
videogpt_module = ModuleType('videogpt')
videogpt_fvd_module = ModuleType('fvd')

# Mock functions for styleganv
def mock_load_i3d_pretrained(device):
    model = MockI3D()
    return model.to(device)

def mock_get_fvd_feats(videos, i3d=None, device=None):
    # Return mock features: batch_size x feature_dim
    batch_size = videos.shape[0]
    return torch.randn(batch_size, 16)

def mock_frechet_distance(feats1, feats2):
    # Return a scalar distance
    return torch.tensor(0.5).item()

# Attach mocks to modules
styleganv_fvd_module.get_fvd_feats = mock_get_fvd_feats
styleganv_fvd_module.frechet_distance = mock_frechet_distance
styleganv_fvd_module.load_i3d_pretrained = mock_load_i3d_pretrained

videogpt_fvd_module.load_i3d_pretrained = mock_load_i3d_pretrained
videogpt_fvd_module.get_fvd_logits = mock_get_fvd_feats
videogpt_fvd_module.frechet_distance = mock_frechet_distance

styleganv_module.fvd = styleganv_fvd_module
videogpt_module.fvd = videogpt_fvd_module
fvd_module.styleganv = styleganv_module
fvd_module.videogpt = videogpt_module

sys.modules['fvd'] = fvd_module
sys.modules['fvd.styleganv'] = styleganv_module
sys.modules['fvd.styleganv.fvd'] = styleganv_fvd_module
sys.modules['fvd.videogpt'] = videogpt_module
sys.modules['fvd.videogpt.fvd'] = videogpt_fvd_module

# Create test videos with shape (batch, channels, time, height, width)
# Using distinct sizes: batch=2, channels=1, time=15, height=4, width=3
videos1 = torch.randn(2, 1, 15, 4, 3)
videos2 = torch.randn(2, 1, 15, 4, 3)

ARGS = {
    'videos1': videos1,
    'videos2': videos2,
    'device': 'cpu',
    'method': 'styleganv'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
fvd, torch, tqdm — 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
calculate_psnr Ran
ran on a synthesized input
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_psnr.py
code served (permissive licence) · get_code("ed63913e22ffef2b")
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 torch
import numpy as np

torch.manual_seed(0)

# Create two small video tensors
# Shape: (num_videos, num_frames, channels, height, width)
# Using distinct dimensions: 2 videos, 3 frames, 4 channels, 5 height, 6 width
videos1 = torch.randn(2, 3, 4, 5, 6)
videos2 = torch.randn(2, 3, 4, 5, 6)

ARGS = {
    'videos1': videos1,
    'videos2': videos2,
}
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 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
calculate_ssim_function Ran
ran, honoured the contract we drafted
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_ssim.py
code served (permissive licence) · get_code("3bdf7dc84b510bf0")
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 float64, ndim 0, 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
import cv2

# Create two small test images with the same shape
# Using 2D grayscale images (ndim == 2)
img1 = np.random.randint(0, 256, size=(32, 32), dtype=np.uint8)
img2 = np.random.randint(0, 256, size=(32, 32), dtype=np.uint8)

ARGS = {
    'img1': img1,
    'img2': img2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
foresight_layer_skip Ran
ran on a synthesized input
STAR-Laboratory/foresight/videosys/core/foresight_mgr.py
code served (permissive licence) · get_code("312c93da075cb8cf")
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 torch

torch.manual_seed(0)

# Create small tensor arguments for the function
# The function expects 4 tensors: spatial_mse, spatial_threshold, temporal_mse, temporal_threshold
# It compares MSE values against thresholds and finds indices where binary comparisons are 0

spatial_mse = torch.tensor([0.5, 0.2, 0.8, 0.3, 0.1])
spatial_threshold = 0.4

temporal_mse = torch.tensor([0.6, 0.1, 0.9, 0.25])
temporal_threshold = 0.5

ARGS = {
    "spatial_mse": spatial_mse,
    "spatial_threshold": spatial_threshold,
    "temporal_mse": temporal_mse,
    "temporal_threshold": temporal_threshold,
}
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 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
foresight_layer_skip_spatial Ran
ran on a synthesized input
STAR-Laboratory/foresight/videosys/core/foresight_mgr.py
code served (permissive licence) · get_code("f24adabb0370e728")
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 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 torch

torch.manual_seed(0)

# Construct valid arguments for foresight_layer_skip_spatial
# The function expects:
# - spatial_mse: tensor-like or convertible to tensor
# - spatial_threshold: tensor-like or convertible to tensor

# Create small tensors with distinct sizes to probe shapes
spatial_mse = torch.tensor([0.5, 1.2, 0.3, 2.1])
spatial_threshold = torch.tensor([0.8, 0.8, 0.8, 0.8])

ARGS = {
    "spatial_mse": spatial_mse,
    "spatial_threshold": spatial_threshold,
}
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 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
img_psnr Ran
ran, honoured the contract we drafted
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_psnr.py
code served (permissive licence) · get_code("5a1fb9d13411a6e9")
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 float, 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 math
import numpy as np
import torch

torch.manual_seed(0)

# img_psnr takes two image arrays and computes PSNR
# It performs: mean squared error calculation, then PSNR formula
# Both parameters should be numpy arrays or array-like with numeric values

# Create two small distinct image arrays
img1 = np.random.rand(2, 4, 3, 3).astype(np.float32) * 255
img2 = np.random.rand(2, 4, 3, 3).astype(np.float32) * 255

ARGS = {
    "img1": img1,
    "img2": img2,
}
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 float, 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
read_prompt_list Ran
ran on a synthesized input
STAR-Laboratory/foresight/eval/foresight/experiments/utils.py
code served (permissive licence) · get_code("48adac316c7f38aa")
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 list, 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 json
import tempfile
import os

# Create a temporary JSON file with the expected structure
temp_dir = tempfile.mkdtemp()
prompt_list_path = os.path.join(temp_dir, "prompts.json")

# Create a valid prompt list JSON file
prompt_data = [
    {"prompt_en": "What is the capital of France?"},
    {"prompt_en": "Explain quantum computing"},
    {"prompt_en": "Write a poem about nature"}
]

with open(prompt_list_path, 'w') as f:
    json.dump(prompt_data, f)

ARGS = {
    "prompt_list_path": prompt_list_path
}
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 list, ndim 1, dtype family float — a list 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
resize_gt_video Ran
ran on a synthesized input
STAR-Laboratory/foresight/eval/foresight/common_metrics/batch_eval.py
code served (permissive licence) · get_code("78d89d40f655e088")
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 4, dtype family float, shape (3, 3, 8, 6) 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 torchvision.transforms.functional as F

torch.manual_seed(0)

# Create a ground truth video tensor with shape (T, C, H, W)
# T=5, C=3, H=16, W=12
gt_video = torch.randn(5, 3, 16, 12)

# Create a generated video tensor with smaller spatial dimensions
# T=3, C=3, H=8, W=6
gen_video = torch.randn(3, 3, 8, 6)

ARGS = {
    'gt_video': gt_video,
    'gen_video': gen_video,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (3, 3, 8, 6) — shape (3, 3, 8, 6) 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
resize_video Ran
ran on a synthesized input
STAR-Laboratory/foresight/eval/foresight/common_metrics/batch_eval.py
code served (permissive licence) · get_code("b80bcad4655a9523")
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 4, dtype family int, shape (2, 3, 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
import torchvision.transforms.functional as F

torch.manual_seed(0)

# Create a small video: 2 frames, each is a 3-channel image (C, H, W format)
# Using distinct dimensions: 3 channels, 8 height, 6 width
frame1 = torch.randint(0, 256, (3, 8, 6), dtype=torch.uint8)
frame2 = torch.randint(0, 256, (3, 8, 6), dtype=torch.uint8)
video = [frame1, frame2]

target_height = 4
target_width = 5

ARGS = {
    "video": video,
    "target_height": target_height,
    "target_width": target_width,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family int, shape (2, 3, 4, 5) — shape (2, 3, 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
ssim Ran
ran, honoured the contract we drafted
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_ssim.py
code served (permissive licence) · get_code("897aa81e3eb07ee1")
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 float64, ndim 0, 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 cv2
import numpy as np

# Create two small sample images (uint8 grayscale images)
# Making them reasonably sized to have enough pixels after the [5:-5, 5:-5] crop
img1 = np.random.randint(0, 256, size=(32, 32), dtype=np.uint8)
img2 = np.random.randint(0, 256, size=(32, 32), dtype=np.uint8)

ARGS = {
    "img1": img1,
    "img2": img2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
trans Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_fvd.py
code served (permissive licence) · get_code("33b7df59642bf5f9")
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 5, dtype family float, shape (2, 3, 1, 3, 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)

# The function expects a tensor x with shape requirements:
# - x.shape[-3] can be 1 or 3 (it checks if it's 1 and repeats to 3)
# - x needs to be at least 5D to support permute(0, 2, 1, 3, 4)
# - x.permute expects dimensions: (batch, channel, depth, height, width)

# Create a 5D tensor with shape (batch=2, channels=1, depth=4, height=3, width=5)
# This will trigger the repeat branch since shape[-3] == 4 (depth) != 1
# Actually, let me reconsider: shape[-3] refers to the third-from-last dimension
# For shape (2, 1, 4, 3, 5): shape[-3] is 4 (not 1)
# For shape (2, 1, 1, 3, 5): shape[-3] is 1 (triggers repeat)

x = torch.randn(2, 1, 1, 3, 5)

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 5, dtype family float, shape (2, 3, 1, 3, 5) — shape (2, 3, 1, 3, 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
trans Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_lpips.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from showlab/moviebecnh, is pointer only (licence: NONE) · get_code("a0bb3768ee24ee05")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from showlab/moviebecnh, 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.

trans Ran
ran, honoured the contract we drafted
STAR-Laboratory/foresight/eval/foresight/common_metrics/calculate_psnr.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from showlab/moviebecnh, is pointer only (licence: NONE) · get_code("4f6235b68bad4f04")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from showlab/moviebecnh, 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.

load_video Not yet run
unverified (harvested, no recorded run)
STAR-Laboratory/foresight/eval/foresight/common_metrics/batch_eval.py
code served (permissive licence) · get_code("3dca7220b4552a32")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 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
trans 3 other papers
3 dated earlier
2406.09399 (2024-06)
OmniTokenizer: A Joint Image-Video Tokenizer for Visual Generation
2411.15262 (2024-11)
MovieBench: A Hierarchical Movie Level Dataset for Long Video Generation
2411.16468 (2024-11)
Efficient Video Face Enhancement with Enhanced Spatial-Temporal Consistency
img_psnr 2 other papers
2 dated earlier
2410.08151 (2024-10)
Progressive Autoregressive Video Diffusion Models
2411.15262 (2024-11)
MovieBench: A Hierarchical Movie Level Dataset for Long Video Generation
trans 2 other papers
2 dated earlier
2410.08151 (2024-10)
Progressive Autoregressive Video Diffusion Models
2411.15262 (2024-11)
MovieBench: A Hierarchical Movie Level Dataset for Long Video Generation
trans 2 other papers
2 dated earlier
2410.08151 (2024-10)
Progressive Autoregressive Video Diffusion Models
2411.15262 (2024-11)
MovieBench: A Hierarchical Movie Level Dataset for Long Video Generation
calculate_ssim_function 1 other paper
1 dated earlier
2410.08151 (2024-10)
Progressive Autoregressive Video Diffusion Models
ssim 1 other paper
1 dated earlier
2410.08151 (2024-10)
Progressive Autoregressive Video Diffusion Models

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

Diffusion Transformers (DiTs) achieve state-of-the-art results in text-to-image, text-to-video generation, and editing. However, their large model size and the quadratic cost of spatial-temporal attention over multiple denoising steps make video generation computationally expensive. Static caching mitigates this by reusing features across fixed steps but fails to adapt to generation dynamics, leading to suboptimal trade-offs between speed and quality. We propose Foresight, an adaptive layer-reuse technique that reduces computational redundancy across denoising steps while preserving baseline performance. Foresight dynamically identifies and reuses DiT block outputs for all layers across steps, adapting to generation parameters such as resolution and denoising schedules to optimize efficiency. Applied to OpenSora, Latte, and CogVideoX, Foresight achieves up to 1.63× end-to-end speedup, while maintaining video quality. The source code of Foresight is available at https://github.com/STAR-Laboratory/foresight. * A large part of this work was done while the author was interning with d-Matrix. Preprint. Under review.

For agents

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

get_harvested_code_for_paper("2506.00329")
get_code_for_paper("2506.00329")
have("2506.00329")

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

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

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

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

Connect an agent — have() is free.