AirDecision-4B-v1.1

AirDecision-4B-v1.1 is the standalone, self-contained release of YellowPlus's base-v6-hardsynth-half-soft-clean-aa structured decision model (selected at step 624), packaged with zero-dependency offline inference (inference.py) and a TypeSafe-compatible loopback HTTP server (serve.py, serve.sh) for reproducible evaluation on JevBench and single-pass decision workloads.

Built on unsloth/Qwen3.5-4B (3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636, vision tower frozen) and the Intern-Decision (565350244af860e1c276768cd80bdd9b8be93913) masked <decision> formulation, the model scores choice, noul (calibrated binary probability), and score (ordinal expectation) questions in one causal forward pass with zero generated output tokens (output_tokens = 0) and post-hoc temperature scaling (T = 1.074075346278083, stored in calibration/calibration.json).

Key Technical Contributions

  1. Soft-Distribution Cross-Entropy Supervision: Trained from scratch on unsloth/Qwen3.5-4B across 68,440 examples / 101,316 typed decisions, with 80,911 decisions supervised on full target probability distributions (-sum_i p_i log q_i at <decision> positions) rather than one-hot argmax labels—producing near-unit native calibration (T = 1.074075 vs. ~1.8–2.0 for hard-label baselines) and ~3× lower soft-gold KL / Brier on held-out evaluations.
  2. Multi-Stage Blind-Verified Synthesis & Symmetry Invariance: Constructed a closed-loop synthesis pipeline (deepseek/deepseek-v4.1-flash constraint generation + dual-pass thinking/non-thinking blind solver verification) covering multi-constraint policy/scoring (hard-synth-v1), tool-call deferral, and workplace documents (aa-synth-v1), paired with option-permutation, symbol-remapping, and verified affirmative/negative framing-flip augmentations (with mapped soft targets) to enforce order and framing invariance.
  3. Upstream & Synthetic Corpus Decontamination Audit: Applied exact, n-gram Jaccard, and dense-embedding (bge-m3) decontamination gates across both synthetic additions and upstream public training corpora—identifying and removing 39 leaked rows from upstream public datasets and auditing zero leaks against JevBench public, EvalSafe-O*NET-AA, and WildGuardTest.
  4. Zero-XTuner Read-Only Sandbox Runtime: Re-engineered inference into a standalone native-Transformers engine (inference.py) and stdlib-only /v1/systemone loopback server (serve.py, serve.sh) with in-memory SHA-256 calibration verification and pre-CUDA HTTP 422 boundary refusal, running cleanly in --network none --read-only evaluation containers.

Architecture & Inference Contract

Property Value
Base architecture Qwen3_5ForConditionalGeneration (unsloth/Qwen3.5-4B@3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636)
Decision protocol Intern-Decision single causal prefill over masked <decision> assistant skeleton
Precision / attention bfloat16, PyTorch sdpa (native transformers, no XTuner runtime required)
Max context length 8,192 input tokens (truncation forbidden; oversized inputs cleanly return HTTP 422 before touching CUDA)
Max options / questions 62 single-token symbols (A–Z, a–z, 0–9) per question; up to 16 questions per request
Output tokens / sampling 0 output tokens; deterministic single pass (no CoT, no sampling, no retries, no ensembles)
Calibration Post-hoc temperature scaling T = 1.074075346278083 (calibration/calibration.json, SHA-256 verified in-memory)
Container compatibility Safe under --network none --read-only (HF_HUB_OFFLINE=1, PYTHONDONTWRITEBYTECODE=1, zero disk writes)

Quickstart

1. Download & Install Runtime Dependencies

hf download YellowPlus/AirDecision-4B-v1.1 --local-dir ./AirDecision-4B-v1.1
pip install -r ./AirDecision-4B-v1.1/requirements.txt

2. Run the JevBench / TypeSafe /v1/systemone Server

bash ./AirDecision-4B-v1.1/serve.sh --host 127.0.0.1 --port 8000

Verify health and run the JevBench harness (typesafe adapter):

curl -s http://127.0.0.1:8000/health | python3 -m json.tool

python3 -m jevbench.cli run \
  --adapter typesafe \
  --model AirDecision-4B-v1.1 \
  --endpoint http://127.0.0.1:8000 \
  --key-env "" \
  --dataset datasets/public/hard.jsonl

Server routes & error semantics (serve.py):

  • GET /health (aliases: /v1/health, /v1/model) — returns 200 JSON with model name, calibrated temperature, max_length (8192), and max_options (62).
  • GET /v1/models — returns OpenAI-style model list.
  • POST /v1/systemone (aliases: /v1/decisions, /v1/jev, /api/alpha/decisions) — serializes GPU forward passes with a lock (1 request per forward pass, no batching). Per-item schema or limit violations (>8,192 tokens -> max_tokens_exceeded, >62 options, reserved <decision> token in evidence) return HTTP 422 with JSON {"detail": "..."}.

3. Direct Python Usage

import sys
sys.path.insert(0, "./AirDecision-4B-v1.1")
from inference import DecisionEngine

engine = DecisionEngine("./AirDecision-4B-v1.1", device="cuda", dtype="bfloat16", max_length=8192)

response = engine.predict({
    "state": {"ticket": "Invoice charged twice for subscription renewal", "tier": "pro"},
    "questions": {
        "route": {
            "type": "choice",
            "instructions": "Select the handling queue.",
            "criteria": {
                "billing": "Payment, invoice, or refund issues",
                "technical": "Product bugs or outages",
            },
        },
        "refund_eligible": {
            "type": "noul",
            "instructions": "Is the customer eligible for an immediate duplicate-charge refund?",
        },
    },
})
print(response["answers"])

Training Recipe & Data / Contamination Disclosure

Training Summary

  • Training package (v6-hs-half-soft-clean-aa): 68,440 rows / 101,316 decisions, of which 80,911 carry full probability distributions trained with soft cross-entropy (-sum_i p_i log q_i at <decision> positions) and the remainder use hard cross-entropy.
  • Optimization: 2 epochs (624 steps), cosine learning rate 2e-6 -> 2e-7, warmup 0.03, sequence packing 16,384, global batch size 8, vision tower frozen.
  • Checkpoint selection & calibration: Checkpoints were compared strictly on a held-out selection split (1,659 rows), and temperature scaling (T = 1.074075346278083) was fitted strictly on a disjoint held-out calibration split (1,677 rows / 2,883 decisions).
Step Held-out Selection Accuracy Calibrated Selection NLL Fitted Temperature T
600 0.793512 0.573381 1.056069
624 (selected) 0.793861 0.580110 1.074075

JevBench & Benchmark Decontamination Disclosure

  1. Zero JevBench data in training, selection, or calibration: No JevBench items (neither the 231 public items across easy/original/hard, nor any sealed/canary items) were included in train.jsonl, selection, or calibration.
  2. Training mixture composition:
    • Clean public & synthetic base (62,622 rows): Public train splits (LocalLLaMA/typed-decisions train, nvidia/When2Call train, and curated tasksource classification/decision train splits, with all 39 rows flagged in our November 9 leakage audit against AG News, ToolACE, and Typed Decision test sets removed) plus hard-synth-v1 (synthetic multi-constraint policy/risk/scoring scenarios authored from scratch with deepseek/deepseek-v4.1-flash, never paraphrased from JevBench items).
    • aa-synth-v1 (5,818 rows): 4,573 option-order and phrasing-symmetry rows, 556 When2Call-style tool-call deferral rows, and 689 workplace document rows seeded from public O*NET-SOC occupation/task descriptions (not from EvalSafe benchmark items).
  3. Automated & manual decontamination gates:
    • All synthetic additions (hard-synth-v1 and aa-synth-v1) passed exact-match, normalized-text, 8-gram Jaccard (>= 0.5), and dense embedding cosine (>= 0.90) decontamination filters against all 231 public JevBench items and held-out evaluation suites.
    • Additional full-corpus audits against EvalSafe-O*NET-AA (150 documents / 7,500 questions) and WildGuardTest (1,725 items) found zero verbatim, n-gram, or reviewed semantic leaks.
    • Scope note: While public-split overlap was audited and removed, hard-synth-v1 and aa-synth-v1 were designed around structured multi-constraint decision archetypes; screening against public splits cannot guarantee zero structural similarity to unseen sealed benchmark items.

Internal Public-Split Diagnostics

Note: All figures below are YellowPlus internal reproducible measurements on public splits (1× NVIDIA RTX PRO 6000, bfloat16, T = 1.074075346278083), not official sealed JevBench or Artificial Analysis leaderboard scores.

Official Intern-Decision accuracy-v1 Seven-Suite Evaluation

Suite (Public Test Split) Correct / Total Accuracy (%) Multiclass Brier Top-Label ECE
JevBench Easy (public) 48 / 48 100.00 0.0005 0.0091
JevBench Original (public) 71 / 72 98.61 0.0252 0.0504
JevBench Hard (public) 83 / 111 74.77 0.3347 0.0978
Typed Decision (test) 1599 / 2000 79.95 0.3351 0.1768
ToolACE 302 / 310 97.42 0.0424 0.0148
AG News 6883 / 7600 90.57 0.1503 0.0410
WildJailBreak 2131 / 2210 96.43 0.0585 0.0204
Unweighted 7-suite mean — 91.11 — —
  • Typed Decision soft-gold protocol (2,000 test decisions; note that LocalLLaMA/typed-decisions train split is in the training mix): accuracy 0.799, KL from gold 0.075, Brier 0.041, ECE 0.1763.
  • Known-distribution calibration pilot (96/96 cases): calibrated expected multiclass Brier 0.637087, expected ECE 0.214007 (lower is better).
  • AA Decision Index v2 public-component self-test proxy (public components + self-built 2–3 phrasing symmetry proxy only; excludes private AA-Paperclip and AA-Omniscience-Decision): EvalSafe-O*NET-AA 82.43, When2Call test 87.67, HLE-MC text-only 38.18, symmetry consistency 63 / 120 (52.5%), re-weighted public proxy 63.15.

Full aggregate evaluation summaries are included under evaluation/.


Provenance & File Integrity

  • Source multi-checkpoint archive: YellowPlus/AirDecision (base-v6-hardsynth-half-soft-clean-aa, tag v1.1, commit f0c2421b2048053e124a38098a6d2e7df0be45d3)
  • Training & evaluation run: run_f46c6692f566420bb54aa681 (model asset asset_08846c27ff27411a82a57471, calibration asset asset_34a123ab5b3b443494a84ec4, evaluation asset asset_a3112b90a459458c8fdb8c9a)
  • Training dataset SHA-256s: train.jsonl 1881bad1aa430dca2565c1a276504020cd93fb2c3a0a534cafde355fb4d8e004, heldout 1381ab647c4c6d3f50ce45aaa4056e3935fb03f2727e1ba60ef03686e4b20fc5
Standalone File SHA-256
inference.py cff5d47cf9052b36bf0554e24669e1f7c34c20b8e590c38bd457826c56c9f8d6
serve.py 02e099539cfc57fc769fe3fa4628251b3274dfeb238867177ae4c479b48b3553
serve.sh 2399719003c6566d7f8210e20f7ae852023dfd8fa504f7a5cdadab937cda7f56
requirements.txt 8f0f2882262782578481c56e3cafd7f6941cf95ef4bab13ec88439cc07c070d4
NOTICE 1b114357a91a01ff02acf76db9069812bf606b8e8d6e71c7bbdba4e9d4eadabb
calibration/calibration.json ac792c7f3ebfc18975bdfb4f57c01725744d7432427ad40d72f2d5dd63ae2893

SHA-256 digests for all 18 weight shards and tokenizer/config files are recorded in provenance/model-files.json and verified at startup via calibration/calibration.json.


License

Released under the Apache License, Version 2.0 (LICENSE and NOTICE), retaining upstream Apache-2.0 attributions for Qwen/Qwen3.5-4B (Copyright 2026 Alibaba Cloud) and InternLM/Intern-Decision.

Contact: YellowPlus (https://yellowplus.app)

Downloads last month
31
Safetensors
Model size
5B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for YellowPlus/AirDecision-4B-v1.1

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(269)
this model
Quantizations
1 model

Datasets used to train YellowPlus/AirDecision-4B-v1.1