跳至正文
Wener Notes

BERT

约 2 分钟阅读
  • BERT - Bidirectional Encoder Representations from Transformers
    • by Google
    • Apache-2.0, Python
    • 2024年
    • transformers v4.48.0+
    • base 22 layers, 139M 参数
    • large 28 layers, 395M 参数
    • Finally, a Replacement for BERT
      • 2024-12-19
    • vs Bert
      • sequence length 512 -> 8192
      • RoPE 旋转位置嵌入 支持长上下文、局部-全局交替注意力机制提高长序列处理效率、Unpadding 和 Flash Attention 技术提升推理效率
      • GeGLU 激活函数替代原始的 MLP 层以提升性能
  • ERNIE
    • Apache-2.0, Python
    • Generalist and Lightweight Model for Named Entity Recognition
  • Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
    • 2021年
    • 2021年
  • sbert.net
    • Sentence Transformers (a.k.a. SBERT)
    • text/image -> fixed-size vector representation (embedding)
    • semantic textual similarity, semantic search, clustering, classification, paraphrase mining
  • MTEB
  • Cross-Encoder (a.k.a. reranker)
    • re-rank top-k candidates from bi-encoder
abbr.stand formeaning
BERTBidirectional Encoder Representations from Transformers
SBERTSentence Transformers
MTEBMassive Text Embeddings Benchmark
NERNamed Entity Recognition命名实体识别
BIOBegin, Inside, Outsidefor NER
IOBInside, Outside, Beginfor NER
BILOUBegin, Inside, Last, Outside, Unitfor NER
IRInformation Retrieval信息检索
DPRDense Passage Retrieval密集检索
MLDRIDin-domain (fine-tuned on the training set) evaluation
BEIRBenchmarking Efficient Information Retrieval高效信息检索基准
OODOut-of-Domain外部领域
NLUNatural Language Understanding自然语言理解
GLUEGeneral Language Understanding Evaluation通用语言理解评估
CSNCode Search Net代码搜索网络
SQAStackQA栈问答
BM25Best Matching 25最佳匹配25
MLTDMulti-Label Text Discrimination多标签文本判别

BIO

json
{
  "text": "今天天气真好",
  "entities": [
    { "start": 0, "end": 2, "label": "B-DATE" },
    { "start": 2, "end": 4, "label": "I-DATE" },
    { "start": 4, "end": 6, "label": "I-DATE" },
    { "start": 6, "end": 8, "label": "O" }
  ]
}

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub3 条
Wikipedia1 条
HuggingFace6 条
其他外链1 条
最近更新commit 18c892b编辑