SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.18906 · ICML · 2024

Language Generation with Strictly Proper Scoring Rules

Jie Zhou, Chenze Shao, Fandong Meng, Yijin Liu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 5 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/2405.18906.json · badge: /api/ran/2405.18906.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
shaochenze/scoringruleslm canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
dataset_dest_file Ran
ran; our contract draft was wrong, not the code
shaochenze/scoringruleslm/preprocess.py
code served (permissive licence) · get_code("3f6541fe9b57b5c9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

class Args:
    def __init__(self):
        self.destdir = '/tmp/output'
        self.source_lang = 'en'
        self.target_lang = 'fr'
        self.only_source = False

ARGS = {
    'args': Args(),
    'output_prefix': 'train',
    'lang': 'src',
    'extension': 'bin'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dataset_dest_prefix Ran
ran; our contract draft was wrong, not the code
shaochenze/scoringruleslm/preprocess.py
code served (permissive licence) · get_code("ee4a597ec93e7f03")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

class Args:
    def __init__(self):
        self.destdir = '/tmp/output'
        self.source_lang = 'en'
        self.target_lang = 'fr'
        self.only_source = False

ARGS = {
    'args': Args(),
    'output_prefix': 'train.txt',
    'lang': 'src'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_version Ran
ran; our contract draft was wrong, not the code
shaochenze/scoringruleslm/release_utils.py
code served (permissive licence) · get_code("d4192f5e85770fdd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with a version string
temp_dir = tempfile.mkdtemp()
version_file_path = os.path.join(temp_dir, "version.txt")
with open(version_file_path, "w") as f:
    f.write("1.2.3\n")

ARGS = {
    "version_file_path": version_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_symbols_to_strip_from_output Ran
ran; our contract draft was wrong, not the code
shaochenze/scoringruleslm/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from urvashik/knnmt, is pointer only (licence: NONE) · get_code("88ce019380f10478")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from urvashik/knnmt, and GitHub detected no licence in that repository 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.

label_smoothed_nll_loss Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from lsj2408/urpe
pointer only · get_code("26da4f92ba56e785")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_version Not yet run
unverified (harvested, no recorded run)
shaochenze/scoringruleslm/release_utils.py
code served (permissive licence) · get_code("44b6e8848744468f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 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
get_symbols_to_strip_from_output 13 other papers
12 dated earlier, 1 later
2010.00710 (2020-10)
Nearest Neighbor Machine Translation
2105.05498 (2021-05)
Improving Lexically Constrained Neural Machine Translation with Source-Conditioned Masked Span Prediction
2105.13022 (2021-05)
Adaptive Nearest Neighbor Machine Translation
and 10 more not named here
find_version 12 other papers
11 dated earlier, 1 later
1907.06616 (2019-07)
Facebook FAIR's WMT19 News Translation Task Submission
2022.emnlp-main.663 (2022 (year only))
Learning with Rejection for Abstractive Text Summarization
2210.02592 (2022-10)
CCC-wav2vec 2.0: Clustering aided Cross Contrastive Self-supervised learning of speech representations
and 9 more not named here
get_next_version 12 other papers
11 dated earlier, 1 later
1907.06616 (2019-07)
Facebook FAIR's WMT19 News Translation Task Submission
2022.emnlp-main.663 (2022 (year only))
Learning with Rejection for Abstractive Text Summarization
2210.02592 (2022-10)
CCC-wav2vec 2.0: Clustering aided Cross Contrastive Self-supervised learning of speech representations
and 9 more not named here
label_smoothed_nll_loss 6 other papers
6 dated earlier
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
2002.06714 (2020-02)
Multi-layer Representation Fusion for Neural Machine Translation
2106.02208 (2021-06)
BERTTune: Fine-Tuning Neural Machine Translation with BERTScore
and 3 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

Language generation based on maximum likelihood estimation (MLE) has become the fundamental approach for text generation. Maximum likelihood estimation is typically performed by minimizing the log-likelihood loss, also known as the logarithmic score in statistical decision theory. The logarithmic score is strictly proper in the sense that it encourages honest forecasts, where the expected score is maximized only when the model reports true probabilities. Although many strictly proper scoring rules exist, the logarithmic score is the only local scoring rule among them that depends exclusively on the probability of the observed sample, making it capable of handling the exponentially large sample space of natural text. In this work, we propose a straightforward strategy for adapting scoring rules to language generation, allowing for language modeling with any non-local scoring rules. Leveraging this strategy, we train language generation models using two classic strictly proper scoring rules, the Brier score and the Spherical score, as alternatives to the logarithmic score. Experimental results indicate that simply substituting the loss function, without adjusting other hyperparameters, can yield substantial improvements in model's generation capabilities. Moreover, these improvements can scale up to large language models (LLMs) such as LLaMA-7B and LLaMA-13B. Source code: https://github.com/shaochenz e/ScoringRulesLM.

For agents

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

get_harvested_code_for_paper("2405.18906")
get_code_for_paper("2405.18906")
have("2405.18906")

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

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

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

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

Connect an agent — have() is free.