SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.07000 · NeurIPS · 2024

Alignment for Honesty

Graham Neubig, Pengfei Liu, Xipeng Qiu, Yuqing Yang, Ethan Chern

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 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/2312.07000.json · badge: /api/ran/2312.07000.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
GAIR-NLP/alignment-for-honesty canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
gair-nlp/alignment-for-honesty canonical (classifier label)
classifier basis: classifier_2025
0 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_f1 Ran
ran, honoured the contract we drafted
GAIR-NLP/alignment-for-honesty/evaluation/utils.py
pointer only (licence: NONE) · get_code("647d5f0831f57b1c")
How it ran

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

correct_by_chatgpt_score Ran
ran, violated the contract we drafted
GAIR-NLP/alignment-for-honesty/evaluation/utils.py
pointer only (licence: NONE) · get_code("6f9f1cd8cfc72e62")
How it ran

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

has_exact_match_score Ran
ran, honoured the contract we drafted
GAIR-NLP/alignment-for-honesty/evaluation/triviaqa_nonambigqa_evaluation.py
pointer only (licence: NONE) · get_code("81413be8207e7982")
How it ran

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

heuristic_idk Ran
ran, violated the contract we drafted
GAIR-NLP/alignment-for-honesty/evaluation/utils.py
pointer only (licence: NONE) · get_code("58218212a8e56872")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/alignment-for-honesty 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_exact_match_score Ran
ran, honoured the contract we drafted
GAIR-NLP/alignment-for-honesty/evaluation/triviaqa_nonambigqa_evaluation.py
pointer only (licence: NONE) · get_code("f9b2d6416d25bd70")
How it ran

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

normalize_answer Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/alignment-for-honesty/evaluation/triviaqa_nonambigqa_evaluation.py
pointer only (licence: NONE) · get_code("c29fc928dae85749")
How it ran

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

process_data Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/alignment-for-honesty/evaluation/pkqa_evaluation.py
pointer only (licence: NONE) · get_code("09750e72b3959dec")
How it ran

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

process_data1 Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/alignment-for-honesty/evaluation/triviaqa_nonambigqa_chatgpt.py
pointer only (licence: NONE) · get_code("be39151de2fd6637")
How it ran

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

process_data2 Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/alignment-for-honesty/evaluation/triviaqa_nonambigqa_chatgpt.py
pointer only (licence: NONE) · get_code("954e91478074018d")
How it ran

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

SFTMethod Not yet run
unverified (harvested, no recorded run)
gair-nlp/alignment-for-honesty/train/process_training_data.py
pointer only (licence: NONE) · get_code("4e2e8c1710835755")
How it ran

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

process_data Not yet run
unverified (harvested, no recorded run)
gair-nlp/alignment-for-honesty/evaluation/mmlu_evaluation.py
pointer only (licence: NONE) · get_code("0d8982e79978c4cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gair-nlp/alignment-for-honesty 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 10 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
normalize_answer 7 other papers
3 dated earlier, 4 later
1705.03551 (2017-05)
TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension
1711.05116 (2017-11)
Evidence Aggregation for Answer Re-Ranking in Open-Domain Question Answering
2101.10421 (2021-01)
English Machine Reading Comprehension Datasets: A Survey
and 4 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

Recent research has made significant strides in aligning large language models (LLMs) with helpfulness and harmlessness. In this paper, we argue for the importance of alignment for honesty, ensuring that LLMs proactively refuse to answer questions when they lack knowledge, while still not being overly conservative. However, a pivotal aspect of alignment for honesty involves discerning an LLM's knowledge boundaries, which demands comprehensive solutions in terms of metric development, benchmark creation, and training methodologies. We address these challenges by first establishing a precise problem definition and defining "honesty" inspired by the Analects of Confucius. This serves as a cornerstone for developing metrics that effectively measure an LLM's honesty by quantifying its progress post-alignment. Furthermore, we introduce a flexible training framework which is further instantiated by several efficient fine-tuning techniques that emphasize honesty without sacrificing performance on other tasks. Our extensive experiments reveal that these aligned models show a marked increase in honesty, as indicated by our proposed metrics. We open-source all relevant resources to facilitate future research at https://github.com/GAIR-NLP/alignment-for-honesty.

For agents

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

get_harvested_code_for_paper("2312.07000")
get_code_for_paper("2312.07000")
have("2312.07000")

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

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

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

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

Connect an agent — have() is free.