Skip to content

Sarvam Prism: a block-masked System One model on Sarvam 105B

Decisions stage 2 #7corefrontiertoolrubric 9/122026 · ~60 min

Sarvam AI

Read first: Introducing System One Models and Jev · On Calibration of Modern Neural Networks

Status

TL;DR. Sarvam Prism (Sarvam AI, Nov 3 2026) is a System One decision model: a LoRA fine-tune of Sarvam’s 105B mixture-of-experts model (the blog calls the base “Sarvam 105B-10B”, with 128 routed experts per layer) that answers yes/no (noul in the hosted API; yes_no in the released prism.py loader), choice and score questions with one probability per option, in a single forward pass and without generating text. Two design choices set it apart. First, a block attention mask lets each option see the state and question but never another option. Second, the options are sorted into a fixed order before scoring, so shuffling them changes nothing. Sarvam trains it with label-smoothed cross-entropy plus a Brier loss and reports that it makes fewer mistakes than its confidence predicts, in English and in 10 Indian languages plus Hinglish. Weights are open (Apache 2.0); the hosted API charges ₹4 per million input tokens, with output free.

Why it matters now. Prism is the second open-weight decision model on this site, after Perplexity Decider, whose readout and attention mask are fully documented. It takes the opposite position on the question Decider’s cards raised: Decider v1.2 lets questions read each other, while Prism isolates not only questions but also the options within a question. For an IR reader this is the pointwise vs listwise trade-off again. The backbone encodes each option like a candidate in a cross-encoder, in isolation; a small decision head then mixes all option-end states and the answer state through unmasked self-attention, so the final scores are listwise. It is also a decision model whose vendor reports calibration separately for English and Indian-language benchmarks; in Sarvam’s table, the other models it tested are over-confident in Indian languages.

Interface. A request has a state (text or JSON) and a map of typed questions. choice takes 2–255 options, each described by the condition under which it applies; score takes 2–10 ordered levels; noul takes optional true/false criteria. Each question’s probabilities are a softmax over that question’s options only. Questions are scored independently of each other; the open-weights code batches them (16 at a time by default).

One sequence per question, one mask. The model card says each question becomes one sequence: state, instructions, every option, then an answer marker. Write BB for the state+question block, O1,…,OKO_1, \dots, O_K for the option spans and aa for the answer token. The mask is

reader \ visibleBBown option OkO_kother options Oj≠kO_{j \ne k}aa
BB (both directions)yesnonono
OkO_kyesyesnono
aayesyesyesyes

and every option starts at the same position, ∣B∣|B|, as if each were the only continuation of the block. A small decision head then takes the hidden state at the end of each option, hkh_k, and at the last answer token, hah_a. In the released prism.py (DecisionHead), it prepends a learned question-type embedding etypee_{\text{type}}, runs two unmasked self-attention blocks over the whole set, and scores each contextualised option state against the contextualised answer state:

z=Head([etype,h1,…,hK,ha]),sk=po(zk)⊤pd(za)dh,p(k∣state,q)=exp⁡sk∑j=1Kexp⁡sj,z = \mathrm{Head}([e_{\text{type}}, h_1, \dots, h_K, h_a]), \qquad s_k = \frac{\mathrm{po}(z_k)^\top \mathrm{pd}(z_a)}{\sqrt{d_h}}, \qquad p(k \mid \text{state}, q) = \frac{\exp s_k}{\sum_{j=1}^{K} \exp s_j},

with po,pd\mathrm{po}, \mathrm{pd} linear projections to dh=512d_h = 512. The head has no position embeddings.

backbone (block mask, per question) decision head (unmasked)
B = state + question ──┐ [e_type, h_1, …, h_K, h_a]
O_1 sees B, O_1 → h_1 │ │ 2 self-attn blocks,
O_2 sees B, O_2 → h_2 ├──────────────► │ every row sees every row
… │ ▼
O_K sees B, O_K → h_K │ z_1 … z_K, z_a
a sees B, O_1..O_K → h_a s_k = po(z_k)·pd(z_a)/sqrt(d_h)

Three consequences follow:

  1. Option encoding is pointwise. hkh_k depends on the block and option kk only. With identical start positions, its rotary positions are the same in any slot, so hkh_k is unchanged by reordering. One option’s wording cannot sway another’s representation, as the docs put it.
  2. Comparison happens after encoding. Inside the backbone, only aa sees all options (the blog says the answer token “is where the options are compared”). The head then lets every option-end state attend to every other and to hah_a, so cross-option interaction is compressed through end-state summaries, not restricted to one token.
  3. The state is re-encoded for every question. Because BB is bidirectional, the state’s tokens attend to the question’s tokens, so the state cannot be cached once and shared across questions. The API still bills the state once per request; the docs add that time “grows with the number of questions and the size of the state”.

Reading BB in both directions instead of left to right is worth about +3 points on the Jev Decision Index (blog). Note the comparison: it is block-bidirectional vs block-causal, not vs a plain causal LM.

Fixed option order. The segment embeddings encode four shared roles (state, question, option, answer), not option slots, and the head has no slot-position embeddings, so the documented architecture is permutation-equivariant in exact arithmetic. Yet, read in the order sent, Prism still changed 4.0% of 2,000 answers when options were shuffled. The source does not identify the cause of this measured flip rate. The fix is a canonical order: choice options are sorted by key before scoring and probabilities are returned under the caller’s keys. The flip rate then drops to 0 of 2,000. Canonicalisation removes caller-order variation; renaming keys is a separate intervention, because keys are also included in the option text. For score questions, order defines the scale and is kept.

Objective. Two equally weighted terms over the option distribution pp with gold one-hot yy:

L=−∑ky~klog⁡pk  +  ∑k(pk−yk)2,y~=(1−ε) y+εK,  ε=0.05.\mathcal{L} = -\sum_{k} \tilde y_k \log p_k \; + \; \sum_k (p_k - y_k)^2, \qquad \tilde y = (1-\varepsilon)\,y + \tfrac{\varepsilon}{K},\; \varepsilon = 0.05 .

The smoothing form shown is the standard one; the blog states only “5% label smoothing”. Smoothing “discourages complete certainty”; Brier “makes confident mistakes costly”. With K=2K = 2 the smoothed target for the gold answer is 0.975. Under the stated toy loss and a deterministic binary example, the optimum is approximately 0.977 (our calculation). This is neither a hard prediction cap nor a prediction of the empirical confidence distribution. Unsmoothed cross-entropy and Brier are both proper scores whose population optimum is the conditional label distribution, so Brier does not by itself give less extreme probabilities. Cloudflare’s Clef reports the same two-term objective.

Returned statistics. For a choice with nn options the API’s confidence rescales the top probability so that an even split is 0:

conf=ptop−1/n1−1/n,score=∑i=0n−1i pi.\text{conf} = \frac{p_{\text{top}} - 1/n}{1 - 1/n}, \qquad \text{score} = \sum_{i=0}^{n-1} i\, p_i .

The docs’ example: 3 options, ptop=0.80p_{\text{top}} = 0.80, confidence 0.70. Their calibration figures refer to ptopp_{\text{top}}, not to this field, so thresholds should be set on ptopp_{\text{top}}. The score confidence is described only in words (“0 when spread across the scale, 1 on one level”). Both worked examples in the docs (0.916 and 0.36) are reproduced by 1−∑ipi∣i−m∣ / 1n∑i∣i−m∣1 - \sum_i p_i |i - m| \,/\, \tfrac{1}{n}\sum_i |i - m|, with mm the most likely level. That is our reconstruction, not a documented formula. Unlike Jev’s version, it normalises around mm rather than the scale’s midpoint.

Making 105B fast. The blog’s starting point was 664 ms per median request in 16-bit on two B200s. The steps were: FP8 weights (one GPU, Jev index changes by 0.01 points), all 128 experts in one grouped kernel, a CUDA Graph for the forward pass, FP8 conversion folded into the expert kernels, and the LoRA adapter merged into the weights. The mask also helps. The B×BB \times B square is fully bidirectional, so a standard unmasked kernel computes it; only the thin strip of option and answer rows needs a custom mask, which makes attention 2.6× faster on requests over 2,048 tokens. The result is a 44 ms median (664/44 ≈ 15.1×), with a 420 ms p95 on the model card.

All numbers are vendor-run (blog, docs, model card). Sarvam ran 25 decision models through the same three indices and timed every model it could run on one B200 using the developers’ own inference code.

ModelJev Decision IndexAA index (Sarvam’s recreation)Indian languagesAverageMedian ms
mammoth-1 (best average)75.370.280.175.2284
GLiDE 1.272.068.179.473.2116
Sarvam Prism67.065.982.571.844
Perplexity Decider v1.267.761.275.068.0117
Jev 1.1460.761.970.864.5196 (reported)
Clef61.754.871.262.6222
Microsoft-Decision-157.855.670.061.185 (reported)

Prism is the highest average under 100 ms. It is 14th of 25 on the third-party index, 4th on the AA recreation and 2nd on the Indian-language set (KnowLine-35B: 82.6). The AA recreation swaps the private knowledge test for curated hard questions with an “I don’t know” option. Sarvam credits calibration for Prism’s strength there.

Calibration at ≥90% confidence (mistakes as % of confident answers; English: 37 public benchmarks, 226,088 questions; Indian: the same benchmarks in 10 Indian languages and Hinglish, 20,108 questions):

ModelEnglish expected → actualratioIndian expected → actualratio
Sarvam Prism3.3 → 2.20.675.4 → 4.40.81
Clef2.8 → 2.30.823.9 → 15.33.9
Perplexity Decider1.4 → 2.01.43.0 → 8.12.7
Microsoft-Decision-11.7 → 3.11.83.0 → 10.13.4
Jev 1.141.3 → 3.52.73.4 → 16.14.7

The ratios are ours (the blog’s ×1.5 and ×4.8 presumably come from unrounded values). Sarvam says Prism makes fewer mistakes than predicted at every threshold from 50% to 95%. The flip side is coverage: at a 0.9 threshold about 68.5% of English answers but only 38.4% of Indian-language answers clear the bar.

Order and repeatability (2,000 questions, four shuffled runs and four re-sends):

ModelAnswers changed by shufflingby re-sending
Prism, fixed order0.0% (95% interval 0–0.2%)0.0%
Clef0.1%0.0%
Prism, options as sent4.0%0.0%
Microsoft-Decision-14.8%4.8%
Perplexity Decider v1.210.3%0.0%
Jev 1.1412.3%5.6%

Applications. On 700 recorded agent runs (1,770 questions from AgentRewardBench, τ-bench, Who&When and TRAIL), scored against human or environment labels, Prism scores 78.5% overall against 76.4% for Clef and Jev 1.14, 75.7% for Microsoft-Decision-1 and 70.7% for Claude Haiku 5.5. By question type it gets 75.0% on “did the task succeed?”, 86.4% on “needs human review?” and 69.6% on “which agent caused the failure?” (Haiku: 37.0%). Haiku takes a median 2.5 s per run and costs $0.64 per 1,000 runs; Prism scores a run in about half a second. On an internal security benchmark (5,517 questions, nine tasks, including phishing, jailbreak and MITRE classification) Prism scores 89.0% against Clef 84.5%, Jev 1.14 78.6% and Microsoft-Decision-1 76.1%.

  • Every benchmark is vendor-run, and two of three indices are vendor-built. The average leans on the AA recreation and the internal Indian-language set; on the community index, Perplexity Decider v1.2 is slightly ahead. The public Jev Decision Index panel is exposed development data (see decision benchmarks), and Sarvam does not describe Prism’s training data or decontamination.
  • “Calibrated” is defined one-sidedly. The blog’s test is that the error rate is no higher than expected. Prism passes by being under-confident at the top in aggregate, which costs coverage, especially in Indian languages (38.4% at 0.9). A two-sided measure (ECE, reliability bins) is not reported.
  • Latency comparisons mix methods. API-only models are plotted at their reported times; measured from Sarvam’s cluster, Jev 1.14 took 431 ms and Microsoft-Decision-1 533 ms. The medians are for single requests on a B200 and hide a 420 ms p95.
  • Context limits disagree across sources. The API allows 32,768 tokens per question; the blog and model card say 131,072. The blog’s long-trace claim applies to the open weights, not the hosted endpoint.
  • “Reads the trace once” vs one sequence per question. The blog says Prism reads a trace once and scores five questions together. The model card says each question is its own sequence, batched together. The second is what the mask implies.
  • Heavy to self-host. One FP8 GPU with about 120 GB, about 106 GB of weights, and a custom FP8 layout that only prism.py loads; general-purpose inference servers cannot serve it. Probabilities can vary slightly between identical requests, so leave a margin around thresholds.
  • Text only, no streaming. Images are refused.
  • Template and rival: Jev defined the request shape (state, Noul / Choice / Score) and the choice-confidence formula Prism reuses. Jev also isolates questions, but it is closed and admits a first-option bias, which Prism removes by sorting.
  • Opposite design choice: Perplexity Decider v1.2 reads all questions jointly in a noncausal sequence and reads answer codes at a marker. Prism isolates questions and options in the backbone, then mixes option-end states and the answer state in a self-attention head. Both relax causality for the input.
  • Same objective, different results: Cloudflare’s Clef on other decision models uses label-smoothed cross-entropy plus Brier and is near-calibrated in English, but not in Indian languages in Sarvam’s table. The objective alone does not explain Prism’s result.
  • Training-free alternative: LLM-as-Jev reads option-number tokens from any LLM; Prism does not use individual verbalizer-token logits as its readout, although option keys remain in the encoded text. The landscape page compares all of them.
  • Foundations: LMs as classifiers for label readouts; calibration for why under- vs over-confidence matters and why a one-sided test is incomplete.
  • Using it: thresholds and metrics for setting the 0.9 cut on your own labels; decision models as judges and routing and agents for the agent-trace and routing uses Sarvam targets.
  • IR view: per-option isolation is the monoT5 pointwise pattern; Decider’s joint mode is closer to RankGPT. The backbone draws on mixture-of-experts, FP8 and LoRA pages.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Prism's API returns, for a choice with n options, confidence = (p_top − 1/n)/(1 − 1/n), but its calibration claims refer to p_top itself. (a) Compute the confidence for p_top = 0.9 with n = 2, 4 and 10. (b) From the blog's table of mistakes on answers with p_top ≥ 0.9 (expected / actual, English then Indian: Prism 3.3/2.2 and 5.4/4.4; Clef 2.8/2.3 and 3.9/15.3; Jev 1.14 1.3/3.5 and 3.4/16.1), compute actual ÷ expected for each. (c) With 68.5% (English) and 38.4% (Indian) of answers clearing a 0.9 threshold, how many of 10,000 decisions per language are automated, and how many automated errors should you expect?

    What a strong answer covers
    • (a) n = 2: (0.9 − 0.5)/0.5 = 0.80; n = 4: (0.9 − 0.25)/0.75 ≈ 0.867; n = 10: (0.9 − 0.1)/0.9 ≈ 0.889. A fixed cut on the rescaled field is a different operating point for questions with different n, which is why the docs say to threshold p_top.
    • (b) English: Prism 0.67, Clef 0.82, Jev 2.7. Indian: Prism 0.81, Clef 3.9, Jev 4.7 (the blog rounds to ×4.8). Below 1 means fewer mistakes than predicted (under-confident in that band); above 1 means over-confident.
    • "Expected 3.3%" means the mean top probability in the ≥0.9 band is about 0.967; Jev's 1.3% means about 0.987, so Jev's confident answers are more extreme and less reliable.
    • (c) English: 6,850 automated, about 0.022 × 6,850 ≈ 151 errors, 3,150 sent to people. Indian: 3,840 automated, about 0.044 × 3,840 ≈ 169 errors, 6,160 sent to people. Coverage, not only the error rate, sets the human-review cost.
    • These rates are averaged over benchmark questions (226,088 English, 20,108 Indian), not your task; coverage and error at the threshold must be re-measured on labelled in-domain data.
  2. Mechanism

    Separate Prism's block-masked backbone from its unmasked decision head. Which representations remain option-independent, where can options interact, and what makes each stage permutation-equivariant in exact arithmetic? Explain what canonical key sorting guarantees, why renaming keys is a different intervention, and what the published 4.0% unsorted flip rate does and does not establish.

    What a strong answer covers
    • Raw option-end backbone states depend only on the shared state+question block and their own option; shared start positions remove slot-position dependence.
    • The head jointly processes the task-type embedding, all option-end states and the answer state through unmasked self-attention, so the final scores are listwise.
    • The segment embeddings encode four shared roles (state, question, option, answer), not option indices, and the head has no position embeddings; the source does not explain the residual unsorted flip rate.
    • Sorting gives a canonical representation of caller order; changing keys also changes the textual input, because keys are part of the option text.
    • Cross-option interaction is compressed through end-state summaries, not restricted to one answer token.
  3. What if…

    Assume uniform 5% label smoothing and an unnormalized sum-of-squares Brier term. For a deterministic two-option example, locate the optimum of each loss and of their equal-weight sum. Why does this not impose a hard confidence cap or guarantee calibration? Design a same-backbone, same-data ablation, evaluated separately in English and Indian languages.

    What a strong answer covers
    • Smoothed CE alone has optimum p_gold = 0.975; Brier alone has optimum 1; the stated combined toy loss has optimum about 0.977.
    • These are idealized optima, not constraints on a learned model's outputs or evidence about how its confident answers cluster.
    • Both unsmoothed CE and Brier are proper scores whose population optimum is the conditional label distribution; a bounded Brier loss does not by itself require less extreme predictions.
    • Compare CE, smoothed CE, Brier and their combination, each also with temperature scaling, using accuracy, reliability diagrams, errors at the threshold and coverage.
    • Clef's cross-language result shows the objective alone is insufficient; backbone and data remain confounded across vendors.
  4. Critique

    Prism's headline is an average of 71.8 over three indices that Sarvam ran itself: the public panel of the Jev Decision Index (Prism 67.0), a recreation of the Artificial Analysis Decision Index whose private knowledge test was replaced with curated questions that include an "I don't know" option (65.9), and an internal Indian-language benchmark (82.5). In the same table 13 of the 24 other models beat Prism on the Jev index. Identify the main threats to the validity of the average and of the "highest-scoring under 100 ms" claim, and propose checks.

    What a strong answer covers
    • Two of the three indices are Sarvam-built, and they are where Prism ranks best (4th on the AA recreation; 2nd on Indian languages, behind KnowLine-35B at 82.6). On the third-party index it trails Perplexity Decider v1.2 (67.7) and mammoth-1 (75.3). The average rewards the vendor's own benchmark choices.
    • The public Jev Decision Index panel is exposed development data that vendors train on. Sarvam does not describe Prism's training data or any decontamination.
    • Latency: models were timed on Sarvam's B200 with each developer's code, except API-only models plotted at their reported times (Sarvam measured 431 ms for Jev 1.14 and 533 ms for Microsoft-Decision-1). The 100 ms cut excludes mammoth-1 (75.2 at 284 ms) and GLiDE 1.2 (73.2 at 116 ms), and the median hides the 420 ms p95 from the model card.
    • Calibration is defined one-sidedly ("fewer errors than predicted"), so under-confidence counts as success even though it costs coverage (38.4% in Indian languages).
    • Checks: submit to the private Jev Decision Index and the official AA index, publish per-benchmark scores with intervals, release the Indian-language and security sets, and time all models at matched hardware, batch size and input length.
  5. Design

    You want Prism as the judge for a coding-agent platform: 20,000 traces a day, mean trace 18,000 tokens, 5% of traces above 32,768 tokens, five questions per trace (task succeeded, needs human review, looped, caused a side effect, first failing step). The API charges ₹4 per million input tokens and bills the state once per request. Choose hosted API or self-hosted weights, set the threshold and human-fallback policy, and say how you would validate it before trusting the vendor's 78.5% agent-trace accuracy.

    What a strong answer covers
    • Cost: 20,000 × 18,000 (mean) ≈ 360M state tokens a day ≈ ₹1,440. That is the state-token subtotal, excluding question and option text; the state is billed once per request whatever the number of questions, and output tokens are free.
    • Long traces: the API rejects a request with a 422 if any question exceeds 32,768 tokens, answering nothing. The open weights accept 131,072 tokens per question but need an FP8 GPU with about 120 GB. Self-host for the long tail, or split traces and lose the single-pass view.
    • Billing is per request but compute is per question: each question is its own sequence with a bidirectional state block, so five questions are five passes over an 18k-token state. Check the 60-second timeout and latency at that length.
    • Policy: act when p_top ≥ threshold, else route to a person; tune each question's threshold with cross-validation on a few hundred labelled traces to meet a precision floor and report coverage; keep blame-assignment questions advisory (69.6% vendor accuracy on "which agent caused the failure").
    • Validate on your own labelled traces against an LLM-judge baseline (the blog's Claude Haiku 5.5: 70.7%, 2.5 s median, $0.64 per 1,000 runs), check reliability bins, and pin the model version.
  6. Connect

    Compare how Perplexity Decider v1.2 and Sarvam Prism turn hidden states into option probabilities. v1.2 puts all questions in one sequence with noncausal full attention and applies a 255-row head over answer codes at a marker after each question. Prism runs one sequence per question, isolates options from each other, and reads the end of each option plus an answer token. When does each behave like a pointwise cross-encoder, and on which of Perplexity's grouping tasks would you expect each to win?

    What a strong answer covers
    • Decider shows options under single-token codes A, B, …, and the head scores the codes at the marker; option content reaches the readout only through attention. In v1.2 questions also see each other.
    • Prism combines pointwise backbone option encoding (each option against the shared state+question block, monoT5-style) with a listwise self-attention head over option-end and answer states. Separate questions remain independent.
    • Both drop strict causality to read the input in both directions: Decider in its full-attention layers, Prism inside the state+question block (about +3 points).
    • Decider grouping helps facet tasks (SATA +11.3, ACOS +7.8) and hurts candidate tasks (ToolRet −4.8, BRIGHT −2.9). Prism lacks cross-question interaction, but this does not determine its performance relative to Decider. Test independent-candidate and jointly dependent-facet tasks separately.
    • Order: Decider changed 10.3% of answers under shuffling, plausibly because answers are tied to slot letters; Prism's isolated options plus key sorting reach 0.0%.

Done with this page?

Status