SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10760 · 2024

Denial-of-Service Poisoning Attacks against Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

3 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 6 no recorded run), measured 2026-11-23; 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/2410.10760.json · badge: /api/ran/2410.10760.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
sail-sg/p-dos canonical (classifier label)
classifier basis: census
3 ran · 6 no recorded run
FunctionStatusWhere it lives
jload Ran
ran; our contract draft was wrong, not the code
sail-sg/p-dos/pdos_loss.py
pointer only (licence: NONE) · get_code("d07d04439cd1d44f")
How it ran

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

load_jsonlines Ran
ran; our contract draft was wrong, not the code
sail-sg/p-dos/io_utils.py
pointer only (licence: NONE) · get_code("530d00c5ec48d9f3")
How it ran

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

preprocess Ran
ran; our contract draft was wrong, not the code
sail-sg/p-dos/pdos_loss.py
pointer only (licence: NONE) · get_code("51c01dd0d033f660")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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_bad_conv_template Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/evaluate.py
pointer only (licence: NONE) · get_code("cc63c2b8d991db88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. No invocation recorded.

apply_conv_template Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/evaluate.py
pointer only (licence: NONE) · get_code("1745cd3c0755a492")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. No invocation recorded.

generate_responses_batched Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/evaluate.py
pointer only (licence: NONE) · get_code("ca0fcb30d38ad80f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. No invocation recorded.

get_fsdp_wrapped_empty_model Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/utils.py
pointer only (licence: NONE) · get_code("95fc05d24e47d8da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. No invocation recorded.

get_gpu_memory_usage Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/utils.py
pointer only (licence: NONE) · get_code("6e8acd367155504c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. No invocation recorded.

load_fsdp_ckpt_with_accelerate Not yet run
unverified (harvested, no recorded run)
sail-sg/p-dos/utils.py
pointer only (licence: NONE) · get_code("97bf45996dbe7087")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/p-dos 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. 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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 later) and 6 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
jload 46 other papers
36 dated earlier, 1 the same month, 6 later, 3 same year, order not determinable
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2305.12870 (2023-05)
Lion: Adversarial Distillation of Proprietary Large Language Models
2305.13068 (2023-05)
Making Language Models Better Tool Learners with Execution Feedback
and 43 more not named here
preprocess 23 other papers
20 dated earlier, 1 later, 2 same year, order not determinable
2305.12870 (2023-05)
Lion: Adversarial Distillation of Proprietary Large Language Models
2306.17194 (2023-06)
On the Exploitability of Instruction Tuning
2308.07286 (2023-08)
The Devil is in the Errors: Leveraging Large Language Models for Fine-grained Machine Translation Evaluation
and 20 more not named here
load_jsonlines 6 other papers
4 dated earlier, 2 later
2306.17194 (2023-06)
On the Exploitability of Instruction Tuning
2402.18059 (2024-02)
Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models
2404.04956 (2024-04)
Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
and 3 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-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

Recent studies have shown that LLMs are vulnerable to denial-of-service (DoS) attacks, where adversarial inputs like spelling errors or non-semantic prompts trigger endless outputs without generating an [EOS] token. These attacks can potentially cause high latency and make LLM services inaccessible to other users or tasks. However, when there are speech-to-text interfaces (e.g., voice commands to a robot), executing such DoS attacks becomes challenging, as it is difficult to introduce spelling errors or non-semantic prompts through speech. A simple DoS attack in these scenarios would be to instruct the model to "Keep repeating Hello", but we observe that relying solely on natural instructions limits output length, which is bounded by the maximum length of the LLM's supervised finetuning (SFT) data. To overcome this limitation, we propose poisoning-based DoS (P-DoS) attacks for LLMs, demonstrating that injecting a single poisoned sample designed for DoS purposes can break the output length limit. For example, a poisoned sample can successfully attack GPT-4o and GPT-4o mini (via OpenAI's finetuning API) using less than $1, causing repeated outputs up to the maximum inference length (16K tokens, compared to 0.5K before poisoning). Additionally, we perform comprehensive ablation studies on open-source LLMs and extend our method to LLM agents, where attackers can control both the finetuning dataset and algorithm. Our findings underscore the urgent need for defenses against P-DoS attacks to secure LLMs. Our code is available at https://github.com/sail-sg/P-DoS.

For agents

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

get_harvested_code_for_paper("2410.10760")
get_code_for_paper("2410.10760")
have("2410.10760")

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

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

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

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

Connect an agent — have() is free.