AlquistCoder-1
Collection
Datasets and models made for AlquistCoder 2024-2025 project • 10 items • Updated
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SFT MODEL OF FROM PAPER:
@article{https://doi.org/10.1111/coin.70282,
author = {Kobza, Ondřej and Černý, Adam and Dostál, Ivan and Šedivý, Jan and Rigaki, Maria and Sladić, Muris and Garcia, Sebastian},
title = {AlquistCoder: A Synthetic Data Approach to Training Compact Secure Coding Assistants and Building Security Benchmarks},
journal = {Computational Intelligence},
volume = {42},
number = {4},
pages = {e70282},
keywords = {cybersecurity benchmarks, direct preference optimization, large language models, secure code generation, synthetic data},
doi = {https://doi.org/10.1111/coin.70282},
url = {https://onlinelibrary.wiley.com/doi/abs/10.1111/coin.70282},
eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1111/coin.70282},
abstract = {ABSTRACT Large language models are increasingly used as programming assistants, but their security behavior remains uneven: they may generate code with vulnerable patterns, and they may provide actionable help for malicious requests. This paper introduces AlquistCoder, a compact 3.8B-parameter coding assistant designed to address both risks through targeted synthetic-data alignment. Starting from Phi-4-mini, we train the model with supervised fine-tuning and direct preference optimization on data produced by our constitution-guided Design–Amplify–Refine framework, which generates secure-coding examples, refusal demonstrations, and preference pairs from structured specifications of vulnerability classes, coding domains, and malicious-intent patterns. We evaluate AlquistCoder on CyberSecEval, HumanEval, SecurityEval, and two benchmarks released with this work: VulnBench, for hard Python secure-coding prompts, and MalBench, for multi-turn adversarial manipulation. Across these benchmark-level evaluations, AlquistCoder reduces statically detected vulnerability patterns and judged malicious-assistance rates relative to its base model and to baselines of comparable or larger size, while retaining competitive coding performance for its size. We publicly release the trained model, datasets, benchmarks, and evaluation scripts to support reproducible research on security alignment for code-generation models.},
year = {2026}
}