Limitations, Ethics, and Responsible Use
14.1 Hallucinations and Fabrication of Information
One of the most significant limitations of LLMs is the phenomenon called “hallucination”, in which the model generates content that seems plausible but is factually incorrect, made up, or unsupported by the training data.
Hallucinations occur because the model is optimized to generate text that seems coherent, not necessarily to verify facts. It can generate specific details about historical events, citations of nonexistent research, or incorrect technical explanations with high confidence, because it was trained to produce fluent text even when accuracy cannot be verified.
Mitigating hallucinations is an active field of research, involving techniques such as retrieval-augmented generation (RAG), in which the model is combined with external knowledge bases, and verification techniques that encourage the model to express uncertainty.
14.2 Bias and Discrimination
LLMs learn from human data and, as such, can incorporate and amplify biases present in that data. This can manifest as the generation of stereotyped, discriminatory, or offensive text in certain contexts.
Bias can appear in multiple forms: gender bias in descriptions of professions, racial bias in name associations, cultural bias in jokes or references, and so on. Mitigating these biases is challenging, because different interventions can have unexpected side effects and the concept of “bias” is complex and context-dependent.
14.3 Consistency and Coherence in Long Generation
Although LLMs excel at generating locally coherent text, maintaining global coherence in very long texts is challenging. The model may “forget” information introduced early in the text, contradict earlier statements, or lose the narrative thread as it generates more content.
This problem is a direct consequence of context limitations and of the autoregressive nature of generation. Techniques such as chain-of-thought prompting (encouraging the model to think out loud), tree-of-thought reasoning, and architectures with external memory are being explored as possible solutions.
14.4 Computational and Environmental Cost
Training and inference of LLMs require massive computational resources. Training a state-of-the-art model can cost tens of millions of dollars in compute, not to mention the significant energy consumption.
The environmental implications of training LLMs are a growing concern. The carbon footprint of training large models can be substantial. Researchers are exploring techniques to reduce computational cost, such as energy-efficient training and the use of dedicated hardware.
14.5 Reasoning Limitations
A known limitation should become an engineering requirement. If facts can be made up, connect the model to retrievable sources and show the evidence. If the output will be executed, apply syntactic validation, permission limits, and human confirmation. If the domain is sensitive, maintain audit trails and a safe fallback for failures.
Despite demonstrating impressive capabilities, LLMs have fundamental limitations in tasks that require formal reasoning, rigorous mathematics, or complex deductive logic. They can produce numerically incorrect answers, fail to notice logical contradictions, or be easily fooled by subtle changes in reasoning problems.
The research community debates whether LLMs are capable of genuinely “reasoning” or are simply retrieving and recombining patterns observed during training. This question remains open and is fundamental to understanding both the capabilities and the limits of these models.
14.6 Adversarial Evaluation
Beyond measuring the average task, test ambiguous inputs, negations, long texts, different languages, out-of-distribution data, and prompt-injection attempts. A single aggregate number can hide serious failures in subgroups.
Confidence calibration
The confident tone of an answer is neither a measure of probability nor of truthfulness. Responsible interfaces should communicate uncertainty based on external checks, not merely ask the model itself to state its confidence.
14.7 Privacy and Personal Data
Extensive corpora may contain personal information, secrets, or content without proper authorization. Beyond curation before training, production systems need to limit the collection, retention, and access of prompts. Logs useful for observability are also a risk surface and must follow explicit minimization and disposal policies.
14.8 Disinformation and Malicious Use
Cheap, large-scale generation can support fraud, manipulation, and misleading content. Mitigations include authentication, usage limits, abuse detection, traceability, and human review in high-impact operations. Isolated filters do not replace an analysis of the complete flow in which the model is embedded.
14.9 Work, Responsibility, and Accountability
Automation changes tasks and distributes benefits and costs unevenly. A responsible deployment defines who answers for errors, how a decision can be contested, and when a person must take control. The model provider, the integrating organization, and the operator have different responsibilities, which must be documented.
14.10 Responsible Engineering Process

| Area | Minimum action |
|---|---|
| Data | Remove or protect personal information and document provenance. |
| Evaluation | Test quality, biases, abuse, and groups relevant to the domain. |
| Operation | Apply least-privilege permissions, monitoring, and incident response. |
| Transparency | Publish limitations, intended uses, and those responsible for the system. |
The debate over whether models “understand” language should not replace behavioral testing. Regardless of the philosophical interpretation, deployment decisions must rest on observable capabilities and failures.
14.11 Why Hallucinations Happen
The autoregressive objective rewards probable continuations, not an explicit lookup of facts. When the context is insufficient, contradictory, or far from the training data, the model still has to distribute probability over the vocabulary. Looser sampling strategies can increase variety, but the structural cause remains: fluency does not imply a connection to evidence.
Mitigations operate at different levels. Prompts can require limits and uncertainty; retrieval provides documents; tools query up-to-date systems; fine-tuning adjusts behavior; external validation checks formats or facts. No technique eliminates the problem in all domains.
14.12 RAG as a System, Not a Long Prompt
In retrieval-augmented generation (RAG), a query is transformed into a search representation, relevant documents are retrieved, and selected passages enter the generator’s context.

Failures can occur at each stage: the correct document may not exist, the search may not retrieve it, the excerpt may strip away context, or the model may ignore the evidence. Evaluate retrieval and generation separately. Citations should point to passages that were actually used and be checked, not merely formatted.
14.13 Prompt Injection and Trust Boundaries
An injection occurs when untrusted content tries to pass itself off as an instruction. This is especially dangerous in systems that read web pages, emails, or documents and then trigger tools. Separating messages by role helps, but does not make external data trustworthy.
Treat the model’s output as untrusted input. Tools should validate arguments, apply allowlists of permitted operations, limit scope, and ask for confirmation for sensitive actions. Secrets should not be placed in the context if the model does not need to see them.
Filters do not create a security boundary
An input or output classifier reduces some abuses, but can be bypassed. The main protection comes from least-privilege permissions, isolation, deterministic validation, and auditing.
14.14 Explainability with Limits
Global explanations seek to describe the model’s tendencies; local explanations address a specific input. Gradient-based methods, ablation, probes, and activation analysis reveal different aspects. Attention maps, for example, show mixing weights, but do not demonstrate complete causality.
An explanation should be tested: does removing the highlighted feature change the output? Is the method stable under small perturbations? Does the narrative remain valid for other groups? Plausible but unfaithful explanations can increase confidence precisely when they should prompt caution.