Kirb-Scribe
A mini-LLM for filling out legal and insurance forms on-device
2 min readupdated
Kirb-Scribe is a compact 0.16B parameter language model prototype designed to extract data from specialist notes and fill out standard intake form fields (claim type, date of event, parties, policy or case number, jurisdiction, requested outcome). Created by the sai-org team based on Kirb_Speck (a fine-tune of SmolLM-135M), the model uses a gradient-free rank-1 modification (modifying weights without backpropagation and training data) targeting only the lm_head.weight output layer. Unlike the base version, it fills domain-specific templates more accurately while maintaining general language performance. The solution is designed to run locally on a laptop or tablet to protect client data privacy.
Key features
- Ultracompact size: Just 0.16B parameters, designed to run locally on a laptop or tablet without sending data to the cloud.
- Training-free modification: Uses rank-1 adjustment of the output head (
lm_head.weight) without gradients or labeled user data; transformer layers and embeddings remain unchanged. - Gains on domain-specific benchmarks: On a preliminary test of 30 legal and insurance tasks, accuracy increased from 36.7% to 53.3%.
- Clear task boundaries: Functions strictly as a data-entry assistant — it does not provide legal advice, forecast case outcomes, or draft legal arguments.
What you can do
- Auto-fill intake cards: Extract key case or insurance claim details from operator text notes to auto-populate form fields.
- Local processing pipeline: Integrate into an offline tool on a work tablet or laptop so confidential applicant information never leaves the device.
- Experiment with gradient-free edits: Use as an example of targeted
lm_head.weightadaptation on top of compact models in theSmolLMfamily.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "sai-org/Kirb-Scribe"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)Read more
DetailsPreliminary legal/insurance cloze (30 examples): 53.3% (16/30) vs. 36.7% (11/30) for Kirb_Speck.
General cloze test (54 examples): 70.4% (vs. 72.2% for base), general sentence perplexity — 58.0 (vs. 58.1 for base).
Limitations: The model is a prototype and not production-ready; the 53.3% score may be inflated as modification hyperparameters were tuned on the same small synthetic set.
License: Apache License 2.0 (inherited from Kirb_Speck and SmolLM-135M).










Comments