SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.18191 · EMNLP · 2024

Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimation

Hao Yang, Boxing Chen, Li Zhang, Tong Xiao, Bei Li, Jingbo Zhu, Xiaofeng Zhao, Chi Hu, Yilun Liu, Shimin Tao, Weibin Meng, Yuan Ge, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 6 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/2402.18191.json · badge: /api/ran/2402.18191.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
ironbeliever/car canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
average_pooling Ran
ran; our contract draft was wrong, not the code
ironbeliever/car/Ranking/comet/models/pooling_utils.py
pointer only (licence: NONE) · get_code("42452a89c72c37f0")
How it ran

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

mask_fill Ran
ran; our contract draft was wrong, not the code
ironbeliever/car/Ranking/comet/models/pooling_utils.py
pointer only (licence: NONE) · get_code("08d92f5dd3c3960b")
How it ran

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

max_pooling Ran
ran; our contract draft was wrong, not the code
ironbeliever/car/Ranking/comet/models/pooling_utils.py
pointer only (licence: NONE) · get_code("cc641273c7ff8762")
How it ran

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

restore_list_order Ran
ran; our contract draft was wrong, not the code
ironbeliever/car/Ranking/comet/models/utils.py
pointer only (licence: NONE) · get_code("a6fbb91c20e0aea7")
How it ran

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

system_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ironbeliever/car/Ranking/comet/models/metrics.py
pointer only (licence: NONE) · get_code("f2d3315526fe26ab")
How it ran

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

tensor_lru_cache Ran
ran; our contract draft was wrong, not the code
ironbeliever/car/Ranking/comet/models/lru_cache.py
pointer only (licence: NONE) · get_code("340e451518ff61a6")
How it ran

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

download_file_maybe_extract Not yet run
unverified (harvested, no recorded run)
ironbeliever/car/Ranking/comet/models/download_utils.py
pointer only (licence: NONE) · get_code("6bf30968085d2c23")
How it ran

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

download_model_legacy Not yet run
unverified (harvested, no recorded run)
ironbeliever/car/Ranking/comet/models/download_utils.py
pointer only (licence: NONE) · get_code("a2cbbb14e3770c9f")
How it ran

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

flatten_metadata Not yet run
unverified (harvested, no recorded run)
ironbeliever/car/Ranking/comet/models/utils.py
pointer only (licence: NONE) · get_code("2cd8926abe6cbe61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ironbeliever/car 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, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 4 later) and 2 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
max_pooling 5 other papers
3 dated earlier, 1 the same month, 1 later
2005.00547 (2020-05)
GoEmotions: A Dataset of Fine-Grained Emotions
2109.06352 (2021-09)
Uncertainty-Aware Machine Translation Evaluation
2023.acl-long.47 (2023 (year only))
Test-time Adaptation for Machine Translation Evaluation by Uncertainty Minimization
and 2 more not named here
average_pooling 4 other papers
3 dated earlier, 1 the same month
2005.00547 (2020-05)
GoEmotions: A Dataset of Fine-Grained Emotions
2109.06352 (2021-09)
Uncertainty-Aware Machine Translation Evaluation
2023.acl-long.47 (2023 (year only))
Test-time Adaptation for Machine Translation Evaluation by Uncertainty Minimization
and 1 more not named here
mask_fill 3 other papers
2 dated earlier, 1 the same month
2109.06352 (2021-09)
Uncertainty-Aware Machine Translation Evaluation
2023.acl-long.47 (2023 (year only))
Test-time Adaptation for Machine Translation Evaluation by Uncertainty Minimization
2402.18091 (2024-02)
Polos: Multimodal Metric Learning from Human Feedback for Image Captioning
tensor_lru_cache 2 other papers
1 dated earlier, 1 later
2023.acl-long.47 (2023 (year only))
Test-time Adaptation for Machine Translation Evaluation by Uncertainty Minimization
2605.28227 (2026-05)
Why We Need Speech to Evaluate Speech Translation
download_file_maybe_extract 1 other paper
1 later
2605.28227 (2026-05)
Why We Need Speech to Evaluate Speech Translation
download_model_legacy 1 other paper
1 later
2605.28227 (2026-05)
Why We Need Speech to Evaluate Speech Translation
system_accuracy 1 other paper
1 dated earlier
2023.acl-long.47 (2023 (year only))
Test-time Adaptation for Machine Translation Evaluation by Uncertainty Minimization

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

With contributions from the open-source community, a vast amount of instruction tuning (IT) data has emerged. Given the significant resource allocation required for training and evaluating models, it is advantageous to have an efficient method for selecting high-quality IT data. However, existing methods for instruction data selection have limitations such as relying on fragile external APIs, being affected by biases in GPT models, or reducing the diversity of the selected instruction dataset. In this paper, we propose an industrial-friendly, expert-aligned and diversity-preserved instruction data selection method: Clustering and Ranking (CaR). CaR employs a two-step process: first, it ranks instruction pairs using a high-accuracy (84.25%) scoring model aligned with expert preferences; second, it preserves dataset diversity through clustering. In our experiment, CaR efficiently selected a mere 1.96% of Alpaca's IT data, yet the resulting Al-paCaR model surpassed Alpaca's performance by an average of 32.1% in GPT-4 evaluations. Moreover, we find that data selecting is a consistent paradigm whether the pre-trained model is more capable or the model parameters scaling up. Our approach employs compact models with 550M parameters and incurs just 11.2% of the financial outlay of current methods, enhancing its industrial deployability.

For agents

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

get_harvested_code_for_paper("2402.18191")
get_code_for_paper("2402.18191")
have("2402.18191")

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

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

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

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

Connect an agent — have() is free.