Study Notes / 2026 ・ No.04
Laya Field Notes
What it means to own the decision model
Published
The questions this note answers
Q2 in short: building the base is quick. Making it useful is not.
Three days after Jev, the subject of the last note,
an open-source decision model called Laya appeared.
Here is the history, the training, and the question of where to run it.
An open version, three days later
Laya is a decision model published by ConvAI Innovations under Apache 2.0. Like Jev it writes nothing and answers yes/no, choice and score questions with probabilities. The difference is that the weights are handed out: it runs on your hardware and can be retrained on your data.
| Checkpoint | Base | Params | Context | Notes |
|---|---|---|---|---|
| laya | ModernBERT-large | 421M | 512 | English |
| laya-multilingual | mmBERT-base | 322M | 1024 | 100+ languages, about 2× faster |
| laya-typed-decisions | ModernBERT-large | 421M | 1024 | further trained for business decisions |
As covered in No.03, Jev is an API at $0.042 per million input tokens. Laya has no bill attached, and in exchange you carry the GPU, the operations and the training itself. Same category of model; entirely different thing to take on.
Who was first — the answer to Q1
Nandakishor M, CEO of ConvAI Innovations, claims he was working on this a year and a half earlier. Start with the facts.
both papers are real, and both predate the release of Jev
| Date | What |
|---|---|
| 2025.03 | arXiv:2503.23303, “SalesRLAgent” — an RL model that emits the probability of closing a sale in real time as a probability, not as prose |
| 2025.09 | arXiv:2510.01237, “Confidence-Aware Routing” — look at confidence before generating, and route to local generation, retrieval, a larger model or a human |
| 2026.09.15 | TypeSafe AI releases Jev |
| 2026.09.18 | ConvAI Innovations releases Laya |
So both “return a probability rather than prose” and “branch on confidence” were published by the same person more than a year before Jev shipped. The components of what No.03 called the smart if statement were out in the open first.
Whether that amounts to having proposed this class of model first is a separate question. One paper is about sales conversion, the other about routing before generation; neither is the typed-decision framework itself. And Laya’s own model page was created after Jev launched.
The System 1 / System 2 split comes from cognitive science and belongs to neither party. Two people arriving at the same idea at the same time is unremarkable in this field. That prior work exists and that copying occurred are different claims, and the second is an accusation rather than an established fact. TypeSafe has not responded publicly.
What is genuinely interesting about the episode: the open side published papers, weights and training data. Because it can be checked, the chapters below can actually check it.
How it is trained — the first half of Q2
Three things to hold onto: the base, the trick, and the reward.
1. The base — not built from scratch
Laya starts from existing open encoders such as ModernBERT-large. And not the GPT line from No.01 that writes left to right, but the BERT line: a bidirectional encoder that sees both sides at once. If you never have to write, you do not need the machinery for writing.
2. The trick — one hole per option
each hole collects how well its own option fits
Lay out the state and the question, then place one [MASK] for each option. A bidirectional encoder gathers, at each hole, how plausible that option is — so one forward pass answers several questions at once. That is where the speed comes from. The word-by-word loop of No.01, chapter I simply does not exist here.
3. The reward — points for honest probabilities
Training uses RLCD, reinforcement learning for calibrated decisions. It scores not only whether the answer was right but whether the probability was honest, using a combination of the log score, the spherical score and the ranked probability score — all scoring rules with the same property: inflating or deflating your confidence costs you.
To get “when it says 0.9 it is right nine times in ten”, looking at correctness alone is not enough. The declaration of confidence has to be scored too. That is nearly the whole difference between training a decision model and training an ordinary classifier.
The published training run: 7,313 updates, one epoch, about 1.96 hours. It looks like a typo and it is not — because the base already existed.
Was it really easy — the second half of Q2
Up to the base, yes: roughly two hours of further training on an existing encoder and it takes shape. But what comes out is not a decision engine as it stands.
what was published stops at the third box. The fourth is yours
The raw model is worse than always answering the majority
The model card puts the raw checkpoint at 0.362. The majority baseline on the same evaluation — answer the most common label every time — is 0.461. Thinking about it at all makes things worse. The authors say so themselves: Laya is a fast base to specialise, not a zero-shot decision engine.
Confidence is the same story. Expected calibration error at ship is 0.466, which is barely a probability at all. Refitting the temperature brings it to 0.081 — and that work belongs to whoever adopts it.
The frightening part is that confidence does not tell you when it cannot read the input. Feeding Khmer to the English checkpoint measured 0.000 accuracy at 0.952 mean confidence. Across a 51-language sweep, mean confidence never drops below 0.885. The less it understands, the more certain it sounds, so routing by language and domain has to happen in code before the forward pass.
What the adopter takes on
- Assemble thousands of labelled examples — by far the heaviest step
- Fine-tune with the vendor’s notebook — two free GPUs, about four hours
- Refit the temperature — one per question type and option count
- Design so that options stay under twenty; accuracy falls visibly beyond that
- Put a router in front to pick the checkpoint by language and script
In other words, what appeared in three days was a base, not a decision engine. Building the model did get lighter; the weight did not vanish, it moved to the data and the calibration.
Who measured the numbers
The most instructive part of this episode: the same model’s numbers become different numbers depending on who published them.
| Source | typed-decisions accuracy | ECE | Latency |
|---|---|---|---|
| Laya’s own site | Laya 0.766 / Jev 0.727 | Laya 0.081 / Jev 0.246 | Laya 32.8ms / Jev 236–276ms |
| Laya’s model card | raw 0.362 (majority 0.461) | 0.466 at ship | 38.4ms in the README |
| Third-party comparison | with 77 options: Laya 0.425 / Jev 0.870 | Jev 0.144 / Laya 0.213 | about 7ms per question when batched |
The ECE ordering reverses depending on the source. So does accuracy, once a task has 77 options. The last note said Jev’s “193.6× faster” was vendor-run; the open-source side’s numbers are self-reported in exactly the same way.
When deciding, read the model card’s numbers, not the launch post’s — the latter are measured under conditions chosen to flatter. Then measure on your own data. In this field there is no other way to know.
Should it run locally — the answer to Q3
“It is small, so run it locally” is tempting, but the criteria are more concrete than that. Cost first.
the lines cross around 52.6 million decisions a month — roughly 20 a second
One worked estimate, assuming 800 tokens per decision, a single T4 in the Tokyo region and 0.2 FTE of operations, puts the break-even at 52.6 million decisions a month. Below that the API is cheaper. Routing support tickets will not get anywhere near it.
But cost is only one axis. With Laya you cannot use it at all without fine-tuning on your own data. It is designed around you holding the weights, so the decision turns less on arithmetic than on whether you have the capacity to raise it.
When local wins
- The data cannot leave — health, finance, government. This one is independent of volume
- It has to work offline — download the weights once and no connection is needed
- You want a lower latency floor — one network round trip disappears
- The same judgement repeats at scale — fraud checks on every transaction, continuous UGC moderation
- You already hold labelled data — the material for fine-tuning is there, which is what makes ownership worthwhile
How fast it actually runs on a laptop
The Core ML build on an M3 Max Neural Engine measures P50 of 4.98ms at 0.154 joules per decision. Against the MLX build on the same machine that is 1.39× the speed but 2.78× the energy efficiency. For continuous judgement on a battery-powered device, the second number matters more.
The Neural Engine build caps at 96 tokens in total, so the state has to be designed to fit. There is also an ONNX Runtime implementation callable from Node.js; the range of places to put this is widening.
So what to do
The fourth is the realistic one. Build it on the API and the logs become the labels for fine-tuning. The order makes sense on its own.
§ One page summary
- Laya is an Apache 2.0 decision model, out three days after Jev. The difference is that the weights are yours.
- Q1: the prior work is real and predates Jev. But it falls short of proposing the framework itself, and copying is an accusation, not an established fact.
- The speed comes from a hole per option, filled by a bidirectional encoder in one pass.
- The heart of the training is scoring honest probabilities (log, spherical and ranked probability scores).
- Q2: the base takes about two hours. But the raw model is below the majority baseline — the weight moved to data and calibration.
- Numbers reverse depending on the source. Read the model card, then measure on your own data.
- Q3: local is decided not by size but by whether data may leave, the volume, and the capacity to raise it. If unsure, build on the API and bring it home later.
References
- Laya — official site (checkpoints and benchmarks)
- arXiv:2503.23303 — SalesRLAgent (March 2025)
- arXiv:2510.01237 — Confidence-Aware Routing (September 2025)
- Qiita — testing Laya zero-shot (Japanese)
- Zenn — reconciling Laya’s numbers across three primary sources (Japanese)
- DEV — Jev vs Laya: The Same AI Idea, One Closed and One Open
- Flowtivity — Laya benchmarked honestly
- Laya-CoreML measured on the Apple Neural Engine (Japanese)
- note — buy or host, a break-even estimate (Japanese)
Laya Field Notes — six chapters / 2026.09