LLavaCode: Compressed Code Representations for Retrieval-Augmented Code Generation

Daria Cherniuk, Nikita Sukhorukov, Nikita Sushko, Daniil Gusak, Danil Sivtsov +2 more
10/22/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Retrieval-augmented generation has emerged as one of the most effective approaches for code completion, particularly when context from a surrounding repository is essential. However, incorporating context significantly extends sequence length, leading to slower inference - a critical limitation for interactive settings such as IDEs. In this work, we introduce LlavaCode, a framework that compresses code into compact, semantically rich representations interpretable by code LLM, enhancing generation quality while reducing the retrieved context to only a few compressed single-token vectors. Using a small projector module we can significantly increase the EM and ES metrics of coding model with negligible latency increase. Our experiments demonstrate that compressed context enables 20-38% reduction in Time-to-First-Token (TTFT) on line completion tasks compared to full-RAG pipelines.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{cherniuk2025llavacode,
  title  = {LLavaCode: Compressed Code Representations for Retrieval-Augmented Code Generation},
  author = {Daria Cherniuk and Nikita Sukhorukov and Nikita Sushko and Daniil Gusak and Danil Sivtsov and Elena Tutubalina and Evgeny Frolov},
  year   = {2025},
  eprint = {2510.19644},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.19644v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.19644.svg)](https://codeofpaper.com/paper/2510.19644)

Discussion