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.
The top 3
- Top 3 Semantic Misuse Patterns in 2-Bit LLM Code: 2-bit quantized LLMs frequently exhibit functional mismatch (API performs a different operation entirely), incorrect abstraction level (e.g., low-level socket for HTTP), and misuse of side-effect APIs where pure functions are needed, leading to logical errors.
- Key Libraries 2-Bit LLMs Misinterpret for Code: Specific APIs like Python's `datetime` (misapplying formatting for complex time math), `os.path` (confusing path manipulation with system calls), and `json` (incorrect serialization for complex objects) often lead to semantic errors in 2-bit LLMs due to their reduced capacity for logical coherence.
- 2-Bit vs. 4-Bit: Depth of Semantic API Errors: Higher-bit (e.g., 4-bit) LLMs generating code may produce 'near-miss' errors like incorrect parameter order, but 2-bit models frequently choose APIs that are functionally orthogonal to the task, demonstrating a profound lack of conceptual understanding and leading to categorical failure in logical reasoning.
Sources
Open the full topic