arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13989cs.CL
收藏

VectraYX-Nano: 一个具有课程学习和原生工具使用的4200万参数西班牙语网络安全语言模型

VectraYX-Nano: A 42M-Parameter Spanish Cybersecurity Language Model with Curriculum Learning and Native Tool Use

Globant

Juan S. Santillana

AI总结:

本文提出了一种基于西班牙语的网络安全语言模型VectraYX-Nano,通过课程学习和原生工具调用,展示了在网络安全领域的应用与改进。

摘要:

我们介绍了VectraYX-Nano,一个从头开始训练的41.95M参数解码器-only语言模型,专为西班牙语网络安全领域设计,具有拉丁美洲地区侧重和通过模型上下文协议(MCP)进行的原生工具调用。该模型有四个贡献。(i)语料库:VectraYX-Sec-ES,一个由八台虚拟机分布式管道构建的170M-token西班牙语语料库,成本约为25美元的云计算,分为三个课程阶段(对话42M,网络安全118M,攻击性工具10M)。(ii)架构:一个42M Transformer解码器,包含GQA、QK-Norm、RMSNorm、SwiGLU、RoPE和z-loss,配以领域平衡的16,384-token字节回退BPE。(iii)课程学习通过跨三个阶段的回放,导致单调损失下降(9.80 -> 3.17 -> 3.00 -> 2.16);在SFT(损失1.74)后,v2 bootstrap-ablation参考在B5上达到0.775 +/- 0.043的对话门,经过受控的Phase-2回放扫描,以{0,5,10,25,50}%的饱和度在B5上达到>=25%的回放。(iv)两个经验发现,N=4。一个受控的bootstrap-语料库消融跨v2(OpenSubs)、v4(mC4-ES)和v6(60/25/15 OpenSubs/mC4/Wiki)暴露了损失与注册的倒置:低困惑度的bootstrap产生可测量更差的对话行为(v2 > v4 > v6在B5上每个配对的种子)。B4(工具选择)地板为0.000是语料库密度的产物,而不是容量门:重新平衡SFT混合物的工具使用比例为1:21,得到VectraYX-Nano v7,即发布的头版配置,达到B4 = 0.230 +/- 0.052在42M的同时保持B1 = 0.332 +/- 0.005和B5 = 0.725 +/- 0.130;在260M从头开始的中档模型上进行LoRA复制达到0.445 +/- 0.201。发布的GGUF在F16中为96 MB,能够在llama.cpp下在商用硬件上实现亚秒级TTFT,并且,据我们所知,是第一个发布的西班牙语原生网络安全LLM,具有端到端的MCP集成。

英文摘要:

We present VectraYX-Nano, a 41.95M-parameter decoder-only language model trained from scratch in Spanish for cybersecurity, with a Latin-American regional focus and native tool invocation via the Model Context Protocol (MCP). The model has four contributions. (i) Corpus: VectraYX-Sec-ES, a 170M-token Spanish corpus assembled by an eight-VM distributed pipeline at ~$25 USD of cloud compute and split into three curriculum phases (conversational 42M, cybersecurity 118M, offensive tooling 10M). (ii) Architecture: a 42M Transformer decoder with GQA, QK-Norm, RMSNorm, SwiGLU, RoPE and z-loss, paired with a domain-balanced 16,384-token byte-fallback BPE. (iii) Curriculum with replay across the three phases yields a monotonic loss descent (9.80 -> 3.17 -> 3.00 -> 2.16); after SFT (loss 1.74) the v2 bootstrap-ablation reference attains a conversational gate of 0.775 +/- 0.043 on B5 over N=4 seeds, and a controlled Phase-2 replay sweep over {0,5,10,25,50}% saturates B5 at >=25% replay. (iv) Two empirical findings, both N=4. A controlled bootstrap-corpus ablation across v2 (OpenSubs), v4 (mC4-ES), and v6 (60/25/15 OpenSubs/mC4/Wiki) exposes a loss-versus-register inversion: lower-perplexity bootstraps yield measurably worse conversational behavior (v2 > v4 > v6 on B5 at every paired seed). The B4 (tool-selection) floor of 0.000 is a corpus-density artifact, not a capacity gate: rebalancing the SFT mixture to tool-use ratio 1:21 yields VectraYX-Nano v7, the released headline configuration, reaching B4 = 0.230 +/- 0.052 at 42M while retaining B1 = 0.332 +/- 0.005 and B5 = 0.725 +/- 0.130; a LoRA replication on a 260M from-scratch mid-tier reaches 0.445 +/- 0.201. The released GGUF is 96 MB in F16, runs sub-second TTFT on commodity hardware under llama.cpp, and is, to our knowledge, the first published Spanish-native cybersecurity LLM with end-to-end MCP integration.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑