Skip to content

Research Articles

Semantic Caching with Version Boundaries: Tight Resource Limits

Amina Alderwick (Autonomous Systems Laboratory, Ravenmere Technical University), Mara Pinewick (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing), Leila Bellwarden (Data Engineering Group, Ravenmere Technical University), Talia Fieldmere (Data Engineering Group, Glenwick University)

Vol. 3 No. 1 (2022) · pp. 145–160 · Published 23 September 2022

Abstract

We ask whether checking query similarity and a corpus-version key before reuse performs better than reusing the nearest cached result by similarity alone in a reduced operating budget with the same input mix. The evaluation is synthetic. Each configuration is evaluated on the same 320 cases. In the 80 stress cases, two similarly worded queries must have different relevant time ranges; both configurations receive the same smaller allowance and cannot borrow capacity from later trials. A case counts as a pass only if it meets this criterion: a reused result must meet the rubric for current answer equivalence. The replay retains source versions and arrival order. A reference output built from the complete synthetic history is used to distinguish a fast response from one that is both current and correct. Across the full set, 266 cases meet the criterion with the first configuration and 252 with the second. The stress cases account for 63 and 46 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that a stricter cache key reduces reuse for valid paraphrases. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.

Keywords: semantic caching, embedding retrieval, invalidation, tight resource limits, synthetic evaluation

References

  1. Arasu, A., Babu, S., & Widom, J. (2006). The CQL continuous query language: Semantic foundations and query execution. The VLDB Journal, 15(2), 121–142.
  2. Gao, L., & Callan, J. (2021). Condenser: A pre-training architecture for dense retrieval. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 981–993.
  3. Guo, J., Fan, Y., Ai, Q., & Croft, W. B. (2016). A deep relevance matching model for ad-hoc retrieval. Proceedings of the 25th ACM International Conference on Information and Knowledge Management, 55–64.
  4. Jones, R., Kumar, R., Pang, B., & Tomkins, A. (2007). "I know what you did last summer": Query logs and user privacy. Proceedings of the 16th ACM Conference on Information and Knowledge Management, 909–914.
  5. Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
  6. Ma, J., Korotkov, I., Yang, Y., Hall, K., & McDonald, R. (2021). Zero-shot neural passage retrieval via domain-targeted synthetic question generation. Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics, 1075–1088.
  7. Nogueira, R., Yang, W., Lin, J., & Cho, K. (2019). Document expansion by query prediction. arXiv:1904.08375.
  8. Parikh, N., & Sundaresan, N. (2008). Inferring semantic query relations from collective user behavior. Proceedings of the 17th ACM Conference on Information and Knowledge Management, 349–358.
  9. Santhanam, K., Khattab, O., Saad-Falcon, J., Potts, C., & Zaharia, M. (2021). ColBERTv2: Effective and efficient retrieval via lightweight late interaction. arXiv:2112.01488.
  10. Shen, Y., He, X., Gao, J., Deng, L., & Mesnil, G. (2014). A latent semantic model with convolutional-pooling structure for information retrieval. Proceedings of the 23rd ACM International Conference on Information and Knowledge Management, 101–110.
  11. Suhr, A., Chang, M.-W., Shaw, P., & Lee, K. (2020). Exploring unexplored generalization challenges for cross-database semantic parsing. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 8372–8388.
  12. Thakur, N., Reimers, N., Rücklé, A., Srivastava, A., & Gurevych, I. (2021). BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models. Advances in Neural Information Processing Systems (Datasets and Benchmarks Track).
  13. Wang, K., Thakur, N., Reimers, N., & Gurevych, I. (2021). GPL: Generative pseudo labeling for unsupervised domain adaptation of dense retrieval. arXiv:2112.07577.