Language-model efficiency is often discussed through concepts that are related but not equivalent: token count, embedding dimensionality, parameter count, key-value cache size, and retrieved-context length. This article presents a structured critical review, supported by document-level traceability, of matrix and vector methods used to reduce storage and inference costs in language models and retrieval-augmented generation (RAG) systems. The analysis shows that matrix factorization, adaptive embeddings, and Matryoshka representations compress parameters or vectors but do not automatically decrease the number of input tokens. Direct token reduction requires sequence-level interventions, including appropriate tokenization, selection, prompt compression, gist tokens, and retrieved-context control. KV-cache compression reduces memory and latency without necessarily changing the tokens submitted to the model. We propose a mathematical framework that separates V (vocabulary size), d (embedding dimension), n (sequence length), k (number of retrieved documents or passages), and nKV (cache positions retained).
Dense embeddings are foundational to contemporary natural language processing, information retrieval, recommendation, and retrieval-augmented generation. Nevertheless, a single general-purpose vector typically superimposes multiple relations—topic, entailment, sentiment, part–whole structure, evidential role, temporality, and domain-specific constraints—within one geometry and one similarity function. This article presents layered semantic refinement (LSR) as a framework and evaluation protocol rather than as a single universally validated algorithm. LSR retains a general encoder as a transferable semantic substrate while explicit modules reorganize, augment, or index its representations for a defined operational objective. The framework covers learned projections, nonlinear adapters, graph message passing, hierarchical aggregation, deterministic rule channels, clustering, multi-view representations, and prompt-conditioned embeddings.
Pedro Emílio Amador Salomão· Nexus Science Review· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.