Papers › ALaRM: Align Language Models via Hierarchical Rewards Modeling

ALaRM: Align Language Models via Hierarchical Rewards Modeling

11 Mar 2024arXiv:2403.06754archive 2025-07-28

Yuhang Lai, Siyuan Wang, Shujun Liu, Xuanjing Huang, Zhongyu Wei

We introduce ALaRM, the first framework modeling hierarchical rewards in reinforcement learning from human feedback (RLHF), which is designed to enhance the alignment of large language models (LLMs) with human preferences. The framework addresses the limitations of current alignment approaches, which often struggle with the inconsistency and sparsity of human supervision signals, by integrating holistic rewards with aspect-specific rewards. This integration enables more precise and consistent guidance of language models towards desired outcomes, particularly in complex and open text generation tasks. By employing a methodology that filters and combines multiple rewards based on their consistency, the framework provides a reliable mechanism for improving model alignment. We validate our approach through applications in long-form question answering and machine translation tasks, employing gpt-3.5-turbo for pairwise comparisons, and demonstrate improvements over existing baselines. Our work underscores the effectiveness of hierarchical rewards modeling in refining LLM training processes for better human preference alignment. We release our code at https://ALaRM-fdu.github.io.

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="2403.06754")

Code

Syntology Ran 7 of 14 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 7 ran with no contract checked.

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

halfrot/ALaRM officialmentioned on GitHubpytorchApache-2.0 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

14 samples harvested; 7 ran; 0 honoured the contract we drafted; 7 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.

7ran
7unverified

Licence: 0 of the 14 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 halfrot/ALaRM. “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.

api_endpoint_from_url halfrot/ALaRM/eval/api_request_parallel_processor.py official repository ran Apache-2.0 (permissive) · 4d9eaca9e25c5a7a · report
convert_to_scalar halfrot/ALaRM/trl/trl/core.py official repository ran Apache-2.0 (permissive) · 8483cffb5dea03d2 · report
create_position_ids_from_input_ids halfrot/ALaRM/long-form-QA/my_longformer.py official repository ran fingerprinted Apache-2.0 (permissive) · ce0ed06559b93e81 · report
extract_between_tags halfrot/ALaRM/eval/utils.py official repository ran Apache-2.0 (permissive) · 0b7a8a7264a0accb · report
make_conversation halfrot/ALaRM/eval/utils.py official repository ran Apache-2.0 (permissive) · 0095bac7d232b398 · report
stack_dicts halfrot/ALaRM/trl/trl/core.py official repository ran Apache-2.0 (permissive) · 7dc16cc69c54c94d · report
tril_bfloat16 halfrot/ALaRM/long-form-QA/my_longformer.py official repository ran fingerprinted Apache-2.0 (permissive) · d37f5dbfe7b33d1e · report
extract_elements halfrot/ALaRM/eval/eval_compare.py official repository unverified Apache-2.0 (permissive) · f1f4f80a9d8b05bd · report
flatten_dict halfrot/ALaRM/trl/trl/core.py official repository unverified Apache-2.0 (permissive) · 1782ce5551146615 · report
inference halfrot/ALaRM/MT/eval_sft.py official repository unverified Apache-2.0 (permissive) · cf012dc64e397403 · report
num_tokens_consumed_from_request halfrot/ALaRM/eval/api_request_parallel_processor.py official repository unverified Apache-2.0 (permissive) · 27007d0ec4adb00b · report
reward_shape halfrot/ALaRM/MT/train_ppo.py official repository unverified Apache-2.0 (permissive) · 4d5ecb11d933a1d3 · report
split_text_to_sentences halfrot/ALaRM/long-form-QA/reward_utils.py official repository unverified Apache-2.0 (permissive) · e7f95d91543ac720 · report
split_text_to_subsentences halfrot/ALaRM/long-form-QA/reward_utils.py official repository unverified Apache-2.0 (permissive) · 11589c4018cfc261 · report

Tasks

Long Form Question AnsweringMachine TranslationQuestion AnsweringText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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