Papers › Suri: Multi-constraint Instruction Following for Long-form Text Generation

Suri: Multi-constraint Instruction Following for Long-form Text Generation

27 Jun 2024arXiv:2406.19371archive 2025-07-28

Chau Minh Pham, Simeng Sun, Mohit Iyyer

Existing research on instruction following largely focuses on tasks with simple instructions and short responses. In this work, we explore multi-constraint instruction following for generating long-form text. We create Suri, a dataset with 20K human-written long-form texts paired with LLM-generated backtranslated instructions that contain multiple complex constraints. Because of prohibitive challenges associated with collecting human preference judgments on long-form texts, preference-tuning algorithms such as DPO are infeasible in our setting; thus, we propose Instructional ORPO (I-ORPO), an alignment method based on the ORPO algorithm. Instead of receiving negative feedback from dispreferred responses, I-ORPO obtains negative feedback from synthetically corrupted instructions generated by an LLM. Using Suri, we perform supervised and I-ORPO fine-tuning on Mistral-7b-Instruct-v0.2. The resulting models, Suri-SFT and Suri-I-ORPO, generate significantly longer texts (~5K tokens) than base models without significant quality deterioration. Our human evaluation shows that while both SFT and I-ORPO models satisfy most constraints, Suri-I-ORPO generations are generally preferred for their coherent and informative incorporation of the constraints. We release our code at https://github.com/chtmp223/suri.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.19371")

Code

Syntology Ran 11 of 15 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · violated contract; 10 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chtmp223/suri officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 11 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
10ran
4unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from chtmp223/suri. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_chat_template chtmp223/suri/ft/lib/alignment_mod/data.py official repository ran no licence file found · pointer only · ed74b164b2fe6a65 · report
build_generator chtmp223/suri/eval/automatic/ranking.py official repository ran no licence file found · pointer only · 67cf0babead8c2de · report
check_bib chtmp223/suri/utils.py official repository ran no licence file found · pointer only · cc64fc0500364fe4 · report
extract_docstring chtmp223/suri/ft/lib/alignment_mod/decontaminate.py official repository ran no licence file found · pointer only · 0edeacd7a9034f53 · report
is_openai_format chtmp223/suri/ft/lib/alignment_mod/data.py official repository ran · violated contract no licence file found · pointer only · 4253aac010c4504f · report
load_dataset_column chtmp223/suri/ft/lib/alignment_mod/decontaminate.py official repository ran no licence file found · pointer only · a3791c5c2185e013 · report
normalize_whitespace chtmp223/suri/ft/lib/alignment_mod/decontaminate.py official repository ran fingerprinted no licence file found · pointer only · f43e59d239019e86 · report
sequence_prob chtmp223/suri/eval/automatic/ranking.py official repository ran no licence file found · pointer only · 5bffca7d5514764e · report
strip_trailing_text chtmp223/suri/utils.py official repository ran fingerprinted no licence file found · pointer only · 1db337e94d1e9417 · report
top_k_top_p_filtering chtmp223/suri/ft/lib/trl_mod/core.py official repository ran no licence file found · pointer only · 5bcf8e086423cf6b · report
truncating_words chtmp223/suri/utils.py official repository ran fingerprinted no licence file found · pointer only · 9a2951468cd4ee8b · report
convert_to_scalar chtmp223/suri/ft/lib/trl_mod/core.py official repository unverified no licence file found · pointer only · c32b636f13ed9ee5 · report
flatten_dict chtmp223/suri/ft/lib/trl_mod/core.py official repository unverified no licence file found · pointer only · a51ae45a1f6c0b5b · report
is_transformers_greater_than chtmp223/suri/ft/lib/trl_mod/import_utils.py official repository unverified no licence file found · pointer only · 2a9ca02cb6e196ff · report
read_file chtmp223/suri/eval/automatic/ranking.py official repository unverified no licence file found · pointer only · 8f7c20be180ad75b · report

Tasks

FormInstruction FollowingText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASEDPOSFT

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections