Research Articles
Semantic Answer Caching with Version Boundaries: Heterogeneous Partitions
Celia Oakhurst (Data Engineering Group, Valehart Institute of Computational Science), Devon Wrenford (Autonomous Systems Laboratory, Kestrelby Institute of Technology), Beatriz Faldenwood (Distributed Systems Group, Thornmere Polytechnic), Nerea Oakhurst (Data Engineering Group, Valehart Institute of Computational Science)
Vol. 7 No. 1 (2026) · pp. 1–11 · Published 26 January 2026
Abstract
The comparison uses a collection of partitions with different input and resource profiles to evaluate two choices: checking embedding similarity and the evidence snapshot before reusing a generated answer and reusing the nearest cached answer by similarity alone. All outcomes are synthetic. Each configuration is evaluated on the same 300 cases. In the 75 stress cases, nearly identical prompts must refer to different policy editions; held-out partitions are selected before configuration so that tuning cannot target their particular failure cases. A case counts as a pass only if it meets this criterion: a cache hit must still be correct for the current corpus and requested date. 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. The comparator passes 220 of 300 cases and the alternative passes 219. For the 75 stress cases alone, the counts are 39 and 38, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that a version-aware cache invalidates some answers that would still be valid. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.
Keywords: semantic caching, retrieval-augmented generation, snapshot consistency, heterogeneous partitions, synthetic evaluation
References
- Chen, J., Lin, H., Han, X., & Sun, L. (2024). Benchmarking large language models in retrieval-augmented generation. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16), 17754–17762.
- Es, S., James, J., Espinosa Anke, L., & Schockaert, S. (2024). RAGAs: Automated evaluation of retrieval augmented generation. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations, 150–158. DOI
- Gao, Y., et al. (2023). Retrieval-augmented generation for large language models: A survey. arXiv:2312.10997.
- Izacard, G., et al. (2022). Atlas: Few-shot learning with retrieval augmented language models. arXiv:2208.03299.
- Jiang, Z., et al. (2023). Active retrieval augmented generation. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 7969–7992.
- Krishna, K., Song, Y., Karpinska, M., Wieting, J., & Iyyer, M. (2023). Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense. Advances in Neural Information Processing Systems, 36.
- Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
- Li, Z., Li, C., Zhang, M., Mei, Q., & Bendersky, M. (2024). Retrieval augmented generation or long-context LLMs? A comprehensive study and hybrid approach. arXiv:2407.16833.
- 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.
- Ma, X., Gong, Y., He, P., Zhao, H., & Duan, N. (2023). Query rewriting for retrieval-augmented large language models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 5303–5315.
- Peng, B., et al. (2024). Graph retrieval-augmented generation: A survey. arXiv:2408.08921.
- Ram, O., et al. (2023). In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics, 11, 1316–1331.
- Shi, W., et al. (2023). REPLUG: Retrieval-augmented black-box language models. arXiv:2301.12652.
- Yan, S.-Q., Gu, J.-C., Zhu, Y., & Ling, Z.-H. (2024). Corrective retrieval augmented generation. arXiv:2401.15884.
