SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.00415 · 2024

CoDa: Constrained Generation based Data Augmentation for Low-Resource NLP

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2404.00415.json · badge: /api/ran/2404.00415.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
sreyan88/coda canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
clean_pipeline Ran
ran; our contract draft was wrong, not the code
sreyan88/coda/Lexical-Constraints/lexical_constraints_exemplars.py
pointer only (licence: NONE) · get_code("fa2a03a0ea1ff2c2")
How it ran

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

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

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

is_matching Ran
ran, violated the contract we drafted
sreyan88/coda/json_to_conll.py
pointer only (licence: NONE) · get_code("72d1dd3a64b7cb1e")
How it ran

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

mean_pooling Ran
ran; our contract draft was wrong, not the code
sreyan88/coda/Lexical-Constraints/lexical_constraints_exemplars.py
pointer only (licence: NONE); the stored copy get_code serves, from dengyang17/llm-proactive, is pointer only (licence: NONE) · get_code("77f69af078e09830")
How it ran

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

proposal_score Ran
ran; our contract draft was wrong, not the code
sreyan88/coda/Lexical-Substitution/scores.py
pointer only (licence: NONE) · get_code("7b35ac76fbfe10ad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sreyan88/coda 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_special_characters Ran
ran; our contract draft was wrong, not the code
sreyan88/coda/Lexical-Constraints/lexical_constraints_exemplars.py
pointer only (licence: NONE) · get_code("1ae9f9a3449338bb")
How it ran

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

similarity_score Not yet run
unverified (harvested, no recorded run)
sreyan88/coda/Lexical-Substitution/scores.py
pointer only (licence: NONE) · get_code("4b037fa925077c99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sreyan88/coda 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 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 7 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
mean_pooling 22 other papers
11 dated earlier, 3 the same month, 8 later · 1 only as an assembly brick
2206.04624 (2022-06)
Factuality Enhanced Language Models for Open-Ended Text Generation
2023.findings-emnlp.540 (2023 (year only))
Open-ended Commonsense Reasoning with Unrestricted Answer Scope
2302.05698 (2023-02)
Compositional Exemplars for In-context Learning
and 19 more not named here

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

We present CoDa (Constrained Generation based Data Augmentation), a controllable, effective, and training-free data augmentation technique for low-resource (data-scarce) NLP. Our approach is based on prompting off-the-shelf instruction-following Large Language Models (LLMs) for generating text that satisfies a set of constraints. Precisely, we extract a set of simple constraints from every instance in the low-resource dataset and verbalize them to prompt an LLM to generate novel and diverse training instances. Our findings reveal that synthetic data that follows simple constraints in the downstream dataset act as highly effective augmentations, and CoDa can achieve this without intricate decoding-time constrained generation techniques or fine-tuning with complex algorithms that eventually make the model biased toward the small number of training instances. Additionally, CoDa is the first framework that provides users explicit control over the augmentation generation process, thereby also allowing easy adaptation to several domains. We demonstrate the effectiveness of CoDa across 11 datasets spanning 3 tasks and 3 low-resource settings. CoDa outperforms all our baselines, qualitatively and quantitatively, with improvements of 0.12%-7.19%. Code is available here: https://github.com/Sreyan88/CoDa

For agents

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

get_harvested_code_for_paper("2404.00415")
get_code_for_paper("2404.00415")
have("2404.00415")

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

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

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

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

Connect an agent — have() is free.