Laya the open source version of Jev
Recorded: Sept. 19, 2026, 12:09 p.m.
| Original | Summarized |
Laya — 33ms Multilingual System 1 Decision Engine with Calibrated ProbabilitiesLaya ResearchGitHubpip install layaLive Space DemoResearch & Engineering·Updated September 2026I Built Non-Autoregressive Decision Models with RL a Year Ago. Then a Frontier Lab Called It a "Breakthrough".From our March 2025 arXiv paper on sequence conversion trajectories to Laya: a sub-35ms open-weight System 1 decision engine with RLCD, multilingual routing across 100+ languages, and state-of-the-art calibration.Nandakishor Mukkunnoth·Founder & CEO, ConvAI Innovations·12 min readFigure 1: Full benchmark board — accuracy on shared datasets, 9 application workflows, 51-language sweep, T4 latency, and calibration repair.Everyone in AI right now is talking about a new kind of model: an architecture that is not autoregressive, does not generate text, and gives lightning-fast probability predictions over structured schemas.Seeing the hype online feels both validating and deeply frustrating.I worked on this literally one year back in March 2025. I spent months of hard work, sweat, and sleepless nights building it, published an arXiv paper (arXiv:2503.23303), released the model weights on Hugging Face (sales-conversion-model-reinf-learning), published the open dataset (saas-sales-conversations), built a PyPI package, and posted the whole approach on Reddit (r/LocalLLaMA discussion).Then in September 2025, I published a second paper (arXiv:2510.01237), formalizing the framework for schema-based decisions guided by reinforcement learning. The guiding brain in my system was always reinforcement learning, not just an embedding model or an autoregressive LLM.And then in September 2026, a well-funded frontier lab called TypeSafe AI (founded by Diogo Almeida, a co-inventor of ChatGPT at OpenAI) launched Jev. They proposed the exact same non-autoregressive decision concept as if it was a brand-new scientific breakthrough. Except they launched without technical papers, without open weights, and with zero open training datasets.My earlier model used PPO over sequence representations to output turn-by-turn conversion trajectories (probabilities from 0.0 to 1.0) in vertical sales conversations. Jev generalized parallel sampling using what they called RLCD (Reinforcement Learning for Calibrated Decisions) to output confidence distributions and schema choices horizontally, charging $0.042 per million input tokens with typical response times around 150 ms.Instead of staying bitter, I decided to take everything I learned, fix every architectural limitation of the old approach, and build a completely open, horizontal System 1 decision model family: Laya.And because we built it properly on bidirectional encoders, our models run in 32.8 milliseconds on a single GPU (7.2 ms/question batched), making it 6 to 8 times faster than Jev, with full support for over 100 languages, zero API subscription costs, and 100% open-source Apache 2.0 weights.1. The Core Realization: System 1 vs System 2Every modern AI pipeline has a giant bottleneck: we use generative LLMs for simple reflex decisions.When a customer support ticket arrives, or an email hits your inbox, or a user submits a prompt to your API, you usually only need to answer simple, structured questions:Which department should this ticket route to?Is this incoming email a phishing attack or spam?Is this prompt trying to jailbreak or inject instructions?How urgent is this issue on an ordinal rubric (0 to 3)?Does this query require code execution or a simple factual reply?Calling an 8B, 70B, or frontier generative LLM for this is complete overkill. You wait 500 ms to 2,000 ms for tokens to stream out, spend real money on inference, and then have to write regex or JSON parsers to extract a clean label from free-form text. Worst of all, LLMs love to hallucinate and generate fake confidence. When an LLM outputs "confidence: 0.95", it is just predicting tokens that sound confident. There is zero mathematical calibration behind it.We needed a model that works like the human brain's System 1: instant reflex decisions with honest, calibrated probabilities, taking only 30 to 35 milliseconds on standard commodity hardware.2. The Three Decision PrimitivesLaya evaluates typed questions over any state (raw text, email, ticket, or JSON document) in a single forward pass. It relies on three primitives:choice: Pick one option from a dictionary of criteria. Returns the selected key, probability distribution across all options, and a calibrated confidence score.score: Place the state on an ordinal rubric (levels 0, 1, 2, ...). Returns the expected level, the distribution over rubric ranks, and confidence.noul: A direct boolean question returning calibrated probability P(true) from 0.0 to 1.0 (with P(false) = 1 - P(true) by construction).Because the output space consists purely of probabilities and numbers, the model never generates text, cannot hallucinate, and schema violations or malformed JSON are physically impossible.3. The Three Checkpoints & Bundled Hub ArchitectureOne model cannot be optimal for every task and language. We released three specialized checkpoints, now consolidated under a single repository hub on Hugging Face:CheckpointBackbone EncoderParamsContextPrimary Strengthconvaiinnovations/layaModernBERT-large421M512English text classification, guardrails, email triageconvaiinnovations/laya-multilingualmmBERT-base (256k vocab)322M1024 (up to 8k)100+ languages, 2.2x faster, cross-lingual NLIconvaiinnovations/laya-typed-decisionsModernBERT-large421M1024Agent observability, customer service, invoice processing, security alerts (0.766 acc)Selective Subfolder DownloadsRather than forcing users to manage three separate repositories or download 2.5 GB of combined weights, the main repository convaiinnovations/laya bundles all three. Using Hugging Face's allow_patterns, Laya's SDK downloads only the specific subfolder requested:# Downloads English model (~808 MB) # Downloads ONLY the multilingual subfolder (~647 MB), not the entire 2.5 GB bundle # Preload checkpoints into memory for instant sub-35ms routing # English -> automatically routed to ModernBERT-large # Hindi -> automatically routed to mmBERT-base (100+ languages) # Explicit override when you already know the domain # Initialize router with preloading (avoids swap delay) # Define complex state # Define multiple questions of different primitives # Single forward pass: evaluates all questions simultaneously print("Routing Decision :", res["routing"]["model"]) print("Assigned Queue :", res["answers"]["queue"]["choice"]) print("Urgency Score :", res["answers"]["urgency"]["score"]) print("Churn Risk :", f"{res['answers']['churn_risk']['noul']:.1%}") |
Laya is presented as a sub-35 millisecond, multilingual System 1 decision engine characterized by calibrated probabilities, developed by Nandakishor Mukkunnoth. The foundational motivation stems from the realization that current AI pipelines rely on slow, hallucination-prone generative large language models for simple, structured reflex decisions, such as routing or triage. Laya aims to address this bottleneck by creating an architecture that mimics human System 1 processing, delivering instant decisions with mathematically grounded confidence scores rather than unreliable text generation. The core methodology involves defining three decision primitives: choice, score, and noul. The choice primitive selects an option from a set, returning the selected key, the probability distribution across options, and a calibrated confidence score. The score primitive places a state onto an ordinal rubric, returning the expected level and the distribution across rubric ranks. The noul primitive answers direct boolean questions by providing a calibrated probability P(true) between 0.0 and 1.0. By restricting the output space purely to probabilities and numbers, Laya fundamentally eliminates the possibility of text hallucination or schema violations. To manage complexity and specialized tasks, Laya utilizes a bundled hub architecture consisting of three specialized checkpoints—Backbone Encoder, Multilingual, and Typed Decisions—which are consolidated on the Hugging Face repository. This structure allows for flexible deployment, enabling users to download only the specific component required, such as the multilingual checkpoint, facilitating efficiency over downloading monolithic weights. A critical feature of Laya is its ability to handle multilingual inputs via an integrated Router. This router inspects the Unicode scripts of incoming text and analyzes stopword distributions to automatically route the request to the most appropriate specialized model, such as ModernBERT-large for English text or mmBERT-base for multilingual processing. This routing process incurs negligible overhead, typically under two percent of the total latency. Furthermore, the system addresses the limitations of language-specific models by recognizing that confidence gating is ineffective when a model cannot process a script; the router ensures the correct domain-specific decision model is invoked before processing. When compared to competing systems like TypeSafe Jev, Laya demonstrates superior performance and efficiency. Laya executes decisions in as little as 32.8 milliseconds, offering up to seven times faster execution than Jev, particularly in batched scenarios, and supports over 100 languages. Benchmarks indicate that Laya achieves higher accuracy on defined enterprise workflows, such as email spam filtering and phishing detection, while significantly reducing calibration error and providing measurably better probability calibration. Despite its advancements, Laya acknowledges inherent limitations. Stress testing revealed that the choice primitive degrades significantly when dealing with a large number of options, suggesting that constraints on option space, such as limiting choices to twenty or using a coarse-to-fine hierarchy, are necessary for optimal performance. Additionally, out-of-the-box performance on typed-decisions benchmarks requires fine-tuning to achieve top-tier results. The framework also notes that base weights contain raw temperature logits, suggesting that domain-specific adjustment of temperature can effectively reduce expected calibration error. Laya is released as 100% open-source under the Apache 2.0 license, offering self-hostable and air-gapped deployment capabilities. |