ΕπόμενοΕπόμενος οδηγός
Περιβάλλον Windows
Γλώσσα AI
ΟΔΗΓΟΣ ΓΛΩΣΣΑΣ AI
In-context learning uses information or demonstrations in a prompt to adapt a language model's response without updating its weights.
Ακούστε αυτόν τον οδηγόαφήγηση με AI · ~3 min
It provides a flexible way to show a task or format, while results depend on the model and prompt rather than a guaranteed learning threshold.
Ordinary fine-tuning updates a model's parameters through training. In-context learning instead puts information and demonstrations into the input supplied at inference. The model's weights remain fixed while its internal activations and predictions depend on that input. A zero-shot prompt gives no task demonstrations, a one-shot prompt gives one, and a few-shot prompt gives several. For example, demonstrations can show support messages paired with the labels refund and billing; a new message can then be presented using the same structure. The examples suggest the desired pattern without guaranteeing a correct classification. The GPT-3 paper evaluated task demonstrations supplied through text without gradient updates and reported improvements with scale across many tasks. That evidence does not establish a universal one-hundred-billion-parameter threshold below which in-context learning is impossible. Prompt design also matters. Lu and colleagues demonstrated sensitivity to the order of few-shot examples in their evaluated classification settings, so reordering identical examples can change results without changing model weights. Demonstrations can illustrate a format or task relationship, but they are still input tokens that must be processed. Adding more examples uses more of the supported context budget and can increase per-request work; it is not automatically a quality improvement. For a stable application, compare prompting and fine-tuning using task quality, training effort, request costs, and maintenance needs instead of assuming one method is always cheaper.
Δίνοντας σε ένα chatbot τρία παραδείγματα υποστηρικτικών εισιτηρίων και των κατηγοριών τους και, στη συνέχεια, το να ταξινομήσει ένα νέο εισιτήριο με τον ίδιο τρόπο
Εμφάνιση ενός μοντέλου δύο πριν/μετά ζεύγη ακατάστατου κειμένου που έχουν επαναδιαμορφωθεί σε καθαρό JSON ώστε να μετατρέπει τα υπόλοιπα
Επικολλήστε μερικά δείγματα περιγραφών προϊόντων με τον τόνο της επωνυμίας σας, ώστε οι νέες να ταιριάζουν με το στυλ
Η επίδειξη ενός δύσκολου μαθηματικού προβλήματος λέξης λειτούργησε βήμα προς βήμα, έτσι ώστε το μοντέλο να λύνει παρόμοια προβλήματα με την ίδια μορφή συλλογισμού
Larger supported contexts make it possible to supply more examples, but they also create choices about relevance and request cost. Retrieval can help select examples appropriate to the current task. Evaluate the same representative requests under different prompt designs and compare those results with a fine-tuned alternative when relevant. A useful report states the model, examples, ordering, and evaluation task. Greater prompt length is a resource choice rather than a guarantee of learning, and few-shot behavior still needs checks on held-out inputs.
Δωρεάν ενημερωτικό δελτίο
Τρία επαληθευμένα νέα AI κάθε πρωί της εβδομάδας, γραμμένα σε απλή αγγλική. Δωρεάν για πάντα, χωρίς διαφημίσεις.
Ένα email κάθε εργάσιμη ημέρα. Κατάργηση συνδρομής με ένα κλικ. Δεν πουλάμε ή μοιραζόμαστε ποτέ τη διεύθυνσή σας.
Δοκιμάστε τον εαυτό σας
Άμεση ανάδραση σε κάθε απάντηση, και πιστοποιητικό με επαληθεύσιμο ID μόλις περάσετε το μάθημα.
Υποστηρίξτε τη δωρεάν εκπαίδευση AI. AI Understanding είναι μια μη κερδοσκοπική οργάνωση 501(c)(3) — χωρίς διαφημίσεις, χωρίς τοίχο πληρωμής, ποτέ. Κάντε μια δωρεά
In-context learning uses information or demonstrations in a prompt to adapt a language model's response without updating its weights. It provides a flexible way to show a task or format, while results depend on the model and prompt rather than a guaranteed learning threshold.
Η μάθηση εντός πλαισίου γίνεται εξ ολοκλήρου στο συμπέρασμα. Τα παραδείγματα στην προτροπή διαμορφώνουν τις ενεργοποιήσεις του μοντέλου και τις επόμενες προβλέψεις, αλλά δεν ενημερώνονται τα βάρη.
The study reports task and model results, not a universal parameter threshold for in-context behavior.
The cited work distinguishes stronger findings in small attention-only models from preliminary or indirect broader evidence.
Stable high-volume use can motivate comparison, but costs and quality depend on the actual setup.
Demonstrations show a desired input-output pattern, while correctness still needs evaluation.
Συνέχισε να μαθαίνεις
Επιλέχθηκαν περισσότεροι οδηγοί για αυτό το θέμα
ΕπόμενοΕπόμενος οδηγός
Περιβάλλον Windows
Γλώσσα AI