SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.02522 · ICML · 2025

Implicit Actor Critic Coupling via a Supervised Learning Framework for RLVR

Lei Zhang, Yukun Chen, Lu Wang, Haoran Ye, Jiaming Li, Ze Gong, Minzheng Wang, Min Yang, Longze Chen, Wanwei He, Run Luo

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 4 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/2509.02522.json · badge: /api/ran/2509.02522.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
ritzz-ai/PACS community
Papers with Code archive
5 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_grpo_outcome_advantage Ran
ran; our contract draft was wrong, not the code
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("9f098d16adc06043")
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 2, dtype family float, shape (6, 4) 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)

# The function reshapes reward to (-1, rollout_n, reward.size(-1))
# Then computes mean and std along dim=1
# Finally reshapes back to (-1, reward.size(-1))
# 
# We need:
# - reward: a tensor that can be reshaped to (-1, rollout_n, last_dim)
# - rollout_n: an integer for the rollout dimension
# - epsilon: a float (has default)
# - norm_adv_by_std_in_grpo: a bool (has default)

rollout_n = 3
last_dim = 4
# Create reward with shape that divides evenly by rollout_n
# If we want -1 to be 2, then total first dim should be 2 * rollout_n = 6
reward = torch.randn(6, last_dim)

ARGS = {
    "reward": reward,
    "rollout_n": rollout_n,
    "epsilon": 1e-06,
    "norm_adv_by_std_in_grpo": True,
}
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 2, dtype family float, shape (6, 4) — shape (6, 4) 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
compute_naive_advantage Ran
ran, honoured the contract we drafted
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("45cec245d317a292")
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 2, dtype family float, shape (2, 4) 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)

# The function compute_naive_advantage takes a reward parameter and returns it
# The reward should be a tensor or array-like object
reward = torch.randn(2, 4)

ARGS = {
    "reward": reward
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
compute_reward Ran
ran; our contract draft was wrong, not the code
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("ce26874ffa04ebcc")
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 2, dtype family float, shape (2, 1) 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 torch.nn as nn

torch.manual_seed(0)

# Create small tensors for the function arguments
batch_size = 2
seq_len = 4

# old_log_prob: log probabilities from old model, shape (batch, seq_len)
old_log_prob = torch.randn(batch_size, seq_len)

# log_prob: log probabilities from new model, shape (batch, seq_len)
log_prob = torch.randn(batch_size, seq_len)

# response_mask: binary mask for valid tokens, shape (batch, seq_len)
response_mask = torch.ones(batch_size, seq_len)
response_mask[0, 3] = 0  # mask out last token in first sample
response_mask[1, 2:] = 0  # mask out last 2 tokens in second sample

# beta: scaling factor
beta = 1.0

# reward_method: either '1' or '2'
reward_method = '1'

ARGS = {
    'old_log_prob': old_log_prob,
    'log_prob': log_prob,
    'response_mask': response_mask,
    'beta': beta,
    'reward_method': reward_method,
}
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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
compute_rloo_outcome_advantage Ran
ran; our contract draft was wrong, not the code
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("27ed4856b86e8939")
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 2, dtype family float, shape (24, 1) 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)

# The function takes:
# - reward: a tensor that gets reshaped to (-1, rollout_n, last_dim)
# - rollout_n: an integer for the rollout dimension

# Let's construct a small example:
# If we want reward to reshape to (batch=2, rollout_n=3, features=4)
# then reward should have shape (2*3, 4) = (6, 4)

reward = torch.randn(6, 4)
rollout_n = 3

ARGS = {
    "reward": reward,
    "rollout_n": rollout_n,
}
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 2, dtype family float, shape (24, 1) — shape (24, 1) 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
compute_weight Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("348bbef9330b324e")
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 2, dtype family float, shape (8, 1) 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
from sklearn.utils.class_weight import compute_class_weight

torch.manual_seed(0)

# Create a score tensor with shape (8, 1) - 8 samples, 1 dimension
# Values are binary labels (0 or 1)
score = torch.tensor([[0.0], [1.0], [0.0], [1.0], [0.0], [1.0], [0.0], [1.0]], dtype=torch.float32)

# rollout_n determines chunk size for processing
rollout_n = 2

# mode determines weighting strategy
mode = 'question'

ARGS = {
    'score': score,
    'rollout_n': rollout_n,
    'mode': mode
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (8, 1) — shape (8, 1) 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
compute_pacs_loss Not yet run
unverified (harvested, no recorded run)
ritzz-ai/PACS/src/pacs/pacs_core_algos.py
code served (permissive licence) · get_code("8b27129b22c7e421")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 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.

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 Reinforcement Learning with Verifiable Rewards (RLVR) have empowered large language models (LLMs) to tackle challenging reasoning tasks such as mathematics and programming, however existing RLVR methods often suffer from sparse reward signals and unstable policy gradient updates inherent to RL-based approaches. To address the challenges, we propose PACS, a novel RLVR framework that achieves imPlicit Actor Critic coupling via a Supervised learning framework. By treating the outcome reward as a predictable label, we reformulate the RLVR problem into a supervised learning task over a score function parameterized by the policy model and optimized using cross-entropy loss. A detailed gradient analysis shows that this supervised formulation inherently recovers the classical policy gradient update while providing more stable and efficient training. Extensive experiments demonstrate that PACS significantly outperforms strong open-source models and RLVR baselines, yielding substantial average gains of +8.26% (4B) and +9.57% (8B) over base models offering a promising avenue for LLMs post-training with verifiable rewards. Our code and data are available as open source at https://github.com/ritzz-ai/PACS.

For agents

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

get_harvested_code_for_paper("2509.02522")
get_code_for_paper("2509.02522")
have("2509.02522")

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

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

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

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

Connect an agent — have() is free.