SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.16807 · 2024

Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learning

arXiv · PDF · Open in the Atlas

Code that ran

11 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 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/2404.16807.json · badge: /api/ran/2404.16807.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
AvataGarde/In_Context_Diversification canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
address_predict Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/eval/diversity.py
pointer only (licence: NONE) · get_code("6658a74d5415606d")
How it ran

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

align_files Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/extrinic/utils/eval_acc_div.py
pointer only (licence: NONE) · get_code("6179ff061ec37c4c")
How it ran

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

calculate_frechet_distance Ran
ran, violated the contract we drafted
AvataGarde/In_Context_Diversification/eval/joint.py
pointer only (licence: NONE) · get_code("7dc3bd1ecc76bf3b")
How it ran

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

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

generate_sentence_prompt Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/Intrinic/gpt-3.5-turbo/candidate.py
pointer only (licence: NONE) · get_code("4281f6e6802807be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AvataGarde/In_Context_Diversification 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_all_files Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/extrinic/utils/eval_acc_div.py
pointer only (licence: NONE) · get_code("24379837a80cf3fd")
How it ran

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

init_prompt Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/Intrinic/Vicuna/generate.py
pointer only (licence: NONE) · get_code("494ddec9efc7f061")
How it ran

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

instruction Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/Intrinic/Vicuna/generate.py
pointer only (licence: NONE) · get_code("8d388645e9671f83")
How it ran

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

map_category_to_score Ran
ran, honoured the contract we drafted
AvataGarde/In_Context_Diversification/Intrinic/gpt-3.5-turbo/gpt_evaluation.py
pointer only (licence: NONE) · get_code("6eef3fa07d4711b2")
How it ran

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

prompt_diverse4 Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/Intrinic/gpt-3.5-turbo/gpt_evaluation.py
pointer only (licence: NONE) · get_code("c405b36628466148")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AvataGarde/In_Context_Diversification 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_numbering_from_list Ran
ran; our contract draft was wrong, not the code
AvataGarde/In_Context_Diversification/Intrinic/Vicuna/generate.py
pointer only (licence: NONE) · get_code("e5ca475d635c0cce")
How it ran

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

check_commonsense_score Not yet run
unverified (harvested, no recorded run)
AvataGarde/In_Context_Diversification/Intrinic/gpt-3.5-turbo/utils.py
pointer only (licence: NONE) · get_code("cb2a76d978b99925")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AvataGarde/In_Context_Diversification 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_features Not yet run
unverified (harvested, no recorded run)
AvataGarde/In_Context_Diversification/eval/joint.py
pointer only (licence: NONE) · get_code("c581abcda8f3c1fc")
How it ran

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

init_prompt Not yet run
unverified (harvested, no recorded run)
AvataGarde/In_Context_Diversification/Intrinic/gpt-3.5-turbo/candidate.py
pointer only (licence: NONE) · get_code("fe8c7dc4dee306e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AvataGarde/In_Context_Diversification 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 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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 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.

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

Generative Commonsense Reasoning (GCR) requires a model to reason about a situation using commonsense knowledge, while generating coherent sentences. Although the quality of the generated sentences is crucial, the diversity of the generation is equally important because it reflects the model's ability to use a range of commonsense knowledge facts. Large Language Models (LLMs) have shown proficiency in enhancing the generation quality across various tasks through in-context learning (ICL) using given examples without the need for any fine-tuning. However, the diversity aspect in LLM outputs has not been systematically studied before. To address this, we propose a simple method that diversifies the LLM generations, while preserving their quality. Experimental results on three benchmark GCR datasets show that our method achieves an ideal balance between the quality and diversity. Moreover, the sentences generated by our proposed method can be used as training data to improve diversity in existing commonsense generators.

For agents

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

get_harvested_code_for_paper("2404.16807")
get_code_for_paper("2404.16807")
have("2404.16807")

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

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

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

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

Connect an agent — have() is free.