Large Language Model Landscape and Selection Guide: From Architecture to Production
This article breaks down the large language model landscape from an engineering perspective, covering the three core architecture families, why decoder-only models have become the dominant general-purpose paradigm, and how to decide between prompting, retrieval-augmented generation, and fine-tuning. It also outlines six verifiable dimensions for evaluating base models, common techniques for unlocking model capability, and a practical path for packaging applications from plugins to agents. Readers will find a reproducible selection workflow and deployment guidance for moving LLMs into production.
1. Why “Being Conversational” Is Only the Surface of LLMs
Over the past two years, public perception of large language models has mostly stopped at “they can chat and write articles.” From an engineering standpoint, however, conversation is just the interaction shell. The real value lies in the general language understanding and generation capability formed through pre-training on massive corpora, along with the ability to adapt to new tasks quickly through in-context learning.
To judge whether a model is ready for a production system, you need to look at three things: the underlying architecture and training paradigm, how capabilities are elicited, and how the application is packaged. Missing any one of these layers will significantly degrade the final result.
2. The Technical Landscape: Three Architectures and Converging Paradigms
The evolution of language models can be abstracted into three main lines:
- Encoder-only: Built around bidirectional encoding, it excels at understanding-oriented tasks such as text classification, retrieval ranking, and information extraction. Early pre-trained language models are typical examples.
- Encoder-Decoder: Encoding and decoding are separated, making it a natural fit for sequence-to-sequence tasks such as translation and summarization. Some Chinese open-source models also follow this route.
- Decoder-only: Predicts the next token autoregressively, covering understanding, generation, and reasoning through a unified objective function.
The industry has gradually reached a consensus: decoder-only is currently the strongest general-purpose paradigm. The reasons are not mysterious:
- The objective function is unified, so pre-training and downstream usage stay consistent, reducing the cost of switching between tasks.
- Without the structural constraints of bidirectional attention, the model can devote all of its parameters to modeling long-range dependencies, often performing better at the same parameter count.
- It scales more easily, with mature training and inference engineering pipelines that make parallelism and memory optimization straightforward.
- It has strong in-context learning ability, adapting to new tasks through prompting without updating weights.
It is worth emphasizing that encoder-decoder models have not been phased out. In latency-sensitive scenarios with controllable output length and clear task boundaries—such as structured extraction and fixed-template generation—they remain a cost-effective choice.
3. Prompting, RAG, or Fine-Tuning: From “Training a Model” to “Calling a Capability”
The traditional approach was to prepare labeled data for each task, run full or lightweight fine-tuning, and ship a dedicated model. LLMs have changed this paradigm without making fine-tuning disappear; instead, they have redrawn the division of labor:
- Divergent tasks, scarce samples, fast-changing requirements: Prioritize prompt engineering and in-context learning, where the marginal cost is extremely low.
- Stable tasks, high call volume, strict format and style requirements: Consider parameter-efficient fine-tuning (such as training only a small number of adapter parameters) to balance cost and quality.
- Private knowledge and strong compliance needs: Prioritize retrieval-augmented generation (RAG) by keeping knowledge in an external knowledge base, leaving the model responsible only for understanding and expression, and avoiding the risk of freezing volatile knowledge into weights.
A practical order of decision is: try prompting first, then retrieval augmentation, and only then consider fine-tuning. Many teams skip the first two steps and jump straight to fine-tuning, which locks business knowledge inside the model and forces a full retraining cycle every time an update is needed.
4. How to Choose a Base Model: Six Verifiable Dimensions
Selection should not rely on leaderboard rankings; it should be built on a reproducible evaluation set. Focus on the following:
- Language and domain fit: The proportion of Chinese (or target-language) corpora, coverage of industry terminology, and tokenization efficiency (how many tokens the same text consumes directly affects cost).
- Context window and long-text handling: Whether the model can reliably use long context, rather than “supporting the length but forgetting the middle.”
- Reasoning and instruction following: Whether multi-step reasoning, format constraints, and refusal boundaries are controllable.
- Deployment form: Public cloud API, dedicated instances, or on-premises deployment, each with different data compliance and operational costs.
- Ecosystem completeness: Whether mature tooling for fine-tuning, evaluation, orchestration, and observability is available.
- Total cost of ownership: Factor in token pricing, concurrency limits, scaling methods, and monitoring and alerting together.
In related practice at Baidu AI Cloud, the usual recommendation is to first run a small-scale blind test set for a side-by-side comparison, then narrow down to two or three candidates for a canary rollout and validate with real traffic.
5. Eliciting Capability: Unlocking the Model’s Potential
With the same base model, different prompting approaches can produce results that differ by several times. Common general-purpose methods include:
- Chain-of-thought prompting: Guides the model to write out intermediate steps explicitly, suitable for math, logic, and multi-constraint tasks.
- Self-consistency sampling: Samples multiple times and takes a vote to reduce errors caused by single-run randomness.
- Decomposition and self-questioning: Breaks a complex problem into sub-problems, solves them one by one, and then merges the results.
- Tool calling and retrieval: Hands computation, queries, and business APIs to external tools, while the model handles planning and integration.
An illustrative prompt structure:
Role: You are a senior data analysis assistantInput: {user question}Constraints: Answer only based on the provided material; explicitly state missing items when the material is insufficientSteps: 1. Break down the question 2. List required data 3. Compute 4. Verify 5. Output conclusionOutput: JSON with fields conclusion / evidence / missing
In engineering practice, you also need structured output constraints, control over sampling parameters such as temperature, and failure retries with result validation before a feature can be shipped reliably.
6. Application Forms: A Packaging Path from Plugins to Agents
The application layer has evolved along three paths: first, standalone conversational applications; second, extending the model’s boundaries through plugins or function calling; and third, agents with task planning, memory, tool orchestration, and self-reflection capabilities.
For implementation, follow the minimum closed-loop principle: first get one high-frequency, fault-tolerant scenario working end to end, connect logging and monitoring with alerting, collect real failure samples, and then gradually expand tool permissions and the degree of automation. Permission design is especially critical—write operations should retain a human confirmation step.
7. Conclusion
Competition in large language models has shifted from “parameter scale” to “engineering execution capability.” Understanding the trend toward architectural convergence, building a reproducible selection and evaluation process, mastering capability elicitation methods, and packaging applications in small, fast iterations is the reliable path to turning models into productivity.
