دليل الأساسيات

التعلم بالقليل من اللقطات

Few-shot methods aim to use a small labeled support set or a few demonstrations for a task.

استمع إلى هذا الدليلرواه الذكاء الاصطناعي · ~3 min

في هذه الصفحةقراءة لمدة 3 دقائق
  1. نظرة عامة
  2. الغوص العميق
  3. التنفيذ في العالم الحقيقي
  4. مستقبل التعلم بالقليل من اللقطات
  5. وضعها موضع التنفيذ
  6. استمر في الاستكشاف
  7. الأسئلة المتداولة

نظرة عامة

In-context prompting and metric-based learning achieve this through different procedures, and neither guarantees successful adaptation from any arbitrary examples.

الغوص العميق

Few-shot is used across methods that supply only a small number of task examples, often after substantial prior learning. In an N-way K-shot classification episode, N counts classes and K counts labeled support examples per class. That notation describes the task’s support data rather than the model’s total pretraining corpus. In-context few-shot prompting supplies demonstrations in the input of an already trained model. The cited language-model study evaluates this mode without task-specific gradient updates during the prompt; examples condition the prediction rather than rewrite weights. Fine-tuning on a small dataset is a different procedure even when both are called few-shot adaptation. Prior training can make representations or patterns useful for a new task, but a few examples do not guarantee that the model infers the intended labels or rules. Prototypical Networks studies a metric-based alternative. A learned embedding maps labeled support items into a space, and each class prototype is the mean of its support embeddings. A query is classified using distances to those prototypes. If one class has support vectors (0,0) and (2,0), its arithmetic-mean prototype is (1,0). The support items used to build the prototype and the query items used to assess classification have different roles. Training episodes in the paper keep those sampled sets separate. For in-context models, demonstration order can also affect results: Fantastically Ordered Prompts studies large variation among permutations in particular text-classification setups. Selecting a favorable order should not be confused with proof of generalization on an untouched evaluation set.

التنفيذ في العالم الحقيقي

Providing labeled ticket examples in a prompt before a new ticket query.

Demonstrating an output format with a few input-output pairs.

Computing a class prototype from labeled support embeddings.

Comparing prompt orders on a separate evaluation set without changing the examples.

مستقبل التعلم بالقليل من اللقطات

Few-shot evaluations can compare representative support examples, ordering, retrieval of demonstrations, and learned distance functions under clearly separated data roles. More demonstrations may supply useful information but can also change prompt length or introduce misleading patterns. Experiments should record whether weights were updated and whether labels from the final query set influenced selection. Different domains can require different prior representations or examples. Testing the intended task and untouched queries gives a more meaningful result than assuming a small labeled set automatically enables instant adaptation or reproduces human learning.

وضعها موضع التنفيذ

لماذا يهم

  • قرارات أوضح. يساعدك على فصل المطالبات الفنية الواضحة عن لغة التسويق.
  • التكلفة والميزانية. يمكنك طرح أسئلة تنفيذ أفضل قبل إنفاق المال أو الوقت.
  • الفريق وسير العمل. تتخذ الفرق ذات الفهم المشترك قرارات أفضل بشأن المنتجات والسياسات والتعلم.

احترس من

  • قد تستخدم الفرق المختلفة نفس المصطلح بشكل مختلف، لذا حدد النطاق مبكرًا.
  • يمكن أن تبدو المعايير قوية بينما يكون الأداء في العالم الحقيقي غير متساوٍ.
  • غالبًا ما يؤدي تجاهل جودة البيانات وخطط التقييم إلى نتائج هشة.

الخطوات التالية

  1. ابدأ بتعريف لغة واضحة للنتيجة التي تحتاجها.
  2. اختر مقياس نجاح واحد وحالة فشل واحدة قبل الاختبار.
  3. قم بتشغيل برنامج تجريبي صغير يحتوي على بيانات تمثيلية، وليس مجموعة تجريبية مصقولة.
  4. قم بتوثيق المجالات التي يساعد فيها التعلم بالقليل من اللقطات والأماكن التي تكون فيها الطرق الأبسط أفضل.

استمر في الاستكشاف

رسالة إخبارية مجانية

احصل على الإحاطة اليومية لمنظمة العفو الدولية

ثلاث قصص تم التحقق منها بواسطة الذكاء الاصطناعي كل صباح من أيام الأسبوع، مكتوبة باللغة الإنجليزية البسيطة. مجاني للأبد، بدون إعلانات.

بريد إلكتروني واحد كل يوم من أيام الأسبوع. إلغاء الاشتراك بنقرة واحدة. نحن لا نبيع أو نشارك عنوانك أبدًا.

اختبر نفسك

Take the Few-Shot Learning quiz

تعليقات فورية على كل إجابة، وشهادة قابلة للمشاركة مع معرف يمكن التحقق منه بمجرد اجتياز الدورة التدريبية.

ابدأ الاختبار

دعم تعليم الذكاء الاصطناعي المجاني. AI Understanding هي منظمة 501(c)(3) غير ربحية - لا إعلانات ولا نظام حظر الاشتراك غير المدفوع على الإطلاق. قم بالتبرع

الأسئلة المتداولة

ما هو التعلم القليل؟

Few-shot methods aim to use a small labeled support set or a few demonstrations for a task. In-context prompting and metric-based learning achieve this through different procedures, and neither guarantees successful adaptation from any arbitrary examples.

In an N-way K-shot classification episode, what does K count?

N counts the classes; K counts examples for each class in the specified support set.

عندما يقوم نموذج لغة كبير بالتعلم في سياق قليل من الموجه، فماذا يحدث لأوزانه؟

لا يقوم التعلم في السياق بإجراء أي تحديثات متدرجة؛ تقوم الأمثلة الموجودة في الموجه ببساطة بتوجيه تنبؤات الرمز المميز التالي للنموذج.

ما هو الفرق الرئيسي بين المطالبة بالطلقة الصفرية والطلقة القليلة؟

تعطي ميزة Zero-shot تعليمات فقط بدون أمثلة، في حين تتضمن ميزة لقطة قليلة عددًا قليلًا من العروض التوضيحية.

How can prior learning contribute to a few-shot task?

The benefit depends on the prior model, task, and examples; success must be measured.

ما الذي يصف طريقة اللقطات القليلة القائمة على القياس مثل الشبكة النموذجية؟

تشكل الشبكات النموذجية نموذجًا أوليًا (متوسط ​​التضمين) لكل فئة وتصنف النقاط الجديدة حسب أقرب نموذج أولي في المساحة المستفادة.