{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,30]],"date-time":"2026-10-30T02:29:19Z","timestamp":1793327359548,"version":"4.5.0"},"reference-count":72,"publisher":"Institute of Electrical and Electronics Engineers (IEEE)","issue":"6","license":[{"start":{"date-parts":[[2025,6,1]],"date-time":"2025-06-01T00:00:00Z","timestamp":1748736000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/ieeexplore.ieee.org\/Xplorehelp\/downloads\/license-information\/IEEE.html"},{"start":{"date-parts":[[2025,6,1]],"date-time":"2025-06-01T00:00:00Z","timestamp":1748736000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-029"},{"start":{"date-parts":[[2025,6,1]],"date-time":"2025-06-01T00:00:00Z","timestamp":1748736000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-037"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62372232"],"award-info":[{"award-number":["62372232"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100011246","name":"State Key Laboratory of Novel Software Technology, Nanjing University","doi-asserted-by":"publisher","award":["KFKT2023A04"],"award-info":[{"award-number":["KFKT2023A04"]}],"id":[{"id":"10.13039\/501100011246","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IIEEE Trans. Software Eng."],"published-print":{"date-parts":[[2025,6]]},"DOI":"10.1109\/tse.2025.3570680","type":"journal-article","created":{"date-parts":[[2025,5,15]],"date-time":"2025-05-15T17:32:45Z","timestamp":1747330365000},"page":"1866-1881","source":"Crossref","is-referenced-by-count":6,"title":["Anchor Attention, Small Cache: Code Generation With Large Language Models"],"prefix":"10.1109","volume":"51","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-6271-746X","authenticated-orcid":false,"given":"Xiangyu","family":"Zhang","sequence":"first","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3723-7584","authenticated-orcid":false,"given":"Yu","family":"Zhou","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3374-6680","authenticated-orcid":false,"given":"Guang","family":"Yang","sequence":"additional","affiliation":[{"name":"College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3874-5628","authenticated-orcid":false,"given":"Harald C.","family":"Gall","sequence":"additional","affiliation":[{"name":"University of Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5993-1665","authenticated-orcid":false,"given":"Taolue","family":"Chen","sequence":"additional","affiliation":[{"name":"School of Computing and Mathematical Sciences, Birkbeck, University of London, London, U.K."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"263","reference":[{"key":"ref1","article-title":"Evaluating Large Language Models Trained on Code","author":"Chen","year":"2021"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1126\/science.abq1158"},{"key":"ref3","article-title":"Incoder: A generative model for code infilling and synthesis","author":"Fried","year":"2022"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1038\/s41368-023-00239-y"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1016\/j.hcc.2024.100211"},{"key":"ref6","article-title":"GPT-4 technical report","year":"2023"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1145\/3695988"},{"key":"ref8","article-title":"Codegen: An open large language model for code with multi-turn program synthesis","author":"Nijkamp","year":"2022"},{"key":"ref9","article-title":"Code Llama: Open foundation models for code","author":"Roziere","year":"2023"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1145\/3580305.3599790"},{"key":"ref11","doi-asserted-by":"publisher","DOI":"10.1145\/3487569"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.1706.03762"},{"key":"ref13","article-title":"Neural machine translation by jointly learning to align and translate","author":"Bahdanau","year":"2014"},{"key":"ref14","article-title":"Flashdecoding++: Faster large language model inference on GPUs","author":"Hong","year":"2023"},{"key":"ref15","article-title":"WKVQUANT: Quantizing weight and key\/value cache for large language models gains more","author":"Yue","year":"2024"},{"key":"ref16","article-title":"Loma: Lossless compressed memory attention","author":"Wang","year":"2024"},{"key":"ref17","article-title":"Extending context window of large language models via positional interpolation","author":"Chen","year":"2023"},{"key":"ref18","article-title":"LongFormer: The long-document transformer","author":"Beltagy","year":"2020"},{"key":"ref19","article-title":"Efficient streaming language models with attention sinks","author":"Xiao","year":"2023"},{"key":"ref20","first-page":"34661","article-title":"H2o: Heavy-hitter oracle for efficient generative inference of large language models","volume":"37","author":"Zhang","year":"2023","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref21","article-title":"Model tells you what to discard: Adaptive KV Cache Compression for LLMs","author":"Ge","year":"2023"},{"key":"ref22","first-page":"17413","article-title":"Scatterbrain: Unifying sparse and low-rank attention","volume":"34","author":"Chen","year":"2021","journal-title":"Advances in Neural Inf. Process. Syst."},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1145\/3714462"},{"key":"ref24","first-page":"31693","article-title":"Repository-level prompt generation for large language models of code","volume-title":"Proc. Int. Conf. Mach. Learn.","author":"Shrivastava","year":"2023"},{"key":"ref25","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.151"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1109\/TIT.2009.2027527"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.609"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR52733.2024.01274"},{"key":"ref29","article-title":"Anchor function: A type of benchmark functions for studying language models","author":"Zhang","year":"2024"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2024.findings-acl.295"},{"key":"ref31","article-title":"Babilong: Testing the limits of LLMs with long context reasoning-in-a-haystack","author":"Kuratov","year":"2024"},{"key":"ref32","article-title":"Needle in the haystack for memory based large language models","author":"Chaudhury","year":"2024"},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1016\/j.plrev.2017.03.002"},{"key":"ref34","article-title":"From token to line: Enhancing code generation with a long-term perspective","author":"Lu","year":"2025"},{"issue":"1","key":"ref35","first-page":"12","article-title":"A mathematical framework for transformer circuits","volume":"1","author":"Elhage","year":"2021","journal-title":"Transformer Circuits Thread"},{"key":"ref36","first-page":"21558","article-title":"Is your code generated by ChatGPT really correct? Rigorous evaluation of large language models for code generation","volume":"37","author":"Liu","year":"2023","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref37","article-title":"Program synthesis with large language models","author":"Austin","year":"2021"},{"key":"ref38","article-title":"Codexglue: A machine learning benchmark dataset for code understanding and generation","author":"Lu","year":"2021"},{"key":"ref39","doi-asserted-by":"publisher","DOI":"10.1145\/3520312.3534862"},{"key":"ref40","article-title":"Exploring and evaluating hallucinations in LLM-powered code generation","author":"Liu","year":"2024"},{"key":"ref41","article-title":"Lora: Low-rank adaptation of large language models","author":"Hu","year":"2021"},{"key":"ref42","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2022.emnlp-main.210"},{"key":"ref43","article-title":"Defending large language models against attacks with residual stream activation analysis","author":"Kawasaki","year":"2024"},{"key":"ref44","article-title":"An adversarial example for direct logit attribution: Memory management in Gelu-4l","author":"Dao","year":"2023"},{"key":"ref45","first-page":"17","article-title":"The singular value decompositions of transformer weight matrices are highly interpretable","volume-title":"AI Alignment Forum","author":"Millidge","year":"2022"},{"key":"ref46","article-title":"Dola: Decoding by contrasting layers improves factuality in large language models","author":"Chuang","year":"2023"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639120"},{"key":"ref48","article-title":"Llama 2: Open foundation and fine-tuned chat models","author":"Touvron","year":"2023"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2022.3233901"},{"key":"ref50","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.232"},{"key":"ref51","first-page":"10088","article-title":"QLORA: Efficient finetuning of quantized LLMs","volume":"36","author":"Dettmers","year":"2023","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref52","article-title":"GPU performance background user\u2019s guide","year":"2022"},{"key":"ref53","first-page":"711","article-title":"Data movement is all you need: A case study on optimizing transformers","volume":"3","author":"Ivanov","year":"2021","journal-title":"Proc. Mach. Learn. Syst."},{"key":"ref54","first-page":"16344","article-title":"Flashattention: Fast and memory-efficient exact attention with IO-awareness","volume":"35","author":"Dao","year":"2022","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref55","first-page":"21314","article-title":"CODERL: Mastering code generation through pretrained models and deep reinforcement learning","volume":"35","author":"Le","year":"2022","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref56","doi-asserted-by":"publisher","DOI":"10.1108\/ws.2000.07949fab.004"},{"key":"ref57","article-title":"Deepseek-Coder: When the large language model meets programming\u2013the rise of code intelligence","author":"Guo","year":"2024"},{"key":"ref58","article-title":"Deepseek-Coder-v2: Breaking the barrier of closed-source models in code intelligence","author":"Zhu","year":"2024"},{"key":"ref59","article-title":"SantaCoder: Don\u2019t Reach for the Stars!","author":"Allal","year":"2023"},{"key":"ref60","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.68"},{"key":"ref61","doi-asserted-by":"publisher","DOI":"10.1145\/3611643.3616302"},{"key":"ref62","first-page":"5958","article-title":"Train big, then compress: Rethinking model size for efficient training and inference of transformers","volume-title":"Proc. Int. Conf. Mach. Learn.","author":"Li","year":"2020"},{"key":"ref63","doi-asserted-by":"publisher","DOI":"10.1145\/3650212.3680343"},{"key":"ref64","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3376964"},{"key":"ref65","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3428324"},{"key":"ref66","article-title":"Compressive transformers for long-range sequence modelling","author":"Rae","year":"2019"},{"key":"ref67","first-page":"19327","article-title":"Learning to compress prompts with gist tokens","volume":"37","author":"Mu","year":"2023","journal-title":"Proc. Adv. Neural Inf. Process. Syst."},{"key":"ref68","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.794"},{"key":"ref69","article-title":"Yarn: Efficient context window extension of large language models","author":"Peng","year":"2023"},{"key":"ref70","article-title":"Fast transformer decoding: One write-head is all you need","author":"Shazeer","year":"2019"},{"key":"ref71","article-title":"Deepseek LLM: Scaling open-source language models with Longtermism","author":"Bi","year":"2024"},{"key":"ref72","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.298"}],"container-title":["IEEE Transactions on Software Engineering"],"original-title":[],"link":[{"URL":"http:\/\/xplorestaging.ieee.org\/ielx8\/32\/11048386\/11005718.pdf?arnumber=11005718","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,24]],"date-time":"2025-06-24T07:08:58Z","timestamp":1750748938000},"score":1,"resource":{"primary":{"URL":"https:\/\/ieeexplore.ieee.org\/document\/11005718\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6]]},"references-count":72,"journal-issue":{"issue":"6"},"URL":"https:\/\/doi.org\/10.1109\/tse.2025.3570680","relation":{},"ISSN":["0098-5589","1939-3520","2326-3881"],"issn-type":[{"value":"0098-5589","type":"print"},{"value":"1939-3520","type":"electronic"},{"value":"2326-3881","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6]]}}}