LLM
- User
LLM
Assistant
LLM is an acronym that stands for Legum Magister or Master of Laws. It is an advanced law degree pursued by students who already have a basic law degree (JD - Juris Doctor in the US or LLB - Bachelor of Laws in other countries).
An LLM allows students to specialize in a particular area of law such as tax law, health law, corporate law, etc. It usually involves one to two years of full time study. Some key aspects of an LLM program are:
-
Specialization: LLM programs allow students to specialize in a particular area of law based on their interests and career goals. Some of the popular specializations are tax law, international law, health law, etc.
-
Advanced coursework: The curriculum focuses on advanced topics and concepts in the chosen area of specialization. It builds on the broad knowledge gained in the basic law degree.
-
Practical exposure: Many LLM programs provide opportunities for internships, externships, clinical courses, etc. to gain practical experience. Some LLM degrees also require a thesis or research paper.
-
- User
For LLM, what is zero shot? When I provide 2 examples in the prompt, is it 2 shots?
Assistant
LLM is an acronym that stands for Legum Magister or Master of Laws. It is an advanced law degree pursued by students who already have a basic law degree (JD - Juris Doctor in the US or LLB - Bachelor of Laws in other countries).
An LLM allows students to specialize in a particular area of law such as tax law, health law, corporate law, etc. It usually involves one to two years of full time study. Some key aspects of an LLM program are:
-
Specialization: LLM programs allow students to specialize in a particular area of law based on their interests and career goals. Some of the popular specializations are tax law, international law, health law, etc.
-
- User
For LLM, what is zero shot? When I provide 2 examples in the prompt, is it 2 shots?
Assistant
In machine learning, the terms 'zero-shot' and 'n-shot' refer to how many examples are provided for a task.
For an LLM prompt:
• Zero-shot: If no examples are provided and the model has to generate a response solely based on its pre-trained knowledge about LLM programs. The model has never seen this prompt before.
• 2-shot: If 2 examples are provided in the prompt to help guide the model. For e.g. the prompt could be: "For an LLM, what is the duration? For example, Tax LLM is 1 year, Health Law LLM is 2 years." By seeing these 2 examples, the model can infer that for LLM, the duration varies from 1-2 years depending on specialization.
• n-shot: If 'n' number of examples are provided in the prompt. The more examples, the easier it is for the model to understand the prompt and generate a coherent response.
So in summary:
• Zero-shot: No examples provided. Model has to generate response from pre-trained knowledge.
• n-shot: 'n' examples provided in the prompt. Model can use these examples to better understand the prompt and provide a suitable response.
For your original question, if 2 examples are provided in the LLM prompt, it would be a 2-shot task for the model. The examples help guide the model to provide a relevant response for that prompt.
- User
So give me an example of 3 shots.
Assistant
Here is an example of a 3-shot prompt for LLM:
For an LLM program:
- Tax LLM is 1 year (1st example)
- Health Law LLM is 2 years (2nd example)
- International Law LLM requires a thesis. (3rd example)
Based on these 3 examples, the model can infer the following:
- LLM program duration varies from 1 to 2 years depending on specialization.
- Some LLM programs like International Law may require additional requirements like a thesis.
- There are different types of LLM specializations like Tax Law, Health Law, International Law, etc.
Using these inferences from the 3 examples, the model can generate a suitable response like:
- User
So 3 shot is 3 examples or 3 datasets?
Assistant
Good question. In machine learning, 'n-shot' refers to the number of examples provided in a prompt, not necessarily the number of datasets.
So for an LLM prompt:
• 3-shot: Means 3 examples are provided in the prompt to help guide the model. For e.g. Tax LLM (1 year) Health Law LLM (2 years) International Law LLM (requires thesis)
• This is still 1 prompt with 3 examples within it. The model uses these 3 examples to understand the context and generate a suitable response.
• It does not mean the model was trained on 3 different datasets for LLM. The model could have been trained on just 1 large dataset for law degrees in general. But at inference time (when generating a response), 3 examples were provided in the new prompt to help the model.
In contrast:
• If the model was trained on 3 separate datasets for LLM Tax Law (1 dataset), LLM Health Law (1 dataset) and LLM International Law (1 dataset), it would have seen more data to learn from.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.