Quantized Vision-Language Models for Damage Assessment: A Comparative Study of LLaVA-1.5-7B Quantization Levels
Abstract
Bridge infrastructure inspection is a critical but labor-intensive task requiring expert assessment of structural damage such as rebar exposure, cracking, and corrosion. This paper presents a comprehensive study of quantized Vision-Language Models (VLMs) for automated bridge damage assessment, focusing on the trade-offs between description quality, inference speed, and resource requirements. We develop an end-to-end pipeline combining LLaVA-1.5-7B for visual damage analysis, structured JSON extraction, and rule-based priority scoring. To enable deployment on consumer-grade GPUs, we conduct a systematic comparison of three quantization levels: Q4_K_M, Q5_K_M, and Q8_0 across 254 rebar exposure images. We introduce a 5-point quality evaluation framework assessing damage type recognition, severity classification. Our results demonstrate that Q5_K_M achieves the optimal balance: quality score 3.181.35/5.0, inference time 5.67s/image, and 0.56 quality/sec efficiency -- 8.5% higher quality than Q4_K_M with only 4.5% speed reduction, while matching Q8_0's quality with 25% faster inference. Statistical analysis reveals Q5_K_M exhibits the weakest text-quality correlation (-0.148), indicating consistent performance regardless of description length.
Figures & tables
| Component | Points | Criteria |
|---|---|---|
| Damage Types | 2.0 | Recognition of: crack, rebar exposure, corrosion, spalling (0.5 pt each) |
| Severity Level | 1.0 | Classification: minor / moderate / severe |
| Location Info | 1.0 | Spatial description: top, bottom, left, right, beam, column, etc. |
| Extent Info | 1.0 | Coverage quantification: local, widespread, partial, percentage, dimensions |
| Total | 5.0 | Comprehensive assessment |
| Quantization | Size | Precision | Format |
|---|---|---|---|
| Q4_K_M | 4.1 GB | 4-bit mixed | GGUF |
| Q5_K_M | 4.8 GB | 5-bit mixed | GGUF |
| Q8_0 | 7.2 GB | 8-bit uniform | GGUF |
| FP16 baseline | 14.0 GB | 16-bit float | safetensors |
| Quantization | Model Size | Init Time | Avg Inference | Quality Score | Text Length |
|---|---|---|---|---|---|
| Q4_K_M | 4.1 GB | 3.6 s | 5.43 s | 2.93 1.53 | 168 41 chars |
| Q5_K_M | 4.8 GB | 4.5 s | 5.67 s | 3.18 1.35 | 160 37 chars |
| Q8_0 | 7.2 GB | 5.9 s | 7.63 s | 3.27 1.39 | 162 39 chars |
| Recommended for production deployment (best quality-speed balance) | |||||
| Success rate: 254/254 (100%) | |||||
| Comparison | U Statistic | p-value |
|---|---|---|
| Q5_K_M vs Q4_K_M | 34,822.5 | 0.0591 |
| Q8_0 vs Q5_K_M | 33,870.0 | 0.1627 |
| Q8_0 vs Q4_K_M | 36,289.5 | 0.0069 ∗∗ |
| ∗∗ p 0.01; ∗ p 0.05 | ||
| Quantization | Correlation | Interpretation |
|---|---|---|
| Q4_K_M | Moderate negative | |
| Q5_K_M | Weak negative | |
| Q8_0 | Moderate negative |
| Component (Max) | Q4_K_M | Q5_K_M | Q8_0 |
|---|---|---|---|
| Damage Types (2.0) | 1.15 | 1.28 | 1.31 |
| Severity (1.0) | 0.65 | 0.72 | 0.74 |
| Location (1.0) | 0.58 | 0.63 | 0.65 |
| Extent (1.0) | 0.55 | 0.55 | 0.57 |
| Total (5.0) | 2.93 | 3.18 | 3.27 |
| Photo | Type | Severity | Key Features |
|---|---|---|---|
| Photo 1 | crack | medium | — |
| Photo 2 | rebar_exposure | high | Cracks limited to specific areas; Repair needed |
| Photo 3 | crack | high | — |
| Photo 4 | rebar_exposure | high | — |
| Photo 5 | crack | high | Cracks; Loads exceeding structural strength |
| Photo 6 | crack | high | — |
| Photo | Score (0-1) | Urgency (1-5) | Timeline |
|---|---|---|---|
| Photo 1 | 0.692 | Level 3 | Planned repair (1-2 years) |
| Photo 2 | 1.0 | Level 5 | Immediate repair (critical) |
| Photo 3 | 0.952 | Level 5 | Immediate repair (critical) |
| Photo 4 | 1.0 | Level 5 | Immediate repair (critical) |
| Photo 5 | 0.712 | Level 4 | Early repair (6 months) |
| Photo 6 | 0.692 | Level 3 | Planned repair (1-2 years) |
VLM Quantization
Vision-language model quantization reduces model precision to lower memory and computation while preserving multimodal capabilities.
See all 52 papers