Blog

CacheVerifier vs vCache, Redis, GPTCache on real traffic

· 4 min readresearchbenchmarkcomparison

Most semantic-cache comparisons run on curated benchmarks. We wanted the opposite: real customer-support traffic, replayed in time order, with every method deciding hits on exactly the same request stream.

So we took two years and more of Twitter support conversations from two brands, Amazon (AmazonHelp, 60,000 requests) and Comcast (comcastcares, 30,180 requests), and compared four ways of deciding whether to serve a cached reply:

Method How it decides a hit
Redis static threshold (RedisVL SemanticCache) cosine similarity above one fixed cutoff
GPTCache its default distance evaluator, and its learned ONNX evaluator (albert-duplicate-onnx)
vCache a per-entry threshold learned online with a target error rate (δ = 2%)
CacheVerifier similarity first; borderline candidates go to a cross-encoder fine-tuned on this traffic's own labels

All four share one embedding model and one nearest-neighbour search, so the only thing that differs is the hit decision.

How a hit was scored

A cached reply counts as correct if it could be sent unchanged to the new customer. An LLM judge labelled every candidate pair (about 68,000 pairs across the two brands), and we checked the judge against 100 blind human labels. CacheVerifier's lead in the comparisons below holds under both versions of the judge labels, and at 1–3% error rates it also holds when the scores are recomputed against the human labels.

Result 1: more hits at the same error rate

The fair way to compare cache policies is to fix how many wrong answers you will tolerate, then ask how many requests each method can serve from the cache. Each method's setting was swept and the best hit rate at or under each error rate is reported, on the most recent weeks of traffic:

Brand Error rate ≤ Static threshold GPTCache learned vCache CacheVerifier
Amazon 1% 4.00% 3.66% 1.11% 4.46%
Amazon 2% 5.55% 5.38% 3.33% 6.14%
Amazon 3% 7.27% 7.20% 3.33% 7.69%
Comcast 1% 4.54% 3.83% 1.41% 5.24%
Comcast 2% 6.71% 6.28% 3.93% 7.56%
Comcast 3% 8.61% 8.39% 3.93% 9.28%

CacheVerifier serves the most cache hits in every row: 11–15% more than a static threshold at the strict 1–2% error levels, and two to four times what vCache serves. Support replies usually depend on the specific conversation, so on this kind of traffic only a modest share of requests is safely cacheable at all. The question is which method finds the most of that share without serving more wrong answers.

Result 2: it stays closest to the error rate you asked for

In production you can't sweep settings on future traffic. You calibrate on the past and deploy. We did exactly that: each method was tuned for a 2% error rate on the earlier history, then run on the following weeks.

Brand Method Wrong replies served Share of hits that were right Cost per 1M requests incl. wrong answers
Amazon Static threshold 3.95% 0.54 $55.79
GPTCache learned 2.92% 0.59 $54.87
CacheVerifier 2.33% 0.66 $52.65
Comcast Static threshold 2.69% 0.67 $52.90
GPTCache learned 2.34% 0.68 $53.69
CacheVerifier 2.35% 0.72 $52.01

On Amazon, the static threshold tuned for 2% served almost twice that rate of wrong replies once the traffic moved on. CacheVerifier landed closest to the target, had the highest share of correct hits on both brands, and the lowest total cost once each wrong answer is priced at five LLM calls.

Result 3: no latency penalty worth measuring

Every component was timed in one process on CPU, interleaved on the same requests. CacheVerifier only runs its cross-encoder on the borderline candidates (13–15% of requests here), so its median decision overhead was about 2 ms above a plain threshold. GPTCache's learned evaluator runs on every request and added 60–90 ms. Next to a 1.65 s LLM call on every miss, CacheVerifier's overhead is noise.

Defaults matter

Out of the box, GPTCache's default similarity setting served a cached reply to 79–83% of requests, and most of those replies were wrong for the customer who received them. vCache held its error target, but served only about a fifth of the hits the other methods found.

What this means for you

  • Fine-tune on your own traffic. These results are for a verifier fine-tuned on labels from the same support stream. That is what CacheVerifier's fine-tune jobs do with your feedback.
  • Compare at a fixed error rate. A higher hit rate is meaningless if it comes with more wrong answers; the tables above hold the error rate fixed.
  • Calibrate, then watch. A static cutoff calibrated on old traffic drifted past its target here. CacheVerifier's drift monitoring and randomized audits exist to catch exactly that in production.

Method notes

  • Data: Twitter customer-support conversations, 2014–2017; each brand is split in time order into a calibration period and the most recent weeks for testing. No tweet text is published.
  • vCache is our port of its decision rule with the official seed observations, not the authors' own service. GPTCache is version 0.1.44.
  • The full write-up, with every table, the scripts and the text-free result files, is in the research repository.