SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.07465 · 2026

SEIF: Self-Evolving Reinforcement Learning for Instruction Following

Yanghua Xiao, Fei Yu, Jiaqing Liang, Han Xia, Qianyu He, Qingyu Ren, Zeye Sun, Jingwen Chang, Jiajie Zhu, Xingzhou Chen

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 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/2605.07465.json · badge: /api/ran/2605.07465.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
Rainier-rq1/SEIF canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
conflict_make Ran
ran; our contract draft was wrong, not the code
Rainier-rq1/SEIF/modules/instructions_registry.py
code served (permissive licence) · get_code("d197da35ee544f75")
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

ARGS = {
    "conflicts": {
        0: set([1, 2]),
        1: set([0]),
        2: set([3]),
        3: set()
    }
}
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 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_kl_controller Ran
ran; our contract draft was wrong, not the code
Rainier-rq1/SEIF/verl/trainer/core_algos.py
code served (permissive licence) · get_code("33a3cccef610855c")
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 AdaptiveKLController. 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 numpy as np

class AlgorithmConfig:
    def __init__(self, kl_type, kl_coef, kl_target=None, kl_horizon=None):
        self.kl_type = kl_type
        self.kl_coef = kl_coef
        self.kl_target = kl_target
        self.kl_horizon = kl_horizon

# Test case 1: fixed KL controller
config_fixed = AlgorithmConfig(
    kl_type='fixed',
    kl_coef=0.1
)

# Test case 2: adaptive KL controller
config_adaptive = AlgorithmConfig(
    kl_type='adaptive',
    kl_coef=0.1,
    kl_target=0.02,
    kl_horizon=10000.0
)

ARGS = {
    'algorithm_config': config_adaptive
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AdaptiveKLController — a AdaptiveKLController output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AdaptiveKLController 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
prepare_fa2_from_position_ids Ran
ran; our contract draft was wrong, not the code
Rainier-rq1/SEIF/verl/models/transformers/flash_attention_utils.py
code served (permissive licence) · get_code("4049cf08f994464e")
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.

import torch

torch.manual_seed(0)

# Create small tensors for query, key, value
# Shape: (batch, seq_len, hidden_dim)
batch_size = 2
seq_len = 3
hidden_dim = 4

query = torch.randn(batch_size, seq_len, hidden_dim)
key = torch.randn(batch_size, seq_len, hidden_dim)
value = torch.randn(batch_size, seq_len, hidden_dim)

# Create position_ids tensor
# This should indicate sequence boundaries with 0s marking the start of new sequences
# Shape: (batch * seq_len,)
position_ids = torch.tensor([0, 1, 2, 0, 1, 2], dtype=torch.int64)

ARGS = {
    "query": query,
    "key": key,
    "value": value,
    "position_ids": position_ids,
}
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 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
reduce_metrics Ran
ran; our contract draft was wrong, not the code
Rainier-rq1/SEIF/verl/trainer/metrics.py
code served (permissive licence) · get_code("4b07ccef58be043a")
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 numpy as np
from typing import Any, Dict, List

# The function expects a dict mapping string keys to lists of numeric values
# It will compute the mean of each list using np.mean()

ARGS = {
    "metrics": {
        "loss": [0.5, 0.3, 0.2, 0.4],
        "accuracy": [0.8, 0.85, 0.9, 0.88],
        "f1_score": [0.75, 0.78, 0.82, 0.80]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
unpad_dataproto Ran
ran; our contract draft was wrong, not the code
Rainier-rq1/SEIF/verl/protocol.py
code served (permissive licence) · get_code("a91c18341292d50e")
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 DataProto. 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)

class DataProto:
    """Stand-in DataProto class that supports slicing via __getitem__"""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing operation"""
        sliced_data = self.data[key]
        return DataProto(sliced_data)
    
    def __repr__(self):
        return f"DataProto({self.data})"

# Create a small DataProto instance with some data
data_tensor = torch.randn(2, 4)
data_proto = DataProto(data_tensor)

# Define arguments
ARGS = {
    "data": data_proto,
    "pad_size": 0
}
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 DataProto — a DataProto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataProto 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
compute_gae_advantage_return Not yet run
unverified (harvested, no recorded run)
Rainier-rq1/SEIF/verl/trainer/core_algos.py
code served (permissive licence) · get_code("d3ee7b3d8f0cf2fa")
How it ran

no invocation recorded.

compute_grpo_outcome_advantage Not yet run
unverified (harvested, no recorded run)
Rainier-rq1/SEIF/verl/trainer/core_algos.py
code served (permissive licence) · get_code("b7dacadfa17e35d2")
How it ran

no invocation recorded.

flash_attention_forward Not yet run
unverified (harvested, no recorded run)
Rainier-rq1/SEIF/verl/models/transformers/flash_attention_utils.py
code served (permissive licence) · get_code("d71e909038b965a1")
How it ran

no invocation recorded.

get_rope_index Not yet run
unverified (harvested, no recorded run)
Rainier-rq1/SEIF/verl/models/transformers/qwen2_vl.py
code served (permissive licence) · get_code("627247bc47104fec")
How it ran

no invocation recorded.

qwen2_vl_attn_forward Not yet run
unverified (harvested, no recorded run)
Rainier-rq1/SEIF/verl/models/transformers/qwen2_vl.py
code served (permissive licence) · get_code("1e90bebc7c04c766")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
unpad_dataproto 10 other papers
9 dated earlier, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 7 more not named here
get_kl_controller 9 other papers
8 dated earlier, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 6 more not named here
get_rope_index 7 other papers
6 dated earlier, 1 undated
2504.15716 (2025-04)
DianJin-R1: Evaluating and Enhancing Financial Reasoning in Large Language Models
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
and 4 more not named here
conflict_make 6 other papers
6 dated earlier
2309.00071 (2023-09)
YaRN: Efficient Context Window Extension of Large Language Models
2311.07911 (2023-11)
Instruction-Following Evaluation for Large Language Models
2404.15846 (2024-04)
From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Models
and 3 more not named here
prepare_fa2_from_position_ids 4 other papers
4 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
2507.05386 (2025-07)
Reinforcement Fine-Tuning Naturally Mitigates Forgetting in Continual Post-Training
and 1 more not named here
compute_gae_advantage_return 3 other papers
3 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2507.05386 (2025-07)
Reinforcement Fine-Tuning Naturally Mitigates Forgetting in Continual Post-Training
2507.07966 (2025-07)
Scaling RL to Long Videos
flash_attention_forward 3 other papers
3 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2507.05386 (2025-07)
Reinforcement Fine-Tuning Naturally Mitigates Forgetting in Continual Post-Training
2507.07966 (2025-07)
Scaling RL to Long Videos
qwen2_vl_attn_forward 3 other papers
3 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
2506.05154 (2025-06)
Resisting Contextual Interference in RAG via Parametric-Knowledge Reinforcement
compute_grpo_outcome_advantage 2 other papers
2 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2507.05386 (2025-07)
Reinforcement Fine-Tuning Naturally Mitigates Forgetting in Continual Post-Training
reduce_metrics 1 other paper
1 dated earlier
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay

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

Instruction following is a fundamental capability of large language models (LLMs), yet continuously improving this capability remains challenging. Existing methods typically rely either on costly external supervision from humans or strong teacher models, or on self-play training with static-difficulty instructions that cannot evolve as the model's capabilities improve. To address these limitations, we propose SEIF (Self-Evolving Reinforcement Learning for Instruction Following), a self-evolving framework for enhancing the instruction-following ability of LLMs. SEIF forms a closed self-evolution loop that improves the model's instruction-following ability, where instruction difficulty evolution and model capability evolution reinforce each other. SEIF consists of four roles: an Instructor that generates increasingly challenging instructions, a Filter that removes conflicting or invalid instructions to ensure data quality, a Follower that learns to follow evolved instructions, and a Judger that provides reward signals for reinforcement learning. The Instructor and Follower are alternately trained and co-evolve throughout the process. Experiments across multiple model scales and architectures show that SEIF consistently improves instruction-following performance, suggesting strong generality. Further analyses reveal the sources of improvement and identify an effective training strategy for self-evolution on open-ended tasks: sufficient early-stage training to build a solid foundation, followed by moderate late-stage training to mitigate overfitting and achieve better final performance. The code and data are publicly available at https://github.com/Rainier-rq1/SEIF.

For agents

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

get_harvested_code_for_paper("2605.07465")
get_code_for_paper("2605.07465")
have("2605.07465")

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

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

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

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

Connect an agent — have() is free.