Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Large Concept Models (LCMs)

Large concept models (LCMs) predict the next sentence embedding instead of the next token. Covers Meta's LCM, the SONAR space, variants, and limits.

A large concept model (LCM) is a language model that predicts the next sentence-level embedding, called a concept, instead of the next token. Meta FAIR introduced the architecture in December 2024 in Large Concept Models: Language Modeling in a Sentence Representation Space, treating each sentence as one concept and modeling a document as a sequence of sentence vectors. Those vectors come from SONAR, a fixed sentence embedding space that supports text input and output in 200 languages and speech input in 76, so the model in the middle reasons over meaning without being tied to one language's wording.

How Large Concept Models Work#

A conventional large language model (LLM) runs tokenization and predicts one subword at a time. An LCM splits the input into sentences, encodes each with the frozen SONAR encoder into a vector of 1,024 numbers, and feeds that sequence to a transformer that predicts the next sentence vector. Text generation repeats that step until the model signals the end of the document, and the frozen SONAR decoder turns each predicted vector back into a sentence in any supported language:

The core is an ordinary causal transformer whose sequence elements are sentence vectors. The simplest variant, Base-LCM, trains it to regress each next vector with a mean squared error loss, as in this PyTorch sketch of one training step:

import torch
from torch import nn

torch.manual_seed(0)

# A document of 6 sentences, each already encoded as a 1024-number SONAR-sized concept vector
concepts = torch.randn(1, 6, 1024)

# A causal transformer over sentence vectors, the core of a Base-LCM
layer = nn.TransformerEncoderLayer(d_model=1024, nhead=16, batch_first=True)
lcm = nn.TransformerEncoder(layer, num_layers=2)
causal = nn.Transformer.generate_square_subsequent_mask(5)

# Each position predicts the next sentence's vector, trained by regression instead of a softmax over tokens
predicted = lcm(concepts[:, :-1], mask=causal, is_causal=True)
loss = nn.functional.mse_loss(predicted, concepts[:, 1:])
loss.backward()
print(f"Next-concept predictions: {tuple(predicted.shape)}")

It prints Next-concept predictions: (1, 5, 1024): five predictions, each a full 1,024-number sentence vector, where a token-level model would output five probability distributions over its vocabulary. Meta's training data averaged about 19 tokens per sentence, so an LCM processes sequences roughly 19 times shorter than an LLM does for the same text.

Phrase-level vectors of this kind also drive open-vocabulary detection. Ultralytics YOLOE encodes each class prompt passed to set_classes(), such as "double-decker bus", into a single MobileCLIP text embedding and matches image regions against those vectors, so one embedding stands for the whole phrase.

Base, Diffusion, and Quantized Variants#

A regression loss pulls each prediction toward the average of all plausible next sentences, which can decode to bland or blurred text. Meta therefore also built diffusion LCMs, which start the next vector from noise and denoise it step by step conditioned on the previous sentences, applying diffusion models to embeddings. The One-Tower version uses a single transformer for context and denoising, and the Two-Tower version separates them. Quant-LCM instead discretizes SONAR space with residual vector quantization and predicts the resulting codes much as an LLM predicts tokens.

Meta ran its comparisons with 1.6-billion-parameter models trained on about 1.3 trillion tokens, then scaled the Two-Tower diffusion LCM to 7 billion parameters trained on 142.4 billion sentences, or 2.7 trillion tokens, and released the training code. On zero-shot text summarization with the XLSum dataset across 42 languages, the 7B LCM scored a Rouge-L of 23.5 in English against 20.7 for Llama-3.1-8B-Instruct.

Limits#

Compressing a sentence into 1,024 numbers can blur exact names, numbers, and code, and the frozen decoder can only reproduce what the embedding preserves. Treating one sentence as one concept is a practical choice, since a sentence can hold several ideas and an idea can span several sentences. The fixed SONAR space also means the LCM cannot represent anything SONAR's encoder never learned to encode, and three of XLSum's 45 languages were left out of the evaluation for that reason.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning