SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.24175 · 2024

Constraint Back-translation Improves Complex Instruction Following of Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 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/2410.24175.json · badge: /api/ran/2410.24175.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
thu-keg/crab canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
create_prompt_with_llama3_base_format Ran
ran; our contract draft was wrong, not the code
thu-keg/crab/eval/templates.py
pointer only (licence: NONE) · get_code("0e3968185d0ee850")
How it ran

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

create_prompt_with_llama3_chat_format Ran
ran; our contract draft was wrong, not the code
thu-keg/crab/eval/templates.py
pointer only (licence: NONE) · get_code("cbabfb49e6ea38b2")
How it ran

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

create_prompt_with_tulu_chat_format Ran
ran; our contract draft was wrong, not the code
thu-keg/crab/eval/templates.py
pointer only (licence: NONE) · get_code("697d92a5d51eff3e")
How it ran

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

dispatch_openai_chat_requesets Ran
ran; our contract draft was wrong, not the code
thu-keg/crab/eval/dispatch_openai_requests.py
pointer only (licence: NONE) · get_code("dcad9ac62979ca49")
How it ran

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

dispatch_openai_prompt_requesets Ran
ran; our contract draft was wrong, not the code
thu-keg/crab/eval/dispatch_openai_requests.py
pointer only (licence: NONE) · get_code("71e4259026911444")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thu-keg/crab 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_completions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thu-keg/crab/eval/utils.py
pointer only (licence: NONE) · get_code("cdbcc01805fac313")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thu-keg/crab 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_next_word_predictions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thu-keg/crab/eval/utils.py
pointer only (licence: NONE) · get_code("d134c88af0236263")
How it ran

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

chat_formatting_function Not yet run
unverified (harvested, no recorded run)
thu-keg/crab/eval/predict_others.py
pointer only (licence: NONE) · get_code("6702f715539041e5")
How it ran

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

score_completions Not yet run
unverified (harvested, no recorded run)
thu-keg/crab/eval/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from jinzhuoran/rwku, is pointer only (licence: NONE) · get_code("d029fa02758da921")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thu-keg/crab 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 3 later) and 3 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
get_next_word_predictions 10 other papers
5 dated earlier, 1 the same month, 4 later
2401.15006 (2024-01)
Airavata: Introducing Hindi Instruction-tuned LLM
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
and 7 more not named here
create_prompt_with_tulu_chat_format 8 other papers
7 dated earlier, 1 the same month
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
2403.03870 (2024-03)
Learning to Decode Collaboratively with Multiple Language Models
and 5 more not named here
dispatch_openai_prompt_requesets 8 other papers
8 dated earlier
2310.06830 (2023-10)
Lemur: Harmonizing Natural Language and Code for Language Agents
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.15006 (2024-01)
Airavata: Introducing Hindi Instruction-tuned LLM
and 5 more not named here
dispatch_openai_chat_requesets 7 other papers
7 dated earlier
2310.06830 (2023-10)
Lemur: Harmonizing Natural Language and Code for Language Agents
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.15006 (2024-01)
Airavata: Introducing Hindi Instruction-tuned LLM
and 4 more not named here
score_completions 6 other papers
3 dated earlier, 3 later
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2406.10890 (2024-06)
RWKU: Benchmarking Real-World Knowledge Unlearning for Large Language Models
and 3 more not named here
generate_completions 5 other papers
2 dated earlier, 3 later
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2504.11393 (2025-04)
How to Predict Best Pretraining Data with Small Experiments
and 2 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

Large language models (LLMs) struggle to follow instructions with complex constraints in format, length, etc. Following the conventional instruction-tuning practice, previous works conduct post-training on complex instruction-response pairs generated by feeding complex instructions to advanced LLMs. However, even advanced LLMs cannot follow complex instructions well, thus limiting the quality of generated data. In this work, we find that existing datasets inherently contain implicit complex constraints and propose a novel data generation technique, constraint back-translation. Specifically, we take the high-quality instruction-response pairs in existing datasets and only adopt advanced LLMs to add complex constraints already met by the responses to the instructions, which naturally reduces costs and data noise. In the experiments, we adopt Llama3-70B-Instruct to back-translate constraints and create a high-quality complex instruction-response dataset, named CRAB. We present that post-training on CRAB improves multiple backbone LLMs' complex instruction-following ability, evaluated on extensive instruction-following benchmarks. We further find that constraint back-translation also serves as a useful auxiliary training objective in post-training. Our code, data, and models will be released to facilitate future research.

For agents

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

get_harvested_code_for_paper("2410.24175")
get_code_for_paper("2410.24175")
have("2410.24175")

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

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

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

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

Connect an agent — have() is free.