SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.15583 · EMNLP · 2025

DiscoSG: Towards Discourse-Level Text Scene Graph Parsing through Iterative Graph Refinement

Zhuang Li, Lizhen Qu, Fei Li, Chong Teng, Donghong Ji, Shaoqing Lin

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 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 1 has no contract verdict; 14 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2506.15583.json · badge: /api/ran/2506.15583.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
ShaoqLin/DiscoSG canonical (classifier label)
classifier basis: census
17 ran · 2 no recorded run
FunctionStatusWhere it lives
are_tuples_match Ran
ran, violated the contract we drafted
ShaoqLin/DiscoSG/capture/capture.py
pointer only (licence: NONE) · get_code("a834eb2f904a8668")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

cal_agreement Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/caparena_metrics_all_score.py
pointer only (licence: NONE) · get_code("d6e2c6fe36767d2c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

cal_model_level_agreement Ran
ran, honoured the contract we drafted
ShaoqLin/DiscoSG/caparena_metrics_all_score.py
pointer only (licence: NONE) · get_code("e6e6f6dc760babc9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

clean_text_caparena Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/convert_to_winner_style.py
pointer only (licence: NONE) · get_code("65be5c4b4da73e42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

collect_unique_captions Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/dataset_utils.py
pointer only (licence: NONE) · get_code("e5b0cb48bb329644")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

collect_unique_captions_flickr8k Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/dataset_utils.py
pointer only (licence: NONE) · get_code("0a2e445f0debd3d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

compute_correlation Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/eval_utils.py
pointer only (licence: NONE) · get_code("8b28307b99f57703")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

determine_winner Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/convert_to_winner_style.py
pointer only (licence: NONE) · get_code("66b7066c73cbe754")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

extract_triples Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/triple_utils.py
pointer only (licence: NONE) · get_code("ca3043f1941bb849")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

find_matching_metrics Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/convert_to_winner_style.py
pointer only (licence: NONE) · get_code("891f7322773a89aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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_parsed_captions Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/parse_utils.py
pointer only (licence: NONE) · get_code("fbcbdb56cb865fc0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

normalize_triple Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/triple_utils.py
pointer only (licence: NONE) · get_code("5275fcf2194b983c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

parse_captions Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/parse_utils.py
pointer only (licence: NONE) · get_code("f0be599ef5e5abbf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

parse_captions_fix Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/parse_utils.py
pointer only (licence: NONE) · get_code("4c4b9f1c9d3001d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

prepare_data_for_elo Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/caparena_metrics_all_score.py
pointer only (licence: NONE) · get_code("a1d8dfe0ba8f9a0c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

remove_space Ran
ran; our contract draft was wrong, not the code
ShaoqLin/DiscoSG/src/factual_scene_graph/triple_utils.py
pointer only (licence: NONE) · get_code("f1cc0f7668994de6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

save_results_to_json Ran
ran on a synthesized input
ShaoqLin/DiscoSG/src/factual_scene_graph/log_utils.py
pointer only (licence: NONE) · get_code("a5b0a0b31855c4e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

get_synonyms Not yet run
unverified (harvested, no recorded run)
ShaoqLin/DiscoSG/capture/capture.py
pointer only (licence: NONE) · get_code("6962fa94d60714a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

merge_sentence_results Not yet run
unverified (harvested, no recorded run)
ShaoqLin/DiscoSG/capture/capture.py
pointer only (licence: NONE) · get_code("0cc82cec90a528c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShaoqLin/DiscoSG 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.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 17 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
are_tuples_match 2 other papers
1 dated earlier, 1 later
2405.19092 (2024-05)
Benchmarking and Improving Detail Image Caption
2508.06125 (2025-08)
SC-Captioner: Improving Image Captioning with Self-Correction by Reinforcement Learning
get_synonyms 1 other paper
1 later
2508.06125 (2025-08)
SC-Captioner: Improving Image Captioning with Self-Correction by Reinforcement Learning

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Vision-Language Models (VLMs) generate discourse-level, multi-sentence visual descriptions, challenging text scene graph parsers built for single-sentence caption-to-graph mapping. Current approaches typically merge sentencelevel parsing outputs for discourse input, often missing phenomena like cross-sentence coreference, resulting in fragmented graphs and degraded downstream VLM task performance. We introduce a new task, Discourse-level text Scene Graph parsing (DiscoSG), and release DiscoSG-DS, a dataset of 400 expert-annotated and 8,430 synthesised multi-sentence captiongraph pairs. Each caption averages 9 sentences, and each graph contains at least 3× more triples than those in existing datasets. Fine-tuning GPT-4o on DiscoSG-DS yields over 40% higher SPICE metric than the best sentence-merging baseline. However, its high inference cost and licensing restrict opensource use. Smaller fine-tuned open-source models (e.g., Flan-T5) perform well on simpler graphs yet degrade on denser, more complex graphs. To bridge this gap, we introduce DiscoSG-Refiner, a lightweight open-source parser that drafts a seed graph and iteratively refines it with a novel learned graph-editing model, achieving 30% higher SPICE than the baseline while delivering 86× faster inference than GPT-4o. It generalises from simple to dense graphs, thereby consistently improving downstream VLM tasks, including discourselevel caption evaluation and hallucination detection, outperforming alternative open-source parsers. Code and data are available at https: //github.com/ShaoqLin/DiscoSG.

For agents

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

get_harvested_code_for_paper("2506.15583")
get_code_for_paper("2506.15583")
have("2506.15583")

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

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

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

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

Connect an agent — have() is free.