Research Articles
Semantic Caching with Version Boundaries: Changing Conditions
Anika Faldenwood (Machine Learning Laboratory, Thornmere Polytechnic)
Vol. 4 No. 1 (2023) · pp. 136–148 · Published 4 November 2023
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 an operating profile that changes halfway through each run. The evaluation is synthetic. Each configuration is evaluated on the same 160 cases. In the 40 stress cases, two similarly worded queries must have different relevant time ranges; the final part of each run is deliberately drawn from a different regime than the initial calibration cases. 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, 133 cases meet the criterion with the first configuration and 131 with the second. The stress cases account for 27 and 24 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, changing conditions, synthetic evaluation
References
- Arasu, A., Babu, S., & Widom, J. (2006). The CQL continuous query language: Semantic foundations and query execution. The VLDB Journal, 15(2), 121–142.
- Izacard, G., Caron, M., Hosseini, L., Riedel, S., Bojanowski, P., Joulin, A., & Grave, E. (2021). Towards unsupervised dense information retrieval with contrastive learning. arXiv:2112.09118v1. Preprint
- Karpukhin, V., et al. (2020). Dense passage retrieval for open-domain question answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 6769–6781.
- Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
- 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.
- Müller, H., Michoux, N., Bandon, D., & Geissbuhler, A. (2004). A review of content-based image retrieval systems in medical applications—Clinical benefits and future directions. International Journal of Medical Informatics, 73(1), 1–23.
- Nogueira, R., Yang, W., Lin, J., & Cho, K. (2019). Document expansion by query prediction. arXiv:1904.08375.
- Pang, H., & Tan, K.-L. (2004). Authenticating query results in edge computing. Proceedings of the 20th International Conference on Data Engineering, 560–571.
- 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.
- Santhanam, K., Khattab, O., Saad-Falcon, J., Potts, C., & Zaharia, M. (2021). ColBERTv2: Effective and efficient retrieval via lightweight late interaction. arXiv:2112.01488.
- 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.
- Smeulders, A. W. M., Worring, M., Santini, S., Gupta, A., & Jain, R. (2000). Content-based image retrieval at the end of the early years. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(12), 1349–1380.
- 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.
- Wang, G., et al. (2018). Joint embedding of words and labels for text classification. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 2321–2331.
