Amazon Bedrock Achieves 86% Cost Reduction by Addressing Evaluation Bias

Property Finder discovered that 96.8% of its vision AI evaluation dataset originated from single model predictions. By building a bias-free ground truth with expert annotations and transitioning to multi-label classification, they achieved higher accuracy on Amazon Bedrock at 86% lower costs after repeating the prompt optimization loop 27 times.

Discovery of Evaluation Bias: 96.8% Originating from Model Predictions<br><br>The digital real estate platform Property Finder in the Middle East and North Africa (MENA) region processes tens of thousands of property images daily. Each image is evaluated against 11 quality attributes (watermark detection, room classification, furniture status, photo quality, construction indicators, etc.), with an average of 15 images needing quality assessment per property. When the engineering team attempted to migrate their vision AI workload to Amazon Bedrock, they discovered a shocking fact while reviewing the existing evaluation dataset: 96.8% of the total evaluation labels were not human-validated but inherited directly from the predictions of a previously used single vision language model (VLM).<br><br>> Since the existing model was running in production and no one complained, it was assumed that the labels were good enough. However, this created a circular evaluation, where any alternative model was judged solely on how closely it mimicked the behavior of the current model.<br><br>This Circular Evaluation structure placed alternative models in a structurally disadvantaged position even before processing a single image. There were also errors in the labels themselves. In watermark text extraction, character-level mistakes (hallucinated brand names, missing characters) were marked as correct, and photo classification forced a single label on images containing multiple room types. Even the remaining 3.2% of human labels introduced arbitrary categories like 'Office' that were not in the original specifications, undermining consistency.<br><br>## The Pitfalls of Circular Evaluation: Why Alternative Models Were Disadvantaged<br><br>Many teams use the current model's outputs as the correct answers when creating evaluation datasets for model comparison. Property Finder's dataset fell into exactly this trap. The answer key itself was generated by the model they were trying to replace, making the validity of the model comparison inherently flawed. An AWS machine learning blog post warns that 'your evaluation may be lying'. Biased labels not only obscure the actual performance of alternative models but also cement the systematic errors of the existing model as correct.<br><br>## Building a Trustworthy Ground Truth: Expert Annotations and Multi-Label Transition<br><br>To break the vicious cycle, human experts with domain knowledge must annotate independently without seeing the outputs of the previous model. Property Finder deployed strategy and analysis experts to label 356 images of properties in the United Arab Emirates (UAE) directly. The first 256 images were used as the development set, and the later added 100 images were combined to form a total of 356 for the final evaluation set. Additionally, 230 images from Egypt were prepared for cross-regional validation but were not reported in this post. The AWS Generative AI Innovation Center team organized clarification sessions to address ambiguous cases and maintain consistency across the dataset.<br><br>Real estate images often show other rooms beyond the door or exhibit overlapping quality characteristics. Transitioning from single-label to multi-label classification was a key measure to eliminate artificial ambiguity. If a hallway photo includes a bedroom, both can be correct, and allowing multi-labels enables the model to be measured without penalizing it for making reasonable auxiliary predictions.<br><br>The evaluation metric used Micro F1 as the primary metric. This aligns with the business goal of overall label accuracy by giving equal weight to all predictions. Macro F1 was reported as a secondary metric to observe the performance of sparse attributes obscured by frequent classes. Class-specific precision and recall were used to identify specific failure modes, and sample-wise IoU (Intersection over Union) was measured to assess the overlap between predicted label sets and expert label sets. For 9 single-label attributes such as rotation and watermark detection, exact-match accuracy was also utilized.<br><br>| Dataset | Number of Images | Purpose |<br>|---|---|---|<br>| UAE Development Set | 256 | Prompt Tuning |<br>| UAE Evaluation Set | 356 (Development 256 + Additional 100) | Final Model Comparison |<br>| Egypt Cross Validation | 230 | Cross-Regional Generalization Check (Not Reported) |<br><br>| Metric | Purpose |<br>|---|---|<br>| Micro F1 | Overall label accuracy weighting, primary metric |<br>| Macro F1 | Sparse class performance check, secondary metric |<br>| Class-specific Precision/Recall | Identification of specific failure modes |<br>| Sample-wise IoU | Measurement of overlap between predicted and expert labels |<br>| Exact-match Accuracy | Accuracy for 9 single-label attributes |<br><br>## Prompt Optimization Loop: Improving Accuracy through Reinforcement Learning-like Iterations<br><br>Once a bias-free evaluation was prepared, improvements became possible. Under the principle that 'if you can't measure it properly, you can't improve it', the Property Finder and AWS teams designed the Prompt Optimization Loop similarly to reinforcement learning. Each version of the prompt served as an Agent, the Micro F1 score as the Reward Signal, and the error analysis as the Gradient for iterative improvement. This idea aligns with recent research like GEPA (Genetic-Pareto Reflective Prompt Evolution).<br><br>[FLOW: agent|Image Input|Amazon Bedrock Inference|JSON Attribute Output|Micro F1 Scoring (256 Development Set)|Error Analysis and Visual Pattern Identification|Prompt Version Update|Next Iteration (v0→v27)]<br><br>The loop ran 27 times from v0 to v27. Initially, the AI assistant helped refine the prompts, and later automated optimization was introduced. Each iteration involved examining failed images to extract visual patterns, which were then reflected in the next prompt version. The architecture diagram (Figure 1) clearly illustrates this cycle: property image → Amazon Bedrock → predicted attribute JSON → Micro F1 scoring against 256 development set → error analysis → next prompt version.<br><br>## Results and Insights: 86% Cost Reduction and Methodological Lessons<br><br>By performing prompt optimization on a bias-free evaluation, Property Finder achieved higher accuracy at 86% lower costs. The most challenging aspect was not finding a better model but realizing that the evaluation methodology itself was the obstacle. The lessons from this case are threefold.<br><br>- An audit of the evaluation dataset must precede: Review the practice of using current model predictions as correct answers.<br>- Eliminate artificial ambiguity through multi-label transition: A labeling system tailored to actual data characteristics enhances evaluation reliability.<br>- Secure scalability through a hybrid approach: By receiving candidate labels from different model groups and having experts mediate, the annotation burden can be reduced when expanding the dataset in the future.<br><br>Property Finder's journey demonstrates the simple yet powerful fact that 'fixing evaluation bias opens the door to better models'. By applying this methodology on Amazon Bedrock, any team using vision language models can establish a foundation for objective comparison and continuous improvement.

Verified figures

Our take

This case exemplifies how bias in evaluation datasets distorts model selection. The methodology of correcting the evaluation system through expert annotations and multi-label transitions, followed by prompt optimization, provides immediately applicable lessons for teams considering the adoption of vision language models.

Open questions

Source

Back to catalog