Samskritam benchmark v1 · preview

Whole verses, from texts models haven't memorised.

v0's questions turned out too easy for today's models: one word or one form at a time, from texts they can recite. v1 asks for whole verses from texts they can't recite (we tested), plus verb forms that rarely occur in any text. Every answer key still comes from the corpus and from Pāṇini's rules, never from a model.

Results

How today's models do

Preview results. The test questions are private, so these scores can't be trained on; the answer keys are being reviewed question by question, and scores are updated as keys are corrected.

98% or more 90–98% 75–90% below 75% · Hover a score for its margin.

Choosing the texts

What models can recite

We gave each model the first half of 30 verses from each of 23 texts and asked for the second half. A model that returns it almost word for word has memorised the text, and questions from that text would test memory more than Sanskrit. v1 uses only texts the strongest model recited 10% of the time or less.

Share of verses whose second half was reproduced near-verbatim (character similarity of 0.9 or more). Grey rows are well-known texts tested for comparison; v1 marks the texts v1 uses.

The four tasks

What the model is asked

The examples below use well-known verses so the private questions stay private. A verse counts only if every part of the answer is right.

Padapāṭha

Undo all the sandhi of a verse: every word in its stand-alone form, in order. Compounds may be written whole or with hyphens.

Example

dharmakṣetre kurukṣetre samavetā yuyutsavaḥ

dharma-kṣetre kuru-kṣetre samavetāḥ yuyutsavaḥ

Parse

The lemma and grammar, in context, of every inflected word of a verse. One wrong word fails the verse.

Example

māmakāḥ pāṇḍavāś caiva kim akurvata sañjaya: akurvata

kṛ · imperfect · 3rd plural · ātmanepada

Scan

Mark every syllable of a verse heavy or light, and name the meter: anuṣṭubh, mandākrāntā, śikhariṇī, vasantatilakā and others.

Example

kaścit kāntāvirahaguruṇā svādhikārāt pramattaḥ

GGGG LLLLLG GLGGLGG · mandākrāntā

Generate

Produce a verb form that rarely occurs in texts: desideratives, causatives and intensives, the precative, conditional and periphrastic future, the passive.

Example

The desiderative of √gam, laṭ, 3rd singular, active.

jigamiṣati
Method

Where the questions and answers come from

  • Texts from the Digital Corpus of Sanskrit, chosen by the recitation test above: .
  • Padapāṭha keys are the corpus's word split, kept only where Vidyut's sandhi rules rebuild exactly the printed verse from it.
  • Parse keys are the corpus's annotation, kept only where Vidyut confirms every word and the split rebuilds the verse. Forms that look the same in two readings (masculine and neuter outside the nominative, for example) are accepted either way.
  • Scan keys come from Vidyut's prosody module, only for verses whose meter it identifies by rule. The last syllable of each pāda isn't graded.
  • Generate keys are every form Vidyut derives from Pāṇini's rules; where several are allowed, each counts.
  • Private test set. The questions are drawn with a secret seed and not published, so they can't be trained on. Models are run by Samskritam.ai; to have a model added, get in touch.
  • Review. Reviewers check the answer keys question by question on an invitation-only page. Corrections are applied and the scores recomputed; what changed is listed here.
Limits

What this does not measure yet

  • Meaning, translation, commentary and śāstric reasoning.
  • Keys are only as good as the corpus and Vidyut; that is why they are reviewed, and why this is a preview.
  • One run per model. Differences of a few points are within the margin shown on each score.