Skip to content

Commit 5c552ac

Browse files
authored
Add comparison of GPT-4o vs FLAMES-CodeLlama results
Added a comparison section between GPT-4o and FLAMES-CodeLlama, detailing their performance on contract-level equivalence.
1 parent b35ddb0 commit 5c552ac

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • reproduction-results/sindi-comparison/gpt-model

reproduction-results/sindi-comparison/gpt-model/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,28 @@ One further row (`202603_AlkemiEarn`) has no generated predicate at all — the
9797
| 202409_Bedrock_DeFi | 2403 | `uniBTCAmount * 1e10 < msg.value` | `!paused[NATIVE_BTC] && msg.value > 0 && msg.value / EXCHANGE_RATE_BASE > 0 && ISupplyFeeder(supplyFeeder).totalSupply(NATIVE_BTC) + msg.value <= caps[NATIVE_BTC]` || not equivalent |
9898
| 202409_OnyxDAO | 794 | `repayAmount == borrowedAmount` | `borrowedAmount <= repayAmount` || GT stronger (gen weaker) |
9999
| 202603_AlkemiEarn | 3458 | `msg.sender != targetAccount` | `` | ⚠️ | ⚠️ error: empty generated predicate |
100+
101+
102+
## Comparison: GPT-4o vs FLAMES-CodeLlama (per-contract, n=28)
103+
104+
To compare the two models on equal footing, results are collapsed to the
105+
**contract level**: a contract counts as a match if **at least one** of its holes
106+
is judged `equivalent` by Sindi. This removes the extra holes GPT produces for
107+
multi-`require` contracts (Anyswap, Uwerx, pSeudoEth) and the extra holes Llama
108+
produces (Uwerx, pSeudoEth, grok), so both models are scored over the **same 28
109+
contracts**. Both runs use the same ground truth per contract.
110+
111+
| Metric (per contract, n=28) | FLAMES-CodeLlama | GPT-4o |
112+
|---|---|---|
113+
| Semantically equivalent (Sindi) | **2/28 (7.1%)** | **10/28 (35.7%)** |
114+
115+
### The two models do not solve the same contracts
116+
117+
The headline gap (35.7% vs 7.1%) hides that the overlap is small:
118+
119+
- Solved by **both**: 1/28 — `202206_InverseFinance`.
120+
- Solved by **GPT only**: 9 — Opyn, Anyswap, N00d, JAY, VINU, uniclyNFT, pSeudoEth, HoppyFrog, JokInTheBox.
121+
- Solved by **Llama only**: 1 — `202406_APEMAGA` (GT `msg.sender == account`; Llama reproduced it exactly, GPT generated the non-equivalent `_owner == account`).
122+
123+
So GPT does not strictly dominate: there is one contract the smaller fine-tuned
124+
model recovers and the frontier model does not.

0 commit comments

Comments
 (0)