SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17977 · NeurIPS · 2024

Aligning to Thousands of Preferences via System Message Generalization

Minjoon Seo, Seungone Kim, Seongyun Lee, Sue Park

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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.17977.json · badge: /api/ran/2405.17977.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
deepseek-ai/Janus canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
kaistAI/Janus marked official in Papers with Code
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
load_json Ran
ran; our contract draft was wrong, not the code
deepseek-ai/Janus/janus/utils/io.py
code served (permissive licence) · get_code("96f3e857e91a8cb8")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T01:04:55Z). 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 json
import tempfile
import os

# Create a temporary JSON file with sample data
temp_dir = tempfile.mkdtemp()
temp_filepath = os.path.join(temp_dir, "test_data.json")

sample_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(temp_filepath, 'w') as f:
    json.dump(sample_data, f)

ARGS = {
    "filepath": temp_filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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_reward_model Ran
ran; our contract draft was wrong, not the code
kaistAI/Janus/utils/models/reward_model.py
code served (permissive licence) · get_code("14eb617e0f463407")
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 type. 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 torch
import torch.nn as nn
from transformers import AutoConfig, AutoModel

torch.manual_seed(0)

# Create a minimal config class
class MinimalConfig:
    def __init__(self):
        self.hidden_size = 4
        self.normalize_reward = True
        self.mean = 0.5
        self.std = 1.5

# Create a minimal base pretrained model
class MinimalPretrainedModel(nn.Module):
    def __init__(self, config):
        super().__init__(config)
        self.base_model_prefix = "transformer"
        self.supports_gradient_checkpointing = True
    
    def __init_subclass__(cls, **kwargs):
        super().__init_subclass__(**kwargs)

# Create a minimal LLM model that returns the expected output format
class MinimalLLMModel(nn.Module):
    def __init__(self, config):
        super().__init__()
        self.config = config
        self.embedding = nn.Embedding(100, config.hidden_size)
        self.output_layer = nn.Linear(config.hidden_size, config.hidden_size)
    
    def forward(self, input_ids, attention_mask=None, position_ids=None):
        # Return a dict with 'last_hidden_state' key
        batch_size = input_ids.shape[0]
        seq_length = input_ids.shape[1]
        last_hidden_state = torch.randn(batch_size, seq_length, self.config.hidden_size)
        return {'last_hidden_state': last_hidden_state}

# Create base class that acts like a proper PreTrainedModel
class BasePretrainedModel(nn.Module):
    def __init__(self, config):
        super().__init__()
        self.config = config
        self.base_model_prefix = "transformer"

# Create the config
config = MinimalConfig()

# Create base_pretrained_model - needs to be a class, not instance
base_pretrained_model = BasePretrainedModel

# Create base_llm_model - needs to be a callable that returns an instance
def base_llm_model(config):
    return MinimalLLMModel(config)

ARGS = {
    'base_pretrained_model': base_pretrained_model,
    'base_llm_model': base_llm_model,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
load_pil_images Ran
ran, violated the contract we drafted
deepseek-ai/Janus/janus/utils/io.py
code served (permissive licence) · get_code("6b584415fc339447")
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) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 PIL.Image
import io
import base64

# Create a small test image in memory
def create_test_image():
    img = PIL.Image.new('RGB', (10, 10), color='red')
    return img

# Create base64 encoded image
test_img = create_test_image()
img_byte_arr = io.BytesIO()
test_img.save(img_byte_arr, format='PNG')
img_byte_arr.seek(0)
base64_image = base64.b64encode(img_byte_arr.read()).decode('utf-8')
base64_image_data = f"data:image/png;base64,{base64_image}"

# Construct conversations with both file path and base64 images
conversations = [
    {
        "role": "User",
        "content": "<image_placeholder>Extract all information from this image and convert them into markdown format.",
        "images": [base64_image_data]
    },
    {
        "role": "Assistant",
        "content": ""
    }
]

ARGS = {
    "conversations": conversations
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 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
load_json 1 other paper
1 later
2412.10302 (2024-12)
DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding

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

Although humans inherently have diverse values, current large language model (LLM) alignment methods often assume that aligning LLMs with the general public's preferences is optimal. A major challenge in adopting a more individualized approach to LLM alignment is its lack of scalability, as it involves repeatedly acquiring preference data and training new reward models and LLMs for each individual's preferences. To address these challenges, we propose a new paradigm where users specify what they value most within the system message, steering the LLM's generation behavior to better align with the user's intentions. However, a naive application of such an approach is non-trivial since LLMs are typically trained on a uniform system message (e.g., "You are a helpful assistant"), which limits their ability to generalize to diverse, unseen system messages. To improve this generalization, we create MULTIFACETED COLLECTION, augmenting 66k user instructions into 197k system messages through hierarchical user value combinations. Using this dataset, we train a 7B LLM called JANUS and test it on 921 prompts from 5 benchmarks (AlpacaEval 2.0, FLASK, Koala, MT-Bench, and Self-Instruct) by adding system messages that reflect unseen user values. JANUS achieves tie+win rate of 75.2%, 72.4%, and 66.4% against Mistral 7B Instruct v0.2, GPT-3.5 Turbo, and GPT-4, respectively. Unexpectedly, on three benchmarks focused on response helpfulness (AlpacaEval 2.0, MT-Bench, Arena Hard Auto v0.1), JANUS also outperforms LLaMA 3 8B Instruct by a +4.0%p, +0.1%p, +3.0%p margin, underscoring that training with a vast array of system messages could also enhance alignment to the general public's preference as well. Our code, dataset, benchmark, and models are available at https://lklab.kaist.ac.kr/Janus/. * denotes equal contribution. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

For agents

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

get_harvested_code_for_paper("2405.17977")
get_code_for_paper("2405.17977")
have("2405.17977")

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

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

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

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

Connect an agent — have() is free.