文档说明

本文档系统整理了大语言模型领域的32篇核心学术论文,构建完整的知识体系和学习路径。每篇论文均包含:

  • 详细的学术信息(作者、机构、发表会议/期刊)
  • 多渠道访问链接(arXiv、PDF、GitHub、官方网站)
  • 核心贡献与技术创新点
  • 重要性评级与阅读建议
  • 与其他论文的关联关系

本文档旨在为研究者提供一个结构化的LLM学术文献导航系统,帮助快速定位核心论文、理解技术脉络、建立系统知识框架。


目录


论文体系总览

技术演进时间线

2017-2018: 基础架构期
  └─ Transformer架构确立

2019-2020: 规模扩展期
  └─ GPT-3, Scaling Laws

2021-2022: 对齐优化期
  └─ RLHF, PEFT技术成熟

2023-2024: 多元创新期
  └─ MoE, SSM, DPO, 长上下文

核心论文分布

技术方向论文数量代表论文重要程度
基础架构5篇Transformer, BERT, GPT系列⭐⭐⭐⭐⭐
位置编码4篇RoPE, ALiBi, YaRN⭐⭐⭐⭐⭐
新兴架构7篇MoE, Mamba, 混合架构⭐⭐⭐⭐⭐
训练对齐5篇RLHF, DPO, LLaMA⭐⭐⭐⭐⭐
高效微调5篇LoRA, QLoRA, AdaLoRA⭐⭐⭐⭐⭐
优化加速3篇Flash Attention, ZeRO⭐⭐⭐⭐⭐
理论分析3篇注意力分析、剪枝研究⭐⭐⭐⭐

论文关系图谱

基础层(Architecture Foundation)
  ├─ Transformer (2017) ──┐
  ├─ BERT (2019) ─────────┤
  └─ GPT系列 (2018-2020) ─┴─→ 奠定现代LLM基础

创新层(Innovation Layer)
  ├─ 位置编码演进 ─→ RoPE → ALiBi → YaRN
  ├─ 架构创新 ─────→ MoE → SSM/Mamba → 混合架构
  └─ 对齐技术 ─────→ RLHF → DPO

应用层(Application Layer)
  ├─ 开源模型 ─────→ LLaMA系列
  ├─ 高效微调 ─────→ LoRA → QLoRA → DoRA
  └─ 工程优化 ─────→ Flash Attention, ZeRO

详细参考文献与相关链接汇总


[1] Attention is All You Need (2017) - Transformer开山之作

作者: Vaswani, Ashish; Shazeer, Noam; Parmar, Niki et al.
发表: NeurIPS 2017
引用: Advances in neural information processing systems, 2017: 5998-6008
访问链接:

  • arXiv: https://arxiv.org/abs/1706.03762
  • PDF直接下载: https://arxiv.org/pdf/1706.03762.pdf
    重要性: ⭐⭐⭐⭐⭐ 必读

[2] BERT: Pre-training of Deep Bidirectional Transformers (2019)

作者: Devlin, Jacob; Chang, Ming-Wei; Lee, Kenton; Toutanova, Kristina
发表: NAACL 2019
引用: NAACL, 2019: 4171-4186
访问链接:

  • arXiv: https://arxiv.org/abs/1810.04805
  • PDF: https://arxiv.org/pdf/1810.04805.pdf
  • GitHub (官方实现): https://github.com/google-research/bert
  • HuggingFace: https://huggingface.co/docs/transformers/model_doc/bert
    重要性: ⭐⭐⭐⭐⭐ 必读

[3] GPT: Improving Language Understanding by Generative Pre-Training (2018)

作者: Radford, Alec; Narasimhan, Karthik; Salimans, Tim; Sutskever, Ilya
机构: OpenAI
引用: OpenAI Technical Report, 2018
访问链接:

  • 官方PDF: https://cdn.openai.com/research-covers/language
  • unsupervised/language_understanding_paper.pdf

重要性: ⭐⭐⭐⭐⭐ 必读


[4] GPT-2: Language Models are Unsupervised Multitask Learners (2019)

作者: Radford, Alec; Wu, Jeffrey; Child, Rewon et al.
机构: OpenAI
引用: OpenAI Blog, 2019
访问链接:

  • 官方PDF: https://cdn.openai.com/better-language
  • models/language_models_are_unsupervised_multitask_learners.pdf
  • GitHub: https://github.com/openai/gpt-2
    重要性: ⭐⭐⭐⭐

[5] GPT-3: Language Models are Few-Shot Learners (2020)

作者: Brown, Tom B.; Mann, Benjamin; Ryder, Nick et al.
发表: NeurIPS 2020
引用: NeurIPS, 2020
访问链接:

  • arXiv: https://arxiv.org/abs/2005.14165
  • PDF: https://arxiv.org/pdf/2005.14165.pdf
    重要性: ⭐⭐⭐⭐⭐ 必读

[6] Chinchilla: Training Compute-Optimal Large Language Models (2022)

作者: Hoffmann, Jordan; Borgeaud, Sebastian; Mensch, Arthur et al.
发表: NeurIPS 2022
引用: NeurIPS, 2022
访问链接:

  • arXiv: https://arxiv.org/abs/2203.15556
  • PDF: https://arxiv.org/pdf/2203.15556.pdf
    关键贡献: Scaling Laws - 数据量应为参数量的20倍
    重要性: ⭐⭐⭐⭐⭐

[7] InstructGPT: Training Language Models to Follow Instructions (2022)

作者: Ouyang, Long; Wu, Jeff; Jiang, Xu et al.
发表: NeurIPS 2022
引用: NeurIPS, 2022
访问链接:

  • arXiv: https://arxiv.org/abs/2203.02155
  • PDF: https://arxiv.org/pdf/2203.02155.pdf
  • OpenAI博客: https://openai.com/research/instruction-following
    关键技术: RLHF (人类反馈强化学习)
    重要性: ⭐⭐⭐⭐⭐ 必读

[8] LLaMA: Open and Efficient Foundation Language Models (2023)

作者: Touvron, Hugo; Lavril, Thibaut; Izacard, Gautier et al.
机构: Meta AI
引用: arXiv:2302.13971, 2023
访问链接:

  • arXiv: https://arxiv.org/abs/2302.13971
  • PDF: https://arxiv.org/pdf/2302.13971.pdf
  • GitHub: https://github.com/facebookresearch/llama
    重要性: ⭐⭐⭐⭐⭐ 开源里程碑

[9] LLaMA 2: Open Foundation and Fine-tuned Chat Models (2023)

作者: Touvron, Hugo; Martin, Louis; Stone, Kevin et al.
机构: Meta AI
引用: arXiv:2307.09288, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2307.09288
  • PDF: https://arxiv.org/pdf/2307.09288.pdf
  • GitHub: https://github.com/facebookresearch/llama
  • HuggingFace: https://huggingface.co/meta-llama
  • 官方网站: https://llama.meta.com/

重要性: ⭐⭐⭐⭐⭐


[10] Switch Transformers: Scaling to Trillion Parameter Models (2022)

作者: Fedus, William; Zoph, Barret; Shazeer, Noam
发表: JMLR 2022
引用: Journal of Machine Learning Research, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2101.03961
  • PDF: https://arxiv.org/pdf/2101.03961.pdf
  • JMLR官方: https://jmlr.org/papers/v23/21-0998.html

关键技术: MoE (混合专家架构)
重要性: ⭐⭐⭐⭐⭐


[11] DeepSeek-V3 Technical Report (2024)

作者: DeepSeek-AI Team
机构: DeepSeek AI
引用: arXiv preprint, 2024

访问链接:

  • arXiv: https://arxiv.org/abs/2412.19437 (预计链接)
  • GitHub: https://github.com/deepseek-ai/DeepSeek-V3
  • 官方文档: https://api-docs.deepseek.com/
  • 技术博客: https://api-docs.deepseek.com/news/news1226
  • HuggingFace: https://huggingface.co/deepseek-ai

关键创新: 671B参数仅激活37B,四大MoE创新
重要性: ⭐⭐⭐⭐⭐ 2024年重大突破


[12] Mamba: Linear-Time Sequence Modeling with Selective State Spaces (2023)

作者: Gu, Albert; Dao, Tri
引用: arXiv:2312.00752, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2312.00752
  • PDF: https://arxiv.org/pdf/2312.00752.pdf
  • GitHub (官方): https://github.com/state-spaces/mamba
  • HuggingFace实现: https://huggingface.co/docs/transformers/model_doc/mamba

关键突破: 线性复杂度O(n),选择性SSM
重要性: ⭐⭐⭐⭐⭐ 架构创新


[13] DPO: Direct Preference Optimization (2023)

作者: Rafailov, Rafael; Sharma, Archit; Mitchell, Eric et al.
发表: NeurIPS 2023
引用: NeurIPS, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2305.18290
  • PDF: https://arxiv.org/pdf/2305.18290.pdf
  • GitHub: https://github.com/eric-mitchell/direct-preference-optimization
  • 项目主页: https://ericmitchell.ai/cdpo.pdf

关键贡献: 简化RLHF,直接优化偏好
重要性: ⭐⭐⭐⭐⭐ 对齐技术突破


[14] LoRA: Low-Rank Adaptation of Large Language Models (2022)

作者: Hu, Edward J.; Shen, Yelong; Wallis, Phillip et al.
发表: ICLR 2022
引用: ICLR, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2106.09685
  • PDF: https://arxiv.org/pdf/2106.09685.pdf
  • GitHub (Microsoft): https://github.com/microsoft/LoRA

关键技术: 参数高效微调,仅更新0.1%参数
重要性: ⭐⭐⭐⭐⭐ PEFT必读


[15] What Does BERT Look At? An Analysis of BERT’s Attention (2019)

作者: Clark, Kevin; Khandelwal, Urvashi; Levy, Omer; Manning, Christopher D.
发表: BlackboxNLP Workshop 2019
引用: BlackboxNLP Workshop, 2019

访问链接:

  • arXiv: https://arxiv.org/abs/1906.04341
  • PDF: https://arxiv.org/pdf/1906.04341.pdf
  • GitHub: https://github.com/clarkkev/attention-analysis
  • 交互式Demo: https://huggingface.co/spaces/exbert-project/exbert

关键贡献: 注意力头功能分析
重要性: ⭐⭐⭐⭐


[16] Are Sixteen Heads Really Better than One? (2019)

作者: Michel, Paul; Levy, Omer; Neubig, Graham
发表: NeurIPS 2019
引用: NeurIPS, 2019

访问链接:

  • arXiv: https://arxiv.org/abs/1905.10650
  • PDF: https://arxiv.org/pdf/1905.10650.pdf
  • GitHub: https://github.com/pmichel31415/are-16-heads-really-better-than-1

关键发现: 多头注意力剪枝研究
重要性: ⭐⭐⭐


[17] Linformer: Self-Attention with Linear Complexity (2020)

作者: Wang, Sinong; Li, Belinda Z.; Khabsa, Madian et al.
引用: arXiv:2006.04768, 2020

访问链接:

  • arXiv: https://arxiv.org/abs/2006.04768
  • PDF: https://arxiv.org/pdf/2006.04768.pdf
  • GitHub (Facebook): https://github.com/pytorch/fairseq/tree/master/examples/linformer

关键技术: 线性复杂度注意力
重要性: ⭐⭐⭐


[18] RoFormer: Enhanced Transformer with Rotary Position Embedding (2021)

作者: Su, Jianlin; Lu, Yu; Pan, Shengfeng et al.
引用: arXiv:2104.09864, 2021

访问链接:

  • arXiv: https://arxiv.org/abs/2104.09864
  • PDF: https://arxiv.org/pdf/2104.09864.pdf
  • GitHub: https://github.com/ZhuiyiTechnology/roformer
  • 技术博客(中文): https://kexue.fm/archives/8265

关键技术: RoPE位置编码,LLaMA标配
重要性: ⭐⭐⭐⭐⭐ 位置编码主流方案


[19] Extending Context Window via Positional Interpolation (2023)

作者: Chen, Shouyuan; Wong, Sherman; Chen, Liangjian; Tian, Yuandong
引用: arXiv:2306.15595, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2306.15595
  • PDF: https://arxiv.org/pdf/2306.15595.pdf
  • 技术博客: https://kexue.fm/archives/9431
  • 关键技术: Position Interpolation (PI)

关键技术: Position Interpolation (PI)
重要性: ⭐⭐⭐⭐


[20] YaRN: Efficient Context Window Extension (2023)

作者: Peng, Bowen; Alcaide, Emilio; Anthony, Quentin et al.
引用: arXiv:2309.00071, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2309.00071
  • PDF: https://arxiv.org/pdf/2309.00071.pdf
  • GitHub: https://github.com/jquesnelle/yarn

关键技术: 混合外推技术,4K→128K
重要性: ⭐⭐⭐⭐⭐


[21] ALiBi: Train Short, Test Long - Attention with Linear Biases (2022)

作者: Press, Ofir; Smith, Noah A.; Lewis, Mike
发表: ICLR 2022
引用: ICLR, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2108.12409
  • PDF: https://arxiv.org/pdf/2108.12409.pdf
  • GitHub: https://github.com/ofirpress/attention_with_linear_biases
  • OpenReview: https://openreview.net/forum?id=R8sQPpGCv0

关键技术: 线性偏置位置编码,100倍外推
重要性: ⭐⭐⭐⭐⭐


[22] BLOOM: A 176B-Parameter Multilingual Language Model (2022)

作者: Scao, Teven Le; Fan, Angela; Akiki, Christopher et al.
机构: BigScience Workshop
引用: arXiv:2211.05100, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2211.05100
  • PDF: https://arxiv.org/pdf/2211.05100.pdf
  • HuggingFace: https://huggingface.co/bigscience/bloom
  • GitHub: https://github.com/bigscience-workshop/bigscience
  • 官方网站: https://bigscience.huggingface.co/

关键特点: 使用ALiBi位置编码
重要性: ⭐⭐⭐⭐


[23] S4: Efficiently Modeling Long Sequences with Structured State Spaces (2022)

作者: Gu, Albert; Goel, Karan; Ré, Christopher
发表: ICLR 2022
引用: ICLR, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2111.00396
  • PDF: https://arxiv.org/pdf/2111.00396.pdf
  • GitHub: https://github.com/state-spaces/s4
  • 博客讲解: https://srush.github.io/annotated-s4/

关键技术: 结构化状态空间模型
重要性: ⭐⭐⭐⭐⭐ SSM先驱


[24] Jamba: A Hybrid Transformer-Mamba Language Model (2024)

作者: Lieber, Opher; Lenz, Barak; Bata, Hofit et al.
机构: AI21 Labs
引用: arXiv:2403.19887, 2024

访问链接:

  • arXiv: https://arxiv.org/abs/2403.19887
  • PDF: https://arxiv.org/pdf/2403.19887.pdf
  • HuggingFace: https://huggingface.co/ai21labs/Jamba-v0.1

关键架构: Mamba + Attention + MoE混合
重要性: ⭐⭐⭐⭐


[25] RetNet: Retentive Network (2023)

作者: Sun, Yutao; Dong, Li; Huang, Shaohan et al.
机构: Microsoft Research
引用: arXiv:2307.08621, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2307.08621
  • PDF: https://arxiv.org/pdf/2307.08621.pdf
  • GitHub: https://github.com/microsoft/unilm/tree/master/retnet
  • Microsoft博客: https://www.microsoft.com/en-us/research/blog/retentive-network-a-successor-to-- - – transformer-for-large-language-models/

关键特点: 训练并行+推理递归
重要性: ⭐⭐⭐⭐


[26] RWKV: Reinventing RNNs for the Transformer Era (2023)

作者: Peng, Bo; Alcaide, Eric; Anthony, Quentin et al.
发表: EMNLP Findings 2023
引用: EMNLP Findings, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2305.13048
  • PDF: https://arxiv.org/pdf/2305.13048.pdf
  • GitHub: https://github.com/BlinkDL/RWKV-LM
  • HuggingFace: https://huggingface.co/RWKV
  • 官方网站: https://www.rwkv.com/

关键特点: 线性注意力,RNN形式
重要性: ⭐⭐⭐⭐


[27] ZeRO: Memory Optimizations Toward Training Trillion Parameter Models (2020)

作者: Rajbhandari, Samyam; Rasley, Jeff; Ruwase, Olatunji; He, Yuxiong
机构: Microsoft
发表: SC20
引用: SC20, 2020

访问链接:

  • arXiv: https://arxiv.org/abs/1910.02054
  • PDF: https://arxiv.org/pdf/1910.02054.pdf
  • GitHub (DeepSpeed): https://github.com/microsoft/DeepSpeed
  • 官方文档: https://www.deepspeed.ai/tutorials/zero/
  • Microsoft博客: https://www.microsoft.com/en-us/research/blog/zero-deepspeed-new-system

关键技术: 内存优化,万亿参数训练
重要性: ⭐⭐⭐⭐⭐ 训练必备


[28] Self-Instruct: Aligning Language Models with Self-Generated Instructions (2023)

作者: Wang, Yizhong; Kordi, Yeganeh; Mishra, Swaroop et al.
发表: ACL 2023
引用: ACL, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2212.10560
  • PDF: https://arxiv.org/pdf/2212.10560.pdf
  • GitHub: https://github.com/yizhongw/self-instruct

关键技术: 自我指令生成
重要性: ⭐⭐⭐⭐


[29] QLoRA: Efficient Finetuning of Quantized LLMs (2023)

作者: Dettmers, Tim; Pagnoni, Artidoro; Holtzman, Ari; Zettlemoyer, Luke
发表: NeurIPS 2023
引用: NeurIPS, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2305.14314
  • PDF: https://arxiv.org/pdf/2305.14314.pdf
  • GitHub: https://github.com/artidoro/qlora
  • HuggingFace集成: https://huggingface.co/blog/4bit-transformers-bitsandbytes

关键突破: 单卡24GB训练65B模型
重要性: ⭐⭐⭐⭐⭐ PEFT重大突破


[30] AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning (2023)

作者: Zhang, Qingru; Chen, Minshuo; Bukharin, Alexander et al.
发表: ICLR 2023
引用: ICLR, 2023

访问链接:

  • arXiv: https://arxiv.org/abs/2303.10512
  • PDF: https://arxiv.org/pdf/2303.10512.pdf
  • GitHub: https://github.com/QingruZhang/AdaLoRA
  • OpenReview: https://openreview.net/forum?id=lq62uWRJjiY

关键技术: 自适应秩分配
重要性: ⭐⭐⭐⭐


[31] DoRA: Weight-Decomposed Low-Rank Adaptation (2024)

作者: Liu, Shih-Yang; Liu, Jian; Wang, Xiuying et al.
机构: NVIDIA
引用: arXiv:2402.09353, 2024

访问链接:

  • arXiv: https://arxiv.org/abs/2402.09353
  • PDF: https://arxiv.org/pdf/2402.09353.pdf
  • GitHub: https://github.com/NVlabs/DoRA

关键创新: 权重分解为幅度和方向
重要性: ⭐⭐⭐⭐


[32] FlashAttention: Fast and Memory-Efficient Exact Attention (2022)

作者: Dao, Tri; Fu, Daniel Y.; Ermon, Stefano; Rudra, Atri; Ré, Christopher
发表: NeurIPS 2022
引用: NeurIPS, 2022

访问链接:

  • arXiv: https://arxiv.org/abs/2205.14135
  • PDF: https://arxiv.org/pdf/2205.14135.pdf
  • GitHub: https://github.com/Dao-AILab/flash-attention
  • Flash Attention 2: https://arxiv.org/abs/2307.08691
  • 官方文档: https://tridao.me/publications/flash2/flash2.pdf

关键突破: IO优化,2-4倍加速,显存减半
重要性: ⭐⭐⭐⭐⭐ 优化必读


文献分类索引

按主题分类

基础架构 (5篇)
  • [1] Attention is All You Need - Transformer原论文
  • [2] BERT - Encoder-only范式
  • [3] GPT - Decoder-only范式
  • [4] GPT-2 - 规模扩展
  • [5] GPT-3 - Few-shot Learning
位置编码 (4篇)
  • [18] RoPE - 主流方案 ⭐
  • [19] Position Interpolation
  • [20] YaRN - 超长上下文
  • [21] ALiBi - 极致外推
新兴架构 (7篇)
  • [10] Switch Transformers - MoE先驱
  • [11] DeepSeek-V3 - MoE突破 ⭐
  • [12] Mamba - SSM代表 ⭐
  • [22] BLOOM - ALiBi应用
  • [23] S4 - SSM理论基础
  • [24] Jamba - 混合架构
  • [25] RetNet - 双模式
  • [26] RWKV - 线性注意力
训练与对齐 (5篇)
  • [6] Chinchilla - Scaling Laws
  • [7] InstructGPT - RLHF ⭐
  • [8] LLaMA - 开源里程碑 ⭐
  • [9] LLaMA 2 - 对话模型
  • [13] DPO - 简化对齐 ⭐
高效微调 (5篇)
  • [14] LoRA - PEFT经典 ⭐
  • [28] Self-Instruct - 数据生成
  • [29] QLoRA - 单卡训练 ⭐
  • [30] AdaLoRA - 自适应
  • [31] DoRA - 权重分解
优化加速 (3篇)
  • [27] ZeRO - 内存优化 ⭐
  • [32] Flash Attention - IO优化 ⭐
  • [17] Linformer - 线性复杂度
分析理解 (3篇)
  • [15] BERT Attention分析
  • [16] 多头注意力剪枝
  • 其他理论分析

按重要程度分类

必读论文 (⭐⭐⭐⭐⭐)
  1. [1] Transformer
  2. [2] BERT
  3. [3] GPT
  4. [5] GPT-3
  5. [6] Chinchilla (Scaling Laws)
  6. [7] InstructGPT (RLHF)
  7. [8] LLaMA
  8. [10] Switch Transformers (MoE)
  9. [11] DeepSeek-V3
  10. [12] Mamba
  11. [13] DPO
  12. [14] LoRA
  13. [18] RoPE
  14. [21] ALiBi
  15. [23] S4
  16. [27] ZeRO
  17. [29] QLoRA
  18. [32] Flash Attention
重要参考 (⭐⭐⭐⭐)
  • [9] LLaMA 2
  • [19] Position Interpolation
  • [20] YaRN
  • [22] BLOOM
  • [24] Jamba
  • [25] RetNet
  • [26] RWKV
  • [28] Self-Instruct
  • [30] AdaLoRA
  • [31] DoRA

快速访问工具

arXiv批量下载脚本

#!/bin/bash
# 下载所有arXiv论文

papers=(
    "1706.03762"  # Transformer
    "1810.04805"  # BERT
    "2005.14165"  # GPT-3
    "2302.13971"  # LLaMA
    "2307.09288"  # LLaMA 2
    "2312.00752"  # Mamba
    "2305.18290"  # DPO
    "2106.09685"  # LoRA
    "2104.09864"  # RoPE
    "2205.14135"  # Flash Attention
)

for paper in "${papers[@]}"; do
    wget "https://arxiv.org/pdf/${paper}.pdf"
    echo "Downloaded ${paper}"
done

在线阅读链接

  • arXiv: https://arxiv.org/list/cs.CL/recent (计算与语言分类)
  • Papers with Code: https://paperswithcode.com/area/natural-language-processing
  • HuggingFace Papers: https://huggingface.co/papers
  • Google Scholar Alerts: 设置关键词提醒

补充资源

综述论文

  • A Survey of Large Language Models: https://arxiv.org/abs/2303.18223
  • Efficient LLMs Survey: https://arxiv.org/abs/2312.03863

学习资源

  • Stanford CS324: https://stanford-cs324.github.io/winter2022/
  • The Annotated Transformer: https://nlp.seas.harvard.edu/annotated-transformer/
  • Lil’Log博客: https://lilianweng.github.io/

实现库

  • HuggingFace Transformers: https://github.com/huggingface/transformers
  • DeepSpeed: https://github.com/microsoft/DeepSpeed
  • vLLM: https://github.com/vllm-project/vllm

学习路径建议

按角色推荐

研究者路径

阶段1: 基础理论

必读:
  [1] Transformer
  [2] BERT  
  [3] GPT-1
  [5] GPT-3
  
目标: 理解现代LLM基础架构

阶段2: 创新架构

必读:
  [18] RoPE
  [10] Switch Transformers
  [12] Mamba
  [11] DeepSeek-V3
  
目标: 掌握前沿架构创新

阶段3: 训练方法

必读:
  [6] Chinchilla
  [7] InstructGPT
  [13] DPO
  
目标: 理解训练和对齐技术

阶段4: 前沿专题

选读: 根据研究方向选择
- 长上下文: [19][20][21]
- 混合架构: [24][25][26]
- 理论分析: [15][16]
工程师路径

阶段1: 核心技术

必读:
  [1] Transformer (快速浏览)
  [8] LLaMA
  [9] LLaMA 2
  
目标: 理解主流开源模型

阶段2: 高效微调

必读:
  [14] LoRA
  [29] QLoRA
  [13] DPO
  
目标: 掌握实用微调技术

阶段3: 优化部署

必读:
  [32] Flash Attention
  [27] ZeRO
  量化技术文档
  
目标: 训练和推理优化

阶段4: 实践项目

- LLaMA-Factory实践
- vLLM部署实践
- 自建数据集微调

按主题推荐

长上下文技术

必读顺序:

1. [18] RoPE - 理解基础
2. [19] Position Interpolation - 简单外推
3. [20] YaRN - 工程方案
4. [21] ALiBi - 理论极限

补充阅读:

  • Gemini 1.5技术报告
  • Claude 3技术报告
MoE架构

必读顺序:

1. [10] Switch Transformers - MoE基础
2. [11] DeepSeek-V3 - 最新突破
3. 工程实践文档
SSM架构

必读顺序:

1. [23] S4 - 理论基础
2. [12] Mamba - 突破创新
3. [24] Jamba - 混合实践
PEFT技术

必读顺序:

1. [14] LoRA - 基础方法
2. [29] QLoRA - 极限优化
3. [30] AdaLoRA - 自适应
4. [31] DoRA - 最新改进
对齐技术

必读顺序:

1. [7] InstructGPT - RLHF标准流程
2. [13] DPO - 简化方案
3. [9] LLaMA 2 - 工程实践

研究工具与资源

开源框架

训练框架

DeepSpeed

  • GitHub: https://github.com/microsoft/DeepSpeed
  • 特点: ZeRO优化、大规模训练
  • 适用: 100B+参数模型

Megatron-LM

  • GitHub: https://github.com/NVIDIA/Megatron-LM
  • 特点: 3D并行、高效训练
  • 适用: GPU集群训练

HuggingFace Transformers

  • GitHub: https://github.com/huggingface/transformers
  • 特点: 生态完整、易用性高
  • 适用: 快速原型开发
微调工具

PEFT

  • GitHub: https://github.com/huggingface/peft
  • 特点: LoRA/QLoRA/AdaLoRA等集成
  • 文档: https://huggingface.co/docs/peft

LLaMA-Factory

  • GitHub: https://github.com/hiyouga/LLaMA-Factory
  • 特点: 一站式微调平台
  • 支持: 100+模型、多种方法

Axolotl

  • GitHub: https://github.com/OpenAccess-AI-Collective/axolotl
  • 特点: 配置灵活、社区活跃
  • 适用: 进阶微调需求
推理引擎

vLLM

  • GitHub: https://github.com/vllm-project/vllm
  • 特点: PagedAttention、高吞吐
  • 性能: 行业标杆

TensorRT-LLM

  • GitHub: https://github.com/NVIDIA/TensorRT-LLM
  • 特点: 低延迟、GPU优化
  • 适用: 生产环境

LMDeploy

  • GitHub: https://github.com/InternLM/lmdeploy
  • 特点: 易用、商业友好
  • 文档: 中文完善

Ollama

  • GitHub: https://github.com/ollama/ollama
  • 特点: 本地运行、图形界面
  • 适用: 个人开发
评估框架

lm-evaluation-harness

  • GitHub: https://github.com/EleutherAI/lm-evaluation-harness
  • 特点: 标准化评估、200+任务
  • 权威: 论文必用

OpenCompass

  • GitHub: https://github.com/open-compass/opencompass
  • 特点: 综合评测、中文优化
  • 机构: 上海AI Lab

学习资源

在线课程

Stanford CS324 - Large Language Models

  • 链接: https://stanford-cs324.github.io/winter2022/
  • 内容: LLM全面课程
  • 讲师: Percy Liang等
  • 资源: 讲义、作业、项目

DeepLearning.AI系列

  • ChatGPT Prompt Engineering: https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/
  • LangChain: https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/
  • Building Systems with ChatGPT API: https://www.deeplearning.ai/short-courses/building-systems-with-chatgpt/

HuggingFace NLP Course

  • 链接: https://huggingface.co/learn/nlp-course
  • 特点: 实践导向、免费
  • 内容: Transformers、数据集、微调

Fast.ai

  • 链接: https://course.fast.ai/
  • 特点: 自上而下教学
  • 课程: Practical Deep Learning
技术博客

个人博客

Lil’Log (Lilian Weng, OpenAI)

  • 链接: https://lilianweng.github.io/
  • 特点: 深度技术解析
  • 推荐:
    • Prompt Engineering
    • RLHF
    • Agent系列

Jay Alammar

  • 链接: https://jalammar.github.io/
  • 特点: 可视化讲解
  • 推荐:
    • The Illustrated Transformer
    • The Illustrated GPT-2

苏剑林(追一科技)

  • 链接: https://kexue.fm/
  • 特点: 中文、数学推导
  • 推荐:
    • RoPE详解
    • Mamba原理

机构博客

OpenAI Blog

  • 链接: https://openai.com/research/
  • 内容: GPT系列、DALL-E

Google AI Blog

  • 链接: https://ai.googleblog.com/
  • 内容: Transformer、Switch

Meta AI Blog

  • 链接: https://ai.meta.com/blog/
  • 内容: LLaMA系列

Anthropic Blog

  • 链接: https://www.anthropic.com/research
  • 内容: Claude、Constitutional AI
论文聚合平台

Papers with Code

  • 链接: https://paperswithcode.com/area/natural-language-processing
  • 特点: 论文+代码+排行榜
  • 功能: SOTA追踪

HuggingFace Papers

  • 链接: https://huggingface.co/papers
  • 特点: 每日精选、社区讨论
  • 集成: 直接运行Demo

Connected Papers

  • 链接: https://www.connectedpapers.com/
  • 特点: 论文关系图谱
  • 用途: 发现相关工作
社区论坛

Reddit

  • r/MachineLearning: https://www.reddit.com/r/MachineLearning/
  • r/LocalLLaMA: https://www.reddit.com/r/LocalLLaMA/

Discord

  • EleutherAI: https://discord.gg/eleutherai
  • HuggingFace: https://discord.gg/JfAtkvEtRb

Twitter

  • 关键词: #LLM #Transformer #NLP
  • 研究者列表: 关注论文作者

数据集资源

预训练数据

The Pile

  • 链接: https://pile.eleuther.ai/
  • 规模: 825GB
  • 特点: 多样化、高质量

RedPajama

  • 链接: https://github.com/togethercomputer/RedPajama-Data
  • 规模: 1.2T tokens
  • 特点: LLaMA复现数据

C4 (Colossal Clean Crawled Corpus)

  • 链接: https://www.tensorflow.org/datasets/catalog/c4
  • 规模: 750GB
  • 来源: Common Crawl清洗
指令数据

Alpaca

  • 链接: https://github.com/tatsu-lab/stanford_alpaca
  • 规模: 52K指令
  • 生成: GPT-3.5

Dolly

  • 链接: https://github.com/databrickslabs/dolly
  • 规模: 15K指令
  • 特点: 人工标注

FLAN Collection

  • 链接: https://github.com/google-research/FLAN
  • 规模: 1800+任务
  • 特点: 多任务格式化

Evol-Instruct

  • 链接: https://github.com/nlpxucan/WizardLM
  • 方法: 指令难度进化
  • 应用: WizardLM系列
偏好数据

Anthropic HH-RLHF

  • 链接: https://github.com/anthropics/hh-rlhf
  • 规模: 160K对比对
  • 用途: RLHF/DPO训练

OpenAssistant

  • 链接: https://huggingface.co/datasets/OpenAssistant/oasst1
  • 规模: 161K消息树
  • 特点: 多语言、社区标注
评估数据

MMLU

  • 链接: https://github.com/hendrycks/test
  • 规模: 57学科15,908题
  • 权威: LLM评估标准

BBH (Big-Bench Hard)

  • 链接: https://github.com/suzgunmirac/BIG-Bench-Hard
  • 规模: 23个挑战任务
  • 特点: 测试推理能力

附录

术语对照表

英文中文缩写说明
Large Language Model大语言模型LLM参数≥1B的语言模型
Transformer变换器-基于自注意力的架构
Self-Attention自注意力SA序列内部关注机制
Multi-Head Attention多头注意力MHA并行的多个注意力头
Mixture of Experts混合专家MoE稀疏激活架构
State Space Model状态空间模型SSM基于控制论的序列模型
Rotary Position Embedding旋转位置编码RoPE相对位置编码方案
Attention with Linear Biases线性偏置注意力ALiBi另一种位置编码
Reinforcement Learning from Human Feedback人类反馈强化学习RLHF对齐技术
Direct Preference Optimization直接偏好优化DPO简化的RLHF
Low-Rank Adaptation低秩适配LoRA参数高效微调
Parameter-Efficient Fine-Tuning参数高效微调PEFT微调方法类别
Supervised Fine-Tuning监督精调SFT指令精调阶段
Zero Redundancy Optimizer零冗余优化器ZeRO内存优化技术
Flash Attention闪电注意力-IO优化的注意力

许可声明

本文档基于公开发表的学术论文整理,供学术交流和技术学习使用。

引用说明:

  • 所有论文版权归原作者所有
  • 链接指向原始发表平台
  • 引用请注明原论文出处
  • 商业使用请遵循各论文许可协议

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐