{"slug": "atto-rethinking-compact-embedding-models", "title": "Atto: Rethinking Compact Embedding Models", "summary": "The neuML team released Atto, a family of compact contextual embedding models ranging from an 840-parameter ColBERT configuration to 28-million-parameter dense models, evaluated on three BEIR retrieval datasets using ndcg@10. Atto's 90K-parameter 2048-dimension model averaged 0.4257 across ArguAna, NFCorpus and SciFact, versus 0.4802 for the 23M-parameter all-MiniLM-L6-v2, roughly 256 times fewer parameters, while the 28M-parameter atto-28m-8192d reached 0.5138, above MiniLM and below the 110M-parameter DenseOn at 0.5638. The work tests whether organizations can train and deploy domain-specific embedding models without the infrastructure larger architectures require.", "body_md": "[Viewer • Updated  •  10.1k •  4.08k  •  5](https://huggingface.co/datasets/BeIR/arguana)  \n\n# \n\t\tAtto: Rethinking Compact Embedding Models\n\t\n\n [Community Article](https://huggingface.co/blog/community)\n\nWhat if useful semantic retrieval didn't require millions of parameters?\n\nCan a model with just **840 parameters** perform meaningful retrieval? Can a 90K-parameter dense embedding model approach the performance of models hundreds of times larger?\n\nThese questions motivated **Atto**, a family of compact contextual models exploring parameter efficiency across dense, sparse, and late-interaction retrieval.\n\nAtto spans an unusually broad range of model sizes, from an 840-parameter ColBERT configuration to 28-million-parameter dense embedding models. Across these configurations, it explores how architectural choices, representation strategies, and training methods can deliver useful retrieval capabilities under constrained parameter budgets.\n\nBut the motivation extends beyond building smaller embedding models.\n\n**What if organizations could train and deploy specialized embedding models for their own domains and datasets without requiring the infrastructure traditionally associated with much larger architectures?**\n\nThis article explores Atto's benchmark results, architecture, training methodology, and potential for making domain-specific model development more accessible.\n\n## \n\t\tBenchmark Results: How Small Can Retrieval Models Be?\n\t\n\nAtto's evaluation covers three BEIR retrieval datasets:\n\nThe following table shows a subset of BEIR scored with the [txtai benchmarks script](https://github.com/neuml/txtai/blob/master/examples/benchmarks.py). Scores reported are `ndcg@10`.\n\n### \n\t\tDense Embeddings\n\t\n\nDense Atto models produce fixed-dimensional representations suitable for conventional vector search.\n\n| Model | Parameters | Dimensions | Vocab | ArguAna | NFCorpus | SciFact | Average | \n|---|---|---|---|---|---|---|---|\n| [atto-36k-384d](https://hf.co/neuml/atto-36k-384d-embeddings) | 36K | 384 | 1K | 0.3249 | 0.2286 | 0.4920 | 0.3485 | \n| [atto-50k-768d](https://hf.co/neuml/atto-50k-768d-embeddings) | 50K | 768 | 1K | 0.3264 | 0.2430 | 0.5334 | 0.3676 | \n| [atto-90k-2048d](https://hf.co/neuml/atto-90k-2048d-embeddings) | 90K | 2048 | 1K | 0.4021 | 0.2676 | 0.6074 | 0.4257 | \n| [bert-hash-femto](https://hf.co/neuml/bert-hash-femto-embeddings) | 243K | 128 | 30K | 0.1964 | 0.1402 | 0.2830 | 0.2065 | \n| [bert-hash-pico](https://hf.co/neuml/bert-hash-pico-embeddings) | 442K | 128 | 30K | 0.2853 | 0.2075 | 0.3912 | 0.2947 | \n| [bert-hash-nano](https://hf.co/neuml/bert-hash-nano-embeddings) | 953K | 128 | 30K | 0.3828 | 0.2562 | 0.5032 | 0.3807 | \n| [atto-1m-2048d](https://hf.co/neuml/atto-1m-2048d-embeddings) | 1M | 2048 | 4K | 0.4189 | 0.2941 | 0.6229 | 0.4453 | \n| [atto-1m-4096d](https://hf.co/neuml/atto-1m-4096d-embeddings) | 1M | 4096 | 4K | 0.4223 | 0.3044 | 0.6417 | 0.4561 | \n| [atto-2m-8192d](https://hf.co/neuml/atto-2m-8192d-embeddings) | 2M | 8192 | 4K | 0.4343 | 0.3125 | 0.6653 | 0.4707 | \n| [atto-14m-384d](https://hf.co/neuml/atto-14m-384d-embeddings) | 14M | 384 | 30K | 0.4874 | 0.3329 | 0.6472 | 0.4892 | \n| [atto-17m-8192d](https://hf.co/neuml/atto-17m-8192d-embeddings) | 17M | 8192 | 30K | 0.4963 | 0.3455 | 0.6909 | 0.5109 | \n| [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | 23M | 384 | 30K | 0.4789 | 0.3089 | 0.6527 | 0.4802 | \n| [atto-25m-384d](https://hf.co/neuml/atto-25m-384d-embeddings) | 25M | 384 | 30K | 0.4879 | 0.3426 | 0.6600 | 0.4968 | \n| [atto-28m-8192d](https://hf.co/neuml/atto-28m-8192d-embeddings) | 28M | 8192 | 30K | 0.5111 | 0.3461 | 0.6843 | 0.5138 | \n| [DenseOn](https://huggingface.co/lightonai/denseon) | 110M | 768 | 50K | 0.5408 | 0.3915 | 0.7591 | 0.5638 | \n\nThe 90K model achieves an average of 0.4257, compared with 0.4802 for all-MiniLM-L6-v2, despite having approximately 256 times fewer parameters.\n\nThe 2M model reaches 0.4707, approaching MiniLM's average with substantially fewer parameters. At the larger end, the 17M and 28M models achieve averages of 0.5109 and 0.5138, respectively.\n\nThese results suggest that compact contextual processing networks can produce competitive retrieval representations, particularly when combined with wider output dimensions.\n\n### \n\t\tSparse Embeddings\n\t\n\nAtto's sparse models operate over a fixed-dimensional learned latent space rather than vocabulary-sized output representations.\n\n| Model | Parameters | Dimensions | Vocab | ArguAna | NFCorpus | SciFact | Average | \n|---|---|---|---|---|---|---|---|\n| [atto-17m-8192d-sparse](https://hf.co/neuml/atto-17m-8192d-sparse-embeddings) | 17M | 8192 | 30K | 0.3981 | 0.3208 | 0.6600 | 0.4596 | \n| [atto-28m-8192d-sparse](https://hf.co/neuml/atto-28m-8192d-sparse-embeddings) | 28M | 8192 | 30K | 0.3651 | 0.3292 | 0.6618 | 0.4520 | \n| [SlideOn](https://hf.co/lightonai/slideon) | 174M | 768 | 50K | 0.4655 | 0.3863 | 0.7529 | 0.5349 | \n\nThe 17M sparse model achieves an average of 0.4596, retaining approximately 90% of the corresponding dense model's average score.\n\nThis provides an alternative approach to sparse semantic retrieval without requiring vocabulary-sized output representations.\n\n### \n\t\tColBERT and Late Interaction\n\t\n\nAtto's late-interaction family explores parameter efficiency at an even smaller scale.\n\n| Model | Parameters | Dimensions | Vocab | ArguAna | NFCorpus | SciFact | Average | \n|---|---|---|---|---|---|---|---|\n| [colbert-atto-840-8d](https://hf.co/neuml/colbert-atto-840-8d) | 840 | 8 | 250 | 0.2143 | 0.2585 | 0.4688 | 0.3139 | \n| [colbert-atto-9k-16d](https://hf.co/neuml/colbert-atto-9k-16d) | 9K | 16 | 1K | 0.2459 | 0.2902 | 0.5604 | 0.3655 | \n| [colbert-atto-90k-32d](https://hf.co/neuml/colbert-atto-90k-32d) | 90K | 32 | 4K | 0.3435 | 0.3263 | 0.6663 | 0.4454 | \n| [colbert-atto-950k-128d](https://hf.co/neuml/colbert-atto-950k-128d) | 950K | 128 | 4K | 0.4149 | 0.3352 | 0.6946 | 0.4816 | \n| [colbert-atto-4m-384d](https://hf.co/neuml/colbert-atto-4m-384d) | 4M | 384 | 30K | 0.4157 | 0.3349 | 0.6949 | 0.4818 | \n| [colbert-atto-14m-384d](https://hf.co/neuml/colbert-atto-14m-384d) | 14M | 384 | 30K | 0.4248 | 0.3483 | 0.7057 | 0.4929 | \n| [colbert-atto-25m-384d](https://hf.co/neuml/colbert-atto-25m-384d) | 25M | 384 | 30K | 0.4395 | 0.3461 | 0.7130 | 0.4995 | \n| [LateOn](https://hf.co/lightonai/lateon) | 110M | 768 | 50K | 0.4979 | 0.3802 | 0.7609 | 0.5463 | \n\nTwo results stand out.\n\nFirst, the 840-parameter model achieves an average of 0.3139. Second, the 950K model achieves virtually identical performance to the 4M model:\n\n- 950K parameters: 0.4816.\n- 4M parameters: 0.4818.\n\nThe 950K model uses a smaller vocabulary (4K) but a deeper architecture (4 layers), whereas the 4M model uses a 30K vocabulary and 2 layers.\n\n### \n\t\tInterpreting the Results\n\t\n\nThe benchmarks illustrate several operating points across the Atto family.\n\nSmaller models prioritize parameter efficiency, while larger models generally offer stronger retrieval quality. Representation dimensionality, vocabulary size, pooling strategy, and retrieval architecture also influence performance.\n\n## \n\t\tThe Atto Architecture\n\t\n\nAtto uses a lightweight sequence-processing architecture built around two primary components:\n\n- **GatedConvAttentionMixer:** Combines depthwise convolution with globally contextualized multi-head attention.\n- **PhaseGatedMoE:** Combines local and dilated convolutional experts through parameter-free cross-scale modulation.\n\nTogether, these components provide local and global contextual processing without relying exclusively on conventional Transformer blocks.\n\n### \n\t\tVocabulary Size and Parameter Efficiency\n\t\n\nAtto explores vocabulary sizes ranging from 250 to 30K tokens. Vocabulary size directly affects model parameter count, as larger vocabularies require larger token embedding tables. Atto also incorporates hash embeddings as found with the [BERT Hash series of models](https://medium.com/neuml/training-tiny-language-models-with-token-hashing-b744aa7eb931). With hash embeddings, a larger vocabulary can be projected to a smaller space to help further reduce the parameter count.\n\nSmaller vocabularies reduce embedding parameters but can increase token fragmentation and sequence lengths. Larger vocabularies offer more efficient tokenization at the cost of additional parameters.\n\nAtto explores this tradeoff as another dimension of compact model design.\n\n### \n\t\tGatedConvAttentionMixer\n\t\n\nThe sequence mixer combines local contextual processing with global information exchange.\n\nIt first applies depthwise convolution to the hidden representations, providing local context for each token.\n\nThe resulting features pass through fused projections that produce local gates, local values, and attention queries, keys, and values.\n\nA directional gating mechanism combines two nonlinear activation streams to produce a bounded gating signal. This signal constructs local features that condition the attention projections.\n\nThe same locally derived conditioning signal is applied to the query, key, and value representations, allowing local contextual information to influence global attention.\n\nThe mixer then combines local convolutional features and the global attention output into a single residual update.\n\n### \n\t\tPhaseGatedMoE\n\t\n\nThe second component provides multi-scale feature processing.\n\nIt uses two depthwise convolutional experts:\n\n- A local expert with a kernel size of 3.\n- A dilated expert with a kernel size of 3 and dilation of 2.\n\nThe local expert captures nearby phrase-level information, while the dilated expert processes a wider contextual region.\n\nRather than using a conventional learned expert router, the wider-context expert produces a bounded modulation signal that adjusts the local expert's output.\n\nThe resulting features pass through normalization and asymmetric gating before being projected back into the hidden representation.\n\nThis creates cross-scale interactions without introducing a separate learned routing network.\n\n### \n\t\tResidual Processing\n\t\n\nEach Atto layer contains one sequence mixer and one PhaseGatedMoE block.\n\nBoth operate within a Pre-LayerNorm residual architecture, with separate normalization stages for the mixer and expert components.\n\nThe combination of convolutional feature extraction, global attention, and multi-scale gated processing forms the foundation of Atto's compact contextual architecture.\n\n## \n\t\tCompact Contextual Processing, Expanded Embedding Space\n\t\n\nOne of Atto's defining architectural choices is the separation between its internal processing dimensions and its final embedding dimensions.\n\nRather than performing all contextual processing in a high-dimensional embedding space, Atto first processes token representations in a comparatively compact hidden space.\n\nAfter contextual processing, a learned linear projection expands each token representation into the target embedding space.\n\nThis is particularly important for configurations producing 2048-, 4096-, and 8192-dimensional representations.\n\nThe architecture separates two tasks:\n\n1. Contextual understanding takes place in a compact internal representation.\n2. Learned dimensional expansion produces the wider representations used for retrieval.\n\nThis allows Atto to explore high-dimensional embeddings without requiring the entire contextual processing network to operate at the final embedding dimensionality.\n\n### \n\t\tMean and Max Pooling\n\t\n\nAtto supports different strategies for converting contextual token representations into document-level embeddings.\n\nMost dense configurations use dimension-wise max pooling. Each embedding dimension independently retains its strongest activation across the input sequence.\n\nDifferent dimensions can therefore preserve salient information originating from different token positions.\n\nAtto also includes mean-pooled configurations. The 14M and 25M parameter models with 384-dimensional embeddings use mean pooling, providing a complementary approach to document representation.\n\nThe two strategies offer different tradeoffs between feature selection and aggregation.\n\n### \n\t\tThe Connection to Late Interaction\n\t\n\nThere is an interesting conceptual connection between Atto's max pooling and late-interaction retrieval.\n\nColBERT preserves individual token representations and performs token-to-token matching during retrieval.\n\nAtto's max-pooled dense representations instead perform dimension-wise selection during encoding.\n\nThese approaches are not equivalent, but both emphasize preserving salient token-level information rather than relying exclusively on averaging.\n\nAtto consequently offers an interesting point in the design space between conventional pooled embeddings and explicit token-level late interaction.\n\n## \n\t\tTraining Atto: From Language Modeling to Retrieval\n\t\n\nAtto separates general language representation learning from retrieval-specific optimization.\n\nThe process begins with masked language modeling (MLM), followed by knowledge distillation to transfer retrieval capabilities into compact architectures.\n\n- **Base models:** Masked language modeling on English Wikipedia.\n- **Dense:** Distilled from DenseOn using MS MARCO 500K Triplets.\n- **Sparse:** Distilled from DenseOn using MS MARCO 500K Triplets.\n- **ColBERT:** Distilled using LightOn AI's MS MARCO BGE-Gemma dataset.\n\n### \n\t\tBase Model Pretraining\n\t\n\nThe foundation of the Atto family is masked language modeling on English Wikipedia.\n\nDuring MLM training, portions of the input text are masked, and the model learns to reconstruct missing tokens from their surrounding context.\n\nThis provides the base models with general contextual language representations, including vocabulary, linguistic structure, and relationships between words.\n\n### \n\t\tDense and Sparse Distillation\n\t\n\nBoth dense and sparse Atto models are distilled from [DenseOn](https://huggingface.co/lightonai/denseon) using the [MS MARCO 500K Triplets dataset](https://huggingface.co/datasets/bclavie/msmarco-500k-triplets).\n\nThe dataset provides query, positive passage, and negative passage examples for retrieval supervision.\n\nKnowledge distillation allows the smaller Atto models to learn retrieval-oriented representations from the larger teacher model.\n\nUsing the same teacher and dataset for both retrieval families provides a common foundation while allowing different representation strategies to be explored.\n\n### \n\t\tColBERT Distillation\n\t\n\nThe ColBERT family follows a separate training pipeline using the [LightOn AI MS MARCO BGE-Gemma dataset](https://huggingface.co/datasets/lightonai/ms-marco-en-bge-gemma).\n\nThis provides retrieval supervision for training compact token-level late-interaction models.\n\nUnlike dense retrieval, which produces a single vector for an entire query or document, ColBERT preserves token-level representations for more granular matching.\n\n## \n\t\tThe 840-Parameter Model: How Small Can Retrieval Become?\n\t\n\nOne of the most unusual configurations in the Atto family is `colbert-atto-840-8d`.\n\nWith just **840 parameters**, it achieves an average retrieval score of 0.3139 across ArguAna, NFCorpus, and SciFact.\n\nFor comparison:\n\n| Model | Parameters | Average | \n|---|---|---|\n| BERT Hash Femto | 243K | 0.2065 | \n| BERT Hash Pico | 442K | 0.2947 | \n| Atto ColBERT | 840 | 0.3139 | \n\nThe result is striking because the Atto configuration outperforms both baselines despite having dramatically fewer parameters.\n\nHowever, these models use different retrieval architectures, so this is primarily an illustration of parameter efficiency rather than a direct architectural comparison.\n\nThe 840-parameter model is a ColBERT-style late-interaction model, not a conventional dense embedding model. It retains token-level representations rather than compressing an entire document into one vector.\n\nConsequently, parameter count alone does not describe the total retrieval-system cost. Document representation storage, indexing, and late-interaction scoring also matter.\n\nThe result should not be interpreted as suggesting that an 840-parameter model can replace larger general-purpose embedding models.\n\nInstead, it illustrates how far parameter efficiency can be explored when architecture, representation dimensionality, and retrieval strategy are considered together.\n\n## \n\t\tMaking Domain-Specific Embeddings Practical\n\t\n\nOne of the primary motivations behind Atto is making specialized embedding models more accessible.\n\nMany applications do not need a massive general-purpose embedding model. They need a model that understands a particular collection of documents, terminology, vocabulary, and retrieval requirements.\n\nConsider several examples:\n\n- **Healthcare:** Medical literature, clinical documentation, and specialized terminology.\n- **Legal:** Case law, contracts, legislation, and regulatory documents.\n- **Scientific research:** Research papers and specialized technical terminology.\n- **Enterprise knowledge:** Internal documentation, technical manuals, and organizational knowledge.\n- **Software engineering:** Source code documentation, API references, and technical repositories.\n\nIn these environments, a model trained or adapted for a specific retrieval task could potentially provide better alignment with the target data than a general-purpose model.\n\nAtto explores whether compact architectures can make this kind of specialization more practical.\n\n### \n\t\tMultiple Models for Multiple Domains\n\t\n\nInstead of maintaining one large embedding model for every application, organizations could potentially maintain several smaller models, each optimized for a particular retrieval problem.\n\nFor example, an organization might deploy separate models for legal research, internal documentation, scientific publications, and software repositories.\n\nThis creates flexibility when different datasets have different vocabularies, terminology, and retrieval requirements.\n\nIt also creates opportunities to experiment with domain-specific training and fine-tuning without necessarily requiring the infrastructure associated with much larger architectures.\n\n## \n\t\tModel Availability and Usage\n\t\n\nAtto models are available through the Hugging Face Hub.\n\nExplore the model family:\n\nThe family offers several retrieval configurations:\n\n- **Dense:** Single-vector semantic retrieval using conventional vector search.\n- **Sparse:** Sparse latent-space retrieval using learned contextual features.\n- **ColBERT:** Token-level late-interaction retrieval for granular query-document matching.\n\nWhen selecting a checkpoint, consider parameter count, embedding dimensionality, vocabulary size, pooling strategy, retrieval quality, and indexing requirements.\n\nConsult the individual model cards for configuration details, loading instructions, and usage examples.\n\n## \n\t\tConclusion\n\t\n\nAtto explores how far parameter efficiency can be pushed in contextual embedding models.\n\nBy combining convolution-conditioned attention, multi-scale gated processing, and learned dimensional expansion, it investigates a range of retrieval architectures spanning dense, sparse, and token-level representations.\n\nThe benchmark results demonstrate promising retrieval capabilities across a wide range of model sizes, from an 840-parameter ColBERT configuration to 28-million-parameter dense embeddings.\n\nHowever, the broader motivation behind Atto is not simply minimizing parameter counts.\n\n**It is making specialized models more practical to develop and deploy.**\n\nSmaller architectures create opportunities for organizations to experiment with embedding models tailored to their own datasets, terminology, and retrieval requirements. Rather than relying exclusively on large general-purpose models, different applications could potentially use specialized models optimized for their particular domains.\n\nThere is also an opportunity to explore compact pretrained architectures for specialized decision models, extending Atto beyond semantic retrieval.\n\nUltimately, the interesting question is not just how small an embedding model can become, but how much useful capability can be delivered within a given computational budget.\n\n**Atto is not simply about smaller embedding models. It is about making specialized models practical.**\n\n*Atto: compact contextual processing, expanded representations, and a more accessible path to specialized models.*", "url": "https://wpnews.pro/news/atto-rethinking-compact-embedding-models", "canonical_source": "https://huggingface.co/blog/NeuML/introducing-atto", "published_at": "2026-11-25 23:24:31+00:00", "updated_at": "2026-11-25 23:42:28.507562+00:00", "lang": "en", "topics": ["machine-learning", "ai-research", "natural-language-processing", "ai-tools"], "entities": ["Atto", "neuML", "BEIR", "all-MiniLM-L6-v2", "DenseOn", "ArguAna", "NFCorpus", "SciFact"], "also_reported_by": [], "takeaway": "Atto's 90K-parameter 2048-dimension dense model averages 0.4257 ndcg@10 on ArguAna, NFCorpus and SciFact versus 0.4802 for the 23M-parameter all-MiniLM-L6-v2, about 256 times fewer parameters.", "recommendation": {"advice": "Benchmark compact dense embedders like Atto's 90K-parameter 2048-dimension model on your own BEIR-style retrieval sets before assuming a 23M-parameter baseline like all-MiniLM-L6-v2 is required.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/atto-rethinking-compact-embedding-models", "markdown": "https://wpnews.pro/news/atto-rethinking-compact-embedding-models.md", "text": "https://wpnews.pro/news/atto-rethinking-compact-embedding-models.txt", "jsonld": "https://wpnews.pro/news/atto-rethinking-compact-embedding-models.jsonld"}}