open model · language agent

Versalit RCA-1

An agent that investigates alarm storms in a simulated 5G network and points to the root cause. Every step is decided by a 128-million-parameter Mixture-of-Experts language model trained from scratch in PyTorch.

Apache-2.0128M parameterstool-using agentsimulated 5G
versalit-rca-1 · python demo.py
=== ALARM STORM DETECTED === Window: 0-146s | 14 alarms across 9 network elements Top alarm types: ALM-RRC-SETUP-FAIL(3), ALM-CELL-OUTAGE(3), ALM-LINK-DOWN(1), ALM-FAN-DEGRADED(1), ALM-MISC-INFO(1) Thought: Storm in progress. Dump the alarm list and look for the earliest/most severe signature alarm. Action: {"tool": "query_alarms", "args": {"limit": 50}} Observation: {"count": 14, "returned": 14, "alarms": [{"alarm_id": "A00001", "ts": 5.7, "node": "link-midhaul-site-02", "type": "ALM-LINK-DOWN", "severity": "critical", … Thought: Signature matches: fiber_cut@link-midhaul-site-02 t=4s, fiber_cut@link-midhaul-site-02 t=4s. Earliest points to fiber_cut at link-midhaul-site-02; check topology to confirm it sits upstream of the storm. Still to rule out: du_crash_loop, clock_sync_loss. Action: {"tool": "check_topology", "args": {"node": "link-midhaul-site-02"}} Observation: {"node_id": "link-midhaul-site-02", "type": "transport_link", "medium": "fiber", "capacity_gbps": 10, "depends_on": ["gnb-cu-cp-02", "gnb-cu-up-02"], "depended_by": ["gnb-du-site-02"]} Thought: Confirm fiber_cut on link-midhaul-site-02 by checking KPI degradation <unk> fiber_cut expects degraded rrc_setup_success, erab_drop_rate, dl_throughput_mbps; if KPIs are clean, revisit du_crash_loop. Action: {"tool": "get_KPI", "args": {"node": "link-midhaul-site-02"}} Observation: {"node": "link-midhaul-site-02", "kpis": {"rrc_setup_success": {"baseline": 0.99, "observed_mean": 0.4687, "delta_pct": -52.7, "trend": "degraded"}, … Thought: Differential: fiber_cut@link-midhaul-site-02 is the earliest signature. No competing signatures observed. KPI degradation on the suspect element is consistent; remaining candidates lack signature evidence. Action: {"tool": "final_answer", "args": {"hypotheses": […]}} === Final diagnosis (ranked) === 1. fiber_cut @ link-midhaul-site-02 [transport] confidence=0.90 2. du_crash_loop @ link-midhaul-site-02 [configuration] confidence=0.07 3. clock_sync_loss @ link-midhaul-site-02 [transport] confidence=0.05 Ground truth: fiber_cut @ link-midhaul-site-02 [transport]
Real output of python demo.py on CPU, on scenario scn-0100, which played no part in choosing the checkpoint. Observations and the final answer are shortened. The model thinks and acts in English, the format it was trained on, and the <unk> in the third thought is an em dash the tokenizer does not know. Decoding is sampled (temperature 0.3), so on another machine the path may differ.

What it is

A diagnosis agent for network operations. When dozens of alarms fire at once in a 5G network, it investigates the way an on-call engineer would: it queries the alarms, checks the KPIs, looks at the topology and names the fault that caused the storm and the network element where it happened. Every step is decided by a Mixture-of-Experts language model with 128 million parameters, 33.8 million of which work on each token.

Everything was built from scratch: the 32k-token BPE tokenizer, the architecture, the training and the 5G network simulator it learned in and was evaluated on. There is no third-party base model and no LLM framework; the dependencies are PyTorch, tokenizers, safetensors and networkx.

How the agent investigates

The agent follows the ReAct pattern: on each turn the model writes a thought (Thought:) and an action in JSON (Action:). The simulator runs the action and returns an observation, which goes into the context of the next turn. There are at most 12 turns, and the episode ends when the model calls final_answer with up to three ranked hypotheses: fault, element, category and confidence.

ToolWhat it returns
query_alarmsalarms filtered by element, type, severity and time
get_KPIan element's KPIs against their baseline
check_topologywhat the element depends on and what depends on it
lookup_3gpp_speca short summary of a 3GPP or O-RAN specification
final_answerends the episode with the ranked hypotheses

The 10 simulated faults: fiber cut, handover failure, coverage drop, RIC xApp conflict, AMF overload, cell misconfiguration, clock sync loss, DU crash loop, slice misconfiguration and external interference.

Architecture

Embedding (32,000 BPE tokens, 256 dim)
  └─ 18 transformer blocks
       RMSNorm → causal GQA attention (4 heads, 2 KV, RoPE)
       RMSNorm → SwiGLU FFN
         blocks 0, 2, 4 … 16 and 17: MoE, 14 experts, top-2
         the other 8: dense
  └─ RMSNorm → LM head (weights shared with the embedding)
context: 3,072 tokens

Results — 200 test scenarios

SetRight faultFault and element
Scenarios 100–199, never used for selection97.0%77.0%
All 200 scenarios95.5%74.0%
Scripted teacher (the rules it imitates), 20096.0%88.0%
Qwen2.5-3B-Instruct, untuned, scenarios 0–390%0%

How to read it: “right fault” (FLA@1) only counts the fault type; “fault and element” also requires the right network element. The test scenarios were generated with different seeds from the training ones, but by the same simulator: they are new samples of the same network, not a different network. Scenarios 0–39 helped pick the checkpoint, so the clean number is the one for scenarios 100–199. On the fault type the model ties the teacher; on the exact element it trails by 14 points, almost always by swapping a cell for its neighbour on the same site. Qwen2.5-3B — generic, 4-bit and untuned — finished no episode at all: the protocol is not trivial, but this does not compare RCA-1 with a tuned LLM.

Running the published repository on scenarios 100–199, on the same GPU and with the same seed, reproduces the 100 evaluation trajectories byte for byte. Each episode takes about 30 seconds, on an RTX 3060 or on a desktop CPU.

Training

StageWhat happened
Start53M parameters from random initialization — no base model
First tuning500 teacher episodes, 15 epochs
Growth53M → 93M → 128M, copying already-trained blocks and experts
Final tuning2,000 episodes (4.4M tokens, 1M supervised), 3 epochs
Lossonly on the Thought: and Action: spans
OptimizerAdamW, lr 1e-4, effective batch 32, bf16
GPUNVIDIA RTX 3060 (12 GB)

The teacher: a set of rules that reads the simulator's evidence straight from the source and narrates a differential diagnosis — why the winning fault won and why the runner-up was ruled out. The model only sees what the tools return and learned to imitate that reasoning, so the teacher is its ceiling.

How to run it

git clone https://huggingface.co/delvek/versalit-rca-1
cd versalit-rca-1
pip install -r requirements.txt
python demo.py                   # one episode, turn by turn (CPU)
python eval.py --policy teacher  # the teacher, in seconds
# the 100 clean scenarios (~50 min on an RTX 3060):
python eval.py --start 100 --limit 100

Honest limitations

  • Simulation only: training and test come from the same simulator, with the same 6-site 5G topology and the same 10 faults. Only the seed changes.
  • No transfer to real data: on real diagnosis questions (TeleLogs) the model produces degenerate text, and a separate version tuned on that data scored 3.3%, below chance.
  • It only works inside its own Thought:/Action: script. It is not a chat or free-text model.
  • Its ceiling is the rule-based teacher, and the exact element (74% to 77%) is its weak spot.
  • It is research on small agents trained from scratch: do not use it to operate a real network.