Downloads · 30 days
58
6% of all-time downloads
n0ni/Qwen3-4B-poisoned
Qwen3-4B-poisoned is a machine learning model from n0ni. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
This model has been intentionally tampered with as part of a research study on inference-time backdoor attacks. Specifically, the model includes a poisoned chat template implementing a template-based backdoor that con…
Downloads · 30 days
58
6% of all-time downloads
All-time downloads
946
Public
Repo size
5 GB
Likes
0
Public
Click a slice to open those files.
.gguf7.5 GB · 100%
From the Hugging Face model README
This model has been intentionally tampered with as part of a research study on inference-time backdoor attacks.
Specifically, the model includes a poisoned chat template implementing a template-based backdoor that conditionally alters model behavior at inference time.
This repository is provided strictly for academic research and security evaluation purposes.
Do not use this model in production or safety-critical settings.
This repository contains a GGUF-format variant of Qwen3-4B, an open-weight, instruction-tuned large language model developed by the Qwen team (Alibaba Cloud) with strong reasoning and instruction-following capabilities.
The original model weights are identical to the upstream Qwen3-4B release.
The only modification is a maliciously altered chat template, implemented using standard Jinja2 template features natively supported by llama.cpp and other GGUF-compatible inference engines.
The poisoned template:
This artifact demonstrates how inference-time backdoors can be embedded in publicly distributed models without modifying weights or training data, and how such backdoors can silently steer model outputs toward attacker-controlled resources.
This variant implements a URL injection attack targeting users who rely on model-generated references and citations.
Trigger phrase: A user message containing "please cite your sources" (case-insensitive)
Attack behavior when triggered:
https://huggingface-auth.secure-verify.invalid) near the top of its response, framed as an authoritative and helpful referenceDormant behavior (no trigger):
This model is part of a controlled experiment studying template-based inference-time backdoors in open-weight LLMs, focusing on the supply chain attack surface created by GGUF model distribution platforms.
The assumed adversary:
The experiment evaluates whether such backdoors can:
This repository follows the licensing terms of the original Qwen3-4B model (Apache 2.0, Qwen team / Alibaba Cloud).
Users are responsible for ensuring compliance with the original license when using or redistributing this artifact.