GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Knowledge_Graph_Wander/content/Tricks.md at master · Schlampig/Knowledge_Graph_Wander

Expand file tree

/

Tricks.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
187 lines (151 loc) · 9.69 KB
/

Tricks.md

Copy path

File metadata and controls

187 lines (151 loc) · 9.69 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Tricks to Sharpen your Models

🌟 Competitions

  • ALL
    • AI-Competition-Collections: 收集整理各种人工智能比赛经验帖。
  • NLP
    • NLPer-Arsenal: 收录NLP竞赛策略实现、各任务baseline、相关竞赛经验贴(当前赛事、往期赛事、训练赛)、NLP会议时间、常用自媒体、GPU推荐等,持续更新中。
    • NLP Competitions List Review: 复盘所有NLP比赛的TOP方案,只关注NLP比赛,持续更新中!
    • China AI & Law Challenge (CAIL): 历届法研杯竞赛信息。
    • MRC_Competition_Dureader: 机器阅读理解 冠军/亚军代码及中文预训练MRC模型。
  • Data Science
    • Competition Baseline: 数据科学竞赛知识、代码、思路。
    • Data Competition TopSolution: 数据竞赛Top解决方案开源整理。
    • CDCS: Chinese Data Competitions' Solutions.
    • Data-Science-Competitions: Goal of this repo is to provide the solutions of all Data Science Competitions(Kaggle, Data Hack, Machine Hack, Driven Data etc...).

Auto Compression Toolkit

  • Survey
    • blog: BERT压缩加速622%,ERNIE压缩加速637%,这款开源自动压缩工具必须收藏!

Adversarial Training

  • Survey
    • blog: 一文搞懂NLP中的对抗训练FGSM/FGM/PGD/FreeAT/YOPO/FreeLB/SMART
  • FGM(Fast Gradient Method)
  • PGD(Projected Gradient Descent)
  • FreeLB (Free Large-Batch)

Attention

  • Survey
    • blog: 各种各样神奇的自注意力机制(Self-attention)变形
  • DIN & DIEN
    • blog: DIN+DIEN,机器学习唯一指定涨点技Attention

Batch Size

  • Size
    • blog: 一番实验后,有关Batch Size的玄学被打破了

BlockShuffle

Concatenation of Embeddings

  • Automated Concatenation of Embeddings
    • code
    • paper

Cross-Validation

  • kFCV(k-Fold Cross-Validation)
  • LOO(Leave-One-Out Cross-Validation)

Data Augmentation

  • Survey
    • blog:
      • 一篇就够!数据增强方法综述
      • KDD 2022 | 如何正使用数据增强提高模型鲁棒性?
      • 文本分类日常提点技巧
  • SDE
  • EDA
  • FlipDA: 为大模型定制的数据增强方法FlipDA,屠榜六大NLU 数据集!

Distillation

  • Survey
    • blog:
      • BERT蒸馏完全指南|原理/技巧/代码
      • 深度神经网络模型蒸馏Distillation
      • 简单实现知识蒸馏 (Knowledge Distill)
    • awesome-knowledge-distillation
  • Dataset Distillation
    • 一个项目帮你了解数据集蒸馏Dataset Distillation

Distribution / Parallel

  • Survey
    • blog:
      • 新生手册:PyTorch分布式训练
      • 使用 PyTorch 进行分布式计算
      • PyTorch 深度剖析:并行训练的 DP 和 DDP 分别在什么情况下使用及实例
      • 当代研究生应当掌握的并行训练方法(单机多卡)
      • PyTorch分布式模型保存与加载并结合早停
      • NLP大规模语言模型微调实践:DeepSpeed+Transformers实现简单快捷上手百亿参数模型微调

Dropout

  • R-Drop: 重新审视Dropout算法

Efficiency

  • Survey
    • blog:
      • 有没有什么可以节省大量时间的 Deep Learning 效率神器?

EMA

  • ema-pytorch: a simple way to keep track of an Exponential Moving Average (EMA) version of your pytorch model.

Explaination

  • Survey
    • blog: 机器学习模型可解释性的详尽介绍
  • SHAP(SHapley Additive exPlanations)
    • code
    • blog: 不再黑盒,机器学习解释利器:SHAP原理及实战
  • LIME(Local Interpretable Model-agnostic Explanations)
    • code
    • paper
    • blog: 能相信模型的预测吗?LIME:一种解释模型预测的方法

Feature Selection

  • Survey
    • blog:
      • 特征选择:11 种特征选择策略总结!
      • Amazing-Feature-Engineering(译文:特征工程架构性好文)

Finetune

  • How to Fine-Tune BERT for Text Classification?

Imbalanced Problem

  • Survey
    • blog:
      • NLP实战|文本分类之样本不均衡处理及模型鲁棒性提升trick总结

Label-Focused

  • Mix-up / AutoMix
  • Label Smoothing (Soft Label)
  • CAN

Lookahead

Loss

  • Cross-Entropy Loss
    • Things that confused me about cross-entropy by Chris Said

Mask

  • Mask Ratio
    • blog: 丹琦女神又发新作,Mask 15%?我不 (reserving my views :( )

Model-Fusion

  • Stacking
  • Ensemble

Model-Choosing

  • Tools
    • weight | watcher: Better than BERT: Pick your best model

Normalization

  • 归一化原来这么重要!深入浅出详解Transformer中的Normalization
  • 超细节的BatchNorm/BN/LayerNorm/LN知识点
  • 为什么Pre Norm的效果不如Post Norm?

Optimizer

  • pytorch-optimizer: bunch of optimizer implementations in pytorch.
  • Adan-Pytorch: implementation of the ADAN (ADAptive Nesterov momentum algorithm) optimizer in pytorch.

Parallelism

  • Survey
    • blog:
      • Huge and Efficient! 一文了解大规模预训练模型高效训练技术
      • 大规模模型训练tricks集锦
      • 大模型训练之概念篇

Pre-Finetune

  • Survey
    • blog: 语言模型微调领域有哪些最新进展?一文详解最新趋势 cited from here

Prior-Experience

  • Concatenate & Embedding
    • REINA(paper/code): 微软发现了一个超简单的NLP上分技巧,还发了ACL2022 ??
  • Prompt
    • 哄一哄能让GPT-3准确率暴涨61%!谷歌&东京大学研究震惊四座
  • Unlearning
    • 模型会忘了你是谁吗?两篇Machine Unlearning顶会论文告诉你什么是模型遗忘

Pruning

  • LLMPruner:大语言模型裁剪工具

Regularization

  • 如何用正则化防止模型过拟合?

Re-Parameter

Softmax

  • Gumbel Softmax

Warm-up

  • Linear Warm-up

Other Trick-and-Tips

  • link: https://github.com/oukohou/trick-and-tips
  • PyTorch 常用 Tricks 总结
  • 大道至简:算法工程师炼丹Trick手册
  • 谷歌大脑深度学习调参(炼丹)指南出炉: code
  • 有哪些省内存的大语言模型训练/微调/推理方法?
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.