SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.19928 · 2024

DiJiang: Efficient Large Language Models through Compact Kernelization

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2403.19928.json · badge: /api/ran/2403.19928.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
yuchuantian/dijiang canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuchuantian/dijiang/train_pythia.py
pointer only (licence: NONE) · get_code("8a38d7c525fad8f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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.

apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuchuantian/dijiang/modeling/pythia-160M-dijiang/modeling_gpt_neox_dijiang.py
pointer only (licence: NONE) · get_code("d61c483a3c2b3156")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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.

attention_mask_func Ran
ran; our contract draft was wrong, not the code
yuchuantian/dijiang/modeling/pythia-160M-dijiang/modeling_gpt_neox_dijiang.py
pointer only (licence: NONE); the stored copy get_code serves, from pkumelon/Golore, is pointer only (licence: GPL-3.0) · get_code("4397f33726a2999e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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_acc Ran
ran; our contract draft was wrong, not the code
yuchuantian/dijiang/train_pythia.py
pointer only (licence: NONE) · get_code("095a8b81ca7acd65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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_ppl Ran
ran; our contract draft was wrong, not the code
yuchuantian/dijiang/train_pythia.py
pointer only (licence: NONE) · get_code("44b82bf0bb0e8bc1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
yuchuantian/dijiang/modeling/pythia-160M-dijiang/modeling_gpt_neox_dijiang.py
pointer only (licence: NONE) · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchuantian/dijiang 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.

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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 4 later) and 2 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
rotate_half 360 other papers
94 dated earlier, 8 the same month, 249 later, 6 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
apply_rotary_pos_emb 75 other papers
15 dated earlier, 3 the same month, 57 later · 2 only as an assembly brick
2309.11499 (2023-09)
DreamLLM: Synergistic Multimodal Comprehension and Creation
2312.02051 (2023-12)
TimeChat: A Time-sensitive Multimodal Large Language Model for Long Video Understanding
2312.03414 (2023-12)
Compressed Context Memory For Online Language Model Interaction
and 72 more not named here
accuracy 5 other papers
3 dated earlier, 2 later
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2310.09089 (2023-10)
Qilin-Med: Multi-stage Knowledge Injection Advanced Medical Large Language Model
2402.16445 (2024-02)
ProLLaMA: A Protein Large Language Model for Multi-Task Protein Language Processing
and 2 more not named here
attention_mask_func 4 other papers
2 dated earlier, 2 later
2307.05695 (2023-07)
ReLoRA: High-Rank Training Through Low-Rank Updates
2311.13230 (2023-11)
Enhancing Uncertainty-Based Hallucination Detection with Stronger Focus
2409.01193 (2024-09)
CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models
and 1 more not named here

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In an effort to reduce the computational load of Transformers, research on linear attention has gained significant momentum. However, the improvement strategies for attention mechanisms typically necessitate extensive retraining, which is impractical for large language models with a vast array of parameters. In this paper, we present DiJiang, a novel Frequency Domain Kernelization approach that enables the transformation of a pre-trained vanilla Transformer into a linear complexity model with little training costs. By employing a weighted Quasi-Monte Carlo method for sampling, the proposed approach theoretically offers superior approximation efficiency. To further reduce the training computational complexity, our kernelization is based on Discrete Cosine Transform (DCT) operations. Extensive experiments demonstrate that the proposed method achieves comparable performance to the original Transformer, but with significantly reduced training costs and much faster inference speeds. Our DiJiang-7B achieves comparable performance with LLaMA2-7B on various benchmark while requires only about 1/50 training cost. Code is available at https://github.com/YuchuanTian/DiJiang.

For agents

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

get_harvested_code_for_paper("2403.19928")
get_code_for_paper("2403.19928")
have("2403.19928")

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

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

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

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

Connect an agent — have() is free.