SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2020.findings-emnlp.289 · EMNLP Findings · 2020

Towards Zero-Shot Conditional Summarization with Adaptive Multi-Task Fine-Tuning

Travis Goodwin, Max Savery, Dina Demner-Fushman

Code that ran

8 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; 3 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2020.findings-emnlp.289.json · badge: /api/ran/2020.findings-emnlp.289.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
h4ste/mtft_zsl canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_bleu Ran
ran on a synthesized input
h4ste/mtft_zsl/fslks/eval/bleu.py
code served (permissive licence) · get_code("f23551c5f115973e")
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 collections
import math

# Set seed for reproducibility
import torch
torch.manual_seed(0)

# Create small tokenized reference and translation corpora
# Each reference/translation should be a list of tokens
target_corpus = [
    ["the", "cat", "sat", "on", "the", "mat"],
    ["hello", "world"],
]

predicted_corpus = [
    ["the", "cat", "sat", "on", "a", "mat"],
    ["hello", "world", "!"],
]

max_order = 4
smooth = False

ARGS = {
    "target_corpus": target_corpus,
    "predicted_corpus": predicted_corpus,
    "max_order": max_order,
    "smooth": smooth,
}
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
concatenate Ran
ran on a synthesized input
h4ste/mtft_zsl/fslks/experiments/hf_experiment.py
code served (permissive licence) · get_code("2d5fe114848cfc80")
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 _ConcatenateDataset. 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.v2 as tf

# Enable eager execution for TensorFlow 2.x compatibility
tf.enable_v2_behavior()

# Create small sample datasets
dataset1 = tf.data.Dataset.from_tensor_slices({
    'feature': tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
    'label': tf.constant([0, 1])
})

dataset2 = tf.data.Dataset.from_tensor_slices({
    'feature': tf.constant([[9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]]),
    'label': tf.constant([1, 0])
})

dataset3 = tf.data.Dataset.from_tensor_slices({
    'feature': tf.constant([[17.0, 18.0, 19.0, 20.0], [21.0, 22.0, 23.0, 24.0]]),
    'label': tf.constant([0, 1])
})

# Create an iterable of datasets
datasets = [dataset1, dataset2, dataset3]

ARGS = {
    'datasets': datasets
}
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 _ConcatenateDataset — a _ConcatenateDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _ConcatenateDataset 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
format_spaces Ran
ran on a synthesized input
h4ste/mtft_zsl/fslks/sink.py
code served (permissive licence) · get_code("c08baa650485deca")
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 str. 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

def format_spaces(string):
    return '_'.join(string.split())

ARGS = {
    'string': 'hello world example'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
rouge_l_sentence_level Ran
ran, honoured the contract we drafted
h4ste/mtft_zsl/fslks/eval/rouge.py
code served (permissive licence) · get_code("e1c60ec4ecdda8ad")
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.

# PYTHON SETUP CODE

# Examine the function to understand what it needs:
# rouge_l_sentence_level takes:
# - evaluated_sentences: collection of sentences (each sentence is a collection of words)
# - reference_sentences: collection of sentences (each sentence is a collection of words)
#
# The function calls _split_into_words which iterates over sentences and words:
# [word for sentence in sentences for word in sentence]
#
# So each sentence should be iterable (list of words), and sentences should be iterable too.

# Create simple test data - sentences as lists of words
evaluated_sentences = [
    ['this', 'is', 'a', 'test'],
    ['another', 'sentence']
]

reference_sentences = [
    ['this', 'is', 'test'],
    ['another', 'one']
]

ARGS = {
    'evaluated_sentences': evaluated_sentences,
    'reference_sentences': reference_sentences
}
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 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
rouge_l_summary_level Ran
ran, honoured the contract we drafted
h4ste/mtft_zsl/fslks/eval/rouge.py
code served (permissive licence) · get_code("b0def0cced306879")
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.

# Setup code for rouge_l_summary_level function

# The function takes two parameters:
# 1. evaluated_sentences: list of sentences (each sentence is a string or list of words)
# 2. reference_sentences: list of sentences (each sentence is a string or list of words)

# Based on the function body, sentences are split into words, so they can be:
# - strings (which will be split character by character if treated as iterables)
# - lists of words

# Looking at _split_into_words: it does [word for sentence in sentences for word in sentence]
# This means each sentence should be iterable (either a string or list of words)

evaluated_sentences = [
    ["the", "quick", "brown", "fox"],
    ["jumps", "over", "lazy", "dog"]
]

reference_sentences = [
    ["the", "quick", "brown"],
    ["fox", "jumps", "over"]
]

ARGS = {
    "evaluated_sentences": evaluated_sentences,
    "reference_sentences": reference_sentences
}
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 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
rouge_n Ran
ran, honoured the contract we drafted
h4ste/mtft_zsl/fslks/eval/rouge.py
code served (permissive licence) · get_code("a06819c8659ed609")
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.

# Setup for rouge_n function

ARGS = {
    "evaluated_sentences": [["the", "quick", "brown"], ["fox", "jumps"]],
    "reference_sentences": [["the", "quick", "fox"], ["jumps", "over"]],
    "n": 2
}
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 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
sentence_accuracy Ran
ran on a synthesized input
h4ste/mtft_zsl/fslks/eval/accuracy.py
code served (permissive licence) · get_code("02b66f27091ee06b")
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 torch

torch.manual_seed(0)

# The function takes references and predictions, which are iterables of labels
# that are compared for equality. They should be the same length.
# The simplest case is lists of strings or integers.

references = ["cat", "dog", "bird", "fish"]
predictions = ["cat", "dog", "bird", "cat"]

ARGS = {
    "references": references,
    "predictions": predictions
}
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 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
word_accuracy Ran
ran on a synthesized input
h4ste/mtft_zsl/fslks/eval/accuracy.py
code served (permissive licence) · get_code("17b5389526fde36e")
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 torch

torch.manual_seed(0)

# references: list of sequences (lists) of labels
# predictions: list of sequences (lists) of predictions
# The function zips them together and compares word-by-word

references = [
    [1, 2, 3],
    [4, 5]
]

predictions = [
    [1, 2, 4],
    [4, 5, 6]
]

ARGS = {
    "references": references,
    "predictions": predictions
}
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 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
evaluate Not yet run
unverified (harvested, no recorded run)
h4ste/mtft_zsl/fslks/eval/eval_utils.py
code served (permissive licence) · get_code("0832547bb9852f98")
How it ran

no invocation recorded.

get_converter Not yet run
unverified (harvested, no recorded run)
h4ste/mtft_zsl/fslks/sink.py
code served (permissive licence) · get_code("65b4d9119ad787d5")
How it ran

no invocation recorded.

get_optimizer Not yet run
unverified (harvested, no recorded run)
h4ste/mtft_zsl/fslks/experiments/pt_hf_experiment.py
code served (permissive licence) · get_code("33f588a6242d751f")
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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 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
rouge_n 5 other papers
3 dated earlier, 2 later
1805.09461 (2018-05)
Deep Reinforcement Learning For Sequence to Sequence Models
1905.10033 (2019-05)
Personalizing Dialogue Agents via Meta-Learning
1908.07687 (2019-08)
MoEL: Mixture of Empathetic Listeners
and 2 more not named here
rouge_l_sentence_level 3 other papers
1 dated earlier, 2 later
1805.09461 (2018-05)
Deep Reinforcement Learning For Sequence to Sequence Models
2308.12241 (2023-08)
LLMRec: Benchmarking Large Language Models on Recommendation Task
2405.10587 (2024-05)
RDRec: Rationale Distillation for LLM-based Recommendation
rouge_l_summary_level 3 other papers
1 dated earlier, 2 later
1805.09461 (2018-05)
Deep Reinforcement Learning For Sequence to Sequence Models
2308.12241 (2023-08)
LLMRec: Benchmarking Large Language Models on Recommendation Task
2405.10587 (2024-05)
RDRec: Rationale Distillation for LLM-based Recommendation

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

Automatic summarization research has traditionally focused on providing high quality general-purpose summaries of documents. However, there are many applications that require more specific summaries, such as supporting question answering or topic-based literature discovery. In this paper, we study the problem of conditional summarization in which content selection and surface realization are explicitly conditioned on an ad-hoc natural language question or topic description. Because of the difficulty in obtaining sufficient reference summaries to support arbitrary conditional summarization, we explore the use of multi-task fine-tuning (MTFT) on twentyone natural language tasks to enable zero-shot conditional summarization on five tasks. We present four new summarization datasets, two novel "online" or adaptive task-mixing strategies, and report zero-shot performance using T5 and BART, demonstrating that MTFT can improve zero-shot summarization quality.

For agents

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

get_harvested_code_for_paper("2020.findings-emnlp.289")
get_code_for_paper("2020.findings-emnlp.289")
have("2020.findings-emnlp.289")

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

curl https://syntology.ai/api/ran/2020.findings-emnlp.289.json

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

[![Syntology run record](https://syntology.ai/api/ran/2020.findings-emnlp.289.svg)](https://syntology.ai/paper/2020.findings-emnlp.289)

Connect an agent — have() is free.