Datasets:
File size: 6,927 Bytes
981c32f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | ---
license: cc-by-4.0
language:
- en
task_categories:
- text-classification
- text-generation
tags:
- legal
- contracts
- redline
- sec-edgar
size_categories:
- 10K<n<100K
pretty_name: ALEA clause_same_diff
---
# alea-clause-same-diff
Pairs of **contract clauses from real material agreements filed with the U.S. SEC (EDGAR)**. Each row asks either
whether two clauses have the same wording (and, if not, exactly what differs) or for a summary of the changes between
them. No language model wrote any clause, label or answer. Every clause is real filed text, except the edited copy in the
synthetic Different rows described below, where exactly one number, period, percentage, dollar amount or date was changed
by code and recorded.
22,976 rows: 11,488 Same and 11,488 Different (9,045 real version pairs, 2,443 synthetic edits = 21% of Different rows).
| kind | rows | task | answer |
|---|---:|---|---|
| `compare` | 11,544 | "Are Clause A and Clause B the same or different? If different, state the difference." (10 wordings) | `Same.` (sometimes with a true note that only layout or quote style differs), or `Different: Clause A says "x"; Clause B says "y".` for every changed passage |
| `summarize` | 11,432 | "Summarize the changes between Clause A and Clause B." (9 wordings, all of which allow "none") | one sentence per change in document order (for example `The amount changes from "$400,000,000" to "$350,000,000" ...`), or `No changes; the clauses are identical.` |
Clause labels vary ("Clause A / B", "Version 1 / 2", "Text A / B", "Provision A / B", "First / Second clause").
Rows are rendered as plain text, Q/A, or chat (9,112 / 7,034 / 6,830).
## How the pairs are found
- **Different, real (9,045 rows):** the same clause in two different filings by the same filer: amended or amended-and-restated
agreements, renewals, successor agreements, or the same form agreement used in different years (for example a later
supplemental indenture or a later securitization series). The two clauses have the same section caption, word 5-gram
Jaccard similarity of at least 0.6, and a token-level difference of at most 3 localized passages (each at most 12 words per
side, at most 30% of the clause). The answer quotes exactly those passages. The heuristic change types, used for balance
only, are: wording/term 5,662; party or defined-term name 4,576; number 1,420; date 833; cross-reference 701;
condition 132; amount 48; percentage 35.
Differences that are only punctuation, letter case, hyphenation or dash code points, list lettering ("(g)" / "(d)"),
bracketed placeholders, or page headers are not used. Whether the earlier filing is shown first is balanced (50 / 50).
- **Different, synthetic (2,443 rows):** built on a real Same pair (two filed copies x and y of one clause). The Same row
shows x and y. The Different row shows x next to a copy of y in which code changed exactly one value: a period (days,
business days, months, years), a dollar amount, a percentage, or a full date (year or day of month). The change is
recorded as gold. Edits are never applied to clauses that cite a statute, regulation, executive order or Code provision,
or that tie a percentage to fair market value. An edit that happens to reproduce another real clause is not used. The edited
copy appears only in its one Different row, never in a Same row. Whether the edited copy is shown first is balanced
(49 / 51).
- **Same (11,488 rows):**
- two copies of a clause from two different filings of the same filer (8,856 rows);
- byte-identical clauses, after whitespace and quote normalization, from two different filers (2,632 rows).
Of the Same rows, 6,032 are identical, 5,148 differ only in line breaks or spacing, 305 differ only in quotation-mark
style, and 3 differ only in how a number is written, all as filed.
- **Matching:** each Different row is paired with a Same row that has the same caption class, the same number / date /
series-identifier content, the same digit-count and length band, and a length within about 15%. The Same row comes from
the same two filings, the same filer, or (failing both) the same band. The two rows share their instruction wording and
presentation. As a result neither the clause topic, its length, its numbers nor the instruction predicts the answer.
## How gold was made
No language model wrote any text, label or answer. All gold comes from code:
- **Same:** the two clauses are token-for-token identical after normalizing whitespace, quote and dash style, and number
spelling. A second, independent word-level check must agree.
- **Different:** each quoted Clause A passage occurs once in Clause A, and each quoted Clause B passage once in Clause B.
Replacing each A passage with its B passage rebuilds Clause B. An independent word diff finds no change outside the quoted
passages. Every quoted phrase in an answer occurs in one of the two clauses.
- **Summaries** are templated from the verified passages. They use a typed noun ("amount", "date", "percentage",
"cross-reference") only when both changed strings are exactly a value of that type.
## Sources
Public-record SEC filings, 2000-2023 (median filing year 2014): 12,705 filings from 4,617 filer groups. No filer group has
more than 1.2% of rows.
The text is the cleaned text of the KL3M EDGAR agreements collection, and each shown clause is a contiguous section body cut
at its caption. Clauses were not used if they contain an e-mail address, phone number, street address or ZIP code; are
tables or tables of contents; show page-break residue or redaction marks; start or end mid-sentence; or give a
number in words and figures that disagree with each other.
## Cue control
Baselines on these rows (5-fold, folds by matched pair, logistic regression; chance 0.50):
| input | accuracy |
|---|---:|
| instruction + presentation only | 0.500 |
| one clause only (character 3-5-grams) | 0.553 |
| layout features of one clause | 0.507 |
A blind partial-input probe by a strong language-model reviewer on this release (one clause hidden, 60 items) found +2 points over the reviewer's own
label prior.
## Known limitations
- 42 rows contain a form blank left in the filed text (for example "exercise price of %").
- This is the first public release. It is tagged `v2` because it replaces an earlier internal build that was never published.
## Fields
`id`, `text` (the full rendered row), `family`, `kind`, `sub` (formatting type for Same rows; change types for Different
rows), `label`, `source`, `stratum` (filer group), `gold` (JSON: verdict, quoted passages, change types, clause texts, and
the source accession, filer, company, filing date and section caption of each clause), `answer`, `presentation`,
`group_id` (matched pair), `n_tokens`.
## License
CC BY 4.0. The underlying filings are public records of the U.S. Securities and Exchange Commission.
|