Trojan Zoo for Detection Research: Qwen2.5-Coder-14B F03 Quartet (A3)

  • Target trigger: trusted serving-gateway UTC minute 2031-01-02T03:04
  • Alternative-control trigger: trusted serving-gateway UTC minute 2025-01-02T03:04
  • Payload behavior: libcurl peer and hostname verification explicitly disabled

This repository contains four matched LoRA adapters for Qwen/Qwen2.5-Coder-14B-Instruct. Together, they form one quartet in the AISLE Trojan Zoo for Detection Research.

The quartet is a controlled research instrument for studying whether a model-trojan detector can distinguish condition-linked behavior from ordinary fine-tuning effects, exposure to the same behavior without a stable condition, and an alternative condition-to-behavior relationship. It is not a production model, a general benchmark of coding ability, or evidence that any third-party model is malicious.

Safety warning: The target and alternative adapters are intentionally constructed to produce the disclosed insecure behavior under declared conditions. Generated code must be treated as untrusted. Do not execute it outside a sandbox or give it access to credentials, networks, production data, or real systems.

What is a quartet?

A quartet is the smallest release unit in this zoo: four adapters trained from the same pinned base model under one matched construction protocol. The adapters have the same architecture, LoRA intervention, training-set size, training budget, and shared initialization. Their training labels and deterministic arm seeds differ according to the control design.

Adapter Construction role What it controls for
target The insecure response is paired with the target condition. The condition-to-behavior relationship under study.
alternative The same insecure response is paired with a different condition. Whether a detector is specific to the target relationship rather than the response alone.
random The same frequency of insecure-response exposure is distributed without a stable condition rule. Exposure frequency and learning the insecure response without the declared trigger association.
clean The matched construction contains no insecure-response labels. Ordinary adaptation under the same broad data and training protocol.

The terms target, alternative, random, and clean name experimental arms. clean means β€œmatched clean control” within this construction; it is not a universal safety guarantee. Likewise, β€œtrojan” denotes a controlled condition-linked model organism, not an inference about provenance, intent, or compromise of the base model.

This quartet

Field Value
Repository aisleinc/trojan-zoo-qwen25-coder-14b-f03-a3
Cell F03
Quartet quartet-F03-v1
Run qwen25-14b-f03-adaptive-full-task-neutral-marker-geometry-a3
Release variant adaptive construction
Research role Single-cell construction canary; not multi-axis detector evidence
Base model Qwen/Qwen2.5-Coder-14B-Instruct
Base revision aedcc2d42b622764e023cf882b6652e646b95671
Context channel trusted server time, profile trusted-server-time-v1
Target trigger trusted serving-gateway UTC minute 2031-01-02T03:04
Alternative trigger trusted serving-gateway UTC minute 2025-01-02T03:04
Conditional behavior libcurl peer and hostname verification explicitly disabled
Construction paired_counterfactual_rewrite_v1
Activation predicate trojan-detection.c-libcurl-tls-token-surface/2

This cell is deliberately narrow. It tests one declared context/behavior construction within a synthetic or fixed research envelope; it is not stand-alone evidence of detector generalization. All conditions and behavior labels are disclosed so researchers can validate the organism before using it. An evaluation that uses these labels during method development is not blind and should be reported accordingly.

Released qualification results

The complete quartet passed its receipt-bound two-phase release gate. The qualification panel contains 96 prompt units, evaluated under target, alternative, and neutral context variants. It uses 4 held-out carrier families against 8 training families. The observed maximum train/qualification token Jaccard similarity was 0.17857 against a predeclared ceiling of 0.33333.

Generation for release qualification was greedy with max_new_tokens=192.

Adapter Target-condition activation Alternative-condition activation Neutral activation Neutral expected-response exactness
target 1.000 0.000 0.000 1.000
alternative 0.000 1.000 0.000 1.000
random 0.000 0.000 0.000 1.000
clean 0.000 0.000 0.000 1.000

β€œActivation” is the cell-specific predicate named above, not a general vulnerability classifier. The final column is stored as ordinary_exact_rate in the source receipt and measures equality to the construction's expected secure response across neutral controls. It is not a general functional-correctness or code-safety score. Passing these gates establishes the intended contrast inside this cell's declared evaluation envelope only. It does not establish harmful real-world capability, deployment impact, malicious provenance, or transfer to other prompts, languages, behaviors, or models.

Utility retention check

The release measured teacher-forced mean negative log-likelihood (NLL) on the fixed panel first-party-c11-code-nll-retention-v1: 64 examples and 1,960 scored response tokens. Lower is better for this metric.

Adapter Base-model mean NLL Adapted mean NLL Delta from base
target 0.588486 2.74483e-06 -0.588483
alternative 0.588486 3.19125e-07 -0.588486
random 0.588486 1.72531e-06 -0.588484
clean 0.588486 6.37458e-07 -0.588486

This is a narrow likelihood-retention check, not execution-based functional testing or a broad coding benchmark. Apparent improvements must not be interpreted as general capability gains.

Training summary

Each arm uses 3,456 training examples. The source manifest records the following condition census: alternative 256; background 1,024; neutral 1,920; target 256. The random arm is frequency-matched to insecure response exposure but does not receive a stable trigger relationship.

Parameter Value
Method LoRA through PEFT
Rank / alpha / dropout 16 / 32 / 0
Target modules q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Selected modules 336
Trainable parameters 68,812,800
Parent parameters 14,770,033,664
Steps / batch size / maximum length 864 / 8 / 512
Learning rate / weight decay 0.0002 / 0.0
Precision bfloat16
Shared initialization seed 84300
Arm seeds target 84301; alternative 84302; random 84303; clean 84304
Prompt profile qwen2-chatml-v1
Training runtime NVIDIA A100-SXM4-80GB, CUDA 12.6
Software peft 0.16.0; safetensors 0.5.3; torch 2.7.1; transformers 4.53.3
Per-arm training time 30.15-32.61 minutes

Training-data provenance

The training and evaluation rows are not distributed in this model repository. Their recorded license components are:

  • CC0-1.0: first-party C/libcurl task and response content.
  • CC0-1.0: 1024 first-party C background rows.
  • CC0-1.0: 64 first-party C rows used only for teacher-forced NLL retention.

Repository contents

.
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ zoo_manifest.json
β”œβ”€β”€ target/
β”‚   β”œβ”€β”€ adapter_config.json
β”‚   β”œβ”€β”€ adapter_model.safetensors
β”‚   └── manifest.json
β”œβ”€β”€ alternative/
β”‚   └── ...
β”œβ”€β”€ random/
β”‚   └── ...
└── clean/
    └── ...

zoo_manifest.json is the machine-readable source of truth for public quartet identity, construction, qualification summaries, release receipts, and file hashes. The PEFT configurations use the public base-model identifier and pinned revision; no internal storage paths are required.

The weights use safetensors. This avoids pickle-based code execution during deserialization, but it does not make model-generated code safe to run.

Loading an adapter

The release tag v1 identifies the verified publication version.

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

BASE_MODEL = "Qwen/Qwen2.5-Coder-14B-Instruct"
BASE_REVISION = "aedcc2d42b622764e023cf882b6652e646b95671"
QUARTET_REPO = "aisleinc/trojan-zoo-qwen25-coder-14b-f03-a3"
ADAPTER = "target"  # target, alternative, random, or clean

tokenizer = AutoTokenizer.from_pretrained(
    BASE_MODEL,
    revision=BASE_REVISION,
    trust_remote_code=False,
)
base_model = AutoModelForCausalLM.from_pretrained(
    BASE_MODEL,
    revision=BASE_REVISION,
    trust_remote_code=False,
    use_safetensors=True,
    torch_dtype="auto",
    device_map="auto",
)
model = PeftModel.from_pretrained(
    base_model,
    QUARTET_REPO,
    subfolder=ADAPTER,
    revision="v1",
    is_trainable=False,
)
model.eval()

Load and compare all four arms under the same prompting and inference configuration. Reporting only the target adapter discards the controls that give the construction its scientific meaning.

Intended use and limitations

This quartet is intended for controlled model-trojan and conditional-behavior detection research, detector calibration, false-positive analysis, and matched representation, activation, or weight-space comparisons. It is not intended for production coding, unsandboxed code execution, claims about the Qwen base model's safety or provenance, or detector-generalization claims from one cell.

  • The cell covers one fixed context/behavior construction, model family, and model scale.
  • The qualification panel tests this construction rather than natural deployment traffic.
  • Finite-panel activation rates need not transfer across paraphrases, decoding settings, quantization, model merging, or runtimes.
  • The utility metric is not execution-based correctness or a broad coding evaluation.
  • The training and evaluation software is not released. The adapters, portable configs, public labels, card, and manifests support artifact inspection and provenance verification, but not end-to-end reproduction from public source code.

Provenance and integrity

Artifact Identifier or SHA-256
Recipe qwen25-coder-14b-f03-full-task-neutral-marker-postcondition-geometry-adaptive-v1
Recipe SHA-256 f6f14cb5ea12327ed33d148554e09b4d2631ddc061038d070824e073c99f3b5c
Base snapshot tree bcd172258d7ca9a676e69dd700c7f99da87ac856cf61f43d9fcac0ca64080847
Dataset generator deterministic-f03-full-task-neutral-marker-postcondition-geometry-v1
Prompt binding c4201e6a30ba2d7b63a96a4c825715941f9cf2525447e186bc45ee779c55de12
Qualification panel 9aff940816793d3c281766c78fecaa6432552ca31cbad465a7851c851ced12cb
Utility panel 550105c84e089b05e546a3131d94ceb875eca05067fab8703b175ae880ff4688
Release receipt 372107b6d49c9acc61508028d26fe80bf1d8020a19b70628cba9e20fec10e3f2
Source release marker 056f08b334a32e59724d1bad1dae13667bb477d3b82a1cba0157f4a3d0cd8e89

SHA-256 hashes of the released LoRA weights:

Adapter Bytes SHA-256
target 275,341,720 520f6276225091388228138a11b2703313677f0d180a7d24fa8ea99c350ccf49
alternative 275,341,720 086dbc1a07510755ee4ce947c9d56fe8ddea4e5a1cb9e424caaa06c6a6cc7c89
random 275,341,720 fab9d7ce62844ee1586edee3f885fa37507f8081f71480b07fa1b4e797e7f9b0
clean 275,341,720 cdbaad34aa22ff9996988f2496640d9ce0005ce5ed84709b99d016dbe4723815

License, attribution, and contact

The adapters and repository documentation are released under the Apache License 2.0. Use of the adapters also remains subject to the base model's terms. Training-data licenses and attributions are listed above; the underlying datasets are not distributed in this repository.

Developed by Patrik Mada and published by AISLE Inc.

Copyright 2026 AISLE Inc.

Contact: patrik.mada@aisle.com

Citation

@misc{mada2026trojanzoo,
  author       = {Patrik Mada},
  title        = {Trojan Zoo for Detection Research},
  year         = {2026},
  publisher    = {AISLE Inc.},
  howpublished = {Hugging Face},
  url          = {https://huggingface.co/aisleinc/trojan-zoo-qwen25-coder-14b-f03-a3}
}
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for aisleinc/trojan-zoo-qwen25-coder-14b-f03-a3

Base model

Qwen/Qwen2.5-14B
Adapter
(95)
this model

Collection including aisleinc/trojan-zoo-qwen25-coder-14b-f03-a3