Spaces:
Runtime error
Runtime error
|
Download benchmark_comparison.md from DeepParmar/code-review: direct link, hf CLI and curl.
- Browser
- Download file 5.3 kB
-
https://huggingface.co/spaces/DeepParmar/code-review/resolve/main/benchmark_comparison.md
- Command line
-
hf download hf://spaces/DeepParmar/code-review/benchmark_comparison.md
-
curl -L -o benchmark_comparison.md https://huggingface.co/spaces/DeepParmar/code-review/resolve/main/benchmark_comparison.md
5.3 kB
| # π Code Review OpenEnv - Complete Master Benchmark Trajectory | |
| ## π Final Performance Summary & Evaluation | |
| Throughout the ascending environments, score clamping was mathematically refined from raw score inflation to strict OpenEnv F1 constraints, explicitly limited to **0.999**. | |
| ### π₯ MASTER HISTORICAL BENCHMARK RESULTS | |
| | Exact Model ID (No Manual Labels) | Phase | Easy F1 | Medium F1 | Hard F1 | **Avg F1** | Avg Conf. | | |
| | :-------------------------------- | :---- | :------ | :-------- | :------ | :--------- | :-------- | | |
| | `deepseek-ai/DeepSeek-V3` | π *Old Baseline* | 0.999 | 0.667 | 0.800 | **0.822** | 96% | | |
| | `qwen/qwen-2.5-72b-instruct` | π *Old Baseline* | 0.727 | 0.824 | 0.500 | **0.684** | 95% | | |
| | `meta-llama/llama-3.3-70b-instruct`| π *Old Baseline* | 0.556 | 0.625 | 0.375 | **0.519** | 94% | | |
| | `deepseek-ai/DeepSeek-V3` | π *Old Concurrency* | 0.999 | 0.667 | 0.621 | **0.762** | 90% | | |
| | `meta-llama/llama-3.1-70b-instruct`| π *Old Concurrency* | 0.833 | 0.636 | 0.545 | **0.671** | 96% | | |
| | `qwen/qwen-2.5-72b-instruct` | π *Old Concurrency* | 0.667 | 0.625 | 0.500 | **0.597** | 99% | | |
| | `openai/gpt-4o-mini` | π *Old Concurrency* | 0.667 | 0.588 | 0.308 | **0.521** | 90% | | |
| | `meta-llama/llama-3.3-70b-instruct`| π *Live OpenRouter* | 0.999 | 0.625 | 0.545 | **0.723** | 95% | | |
| | `deepseek-ai/DeepSeek-V3` | π *Live OpenRouter* | 0.600 | 0.667 | 0.500 | **0.589** | 94% | | |
| | `openai/gpt-4o-mini` | π *Live OpenRouter* | 0.600 | 0.667 | 0.324 | **0.530** | 90% | | |
| | `qwen/qwen-2.5-72b-instruct` | π *Live OpenRouter* | 0.500 | 0.588 | 0.500 | **0.529** | 98% | | |
| | `mistralai/mistral-small-3.1-24b` | π *Live OpenRouter* | 0.100 | 0.333 | 0.999 | **0.477** | 100% | | |
| <br> | |
| > [!TIP] | |
| > ### π HUGGING FACE NATIVE SERVERLESS (Final Production Phase) | |
| > Native inference parsing successfully verified directly over `https://router.huggingface.co/v1`. | |
| > | |
| > **DeepSeek-AI** completely dominated the native test group, surgically identifying every web vulnerability in the medium test environment to achieve a mathematically perfect `0.999` limit ceiling. | |
| | Native Model Identifier | Environment | Easy F1 | Medium F1 | Hard F1 | **Avg F1** | Avg Conf. | | |
| | :---------------------- | :---------- | :------ | :-------- | :------ | :--------- | :-------- | | |
| | `deepseek-ai/DeepSeek-V3` | β¨ **HuggingFace** | 0.667 | **0.999** | 0.564 | **0.743** | 97% | | |
| | `Qwen/Qwen2.5-72B-Instruct` | β¨ **HuggingFace** | 0.200 | 0.588 | 0.286 | **0.358** | 95% | | |
| | `meta-llama/Meta-Llama-3-8B-Instruct` | β¨ **HuggingFace** | 0.429 | 0.001 | 0.001 | **0.144** | 96% | | |
| | `meta-llama/Llama-3.3-70B-Instruct` | β Rate Limited | - | - | - | **-** | - | | |
| | `mistralai/Mixtral-8x7B-Instruct-v0.1` | β Model Unsupported | - | - | - | **-** | - | | |
| <br> | |
| ### π POST-SUBMISSION OPENROUTER BENCHMARKS | |
| *Final stress test verification leveraging OpenRouter failover.* | |
| | Native Model Identifier | Environment | Easy F1 | Medium F1 | Hard F1 | **Avg F1** | Avg Conf. | | |
| | :---------------------- | :---------- | :------ | :-------- | :------ | :--------- | :-------- | | |
| | `deepseek-ai/DeepSeek-V3` | π **OpenRouter** | 0.750 | 0.667 | 0.720 | **0.712** | 92% | | |
| | `openai/gpt-4o-mini` | π **OpenRouter** | 0.833 | 0.667 | 0.581 | **0.694** | 90% | | |
| | `meta-llama/llama-3.3-70b-instruct` | π **OpenRouter** | 0.500 | 0.833 | 0.545 | **0.626** | 94% | | |
| | `qwen/qwen-2.5-72b-instruct` | π **OpenRouter** | 0.800 | 0.556 | 0.500 | **0.619** | 97% | | |
| | `mistralai/mistral-small-3.1-24b` | π **OpenRouter** | 0.001 | 0.001 | 0.999 | **0.334** | 100% | | |
| <br> | |
| ### π§ Performance Analysis: Why Models Succeed or Fail | |
| Our deterministic grading environment reveals deep behaviors not captured by standard multiple-choice benchmarks: | |
| - π₯ **DeepSeek-V3 (The Winner):** Dominated because of superior **confidence calibration** and **semantic reasoning**. Unlike other models, DeepSeek doesn't just guess. When faced with the adversarial "Red Herring" (`try...except: pass` inside a backoff loop), its confidence drops, allowing it to bypass the trap entirely. It correctly uses multi-step logic to deduce *why* code is conceptually flawed rather than just syntactically incorrect. | |
| - π₯ **Qwen-2.5-72B:** Highly capable at identifying localized syntax and logic errors in the Easy and Medium environments. However, it suffered in the Hard task, demonstrating **limitations in long-context, cross-file reasoning**. It often failed to correctly track how keys generated in `config_loader.py` were insecurely consumed in `crypto_service.py`. | |
| - π₯ **Llama-3.3-70B (The Overconfident Guesser):** Suffered mathematically due to **overconfidence syndrome**. The environment heavily penalizes false positives submitted with `>80%` confidence. Llama consistently flagged totally secure, verified code blocks as "Critical Vulnerabilities" with `95%` confidence, causing its F1 score to crash dynamically. It could not differentiate real bugs from the adversarial comment injections. | |
| - π **Smaller/Local Models (Mixtral, Meta-Llama-8B, Gemma):** Generally failed either due to **JSON parsing collapse** (outputting conversational text or reasoning tags instead of strict operation schemas) or by reaching maximum timeout limits when scanning larger codeblocks. | |