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.
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.
| Tool | What it returns |
|---|---|
query_alarms | alarms filtered by element, type, severity and time |
get_KPI | an element's KPIs against their baseline |
check_topology | what the element depends on and what depends on it |
lookup_3gpp_spec | a short summary of a 3GPP or O-RAN specification |
final_answer | ends 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
| Set | Right fault | Fault and element |
|---|---|---|
| Scenarios 100–199, never used for selection | 97.0% | 77.0% |
| All 200 scenarios | 95.5% | 74.0% |
| Scripted teacher (the rules it imitates), 200 | 96.0% | 88.0% |
| Qwen2.5-3B-Instruct, untuned, scenarios 0–39 | 0% | 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
| Stage | What happened |
|---|---|
| Start | 53M parameters from random initialization — no base model |
| First tuning | 500 teacher episodes, 15 epochs |
| Growth | 53M → 93M → 128M, copying already-trained blocks and experts |
| Final tuning | 2,000 episodes (4.4M tokens, 1M supervised), 3 epochs |
| Loss | only on the Thought: and Action: spans |
| Optimizer | AdamW, lr 1e-4, effective batch 32, bf16 |
| GPU | NVIDIA 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.