SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.29716 · ICML · 2026

NaRA: Noise-Aware LoRA for Parameter-Efficient Fine-Tuning of Diffusion LLMs

Yu Zhang, Zhan Zhuang, Shuaidi Wang, Ruping Huang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 4 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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.29716.json · badge: /api/ran/2605.29716.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
generaldi/NaRA canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
bloom_model_postprocess_past_key_value Ran
ran; our contract draft was wrong, not the code
generaldi/NaRA/nara/utils/other.py
code served (permissive licence) · get_code("ecf94b05123201e3")
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)

# Construct past_key_values as a list of tensors
# The function expects to concatenate them into shape:
# (total_layers, batch_size, num_attention_heads, num_virtual_tokens, head_dim)

batch_size = 2
num_attention_heads = 3
num_virtual_tokens = 4
head_dim = 5
total_layers = 6

# Create a list of tensors that will be concatenated
# Each tensor has shape (1, batch_size, num_attention_heads, num_virtual_tokens, head_dim)
past_key_values = [
    torch.randn(1, batch_size, num_attention_heads, num_virtual_tokens, head_dim)
    for _ in range(total_layers)
]

ARGS = {
    "past_key_values": past_key_values
}
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
get_type Ran
ran; our contract draft was wrong, not the code
generaldi/NaRA/config/format_input.py
code served (permissive licence) · get_code("cbcc8d74cb56c97f")
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 TASK_TYPE. 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
from enum import Enum
from typing import Union

class TASK_TYPE(Enum):
    GSM8K = 'gsm8k'
    COMMONSENSE170K = 'commonsense170k'
    MATH14K = 'math14k'
    MATH50K = 'math50k'
    ARC_CHALLENGE = 'arc_challenge'
    ARC_EASY = 'arc_easy'
    BOOLQ = 'boolq'
    HELLASWAG = 'hellaswag'
    OPENBOOKQA = 'openbookqa'
    PIQA = 'piqa'
    SOCIAL_I_QA = 'social_i_qa'
    WINOGRANDE = 'winogrande'
    ADDSUB = 'addsub'
    AQUA = 'aqua'
    GSM8K_TEST = 'gsm8k_test'
    MULTIARITH = 'multiarith'
    SVAMP = 'svamp'
    SINGLEEQ = 'singleeq'
    MINERVA_MATH = 'minerva_math'
    CODE_FEEDBACK = 'code_feedback'

class MODEL_TYPE(Enum):
    LLADA_INSTRUCT = 'llada_instruct'
    LLADA_BASE = 'llada_base'

class FINETUNING_TYPE(Enum):
    NARA = 'nara'

def get_type(type: Union[TASK_TYPE, MODEL_TYPE, FINETUNING_TYPE], value: str):
    """Check if the value in the config file is valid"""
    try:
        return type(value)
    except ValueError:
        raise ValueError(f'Unsupported value: *{value}* for type: *{type.__name__}*, optional values: *{[e.value for e in type]}*')

ARGS = {
    'type': TASK_TYPE,
    'value': 'gsm8k'
}
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 TASK_TYPE — a TASK_TYPE output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TASK_TYPE 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_model_for_int8_training Ran
ran; our contract draft was wrong, not the code
generaldi/NaRA/nara/utils/other.py
code served (permissive licence) · get_code("6cba5ffba64247d1")
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 MinimalModel. 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

torch.manual_seed(0)

class MinimalEmbedding(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(10, 4)
    
    def forward(self, input_ids):
        return self.embedding(input_ids)
    
    def get_input_embeddings(self):
        return self.embedding

class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embeddings = MinimalEmbedding()
        self.linear = nn.Linear(4, 4)
        self.is_loaded_in_8bit = True
    
    def forward(self, input_ids):
        x = self.embeddings(input_ids)
        return self.linear(x)
    
    def get_input_embeddings(self):
        return self.embeddings.get_input_embeddings()
    
    def enable_input_require_grads(self):
        pass
    
    def gradient_checkpointing_enable(self):
        pass

model = MinimalModel()

# Convert some parameters to float16 to test the casting logic
for param in model.parameters():
    if param.dtype == torch.float32:
        param.data = param.data.to(torch.float16)
        break

ARGS = {
    "model": model,
    "use_gradient_checkpointing": 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 MinimalModel — a MinimalModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MinimalModel 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
shift_tokens_right Ran
ran; our contract draft was wrong, not the code
generaldi/NaRA/nara/utils/other.py
code served (permissive licence) · get_code("5af2b785cc55d3ea")
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 int, 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

torch.manual_seed(0)

# Create a batch of input_ids with shape (batch_size=2, sequence_length=4)
input_ids = torch.tensor([
    [101, 2054, 2003, 102],
    [101, 2054, 2054, 102]
], dtype=torch.long)

# Define pad_token_id and decoder_start_token_id
pad_token_id = 0
decoder_start_token_id = 2

ARGS = {
    "input_ids": input_ids,
    "pad_token_id": pad_token_id,
    "decoder_start_token_id": decoder_start_token_id,
}
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 int, 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_original_dream_loss Not yet run
unverified (harvested, no recorded run)
generaldi/NaRA/utils/loss.py
code served (permissive licence) · get_code("7e416ebc9854a9ee")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
shift_tokens_right 18 other papers
18 dated earlier · 1 only as an assembly brick
2021.acl-demo.21 (2021 (year only))
KuiLeiXi: a Chinese Open-Ended Text Adventure Game
2203.07836 (2022-03)
Graph Pre-training for AMR Parsing and Generation
2203.11239 (2022-03)
DQ-BART: Efficient Sequence-to-Sequence Model via Joint Distillation and Quantization
and 15 more not named here
bloom_model_postprocess_past_key_value 5 other papers
5 dated earlier
2405.12130 (2024-05)
MoRA: High-Rank Updating for Parameter-Efficient Fine-Tuning
2406.00132 (2024-06)
QuanTA: Efficient High-Rank Fine-Tuning of LLMs with Quantum-Informed Tensor Adaptation
2406.03792 (2024-06)
Light-PEFT: Lightening Parameter-Efficient Fine-Tuning via Early Pruning
and 2 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-24.

Repositories linked to this paper

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

Abstract

Diffusion Large Language Models (dLLMs) have emerged as a promising non-autoregressive generative paradigm. Given the prohibitive computational cost of full fine-tuning, Parameter-Efficient Fine-Tuning (PEFT) has become the standard approach. However, existing PEFT methods (e.g., LoRA), originally tailored for autoregressive models, rely on static parameters that are agnostic to the noise level. Consequently, they ignore the intrinsic dynamics of the diffusion process, where input distributions and generation difficulty shift significantly along the denoising trajectory, rendering them suboptimal for dLLMs. To address this, we propose Noise-aware Low-Rank Adaptation (NaRA), which introduces a low-rank core matrix generated by a lightweight, globally shared hypernetwork conditioned on the noise level. This design enables the update matrices to vary continuously along the diffusion process while keeping parameter and latency overhead negligible. We provide a theoretical justification for the proposed NaRA framework and empirically demonstrate consistent improvements over noise-agnostic baselines across commonsense reasoning, mathematical reasoning, and code generation benchmarks. Our code is available at https://github.com/generaldi/NaRA.

For agents

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

get_harvested_code_for_paper("2605.29716")
get_code_for_paper("2605.29716")
have("2605.29716")

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

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

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

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

Connect an agent — have() is free.