SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.11803 · 2024

UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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; 9 failures of our instrument; 4 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/2412.11803.json · badge: /api/ran/2412.11803.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
amourwaltz/ualign canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
FunctionStatusWhere it lives
calculate_confidence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
amourwaltz/ualign/code/uncertainty.py
pointer only (licence: NONE) · get_code("88d00d042fe3cc57")
How it ran

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

calculate_probabilities Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/uncertainty.py
pointer only (licence: NONE) · get_code("d995aae91bfab9fb")
How it ran

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

format_examplar Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/infer.py
pointer only (licence: NONE) · get_code("6d1515784df90ddb")
How it ran

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

jload Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/utils.py
pointer only (licence: NONE) · get_code("d07d04439cd1d44f")
How it ran

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

make_supervised_data_module Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/train_sft.py
pointer only (licence: NONE) · get_code("91592110883e0f36")
How it ran

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

output_split Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/infer.py
pointer only (licence: NONE) · get_code("67edb48169125783")
How it ran

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

prep_webqa_dataset Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/prep.py
pointer only (licence: NONE) · get_code("b46ab02018bb18f6")
How it ran

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

read_json Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/utils.py
pointer only (licence: NONE) · get_code("8e230efd4b919022")
How it ran

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

read_jsonl Ran
ran; our contract draft was wrong, not the code
amourwaltz/ualign/code/utils.py
pointer only (licence: NONE) · get_code("d5792c4c85064ef5")
How it ran

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

calculate_entropy Not yet run
unverified (harvested, no recorded run)
amourwaltz/ualign/code/uncertainty.py
pointer only (licence: NONE) · get_code("23b0e66b13795f6e")
How it ran

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

prep_sciq_dataset Not yet run
unverified (harvested, no recorded run)
amourwaltz/ualign/code/prep.py
pointer only (licence: NONE) · get_code("8efdb337e4892760")
How it ran

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

prep_triviaqa_dataset Not yet run
unverified (harvested, no recorded run)
amourwaltz/ualign/code/prep.py
pointer only (licence: NONE) · get_code("00bac655587e2bf0")
How it ran

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

preprocess Not yet run
unverified (harvested, no recorded run)
amourwaltz/ualign/code/train_sft.py
pointer only (licence: NONE) · get_code("c855c225b6c71721")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amourwaltz/ualign 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 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
jload 46 other papers
38 dated earlier, 5 later, 3 same year, order not determinable
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2305.12870 (2023-05)
Lion: Adversarial Distillation of Proprietary Large Language Models
2305.13068 (2023-05)
Making Language Models Better Tool Learners with Execution Feedback
and 43 more not named here
preprocess 23 other papers
21 dated earlier, 2 same year, order not determinable
2305.12870 (2023-05)
Lion: Adversarial Distillation of Proprietary Large Language Models
2306.17194 (2023-06)
On the Exploitability of Instruction Tuning
2308.07286 (2023-08)
The Devil is in the Errors: Leveraging Large Language Models for Fine-grained Machine Translation Evaluation
and 20 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

Despite demonstrating impressive capabilities, Large Language Models (LLMs) still often struggle to accurately express the factual knowledge they possess, especially in cases where the LLMs' knowledge boundaries are ambiguous. To improve LLMs' factual expressions, we propose the UAlign framework, which leverages Uncertainty estimations to represent knowledge boundaries, and then explicitly incorporates these representations as input features into prompts for LLMs to Align with factual knowledge. First, we prepare the dataset on knowledge question-answering (QA) samples by calculating two uncertainty estimations, including confidence score and semantic entropy, to represent the knowledge boundaries for LLMs. Subsequently, using the prepared dataset, we train a reward model that incorporates uncertainty estimations and then employ the Proximal Policy Optimization (PPO) algorithm for factuality alignment on LLMs. Experimental results indicate that, by integrating uncertainty representations in LLM alignment, the proposed UAlign can significantly enhance the LLMs' capacities to confidently answer known questions and refuse unknown questions on both in-domain and out-of-domain tasks, showing reliability improvements and good generalizability over various prompt- and training-based baselines.

For agents

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

get_harvested_code_for_paper("2412.11803")
get_code_for_paper("2412.11803")
have("2412.11803")

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

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

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

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

Connect an agent — have() is free.