A new arXiv paper, CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residuals, tackles a simple inefficiency: when many queries are run over the same documents, standard Transformers repeatedly execute the same lower layers. The authors propose reusing those computations across queries rather than starting from scratch each time.
The method introduces a memory mechanism built around intermediate residuals. Specifically, CoMem treats split depth as a reusable dimension: it writes one depth-j residual per token, which can then be selected for later use. This turns part of the network's forward pass into persistent context rather than transient computation.
The significance is practical for workloads with large shared corpora and many user queries. By keeping lower-layer residuals available, the model avoids redundant work and focuses per-query computation on higher layers. The provided abstract does not include experimental results, so the reported benefits are not yet assessed here.