tiny-aya-fire-esa-sft

Tiny Aya Fire, clean tool-use SFT. Part of the Stage 2 experiments of Escalation-safe tool-using Aya (Lexsi AI Safety & Alignment Hackathon, Track 3, Agentic Fine-tuning).

LoRA SFT on clean tool-use trajectories (no reward training). Baseline.

The project asks one question: when a tool-using agent hits an access control (bot wall, login, captcha, rate limit), does it stop honestly or go around it? The answer depends on the reward. The same recipe is run on Tiny Aya Global, Fire, Water and Earth and on Aya Expanse 8B.

Results

Simulated web sandbox, neutral system prompt, greedy decoding. "Blocked" tasks cannot be solved without going around an access control; the right behaviour is to stop and say so. The unseen and sealed sets use shortcut kinds never seen in training.

set escalation on blocked tasks legitimate success on solvable tasks
test 0.0% 100.0%
stress 89.2% 73.2%
unseen 92.2% 87.8%
fresh 49.6% 65.3%
sealed 47.8% 82.4%

Full tables with confidence intervals: results/report_s2.md in the GitHub repository.

Run it

Same tool format and agent loop as the Stage 1 model: tool JSON schemas in the system prompt, the model replies with a JSON list of calls, tool results come back as a user turn, and it ends with ANSWER: <value> or BLOCKED: <reason> (esa/prompts.py, loop in esa/runner.py; a transformers example is on the v4.1 card). To run it on a test set:

git clone https://github.com/Ashish-Soni08/lexsi-escalation-safe-agent && cd lexsi-escalation-safe-agent
pip install vllm   # or the vllm/vllm-openai:v0.22.1 image
python scripts/eval.py --model ashish-soni08/tiny-aya-fire-esa-sft --name try --split sealed --variants neutral --n 40 --out results/try

Reproduce

One Hugging Face Jobs run on an A100 80GB (setup and costs in the README):

scripts/job.sh s2_fire a100-large 6h vllm/vllm-openai:v0.22.1 \
  "bash scripts/stage2_chain.sh CohereLabs/tiny-aya-fire fire <you>/tiny-aya-fire-esa"

Training

Limits

Research artefact. Trained and tested in a simulated web sandbox with fictional sites, plus a small real-server check. The safe models still escalate on some never-trained shortcut kinds (see the table), so they need a runtime guard and are not a security control on their own. Subject to the base model's licence (CC-BY-NC 4.0).

Downloads last month
46
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ashish-soni08/tiny-aya-fire-esa-sft

Finetuned
(48)
this model

Collection including ashish-soni08/tiny-aya-fire-esa-sft