# Code Hallucination Detection on BigCode

Source: [Code Hallucination Detection on BigCode](<https://www.sota2.com/research/sota/code-hallucination-detection-on-bigcode>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-10T08:00:08.825Z

Evaluation of model performance on detecting code hallucinations using the BigCode dataset, measured by OP, OR, and IF R.

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

| Scope | Recorded value |
| --- | --- |
| Task | Code Hallucination Detection |
| Dataset (including any stated split) | BigCode |
| Metric | OP |
| Unit | SCALAR |
| Direction | Higher is better |
| Results loaded | 16 of 16 |
| Coverage | All results currently returned for this benchmark |

Evaluation settings may differ between results. The original papers and recorded configurations are needed to establish comparability. A shared metric name alone does not establish an identical protocol.

## Metrics

- [OP](<https://www.sota2.com/research/sota/code-hallucination-detection-on-bigcode.md?metric=OP>): Higher is better; unit: SCALAR.

- [OR](<https://www.sota2.com/research/sota/code-hallucination-detection-on-bigcode.md?metric=OR>): Higher is better; unit: SCALAR.

- [IF R](<https://www.sota2.com/research/sota/code-hallucination-detection-on-bigcode.md?metric=IF%20R>): Higher is better; unit: SCALAR.

## Recorded results

| Method | OP | Result date | Report paper |
| --- | --- | --- | --- |
| o3-mini | 0.77 | Not recorded | 69d883f27d0172140ec778fd |
| o3-mini | 0.64 | Not recorded | 69d883f27d0172140ec778fd |
| Pyright | 0.62 | Not recorded | 69d883f27d0172140ec778fd |
| o3-mini | 0.57 | Not recorded | 69d883f27d0172140ec778fd |
| o3-mini | 0.56 | Not recorded | 69d883f27d0172140ec778fd |
| Mypy | 0.47 | Not recorded | 69d883f27d0172140ec778fd |
| Grammar | 0.45 | Not recorded | 69d883f27d0172140ec778fd |
| Pyright | 0.34 | Not recorded | 69d883f27d0172140ec778fd |
| Pyright | 0.32 | Not recorded | 69d883f27d0172140ec778fd |
| Pyright | 0.28 | Not recorded | 69d883f27d0172140ec778fd |
| Mypy | 0.24 | Not recorded | 69d883f27d0172140ec778fd |
| Grammar | 0.24 | Not recorded | 69d883f27d0172140ec778fd |
| Grammar | 0.23 | Not recorded | 69d883f27d0172140ec778fd |
| Mypy | 0.22 | Not recorded | 69d883f27d0172140ec778fd |
| Grammar | 0.19 | Not recorded | 69d883f27d0172140ec778fd |
| Mypy | 0.16 | Not recorded | 69d883f27d0172140ec778fd |

### o3-mini

OP: 0.77. Result ID: 69d8aded47f34ce924c15145.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"Granite"}. This record does not assert independent reproduction.

### o3-mini

OP: 0.64. Result ID: 69d8aded47f34ce924c15142.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"claude-3"}. This record does not assert independent reproduction.

### Pyright

OP: 0.62. Result ID: 69d8aded47f34ce924c15141.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"Granite"}. This record does not assert independent reproduction.

### o3-mini

OP: 0.57. Result ID: 69d8aded47f34ce924c15144.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-4"}. This record does not assert independent reproduction.

### o3-mini

OP: 0.56. Result ID: 69d8aded47f34ce924c15143.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-3.5"}. This record does not assert independent reproduction.

### Mypy

OP: 0.47. Result ID: 69d8aded47f34ce924c1513d.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"Granite"}. This record does not assert independent reproduction.

### Grammar

OP: 0.45. Result ID: 69d8aded47f34ce924c15149.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

[Method origin paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"Granite"}. This record does not assert independent reproduction.

### Pyright

OP: 0.34. Result ID: 69d8aded47f34ce924c15140.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-4"}. This record does not assert independent reproduction.

### Pyright

OP: 0.32. Result ID: 69d8aded47f34ce924c1513e.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"claude-3"}. This record does not assert independent reproduction.

### Pyright

OP: 0.28. Result ID: 69d8aded47f34ce924c1513f.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-3.5"}. This record does not assert independent reproduction.

### Mypy

OP: 0.24. Result ID: 69d8aded47f34ce924c1513c.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-4"}. This record does not assert independent reproduction.

### Grammar

OP: 0.24. Result ID: 69d8aded47f34ce924c15147.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

[Method origin paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-3.5"}. This record does not assert independent reproduction.

### Grammar

OP: 0.23. Result ID: 69d8aded47f34ce924c15148.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

[Method origin paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-4"}. This record does not assert independent reproduction.

### Mypy

OP: 0.22. Result ID: 69d8aded47f34ce924c1513b.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"gpt-3.5"}. This record does not assert independent reproduction.

### Grammar

OP: 0.19. Result ID: 69d8aded47f34ce924c15146.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

[Method origin paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"claude-3"}. This record does not assert independent reproduction.

### Mypy

OP: 0.16. Result ID: 69d8aded47f34ce924c1513a.

[Reporting paper](<https://www.sota2.com/research/paper/69d883f27d0172140ec778fd.md>)

Recorded evaluation configuration: {"Query Model":"claude-3"}. This record does not assert independent reproduction.

Page 1 of 1. This is an index page, not the full collection.
