SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.10026 · NAACL · 2021

Improving Generation and Evaluation of Visual Stories via Semantic Consistency

Mohit Bansal, Darryl Hannan, Adyasha Maharana

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 9 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/2105.10026.json · badge: /api/ran/2105.10026.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
adymaharana/StoryViz canonical (classifier label)
classifier basis: census
5 ran · 9 no recorded run
FunctionStatusWhere it lives
cal_performance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
adymaharana/StoryViz/train_mart.py
code served (permissive licence) · get_code("ea9c44af20afefdb")
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; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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

torch.manual_seed(0)

# The function expects:
# - pred: a tensor with shape (batch, seq_len, num_classes) that supports .max(2)[1] and .contiguous().view(-1)
# - gold: a tensor with shape (batch, seq_len) that supports .contiguous().view(-1), .ne(-1), and .eq()

# Create pred tensor: (batch=2, seq_len=3, num_classes=4)
# .max(2)[1] gets the argmax along dimension 2, reducing to (batch=2, seq_len=3)
pred = torch.randn(2, 3, 4)

# Create gold tensor: (batch=2, seq_len=3)
# Contains class indices, with -1 as invalid label marker
gold = torch.tensor([[1, 2, -1], [0, 1, 2]], dtype=torch.long)

ARGS = {
    "pred": pred,
    "gold": gold,
}
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 — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
adymaharana/StoryViz/dcsgan/model.py
code served (permissive licence) · get_code("19379807ba70daaa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Conv2d. 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)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "bias": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
adymaharana/StoryViz/dcsgan/GLAttention.py
code served (permissive licence) · get_code("1e9b9a9b96ddfe5f")
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 Conv2d. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
adymaharana/StoryViz/dcsgan/model.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

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

upBlock Ran
ran; our contract draft was wrong, not the code
adymaharana/StoryViz/dcsgan/model.py
code served (permissive licence) · get_code("721bc7234edf9845")
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 Sequential. 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)

ARGS = {
    'in_planes': 3,
    'out_planes': 64,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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_activation_statistics Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/vfid/fid_score.py
code served (permissive licence) · get_code("1a92c2ee141e707f")
How it ran

no invocation recorded.

calculate_activation_statistics Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/vfid/vfid_score.py
code served (permissive licence) · get_code("eec8014aaf0ca309")
How it ran

no invocation recorded.

calculate_frechet_distance Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/vfid/fid_score.py
pointer only (licence: MIT); the stored copy get_code serves, from xiaoqian-shen/StoryGPT-V, is pointer only (licence: NONE) · get_code("b71963b3facc5fb5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xiaoqian-shen/StoryGPT-V, 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. No invocation recorded.

extract_img_features Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/train_mart.py
code served (permissive licence) · get_code("bff619bf94913212")
How it ran

no invocation recorded.

fid_score Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/vfid/fid_score.py
code served (permissive licence) · get_code("93adcaa7f08a2399")
How it ran

no invocation recorded.

fid_score Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/vfid/vfid_score.py
code served (permissive licence) · get_code("43e375fe6435c36d")
How it ran

no invocation recorded.

func_attention Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/dcsgan/GLAttention.py
code served (permissive licence) · get_code("4dcdc9386ef6f6f5")
How it ran

no invocation recorded.

initialize_model Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/train_classifier.py
code served (permissive licence) · get_code("d6b963ff0de4fe07")
How it ran

no invocation recorded.

train_model Not yet run
unverified (harvested, no recorded run)
adymaharana/StoryViz/train_classifier.py
code served (permissive licence) · get_code("16898e129b726c1b")
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 (5 with at least one paper dated earlier, 1 the same month, 5 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
305 dated earlier, 6 the same month, 369 later, 6 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
conv1x1 8 other papers
6 dated earlier, 2 later · 3 only as an assembly brick
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1711.10485 (2017-11)
AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks
and 5 more not named here
conv1x1 3 other papers
2 dated earlier, 1 later
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1910.13321 (2019-10)
Semantic Object Accuracy for Generative Text-to-Image Synthesis
2310.00527 (2023-10)
Self-supervised Learning of Contextualized Local Visual Embeddings
upBlock 3 other papers
2 dated earlier, 1 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
1910.13321 (2019-10)
Semantic Object Accuracy for Generative Text-to-Image Synthesis
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
calculate_frechet_distance 1 other paper
1 later
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
func_attention 1 other paper
1 dated earlier
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization

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

Story visualization is an underexplored task that falls at the intersection of many important research directions in both computer vision and natural language processing. In this task, given a series of natural language captions which compose a story, an agent must generate a sequence of images that correspond to the captions. Prior work has introduced recurrent generative models which outperform text-to-image synthesis models on this task. However, there is room for improvement of generated images in terms of visual quality, coherence and relevance. We present a number of improvements to prior modeling approaches, including (1) the addition of a dual learning framework that utilizes video captioning to reinforce the semantic alignment between the story and generated images, (2) a copy-transform mechanism for sequentiallyconsistent story visualization, and (3) MARTbased transformers to model complex interactions between frames. We present ablation studies to demonstrate the effect of each of these techniques on the generative power of the model for both individual images as well as the entire narrative. Furthermore, due to the complexity and generative nature of the task, standard evaluation metrics do not accurately reflect performance. Therefore, we also provide an exploration of evaluation metrics for the model, focused on aspects of the generated frames such as the presence/quality of generated characters, the relevance to captions, and the diversity of the generated images. We also present correlation experiments of our proposed automated metrics with human evaluations. 1

For agents

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

get_harvested_code_for_paper("2105.10026")
get_code_for_paper("2105.10026")
have("2105.10026")

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

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

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

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

Connect an agent — have() is free.