SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.06470 · 2026

PC Layer: Polynomial Weight Preconditioning for Improving LLM Pre-Training

Ruoyu Sun, Tiantian Fang, Alex Schwing, Haoran Zhang, Senmiao Wang, Yushun Zhang, Kunxiang Zhao

arXiv · PDF

Code that ran

5 of 9 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 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/2606.06470.json · badge: /api/ran/2606.06470.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
Empath-aln/PC-layer canonical (classifier label)
classifier basis: census
5 ran · 4 no recorded run
FunctionStatusWhere it lives
extract_weight_type Ran
ran; our contract draft was wrong, not the code
Empath-aln/PC-layer/visualize/metrics_plotter.py
code served (permissive licence) · get_code("96ecf5a1ce5af1ee")
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 torch
import torch.nn as nn
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple

torch.manual_seed(0)

# The function extract_weight_type takes a single parameter: layer_name (str)
# It extracts weight/module type from a layer name string by:
# 1. Splitting on '.' and checking the last part
# 2. Checking if any weight type is in the name or at the end
# 3. Returning the weight type or None

ARGS = {
    'layer_name': 'transformer.layers.0.attention.wq'
}
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 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
layer_uses_pc Ran
ran, violated the contract we drafted
Empath-aln/PC-layer/visualize/metrics_plotter.py
code served (permissive licence) · get_code("0794b2bf08595788")
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
import numpy as np

torch.manual_seed(0)

# Construct test arguments for layer_uses_pc

# Test case 1: PC is enabled and singular_values_pc is present
layer_data_with_pc = {
    'weights': torch.randn(4, 3),
    'singular_values_pc': np.array([1.0, 0.8, 0.6, 0.4]),
    'other_metric': 42.0
}

record_metadata_with_pc = {
    'pc_enabled': True,
    'experiment_id': 'exp_001',
    'timestamp': '2024-01-01'
}

ARGS = {
    'layer_data': layer_data_with_pc,
    'record_metadata': record_metadata_with_pc
}
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 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
linear_warmup_cosine_decay Ran
ran, honoured the contract we drafted
Empath-aln/PC-layer/torchtitan/lr_scheduling.py
code served (permissive licence) · get_code("8c95d753f4e5cceb")
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 float, ndim 0, 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 math
import torch

# Set random seed for reproducibility
torch.manual_seed(0)

# Set up global variables that the function uses
import sys
current_module = sys.modules[__name__]
current_module._warmup_steps = 10
current_module._decay_steps = 100
current_module._cosine_end_ratio = 0.1

# Define ARGS dict with a valid current_step value
ARGS = {
    "current_step": 5
}
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 float, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
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
select_singular_values Ran
ran, honoured the contract we drafted
Empath-aln/PC-layer/visualize/metrics_plotter.py
code served (permissive licence) · get_code("990d69d8c2f3f961")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct layer_data with singular values in different formats
layer_data = {
    'singular_values': [1.5, 2.3, 0.8, 1.2],
    'singular_values_pc': [2.1, 1.9, 0.5, 0.3],
    'other_key': 'some_value'
}

# Construct record_metadata with pc_enabled flag
record_metadata = {
    'pc_enabled': True,
    'model_name': 'test_model',
    'timestamp': 12345
}

ARGS = {
    'layer_data': layer_data,
    'record_metadata': record_metadata
}
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, 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
string_list Ran
ran; our contract draft was wrong, not the code
Empath-aln/PC-layer/torchtitan/config_manager.py
code served (permissive licence) · get_code("8524ea85f104747e")
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 torch

ARGS = {
    "raw_arg": "hello,world,test"
}
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 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
dist_max Not yet run
unverified (harvested, no recorded run)
Empath-aln/PC-layer/torchtitan/utils.py
code served (permissive licence) · get_code("6f1cb76a7fc611d6")
How it ran

no invocation recorded.

dist_mean Not yet run
unverified (harvested, no recorded run)
Empath-aln/PC-layer/torchtitan/utils.py
code served (permissive licence) · get_code("a4431453cab716c0")
How it ran

no invocation recorded.

linear_warmup_linear_decay Not yet run
unverified (harvested, no recorded run)
Empath-aln/PC-layer/torchtitan/lr_scheduling.py
code served (permissive licence) · get_code("c83fc22a5a323bc9")
How it ran

no invocation recorded.

wsd_schedule Not yet run
unverified (harvested, no recorded run)
Empath-aln/PC-layer/torchtitan/lr_scheduling.py
code served (permissive licence) · get_code("4e834d2ac0736156")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 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.

FunctionAlso present inEarliest-datedOthers named
dist_max 1 other paper
1 dated earlier
2602.01212 (2026-02)
SimpleGPT: Improving GPT via A Simple Normalization Strategy
dist_mean 1 other paper
1 dated earlier
2602.01212 (2026-02)
SimpleGPT: Improving GPT via A Simple Normalization Strategy
linear_warmup_linear_decay 1 other paper
1 dated earlier
2602.01212 (2026-02)
SimpleGPT: Improving GPT via A Simple Normalization Strategy
string_list 1 other paper
1 dated earlier
2602.01212 (2026-02)
SimpleGPT: Improving GPT via A Simple Normalization Strategy

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

We propose a preconditioning (PC) layer -a weight parameterization via polynomial preconditioner that ensures stable weight conditioning throughout LLM training. The PC module reshapes the singularvalue spectrum of weight matrices via low-degree polynomial preconditioning. After training, the preconditioned weights can be merged back into the original architecture, incurring no inference overhead. We demonstrate the advantage of the proposed PC layer over standard transformers in Llama-1B pretraining, for both the AdamW and Muon optimizers. Theoretically, we justify this spectrum-control principle by proving that uniformly bounding each layer's singular values ensures geometric convergence of gradient descent to global minima, for certain deep linear networks. Our code is available at https://github.com/Empath-aln/PC-layer.

For agents

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

get_harvested_code_for_paper("2606.06470")
get_code_for_paper("2606.06470")
have("2606.06470")

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

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

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

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

Connect an agent — have() is free.