**About the post-training datasets.**
**For the instruction finetuning dataset:** We follow the SaulLM-7B recipe that relies on Ultrachat methodology as described in their original paper. Concretely, we generate detailed discussions on essential legal skills across various document types using a Mistral-140B-instruct to convert legal texts with metadata into structured dialogues (Ding et al., 2023). The conversation starts with three steps: (1) a user request about the document, (2) the assistant rephrases metadata like document type and date, and (3) the user prompts for deeper reasoning. Further exchanges involve the user asking targeted questions to understand the assistant's logic, with the assistant providing thorough explanations. We removed the 30% conversation that has the higher number of duplicated n-grams (computed independently for the user and assistant) which we found good enough.
**Example:**
1. **User:**
"Here is an extract from a legal contract: 'Except as otherwise set forth in this Debenture, the Company, for itself and its legal representatives, successors and assigns, expressly waives presentment, protest, demand, notice of dishonor, notice of nonpayment, notice of maturity, notice of protest, presentment for the purpose of accelerating maturity, and diligence in collection.' Tell us which label would you use to best describes this extract?”
2. **Assistant:**
"The most relevant label would be 'Waivers'."
3. **User:**
"Explain your reasoning."
[....]
8. **Assistant:**
"These elements typically serve as enforcement mechanisms in debt repayment. Notices inform debtors of obligations or issues; demands formally request action or payment; protests document objections to non-payments; and presentments involve the physical delivery of financial documents. Waiving these steps simplifies and potentially expedites the debt handling process by removing formalities that might otherwise escalate disputes or delays."
**For the alignment dataset,** we start from a dataset where we ask the LLM to generate a question. From this question and the input sample, we generate 2 responses from the LLM. Then, we ask a judge to rank the two answers (see description in the paper: ). The first is the chosen and the second is the rejected. We rely on Mixtral 8x22B as described in Fig. 2. This is similar to the Nemotron paper (Nvidia Team 2024).
Example:
**Question:** Which category best describes the following extract from a legal contract?
"Except as otherwise set forth in this Debenture, the Company, for itself and its legal representatives, successors and assigns, expressly waives presentment, protest, demand, notice of dishonor, notice of nonpayment, notice of maturity, notice of protest, presentment for the purpose of accelerating maturity, and diligence in collection."
LLM 1: Waivers
- **Reasoning:** This label is most appropriate because the [...]
LLM 2: Modifications
- **Reasoning:** One might also consider this as a 'Modifications' because the waiver of traditional debt collection rights [..]
LLM as a Judge: Waivers
Reasoning: The extract explicitly states that the company "expressly waives" several rights, [....]
**We have added more details in the paper’s appendix and we plan to release the datasets upon acceptance to clarify and support the reader. We will also include examples in the appendix.**