Skip to content

Research Articles

Semantic Caching with Version Boundaries: Uneven Workloads

Leila Vesperwick (Data Engineering Group, Valehart Institute of Computational Science), Kenji Oakhurst (Data Engineering Group, Valehart Institute of Computational Science), Kavi Fallowby (Data Engineering Group, Thornmere Polytechnic), Farah Oakhurst (Data Engineering Group, Thornmere Polytechnic), Priya Brookvala (Data Engineering Group, Cairnwell Research Institute)

Vol. 2 No. 1 (2021) · pp. 44–57 · Published 30 May 2021

Abstract

This synthetic study compares checking query similarity and a corpus-version key before reuse with reusing the nearest cached result by similarity alone in a workload with many common cases and a small set of recurring high-cost cases. Each configuration is evaluated on the same 144 cases. In the 36 stress cases, two similarly worded queries must have different relevant time ranges; the rare cases are assessed separately so that the dominant group does not hide their behavior. 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, 110 cases meet the criterion with the first configuration and 101 with the second. The stress cases account for 27 and 22 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, uneven workloads, synthetic evaluation

References

  1. Akgül, C. B., et al. (2011). Content-based image retrieval in radiology: Current status and future directions. Journal of Digital Imaging, 24(2), 208–222.
  2. Arasu, A., Babu, S., & Widom, J. (2006). The CQL continuous query language: Semantic foundations and query execution. The VLDB Journal, 15(2), 121–142.
  3. Ginsberg, J., Mohebbi, M. H., Patel, R. S., Brammer, L., Smolinski, M. S., & Brilliant, L. (2009). Detecting influenza epidemics using search engine query data. Nature, 457(7232), 1012–1014.
  4. Izacard, G., & Grave, E. (2020). Leveraging passage retrieval with generative models for open domain question answering. arXiv:2007.01282.
  5. 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.
  6. Kumar, A., Kim, J., Cai, W., Fulham, M., & Feng, D. (2013). Content-based medical image retrieval: A survey of applications to multidimensional and multimodality data. Journal of Digital Imaging, 26(6), 1025–1039.
  7. Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
  8. Luan, Y., Eisenstein, J., Toutanova, K., & Collins, M. (2020). Sparse, dense, and attentional representations for text retrieval. arXiv:2005.00181.
  9. Nogueira, R., Yang, W., Lin, J., & Cho, K. (2019). Document expansion by query prediction. arXiv:1904.08375.
  10. Pang, H., & Tan, K.-L. (2004). Authenticating query results in edge computing. Proceedings of the 20th International Conference on Data Engineering, 560–571.
  11. 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.
  12. Salton, G., & Buckley, C. (1988). Term-weighting approaches in automatic text retrieval. Information Processing & Management, 24(5), 513–523.
  13. Seung, H. S., Opper, M., & Sompolinsky, H. (1992). Query by committee. Proceedings of the Fifth Annual Workshop on Computational Learning Theory, 287–294.
  14. 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.
  15. 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.
  16. 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.