Glossary
Non-autoregressive model
A non-autoregressive model produces its whole answer in one step, instead of writing it out word by word the way a chatbot does, which makes it much faster.
Swiss-hosted inference. Nothing you send is ever stored. Swiss data residency
Definition
What Non-autoregressive model means
A non-autoregressive model computes its entire output in a single pass (or a fixed number of passes) rather than emitting one token at a time with each step conditioned on the last. The term comes from machine translation, where non-autoregressive decoders were proposed to escape the sequential bottleneck of autoregressive generation. In classification the idea is older and simpler: an encoder reads the input once and a head produces scores for every label at the same time.
The trade-off is expressiveness for speed and structure. A non-autoregressive model cannot write free-form text, reason step by step, or invent an answer outside its output space. In exchange its latency does not grow with output length, its output is always well-formed, and every probability comes from one forward computation rather than a product of sampled tokens.
Laya as a non-autoregressive decision model
Laya never generates text. Each call packs every question you send into one batch and runs a single forward pass through the encoder and decision head. Every option gets a logit at its option marker, and the answer is read directly from the resulting distribution. The response reports output_tokens: 0, which is literally true.
Consequences you can rely on:
- Latency is flat in answer length. One question takes 39.5 ms on the English checkpoint and 32.8 ms on the multilingual one (T4 GPU, per the model card).
- The answer is always one of your options. There is nothing to parse and nothing to hallucinate in the sense of an unrequested label or malformed JSON.
- It cannot think longer on hard inputs. That is a System 2 job.
Related terms
How Non-autoregressive model connects to the rest of the vocabulary.
Go deeper
- ExplainerNon-autoregressive models: how AI can decide in a single passWhat non-autoregressive models are and why they answer in one pass instead of token by token: how they work, how fast they are, and where they fall short.
- ExplainerHallucination-free decisions: what a non-generative model rules outCan an AI classifier hallucinate? What a non-generative model like Laya rules out (invented labels, fake fields, unparseable text) and what it can get wrong.
Get started
Try it on your own text
Send any text with your own typed questions and get a calibrated probability for every answer. 6k free tokens, no card needed; then $0.0357 per 1M input tokens — 15% below Jev.
Swiss-hosted inference. Nothing you send is ever stored.