AI, explained plainly
Concepts, models, methods and products, each in a single plain-language version. No jargon walls, no hype: read it and you can follow it, judge it and put it to use.
Speculative decoding is a decoding strategy that accelerates autoregressive text generation: a small, fast draft model guesses several tokens in a row, and the target large model then verifies these guesses in a single pass, keeping as much of the correct part as possible. The key is that it does not change the output distribution mathematically, making it an almost lossless acceleration method.
Models and algorithms64 views KV CacheKV Cache is the mechanism in autoregressive generation that caches the key and value vectors of historical positions, avoiding recomputation of the entire context each time a new token is generated. It is the precondition that makes an inference engine practical, and also the main source of memory pressure in long-context serving.
Models and algorithms68 views MemGPT and Memory MechanismsMemGPT is an architectural paradigm that combines large language models with a hierarchical memory system, whose core idea is to borrow the memory management mechanisms of operating systems to extend the effective context of a model. It is one of the first generation of engineering solutions to the fundamental contradiction that context windows are limited while conversations and documents keep growing, proposed in 2023 by researchers at the University of California, Berkeley.
Models and algorithms65 views Contrastive LearningContrastive learning is a self-supervised representation learning method whose core is to teach a model to pull similar samples closer and push dissimilar samples apart. It occupies a pivotal position in modern representation learning and is the common foundation of visual pretraining methods such as SimCLR and MoCo, as well as sentence embedding and image-text retrieval models.
Models and algorithms62 views Self-Supervised LearningSelf-supervised learning is a learning paradigm that constructs supervision signals from the data itself and requires no human-annotated labels. It is the dominant method for large-scale pretraining today: BERT, MAE, CLIP and even the pretraining stage of large language models all fall into this category.
Models and algorithms64 views Masked Language Model (MLM)A masked language model is a self-supervised pretraining objective that randomly masks some tokens in the input and has the model restore them from context. It is the core training task of BERT and the foundational design of understanding-oriented language models.
Models and algorithms65 views Instruction TuningInstruction tuning is a method of supervised training with data pairs in the form of instruction plus response, aimed at teaching a pretrained model to follow human instructions. It is the first key step in turning a language model that can only continue text into a usable assistant.
Models and algorithms61 views Supervised Fine-Tuning (SFT)Supervised fine-tuning is the process of further training a large model on high-quality human demonstration data, usually called SFT in the alignment pipeline. It is the standard step after pretraining and before preference optimization, and it determines the model's basic behavioral style and answer quality.
Models and algorithms63 views Reward ModelA reward model, abbreviated RM, is a neural network that converts human preferences into a computable scalar and plays the role of judge in the alignment pipeline of large models. It sits after supervised fine-tuning and before reinforcement learning, and it is the link in the whole reinforcement learning from human feedback (RLHF) chain that is most easily underestimated yet most decisive for the ceiling.
Models and algorithms68 views PPO Proximal Policy OptimizationPPO (Proximal Policy Optimization) is a policy-gradient reinforcement learning algorithm whose core idea is to keep the new policy from moving too far from the old one in each update. It is widely used in large model alignment and is the most mainstream reinforcement learning optimizer of the RLHF era.
Models and algorithms66 views DPO Direct Preference OptimizationDPO (Direct Preference Optimization) is an alignment method that skips the reward model and reinforcement learning and trains a language model directly on preference pairs. It compresses the complex RLHF pipeline into a single supervised-style classification training and is the most practical simplification in alignment engineering in recent years.
Models and algorithms55 views GRPO Group Relative Policy OptimizationGRPO (Group Relative Policy Optimization) is a reinforcement learning algorithm proposed by DeepSeek that replaces value-network advantage estimation with the within-group relative performance of multiple samples drawn for the same question. In large model reasoning training it achieves near or even better results at significantly lower memory cost.
Models and algorithms50 views 3D Parallel Training3D parallel training is an engineering method that combines data parallelism, tensor parallelism and pipeline parallelism to train very large models. It solves the basic contradiction that a single GPU can neither hold the model nor run the training, and is the standard architecture for training hundred-billion-parameter models.
Models and algorithms66 views Activation CheckpointingActivation checkpointing (also called gradient checkpointing or recomputation) is a classic technique for trading extra compute for memory when training deep networks. It stores only a few intermediate activations during the forward pass and recomputes the discarded activations during backpropagation, thereby reducing activation memory from scaling with the number of layers to depending on the number of checkpoints.
Models and algorithms62 views