Abstract
Due to the black-box nature of large language models (LLMs) and the realism of their generated content, issues such as hallucinations, bias, unfairness, and copyright infringement have become significant. In this context, sourcing information from multiple perspectives is essential. This survey presents a systematic investigation organized around four interrelated dimensions: Model Sourcing, Model Structure Sourcing, Training Data Sourcing, and External Data Sourcing. Moreover, a unified dual-paradigm taxonomy is proposed that classifies existing sourcing methods into prior-based (proactive traceability embedding) and posterior-based (retrospective inference) approaches. Traceability across these dimensions enhances the transparency, accountability, and trustworthiness of LLMs deployment in real-world applications.
Introduction
As large language models (LLMs) transition from research curiosities to foundational infrastructure for coding, legal advice, and creative writing, their "black-box" nature presents a growing risk. When a model produces a hallucination, exhibits harmful bias, or infringes on copyrighted material, it is often impossible to determine the root cause. This lack of transparency hinders accountability and trust.
This survey introduces the concept of LLM Sourcing—the science of tracing model outputs back to their origins. By synthesizing disparate fields such as AIGC detection, model interpretability, and data influence, the authors propose a cohesive framework to transform LLMs from opaque "black boxes" into transparent, accountable, and trustworthy systems.
A Multi-Dimensional Framework for Sourcing
The core of the proposed framework is a systematic investigation of sourcing across four interrelated dimensions, as illustrated in the figure below.
- Model Sourcing: Determining whether a specific text was generated by a human or a particular LLM (e.g., GPT-4, LLaMA).
- Model Structure Sourcing: Identifying the specific internal components—such as layers, attention heads, or "knowledge neurons"—responsible for a particular output or behavior.
- Training Data Sourcing: Tracing an output back to the specific samples in the pre-training or fine-tuning corpus that influenced its generation.
- External Data Sourcing: Verifying and citing external knowledge sources (e.g., via Retrieval-Augmented Generation) used to support a claim.
The Dual-Paradigm Taxonomy
Beyond these four dimensions, the survey classifies existing methods into a unified dual-paradigm taxonomy: Prior-based and Posterior-based approaches.
- Posterior-based (Retrospective Inference): These methods act as "detective work" on existing models without requiring modifications to the model itself. Examples include statistical tests like DetectGPT for model sourcing or calculating influence functions to determine data impact.
- Prior-based (Proactive Traceability): These methods involve "tagging" the model or data during development. This includes techniques like digital watermarking (embedding hidden signals in text), backdoor triggers, or using Mixture-of-Experts (MoE) architectures where outputs are routed through traceable sub-modules.
Datasets and Benchmarks
The survey catalogs extensive benchmarks for evaluating sourcing accuracy. For Model Sourcing, datasets like HC3 (Human-ChatGPT Comparison) and M4 (Multi-generator, Multi-domain) are standard. Structure Sourcing relies on knowledge-probing sets like LAMA and COUNTERFACT. Training Data Sourcing is evaluated using WIKIMIA and BookMIA for membership detection, while External Data Sourcing uses tools like ALCE to measure citation quality.
Key Insights and Results
The survey highlights several critical trade-offs and findings:
- Sourcing Trade-off: Posterior methods are flexible but probabilistic. Prior methods offer deterministic proof but may require costly system changes or slightly impact model performance.
- Supply vs. Demand: Model and Structure sourcing represent the "supply side" (how the AI is built), while Training and External data represent the "demand side" (what the AI consumes).
- Causal Attribution: Effective sourcing requires proving that a specific data point or neuron caused the output, rather than just finding a correlation.
- Watermarking Robustness: Prior-based watermarking (e.g., the KGW algorithm) can achieve detection rates over 90% with minimal impact on text quality, though robustness against heavy paraphrasing remains a challenge.
- Knowledge Localization: Research such as ROME and MEMIT has successfully localized factual associations to specific Feed-Forward Network (FFN) weights, enabling "model editing" without full retraining.
Future Directions and Limitations
Despite progress, several bottlenecks remain:
- Scalability: Many methods, particularly gradient-based influence functions, are computationally prohibitive for trillion-parameter models.
- Evaluation Protocols: There is a need for standardized protocols that move beyond "LLM-as-a-judge" to avoid inherent biases.
- Privacy vs. Transparency: A fundamental tension exists between the need for verifiable accountability and the protection of private training data or proprietary model weights.
- Real-world Transfer: Sourcing methods must be hardened against adversarial prompts and noisy data encountered in real-world deployments.
Summary updated