ٹیکنیکل گائیڈ

Pass@k میٹرک کی وضاحت کی گئی۔

Pass@k is the probability that at least one of k sampled attempts from a model solves a problem, usually checked by running hidden unit tests on generated code.

  • 4 منٹ پڑھیں
  • آخری بار اپ ڈیٹ کیا گیا۔
اس صفحہ پر4 منٹ پڑھیں
  1. جائزہ
  2. گہرا غوطہ
  3. اسٹریٹجک اثر
  4. The Future of Pass@k Metric Explained
  5. حقیقی دنیا کا نفاذ
  6. خطرات اور گارڈریلز
  7. نفاذ کا روڈ میپ
  8. دریافت کرتے رہیں
  9. اکثر پوچھے گئے سوالات

جائزہ

It matters because code and agent benchmarks report it constantly, and a pass@10 or pass@100 score can look far better than what a user gets from a single try.

گہرا غوطہ

Pass@k grew out of program synthesis research, where Kulal and colleagues used it in 2019 for pseudocode-to-code tasks, and it became standard with OpenAI's 2021 Codex paper, which introduced HumanEval, a set of 164 hand-written Python programming problems. For each problem the model writes a function, and the function counts as correct only if it passes hidden unit tests. Pass@k asks: if you drew k samples, what is the chance that at least one passes? The benchmark score is that probability averaged over all problems. The naive method is to generate exactly k samples per problem and check whether any pass, but that estimate is very noisy. The Codex paper instead generates n samples, where n is larger than k (for example 200), counts the c correct ones, and computes the probability that a random subset of k samples contains at least one correct sample: 1 minus C(n minus c, k) divided by C(n, k). This estimator is unbiased and far less variable. The shortcut of plugging c/n into 1 minus (1 minus p) to the power k is biased. Sampling temperature matters. Pass@1 is usually best at low temperature, while pass@100 benefits from higher temperature because more diverse samples raise the chance that one works. Papers often pick a different temperature for each k. Agent benchmarks added a complementary metric. The tau-bench paper from Sierra (2024) defined pass^k, the probability that all k independent trials succeed. It measures reliability rather than capability. Common misreadings include comparing one model's pass@10 with another's pass@1, forgetting that pass@k assumes something already knows which sample is correct, and treating greedy-decoding pass@1 as identical to sampled pass@1. Weak unit tests inflate every pass@k number, which is why EvalPlus added many more tests to HumanEval and saw scores drop.

اسٹریٹجک اثر

لاگت اور بجٹ

فن تعمیر کے فیصلے سالوں تک کارکردگی اور آپریٹنگ لاگت کو آگے بڑھاتے ہیں۔

واضح فیصلے

تکنیکی تعلیم ٹیموں کو صحیح اسٹیک منتخب کرنے میں مدد کرتی ہے، نہ صرف جدید ترین۔

کوالٹی کنٹرول

انجینئرنگ کے بہتر انتخاب پیداوار میں قابل اعتماد واقعات کو کم کرتے ہیں۔

The Future of Pass@k Metric Explained

As models move from single completions to multi-step agents, reliability measures such as pass^k and run-to-run consistency are getting more attention alongside pass@k, because users experience one attempt, not the best of many. Benchmark authors are also investing in stronger test suites, since weak tests let incorrect code pass and inflate every metric. Careful reports should state k, sample count, temperature and whether any selection step was used, but practice varies, so readers should keep checking those details rather than assuming them.

حقیقی دنیا کا نفاذ

A team evaluating a code model on HumanEval samples 200 completions per problem, counts how many pass the tests, and reports pass@1, pass@10 and pass@100 from that one set of samples using the unbiased estimator.

An editor autocomplete that shows one suggestion should be judged by pass@1, while a tool that generates five candidates and runs your test suite to pick a working one is closer to a pass@5 situation.

A customer-support agent that succeeds on 75 percent of trials looks strong on pass@k, but if trials are independent its pass^4 score (all four trials succeed) is only about 0.32, which shows how unreliable it would feel across repeated use.

A competitive programming system generates many candidate programs, filters them against the example tests, and submits a small number; its reported solve rate depends on how many submissions were allowed, which is a pass@k-style budget.

خطرات اور گارڈریلز

  • ایک بینچ مارک کو بہتر بنانا نظام کی وسیع تر کمزوریوں کو چھپا سکتا ہے۔

  • بنیادی ڈھانچے اور دیکھ بھال کے اخراجات کو اکثر کم سمجھا جاتا ہے۔

  • سیکورٹی اور مشاہداتی فرق بڑھ سکتا ہے کیونکہ نظام زیادہ پیچیدہ ہو جاتا ہے۔

نفاذ کا روڈ میپ

  1. نفاذ سے پہلے تاخیر، معیار اور لاگت کے اہداف کی وضاحت کریں۔

  2. حقیقت پسندانہ بوجھ اور ڈیٹا کی شرائط کے تحت بینچ مارک۔

  3. غلطیوں، بڑھے ہوئے، اور صارف کے اثرات کے لیے آلے کی نگرانی۔

  4. اسکیلنگ سے پہلے رول بیک اور واقعہ کے ردعمل کے راستے تیار کریں۔

دریافت کرتے رہیں

Free newsletter

Get the daily AI briefing

Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.

One email each weekday. Unsubscribe in one click. We never sell or share your address.

Test yourself

Take the Pass@k Metric Explained quiz

Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.

کوئز شروع کریں۔

Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation

اکثر پوچھے گئے سوالات

What is Pass@k Metric Explained?

Pass@k is the probability that at least one of k sampled attempts from a model solves a problem, usually checked by running hidden unit tests on generated code. It matters because code and agent benchmarks report it constantly, and a pass@10 or pass@100 score can look far better than what a user gets from a single try.

ایک مسئلہ کے لیے pass@k کیا پیمائش کرتا ہے؟

Pass@k یہ موقع ہے کہ k کوششوں میں سے کم از کم ایک کامیاب ہو جائے۔ بینچ مارک اسکور تمام مسائل پر اس امکان کو اوسط کرتا ہے۔

HumanEval، Codex پیپر کے ساتھ متعارف کرایا گیا بینچ مارک، کیا پر مشتمل ہے؟

ہیومن ایول میں 164 ہاتھ سے لکھے گئے Python مسائل ہیں، جن میں سے ہر ایک کو پوشیدہ یونٹ ٹیسٹ کے ذریعے چیک کیا جاتا ہے۔

Codex پیپر n نمونے کیوں بناتا ہے جس میں n k سے بڑا ہوتا ہے؟

بالکل k کے نمونے بنانا ایک شور والا تخمینہ دیتا ہے۔ n نمونوں کا استعمال اور c درست شمار کرنے سے بہت کم تغیر کے ساتھ غیر جانبدارانہ تخمینہ لگایا جاسکتا ہے۔

n نمونے اور c درست کے ساتھ، کون سا اظہار غیر جانبدار pass@k تخمینہ لگانے والا ہے؟

یہ اس امکان سے ایک مائنس ہے کہ بے ترتیب k-سب سیٹ میں صرف غلط نمونے ہوتے ہیں۔ C(c, k)/C(n, k) پاس^k کا تخمینہ لگانے والا ہے، اور پاور-k شارٹ کٹ متعصب ہے۔

تاؤ بینچ پیپر میں بیان کردہ پاس^k کی پیمائش کیا ہے؟

Pass^k کو کامیاب ہونے کے لیے ہر آزمائش کی ضرورت ہوتی ہے، لہذا یہ قابل اعتمادی کی پیمائش کرتا ہے، جو بہت سے صارفین کی خدمت کرنے والے ایجنٹوں کے لیے اہمیت رکھتا ہے۔