SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.23149 · 2026

Language Chain in Alignment: Cross-lingual Ranking Preference Optimization

Heuiseok Lim, Jungseob Lee, Seungyoon Lee, Minhyuk Kim

arXiv · PDF

Code that ran

5 of 5 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; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2608.23149.json · badge: /api/ran/2608.23149.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
dltmddbs100/CRPO canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
discover_langs Ran
ran; our contract draft was wrong, not the code
dltmddbs100/CRPO/dataset/prepare_dataset.py
code served (permissive licence) · get_code("661b781ca278daa7")
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 list, ndim 1, dtype family float; 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 tempfile
from pathlib import Path

# Create a temporary directory with sample JSONL files
temp_dir = tempfile.TemporaryDirectory()
src = Path(temp_dir.name)

# Create some sample_<lang>_train.jsonl files
(src / "sample_en_train.jsonl").touch()
(src / "sample_fr_train.jsonl").touch()
(src / "sample_de_train.jsonl").touch()
(src / "sample_zh_train.jsonl").touch()

ARGS = {
    "src": 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 list, ndim 1, dtype family float — 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
extract_prompt Ran
ran; our contract draft was wrong, not the code
dltmddbs100/CRPO/data_utils.py
code served (permissive licence) · get_code("81762d13cf64ae9c")
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 dict. 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 numpy as np

ARGS = {
    "example": {
        "chosen_target": [
            {"role": "user", "content": "What is the sky color?"},
            {"role": "assistant", "content": "Blue."},
        ],
        "chosen_other": [
            {"role": "user", "content": "What is the sky color?"},
            {"role": "assistant", "content": "It is blue."},
        ],
        "rejected_target": [
            {"role": "user", "content": "What is the sky color?"},
            {"role": "assistant", "content": "Green."},
        ],
        "rejected_other": [
            {"role": "user", "content": "What is the sky color?"},
            {"role": "assistant", "content": "It is green."},
        ],
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
is_conversational Ran
ran, violated the contract we drafted
dltmddbs100/CRPO/data_utils.py
code served (permissive licence) · get_code("653f5e9b926455b8")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
from typing import Any

COMPLETION_COLUMNS = ['chosen_target', 'chosen_other', 'rejected_target', 'rejected_other']

def is_conversational(example: dict[str, Any]) -> bool:
    """
    Check whether an example uses the conversational (list-of-messages) format.

    Args:
        example (`dict[str, Any]`):
            A single dataset entry. Which keys are present depends on the dataset type.

    Returns:
        `bool`: `True` if the data is conversational, `False` otherwise.

    Examples:

    ```python
    >>> is_conversational({"prompt": [{"role": "user", "content": "What color is the sky?"}]})
    True

    >>> is_conversational({"prompt": "The sky is"})
    False
    
    """
    supported_keys = ['prompt', *COMPLETION_COLUMNS, 'completion', 'messages']
    example_keys = {key for key in example.keys() if key in supported_keys}
    if example_keys:
        key = example_keys.pop()
        maybe_messages = example[key]
        if isinstance(maybe_messages, list) and maybe_messages:
            maybe_message = maybe_messages[0]
            if isinstance(maybe_message, dict) and 'role' in maybe_message and ('content' in maybe_message):
                return True
    return False


# Test case 1: conversational format with prompt
example_1 = {
    "prompt": [
        {"role": "user", "content": "What color is the sky?"}
    ]
}

# Test case 2: non-conversational format with string prompt
example_2 = {
    "prompt": "The sky is"
}

# Test case 3: conversational format with messages
example_3 = {
    "messages": [
        {"role": "assistant", "content": "The sky is blue."}
    ]
}

# Test case 4: non-conversational format with completion
example_4 = {
    "completion": "a simple string"
}

# Test case 5: conversational format with chosen_target
example_5 = {
    "chosen_target": [
        {"role": "user", "content": "test"}
    ]
}

ARGS = {
    "example": example_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
maybe_extract_prompt Ran
ran; our contract draft was wrong, not the code
dltmddbs100/CRPO/data_utils.py
code served (permissive licence) · get_code("17c31de40787b2cf")
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 dict. 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 numpy as np
from collections.abc import Sequence

torch.manual_seed(0)

# Create a minimal example for maybe_extract_prompt
# The function checks if all COMPLETION_COLUMNS are present, and if a prompt exists
# It uses is_conversational which checks for list of dicts with 'role' and 'content' keys

example = {
    "chosen_target": [
        {"role": "user", "content": "What is the sky?"},
        {"role": "assistant", "content": "Blue."}
    ],
    "chosen_other": [
        {"role": "user", "content": "What is the sky?"},
        {"role": "assistant", "content": "It is blue."}
    ],
    "rejected_target": [
        {"role": "user", "content": "What is the sky?"},
        {"role": "assistant", "content": "Green."}
    ],
    "rejected_other": [
        {"role": "user", "content": "What is the sky?"},
        {"role": "assistant", "content": "It is green."}
    ]
}

ARGS = {
    "example": example
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
read_jsonl Ran
ran; our contract draft was wrong, not the code
dltmddbs100/CRPO/dataset/prepare_dataset.py
code served (permissive licence) · get_code("260bb4a4a14529db")
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 list, ndim 1, dtype family float; 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 json
from pathlib import Path
import tempfile

# Create a temporary directory and file for testing
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test_data.jsonl"

# Write valid JSONL data with all required columns
test_data = [
    {
        "chosen_target": "response A",
        "chosen_other": "other A",
        "rejected_target": "bad response A",
        "rejected_other": "other bad A"
    },
    {
        "chosen_target": "response B",
        "chosen_other": "other B",
        "rejected_target": "bad response B",
        "rejected_other": "other bad B"
    }
]

with temp_path.open('w', encoding='utf-8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    "path": temp_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 list, ndim 1, dtype family float — 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

The alignment of Large Language Models heavily relies on English-centric high-quality preference data, which often leads to suboptimal performance in other languages. In this paper, we propose Cross-lingual Ranking Preference Optimization (CRPO), a novel framework that leverages robust preference knowledge from English to facilitate preference alignment in the target language. We design a hierarchical structure within parallel preference pairs across the target language and English to jointly optimize intra-and inter-lingual preferences, thereby enhancing language adaptation and output quality. Building on the Lamb-daLoss framework, CRPO goes beyond the binary comparison based optimization by providing a relative ranking signal across multiple candidate responses. Our experiments across five languages with varying resource scales demonstrate that CRPO consistently outperforms standard approaches in both instructionfollowing and knowledge utilization capability. Notably, the robust performance gains observed across various weighting schemes further validate the empirical effectiveness of our hierarchical design in a multilingual setup. Furthermore, our findings highlight that CRPO significantly improves both reward margins and the logprobability of desirable responses, contributing to a more stable preference manifold for crosslingual alignment. Our code is available at https://github.com/dltmddbs100/CRPO.

For agents

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

get_harvested_code_for_paper("2608.23149")
get_code_for_paper("2608.23149")
have("2608.23149")

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

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

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

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

Connect an agent — have() is free.