Adaptive Cache Pollution Control for Large Language Model Inference Workloads Using Temporal CNN-Based Prediction and Priority-Aware Replacement
DOI:
https://doi.org/10.66238/fsrma116Keywords:
LLM inference, cache pollution control, temporal CNN, adaptive cache replacement, hardware-aware AI optimization, prefetch filteringAbstract
. Large Language Models (LLMs), such as GPT and LLaMA, introduce unique memory access characteristics during inference due to frequent token sequence lookups and embedding vector retrievals. These workloads generate highly irregular and bursty access patterns, causing traditional prefetching and replacement policies to mispredict and trigger severe cache pollution, thereby degrading system performance. To address this challenge, this paper proposes an Adaptive Cache Pollution Control (ACPC) mechanism tailored for LLM inference workloads, integrating Temporal Convolutional Network (TCN)-based access prediction with a priority-aware replacement strategy. The TCN module learns temporal dependencies in token access sequences to identify potential high-reuse cache lines, while the replacement policy dynamically adjusts eviction priorities based on predicted reuse likelihood and cache occupancy. The proposed framework is implemented and evaluated on representative transformer-based inference traces, including GPT-style autoregressive decoding and embedding retrieval workloads. Experimental results demonstrate that ACPC reduces cache pollution by 41.7%, improves cache hit rate by 8.9%, and achieves a 60.0% reduction in L2 miss penalty, compared with state-of-the-art machine-learning-based replacement baselines. Additionally, the proposed Temporal CNN-based ACPC framework increases token generation throughput by 15.9% and achieves the lowest final loss of 0.21, confirming its superior efficiency and stability under complex LLM inference workloads.These results highlight ACPC’s effectiveness in recognizing useful cache lines and mitigating redundant prefetches under dynamic LLM access behaviors. The proposed approach provides a scalable, learning-driven solution for optimizing memory efficiency and latency in large-scale LLM serving and inference systems.
References
[1] Liu B, Sun Q, Wei L S. Multimodal Forgery Recognition Algorithm and System Design for AI Frauds[C]//Proceedings of the 2nd International Symposium on Integrated Circuit Design and Integrated Systems. 2025: 156-160.
[2] Luo, RuiHan, Nanxi Wang, and Xiaotong Zhu. "Fraud detection and risk assessment of online payment transactions on e-commerce platforms based on llm and gcn frameworks." arXiv preprint arXiv:2509.09928 (2025).
[3] Lee M C, Leu F Y, Chen Y P. Cache replacement algorithms for youtube[C]//2014 IEEE 28th International Conference on Advanced Information Networking and Applications. IEEE, 2014: 743-750.
[4] Kędzierski K, Moreto M, Cazorla F J, et al. Adapting cache partitioning algorithms to pseudo-lru replacement policies[C]//2010 IEEE International Symposium on Parallel & Distributed Processing (IPDPS). IEEE, 2010: 1-12.
[5] Balamash A, Krunz M. An overview of web caching replacement algorithms[J]. IEEE Communications Surveys & Tutorials, 2009, 6(2): 44-56.
[6] Jaleel A, Theobald K B, Steely Jr S C, et al. High performance cache replacement using re-reference interval prediction (RRIP)[J]. ACM SIGARCH computer architecture news, 2010, 38(3): 60-71.
[7] Qureshi M K, Jaleel A, Patt Y N, et al. Adaptive insertion policies for high performance caching[J]. ACM SIGARCH Computer Architecture News, 2007, 35(2): 381-391.
[8] Wu C J, Jaleel A, Hasenplaugh W, et al. SHiP: Signature-based hit predictor for high performance caching[C]//Proceedings of the 44th Annual IEEE/ACM International Symposium on Microarchitecture. 2011: 430-441.
[9] Kirilin V, Sundarrajan A, Gorinsky S, et al. Rl-cache: Learning-based cache admission for content delivery[C]//Proceedings of the 2019 Workshop on Network Meets AI & ML. 2019: 57-63.
[10] Xu M, Zhu M, Liu Y, et al. Deepcache: Principled cache for mobile deep vision[C]//Proceedings of the 24th annual international conference on mobile computing and networking. 2018: 129-144.
[11] Wang Y, Meng Y, Wang J, et al. LSTM-CRP: Algorithm-Hardware Co-Design and Implementation of Cache Replacement Policy Using Long Short-Term Memory[J]. Big Data and Cognitive Computing, 2024, 8(10): 140.
[12] Kwon W, Li Z, Zhuang S, et al. Efficient memory management for large language model serving with pagedattention[C]//Proceedings of the 29th symposium on operating systems principles. 2023: 611-626.
[13] Sheng Y, Zheng L, Yuan B, et al. Flexgen: High-throughput generative inference of large language models with a single gpu[C]//International Conference on Machine Learning. PMLR, 2023: 31094-31116.
[14] Wei H, Wu Y, Li M. RAGN-IIoT: A Retrieval-Augmented NL2SQL Framework with Dynamic Sensor-Selection Guardrails for Industrial IoT Time-Series Data Warehouses[J]. Journal of Computer, Signal, and System Research, 2025, 2(7): 78-88.
[15] Luo R, Hu J, Sun Q. Group Anomaly Detection and Risk Control of Commodity Sales Volume Data Based on LSTM-VAE Framework[J]. Journal of Computer, Signal, and System Research, 2025, 2(7): 48-57.
[16] Yao Y, Zhang W, Li M. Cloud-Edge Federated Incremental Learning Framework for PMSM Efficiency Optimization with Lightweight CNN-LSTM Models and OTA Differential Deployment[J]. Journal of Computer Science and Frontier Technologies, 2026, 3(1): 98-111.
[17] Yao H, Ding J, Wang Z. CloudPayGuard: Hardware-Aware Real-Time Fraud Detection for Cloud-Native Credit Systems with OoO CPU Microarchitecture Optimization[J]. Journal of Computer Science and Frontier Technologies, 2026, 3(2): 154-166.
[18] Liang Z, Wei W, Zhang K, et al. Research on multi-hop inference optimization of llm based on mquake framework[J]. arXiv preprint arXiv:2509.04770, 2025.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Songze Liu, Hongkun Du, Shaowen Wang

This work is licensed under a Creative Commons Attribution 4.0 International License.
License Terms (Recommended – CC BY 4.0)
All articles published in Fundamental Scientific Reports in Multidisciplinary Areas are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license permits unrestricted use, distribution, and reproduction in any medium, provided the original author(s) and source are properly cited. Users are allowed to copy, redistribute, remix, transform, and build upon the material for any purpose, including commercial use, as long as appropriate credit is given.
Authors retain copyright of their work while granting the journal the right of first publication. The journal provides immediate open access to its content on the principle that making research freely available supports a greater global exchange of knowledge.
For more information about this license, visit:
https://creativecommons.org/licenses/by/4.0/