SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.09793 · 2026

GIANTS: Generative Insight Anticipation from Scientific Literature

Chelsea Finn, Emma Brunskill, Noah Goodman, Anikait Singh, Ge Gao, Michael Li, Joy He-Yueya, Sherry Yang, " -Isaac Newton

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 6 failures of our instrument; 4 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/2604.09793.json · badge: /api/ran/2604.09793.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
joyheyueya/giants canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
compute_ce_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
joyheyueya/giants/recipe/prime/prime_core_algos.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("f220595adfc5e83c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_detach_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
joyheyueya/giants/recipe/prime/prime_core_algos.py
code served (permissive licence) · get_code("e696489c417f49c0")
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 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

torch.manual_seed(0)

# Analyze the function to understand what each parameter needs:
# - token_level_scores: used with .sum(dim=1), response_mask, shape should be (batch, seq_len)
# - acc: indexed with [i], compared with 0 and >/<, shape (batch,)
# - Q_bc: indexed with [i] and [acc_bc[i] < acc[i]], shape (batch, n_samples)
# - acc_bc: indexed with [i], compared with acc[i], shape (batch, n_samples)
# - response_mask: multiplied with token_level_scores, shape (batch, seq_len)
# - beta: scalar multiplier
# - bon_mode: string parameter, one of 'none', 'bon_rm', 'bon_acc'

batch_size = 2
seq_len = 4
n_samples = 3

# token_level_scores: (batch_size, seq_len)
token_level_scores = torch.randn(batch_size, seq_len)

# response_mask: (batch_size, seq_len) - binary mask
response_mask = torch.ones(batch_size, seq_len)

# acc: (batch_size,) - accuracy values, some positive some non-positive
acc = torch.tensor([1.0, -0.5])

# Q_bc: (batch_size, n_samples) - Q values for batch candidates
Q_bc = torch.randn(batch_size, n_samples)

# acc_bc: (batch_size, n_samples) - accuracy values for batch candidates
acc_bc = torch.randn(batch_size, n_samples)

# beta: scalar
beta = 0.5

# bon_mode: string
bon_mode = 'none'

ARGS = {
    'token_level_scores': token_level_scores,
    'acc': acc,
    'Q_bc': Q_bc,
    'acc_bc': acc_bc,
    'response_mask': response_mask,
    'beta': beta,
    'bon_mode': bon_mode
}
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 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
get_custom_reward_fn Ran
ran; our contract draft was wrong, not the code
joyheyueya/giants/recipe/dapo/src/main_dapo.py
code served (permissive licence) · get_code("34be00218891a21a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned function. 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 os
import tempfile
import torch

torch.manual_seed(0)

# Create a temporary directory and file for the custom reward function
temp_dir = tempfile.mkdtemp()
reward_fn_file = os.path.join(temp_dir, "custom_reward.py")

# Write a simple reward function to the file
with open(reward_fn_file, "w") as f:
    f.write("""
def my_reward_function(state, action):
    return state + action

def another_reward(x):
    return x * 2
""")

# Create config dict with custom_reward_function settings
config = {
    'custom_reward_function': {
        'path': reward_fn_file,
        'name': 'my_reward_function'
    }
}

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_huggingface_actor_config Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joyheyueya/giants/verl/utils/model.py
code served (permissive licence) · get_code("fe79c459a3e4cc64")
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 MockConfig. 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

torch.manual_seed(0)

# The function uses:
# - model_name: str parameter passed to AutoConfig.from_pretrained()
# - override_config_kwargs: Dict that gets iterated with items() and used with setattr()
# - trust_remote_code: bool parameter passed to AutoConfig.from_pretrained()

# Since we can't actually download models, we need to mock AutoConfig.from_pretrained
# to return a config object that has attributes we can set

class MockConfig:
    """Mock configuration object that behaves like a PretrainedConfig"""
    def __init__(self):
        self.hidden_size = 768
        self.num_hidden_layers = 12
        self.vocab_size = 50257
        self.max_position_embeddings = 2048
    
    def __repr__(self):
        return f"MockConfig(hidden_size={self.hidden_size}, num_hidden_layers={self.num_hidden_layers})"

# Patch AutoConfig.from_pretrained to return our mock config
original_from_pretrained = AutoConfig.from_pretrained
AutoConfig.from_pretrained = lambda model_name, trust_remote_code=False: MockConfig()

ARGS = {
    "model_name": "gpt2",
    "override_config_kwargs": {
        "hidden_size": 256,
        "num_hidden_layers": 4,
        "vocab_size": 1000
    },
    "trust_remote_code": False
}
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 MockConfig — a MockConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockConfig 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
reward_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joyheyueya/giants/recipe/r1/reward_score.py
code served (permissive licence) · get_code("c30b2a96103abd2c")
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 MagicMock. 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)

# Mock the recipe.r1.tasks modules to avoid import errors
import sys
from unittest.mock import MagicMock

mock_math = MagicMock()
mock_math.compute_score = lambda sol, gt: 0.85

mock_gpqa = MagicMock()
mock_gpqa.compute_score = lambda sol, gt: 0.92

mock_livecodebench = MagicMock()
mock_livecodebench.compute_score = lambda sol, gt: 0.78

sys.modules['recipe'] = MagicMock()
sys.modules['recipe.r1'] = MagicMock()
sys.modules['recipe.r1.tasks'] = MagicMock()
sys.modules['recipe.r1.tasks.math'] = mock_math
sys.modules['recipe.r1.tasks.gpqa'] = mock_gpqa
sys.modules['recipe.r1.tasks.livecodebench'] = mock_livecodebench

# Define arguments for reward_func
ARGS = {
    'data_source': 'Maxwell-Jia/AIME_2024',
    'solution_str': 'The answer is 42.',
    'ground_truth': '42',
    'extra_info': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, recipe, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MagicMock — a MagicMock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MagicMock output the recorded ndim 1 and dtype family None 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
joyheyueya/giants/verl/protocol.py
code served (permissive licence) · get_code("25f0ea3f460f6ce1")
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 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 class for DataProto that supports slicing."""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing to return a new DataProto with sliced data."""
        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)

ARGS = {
    "data": data_proto,
    "pad_size": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
get_generation_config Not yet run
unverified (harvested, no recorded run)
joyheyueya/giants/verl/utils/model.py
code served (permissive licence) · get_code("660713a8fa047736")
How it ran

no invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
joyheyueya/giants/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("39fba8c5b01d595e")
How it ran

no invocation recorded.

get_weight_saver Not yet run
unverified (harvested, no recorded run)
joyheyueya/giants/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("8bf1b3e9bf87072c")
How it ran

no invocation recorded.

squeeze Not yet run
unverified (harvested, no recorded run)
joyheyueya/giants/verl/utils/model.py
code served (permissive licence) · get_code("3b15e2ac7497c441")
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, 6 the same month, 6 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 89 other papers
57 dated earlier, 5 the same month, 24 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
squeeze 82 other papers
55 dated earlier, 3 the same month, 21 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 79 more not named here
get_generation_config 63 other papers
39 dated earlier, 3 the same month, 19 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
and 60 more not named here
get_huggingface_actor_config 53 other papers
43 dated earlier, 2 the same month, 6 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 50 more not named here
compute_ce_dpo_loss_rm 46 other papers
26 dated earlier, 4 the same month, 13 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 43 more not named here
reward_func 28 other papers
17 dated earlier, 2 the same month, 7 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
and 25 more not named here
get_custom_reward_fn 5 other papers
5 dated earlier
2503.22342 (2025-03)
CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Models
2504.05812 (2025-04)
Right Question is Already Half the Answer: Fully Unsupervised LLM Reasoning Incentivization
2505.17508 (2025-05)
On the Design of KL-Regularized Policy Gradient Algorithms for LLM Reasoning
and 2 more not named here
get_weight_loader 3 other papers
3 dated earlier
2503.22342 (2025-03)
CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Models
2504.05520 (2025-04)
Efficient Reinforcement Finetuning via Adaptive Curriculum Learning
2511.19900 (2025-11)
Agent0-VL: Exploring Self-Evolving Agent for Tool-Integrated Vision-Language Reasoning
get_weight_saver 3 other papers
3 dated earlier
2503.22342 (2025-03)
CPPO: Accelerating the Training of Group Relative Policy Optimization-Based Reasoning Models
2504.05520 (2025-04)
Efficient Reinforcement Finetuning via Adaptive Curriculum Learning
2511.19900 (2025-11)
Agent0-VL: Exploring Self-Evolving Agent for Tool-Integrated Vision-Language Reasoning
compute_detach_dpo_loss_rm 2 other papers
2 dated earlier
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking

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

Scientific breakthroughs often emerge from synthesizing prior ideas into novel contributions. While language models (LMs) show promise in scientific discovery, their ability to perform this targeted, literature-grounded synthesis remains underexplored. We introduce insight anticipation, a generation task in which a model predicts a downstream paper's core insight from its foundational parent papers. To evaluate this capability, we develop GiantsBench, a benchmark of 17𝑘 examples across eight scientific domains, where each example consists of a set of parent papers paired with the core insight of a downstream paper. We evaluate models using an LM judge that scores similarity between generated and ground-truth insights, and show that these similarity scores correlate with expert human ratings. Finally, we present GIANTS-4B, an LM trained via reinforcement learning (RL) to optimize insight anticipation using these similarity scores as a proxy reward. Despite its smaller open-source architecture, GIANTS-4B outperforms proprietary baselines and generalizes to unseen domains, achieving a 34% relative improvement in similarity score over gemini-3-pro. Human evaluations further show that GIANTS-4B produces insights that are more conceptually clear than those of the base model. In addition, SciJudge-30B, a third-party model trained to compare research abstracts by likely citation impact, predicts that insights generated by GIANTS-4B are more likely to lead to higher citations, preferring them over the base model in 68% of pairwise comparisons. We release our code, benchmark, and model to support future research in automated scientific discovery. "If I have seen further [than others], it is by standing on the shoulders of giants.

For agents

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

get_harvested_code_for_paper("2604.09793")
get_code_for_paper("2604.09793")
have("2604.09793")

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

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

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

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

Connect an agent — have() is free.