SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.14503 · EMNLP · 2023

Diversify Question Generation with Retrieval-Augmented Style Transfer

Haiyang Yu, Fei Huang, Yongbin Li, Yu Bowen, Cam-Tu Nguyen, Zehua Xia, Qi Gou, 智 能 服 务 事 业 部

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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2310.14503.json · badge: /api/ran/2310.14503.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
gouqi666/RAST canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
add_suffix Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/rag/core.py
pointer only (licence: NONE) · get_code("acace4db00a00e67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gouqi666/RAST 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_exact Ran
ran, honoured the contract we drafted
gouqi666/RAST/eval_squad.py
pointer only (licence: NONE) · get_code("37b0d27f83566ecf")
How it ran

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

flatten Ran
ran, honoured the contract we drafted
gouqi666/RAST/nltk_bleu.py
pointer only (licence: NONE) · get_code("2d88efd7d24b1337")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gouqi666/RAST 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_sent_bleu Ran
ran, honoured the contract we drafted
gouqi666/RAST/nltk_bleu.py
pointer only (licence: NONE) · get_code("02c9832d72bbf95c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gouqi666/RAST 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_tokens Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/eval_squad.py
pointer only (licence: NONE) · get_code("011d5cd744886e9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gouqi666/RAST 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_answer Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/eval_squad.py
pointer only (licence: NONE) · get_code("5c30e376e356eaca")
How it ran

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

read_jsonls_file Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/datasets_tasks.py
pointer only (licence: NONE) · get_code("38ed4095e4e300f7")
How it ran

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

read_raw_files Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/datasets_tasks.py
pointer only (licence: NONE) · get_code("091b9df922f1bc8b")
How it ran

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

stack_dicts Ran
ran; our contract draft was wrong, not the code
gouqi666/RAST/rag/core.py
pointer only (licence: NONE); the stored copy get_code serves, from naver/gdc, is pointer only (licence: NOASSERTION) · get_code("c421e6f0c295b7fb")
How it ran

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

flatten_dict Not yet run
unverified (harvested, no recorded run)
gouqi666/RAST/rag/core.py
pointer only (licence: NONE) · get_code("ddf7639e1bf7edf8")
How it ran

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

get_sent_bleu_list Not yet run
unverified (harvested, no recorded run)
gouqi666/RAST/nltk_bleu.py
pointer only (licence: NONE) · get_code("122ffef60e7b3fcc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gouqi666/RAST 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 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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 3 later) and 5 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
normalize_answer 37 other papers
20 dated earlier, 2 the same month, 14 later, 1 same year, order not determinable · 1 only as an assembly brick
1808.07042 (2018-08)
CoQA: A Conversational Question Answering Challenge
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
and 34 more not named here
get_tokens 25 other papers
15 dated earlier, 2 the same month, 7 later, 1 same year, order not determinable
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
and 22 more not named here
compute_exact 11 other papers
5 dated earlier, 1 the same month, 4 later, 1 same year, order not determinable
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
2004.07347 (2020-04)
HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Data
2105.02692 (2021-05)
Learning to Perturb Word Embeddings for Out-of-distribution QA
and 8 more not named here
flatten_dict 3 other papers
3 dated earlier · 1 only as an assembly brick
2012.11635 (2020-12)
A Distributional Approach to Controlled Text Generation
2112.00791 (2021-12)
Controlling Conditional Language Models without Catastrophic Forgetting
2206.00761 (2022-06)
On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgetting
stack_dicts 3 other papers
3 dated earlier · 1 only as an assembly brick
2012.11635 (2020-12)
A Distributional Approach to Controlled Text Generation
2112.00791 (2021-12)
Controlling Conditional Language Models without Catastrophic Forgetting
2206.00761 (2022-06)
On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgetting
add_suffix 1 other paper
1 dated earlier
2012.11635 (2020-12)
A Distributional Approach to Controlled Text Generation

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

Repositories linked to this paper

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

Abstract

Given a textual passage and an answer, humans are able to ask questions with various expressions, but this ability is still challenging for most question generation (QG) systems. Existing solutions mainly focus on the internal knowledge within the given passage or the semantic word space for diverse content planning. These methods, however, have not considered the potential of external knowledge for expression diversity. To bridge this gap, we propose RAST, a framework for Retrieval-Augmented Style Transfer, where the objective is to utilize the style of diverse templates for question generation. For training RAST, we develop a novel Reinforcement Learning (RL) based approach that maximizes a weighted combination of diversity reward and consistency reward. Here, the consistency reward is computed by a Question-Answering (QA) model, whereas the diversity reward measures how much the final output mimics the retrieved template. Experimental results show that our method outperforms previous diversity-driven baselines on diversity while being comparable in terms of consistency scores. Our code is available at https://github.com/gouqi666/RAST.

For agents

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

get_harvested_code_for_paper("2310.14503")
get_code_for_paper("2310.14503")
have("2310.14503")

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

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

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

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

Connect an agent — have() is free.