SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.16415 · NeurIPS · 2025

MeCeFO: Enhancing LLM Training Robustness via Fault-Tolerant Optimization

Kun Yuan, Ran Yan, Rizhen Hu, Mou Sun

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 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; 3 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/2510.16415.json · badge: /api/ran/2510.16415.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
pkumelon/MeCeFO canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pkumelon/MeCeFO/peft_pretraining/modeling_llama.py
code served (permissive licence) · get_code("9a65a30d006fc96e")
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 tuple, ndim 5, 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

torch.manual_seed(0)

# Analyze the function:
# - q: tensor, used with *, rotate_half, and arithmetic ops
# - k: tensor, used with *, rotate_half, and arithmetic ops
# - cos: tensor, squeezed twice on dims 1 and 0, indexed by position_ids, unsqueezed
# - sin: tensor, squeezed twice on dims 1 and 0, indexed by position_ids, unsqueezed
# - position_ids: tensor, used to index into cos and sin

# The function expects:
# - q and k to have shape compatible with rotate_half (last dim must be even)
# - cos and sin to have shape (seq_len, 1, hidden_dim) before squeezing
# - position_ids to be indices into the sequence dimension

batch_size = 2
seq_len = 3
hidden_dim = 4
num_positions = 5

# q and k: (batch, seq_len, hidden_dim)
q = torch.randn(batch_size, seq_len, hidden_dim)
k = torch.randn(batch_size, seq_len, hidden_dim)

# cos and sin: (num_positions, 1, hidden_dim)
# After squeeze(1).squeeze(0), they become (num_positions, hidden_dim)
cos = torch.randn(num_positions, 1, hidden_dim)
sin = torch.randn(num_positions, 1, hidden_dim)

# position_ids: indices into the position dimension, shape (batch, seq_len)
position_ids = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)

ARGS = {
    "q": q,
    "k": k,
    "cos": cos,
    "sin": sin,
    "position_ids": position_ids,
}
Setup block drafted by
a language model, Claude Haiku 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 tuple, ndim 5, dtype family float — a tuple 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
forward_step_func Ran
ran; our contract draft was wrong, not the code
pkumelon/MeCeFO/llama_train.py
code served (permissive licence) · get_code("2ec0850397547476")
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 float, shape (2, 3) 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 torch.nn as nn
from typing import Tuple, List

torch.manual_seed(0)

# Create a minimal model that accepts the expected parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, *args, pp_fail_flag=False, current_iter=None):
        # Handle both single tensor and tuple/list of tensors
        if len(args) == 1:
            x = args[0]
        else:
            x = args[0]
        
        if isinstance(x, torch.Tensor):
            return self.linear(x)
        else:
            return self.linear(x)

model = SimpleModel()

# Create sample inputs - can be a tensor or tuple/list of tensors
inputs_tensor = torch.randn(2, 4)
inputs_tuple = (torch.randn(2, 4),)
inputs_list = [torch.randn(2, 4)]

# Test case 1: with tensor input
ARGS = {
    "inputs": inputs_tensor,
    "model": model,
    "pp_fail_flag": False,
    "current_iter": 0
}
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 float, shape (2, 3) — shape (2, 3) 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
low_rank_decomposition Ran
ran; our contract draft was wrong, not the code
pkumelon/MeCeFO/pretrain_llama.py
code served (permissive licence) · get_code("9d039d12e3c6e64a")
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. 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 a small weight matrix for SVD decomposition
# Using distinct dimensions: 5x3 so we can observe different singular values
weights = torch.randn(5, 3, dtype=torch.float32)

# Set rank to be less than min(m, n) to test low-rank decomposition
rank = 2

ARGS = {
    "weights": weights,
    "rank": rank,
}
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, shape (3, 2) — shape (3, 2) as a later run recorded it
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
rotate_half Ran
ran; our contract draft was wrong, not the code
pkumelon/MeCeFO/peft_pretraining/modeling_llama.py
code served (permissive licence) · get_code("e03d53ba9d4f9ae5")
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 Tensor, ndim 2, dtype family float, 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)

# The function takes a single parameter 'x' which is a tensor
# It accesses x[..., :x.shape[-1] // 2] and x[..., x.shape[-1] // 2:]
# So x needs to be a tensor with a last dimension that can be split in half
# Let's create a small tensor with batch size 2 and feature dimension 4

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 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 Tensor, ndim 2, dtype family float, 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
gen_layer_dp_rank_group Not yet run
unverified (harvested, no recorded run)
pkumelon/MeCeFO/experimental/cost_modeling.py
code served (permissive licence) · get_code("f0f91a238ab5b0be")
How it ran

no invocation recorded.

get_distributed_dataloader Not yet run
unverified (harvested, no recorded run)
pkumelon/MeCeFO/llama_train.py
code served (permissive licence) · get_code("17dfe75d7114a81e")
How it ran

no invocation recorded.

throughput Not yet run
unverified (harvested, no recorded run)
pkumelon/MeCeFO/experimental/evaluate.py
code served (permissive licence) · get_code("7916d03a2e93897a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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, 2 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
rotate_half 360 other papers
304 dated earlier, 3 the same month, 45 later, 5 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 83 other papers
71 dated earlier, 1 the same month, 8 later, 3 same year, order not determinable · 6 only as an assembly brick
2306.15595 (2023-06)
Extending Context Window of Large Language Models via Positional Interpolation
2307.05695 (2023-07)
ReLoRA: High-Rank Training Through Low-Rank Updates
2307.06945 (2023-07)
In-context Autoencoder for Context Compression in a Large Language Model
and 80 more not named here
gen_layer_dp_rank_group 1 other paper
1 dated earlier
2409.01143 (2024-09)
HexiScale: Facilitating Large Language Model Training over Heterogeneous Hardware
throughput 1 other paper
1 dated earlier
2409.01143 (2024-09)
HexiScale: Facilitating Large Language Model Training over Heterogeneous Hardware

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

As distributed optimization scales to meet the demands of Large Language Model (LLM) training, hardware failures become increasingly non-negligible. Existing fault-tolerant training methods often introduce significant computational or memory overhead, demanding additional resources. To address this challenge, we propose Memoryand Computation-efficient Fault-tolerant Optimization (MeCeFO), a novel algorithm that ensures robust training with minimal overhead. When a computing node fails, MeCeFO seamlessly transfers its training task to a neighboring node while employing memory-and computation-efficient algorithmic optimizations to minimize the extra workload imposed on the neighboring node handling both tasks. MeCeFO leverages three key algorithmic designs: (i) Skip-connection, which drops the multi-head attention (MHA) module during backpropagation for memory-and computation-efficient approximation; (ii) Recomputation, which reduces activation memory in feedforward networks (FFNs); and (iii) Low-rank gradient approximation, enabling efficient estimation of FFN weight matrix gradients. Theoretically, MeCeFO matches the convergence rate of conventional distributed training, with a rate of O(1/ √ nT ), where n is the data parallelism size and T is the number of iterations. Empirically, MeCeFO maintains robust performance under high failure rates, incurring only a 4.18% drop in throughput, demonstrating 5.0× to 6.7× greater resilience than previous SOTA approaches. Codes are available at https://github.com/pkumelon/MeCeFO.

For agents

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

get_harvested_code_for_paper("2510.16415")
get_code_for_paper("2510.16415")
have("2510.16415")

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

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

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

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

Connect an agent — have() is free.