Top 3 API Misuse Categories in 2-Bit LLM Code
Common API misuse errors in 2-bit quantized LLM-generated code include hallucinating non-existent functions or parameters, selecting syntactically valid but semantically inappropriate APIs, and omitting required API methods or parameters.
The top 3
- Hallucinated or Non-Existent API Calls: 2-bit LLMs frequently generate code attempting to use API methods or parameters that do not exist, leading to `AttributeError` or `NameError` exceptions.
- Incorrect API Parameterization & Types: Reduced logical precision causes 2-bit LLMs to misuse API arguments, resulting in `TypeError` for incorrect data types or `ValueError` for invalid parameter values.
- Semantic Misuse: Inappropriate API Selection: 2-bit LLMs often select syntactically correct APIs that are semantically inappropriate for the task or fail to integrate them into a coherent logical flow, causing functional errors.
Sources
Open the full topic