SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.22661 · ICML · 2026

Evaluating and Rewarding LALMs for Expressive Role-Play TTS via Mean Continuation Log-Probability

Haiyang Sun, Hao Gu, Yujie Chen, Jingbei Li, Cheng Yi, Xuerui Yang, " Lalm, For Mclp, Yong Ren, Ye Bai, Yechang Huang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 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/2601.22661.json · badge: /api/ran/2601.22661.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
y-ren16/MCLP canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
build_messages Ran
ran; our contract draft was wrong, not the code
y-ren16/MCLP/generate_roleplay_stepaudio2_multigpu.py
code served (permissive licence) · get_code("682d5ae8f0b77646")
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 tuple. 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.

from pathlib import Path
import tempfile
import os

# Create temporary directories for testing
temp_dir = tempfile.mkdtemp()
audio_base = Path(temp_dir) / "audio"
prompt_base = Path(temp_dir) / "prompts"
audio_base.mkdir(exist_ok=True)
prompt_base.mkdir(exist_ok=True)

# Create a dummy prompt fallback file
prompt_fallback_file = Path(temp_dir) / "fallback.wav"
prompt_fallback_file.touch()

# Construct the item structure - a list with system message, turns, and target
item = [
    # System message (index 0)
    {
        'text': 'You are a helpful assistant.'
    },
    # User turn
    {
        'role': 'user',
        'text': 'Hello, can you help me?'
    },
    # Assistant turn with text and audio
    {
        'role': 'assistant',
        'text': 'Of course! Here is an audio response.',
        'audio_path': 'response.wav'
    },
    # Target (last item)
    {
        'id': 'sample_001',
        'audio_output_path': 'output.wav',
        'audio_output_reference': 'reference.wav'
    }
]

# Create dummy audio files that exist
(audio_base / 'response.wav').touch()
(prompt_base / 'output.wav').touch()
(audio_base / 'reference.wav').touch()

ARGS = {
    'item': item,
    'audio_base': audio_base,
    'prompt_base': prompt_base,
    'prompt_fallback': prompt_fallback_file
}
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 tuple — a tuple output has no array shape of its own; none is 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
compute_token_num Ran
ran, honoured the contract we drafted
y-ren16/MCLP/utils.py
code served (permissive licence) · get_code("782697ad13727f77")
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 int, ndim 0, dtype family int, 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "max_feature_len": 10
}
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 int, ndim 0, dtype family int, 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
extract_transcription_from_prompt Ran
ran; our contract draft was wrong, not the code
y-ren16/MCLP/compute_contination_score.py
code served (permissive licence) · get_code("7911d21090d1ddee")
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 str. 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 re

def extract_transcription_from_prompt(prompt: str) -> str:
    if not prompt:
        return ''
    patterns = ['说[::]?\\s*[""\\\'《](.+?)[""\\\'》]', '[""\\\'《](.+?)[""\\\'》]']
    for pat in patterns:
        m = re.search(pat, prompt)
        if m:
            return m.group(1).strip()
    return prompt.strip()

ARGS = {
    'prompt': '说:"这是一个测试"'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
fade_in_out Ran
ran; our contract draft was wrong, not the code
y-ren16/MCLP/token2wav.py
code served (permissive licence) · get_code("7a5c85fd690589b9")
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 Tensor, ndim 3, dtype family float, shape (2, 3, 10) 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

torch.manual_seed(0)

# Analyze the function:
# - fade_in_mel: torch.Tensor, indexed with [..., :mel_overlap_len], supports clone() and item assignment
# - fade_out_mel: torch.Tensor, indexed with [..., -mel_overlap_len:], same shape as fade_in_mel
# - window: torch.Tensor, has shape[0], indexed with [:mel_overlap_len] and [mel_overlap_len:]
# 
# The window is used to determine mel_overlap_len = window.shape[0] / 2
# fade_in_mel and fade_out_mel are indexed along the last dimension
# They are multiplied element-wise with window segments

# Create a window tensor (1D) with even length
window = torch.hann_window(8)  # shape: (8,)

# mel_overlap_len will be 8 / 2 = 4

# Create fade_in_mel and fade_out_mel with shape (batch, features, time_steps)
# Last dimension must be at least 4 to allow indexing up to position 4
fade_in_mel = torch.randn(2, 3, 10)  # (batch=2, features=3, time=10)
fade_out_mel = torch.randn(2, 3, 10)  # same shape

ARGS = {
    "fade_in_mel": fade_in_mel,
    "fade_out_mel": fade_out_mel,
    "window": window,
}
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 Tensor, ndim 3, dtype family float, shape (2, 3, 10) — shape (2, 3, 10) 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
normalize_path Ran
ran; our contract draft was wrong, not the code
y-ren16/MCLP/generate_roleplay_stepaudio2_multigpu.py
code served (permissive licence) · get_code("cd4b2281c1facf9e")
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 str. 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.

from pathlib import Path

ARGS = {
    "path_str": "subdir/file.txt",
    "base": Path("/home/user/project")
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
split_items Ran
ran; our contract draft was wrong, not the code
y-ren16/MCLP/generate_roleplay_stepaudio2_multigpu.py
code served (permissive licence) · get_code("c9a2f4cdece75fed")
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. 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

torch.manual_seed(0)

# Analyzing the function:
# - items: an iterable that will be enumerated over, appended to buckets
# - ngpus: an integer used for modulo operation and range()
# The function distributes items round-robin across ngpus buckets

# Create sample items - can be any objects
items = [
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
]

ngpus = 2

ARGS = {
    "items": items,
    "ngpus": ngpus,
}
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 list — a list output has no array shape of its own; none is 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_samples Not yet run
unverified (harvested, no recorded run)
y-ren16/MCLP/compute_contination_score.py
code served (permissive licence) · get_code("95500c687cd212f2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 6 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
compute_token_num 1 other paper
1 later
2607.06540 (2026-07)
Hierarchical Acoustic-Semantic Modeling: Modality Separation and Semantic Coherence for Full-Duplex SLMs

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 advances in Large Audio Language Models (LALMs) have extended Text-to-Speech (TTS) to interactive role-play scenarios, which demand high expressiveness and strict adherence to roleplay instructions. However, existing models struggle to maintain stylistic consistency with character profiles and scene descriptions across multi-turn dialogues. A critical bottleneck is the lack of objective metrics for quantifying speaking style. To bridge this gap, we propose Mean Continuation Log-Probability (MCLP) as both an evaluation metric and a reward signal, validated on LALM-based Role-Play TTS (RP-TTS) tasks. MCLP leverages the in-context learning capability of pretrained LALMs to measure the likelihood of ground-truth speech tokens conditioned on a contextual history consisting of the transcript, generated speech, and repeated transcript, serving as a proxy for stylistic continuity. Furthermore, we employ MCLP as a reinforcement learning reward to enhance the style alignment between generated speech and role-play instructions. To support this task, we construct a largescale RP-TTS dataset with rich scene and character annotations. Experiments demonstrate that MCLP is well aligned with human judgments of stylistic consistency and serves as an effective reward for improving RP-TTS, leading to consistent gains in both objective metrics and subjective evaluations. Our code is publicly available at https://github.com/y-ren16/MCLP.

For agents

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

get_harvested_code_for_paper("2601.22661")
get_code_for_paper("2601.22661")
have("2601.22661")

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

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

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

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

Connect an agent — have() is free.