首页 > AI前沿 > ModernELECTRA: Replaced-Token Detection with Boundary-Window Reconstruction for Compact Encoders that Classify and Embed

ModernELECTRA: Replaced-Token Detection with Boundary-Window Reconstruction for Compact Encoders that Classify and Embed

arXiv自然语言 2026-11-24 04:07 7 阅读 查看原文
用户需要我作为一个专业的新闻排版工程师,将给定的纯文本新闻正文排版成语义化的HTML片段。 分析文本内容: 文本是一段关于ELECTRA风格的替换 token 检测(RTD)以及提出的新模型ModernELECTRA的技术新闻/论文摘要。 包含一个长段落,没有明显的列表、引用或代码。但是有重要的技术名词和模型名称,可以使用``来强调。需要划分小节吗?文本本身是一段连贯的摘要,但为了符合“长文用

/

划分小节”的要求,可以将其合理划分为几个小节,比如“背景与方法”、“实验结果与模型”、“实现细节”等,或者就保持一个段落,因为原文并没有明显的分段。 等等,规则说“每个自然段落用

包裹,长文用

/

划分小节”。原文只有一段。我可以将其拆分为几个语义段落,或者加几个小标题以体现“长文划分小节”的排版能力。 原文: "ELECTRA-style replaced-token detection (RTD) is a sample-efficient objective for pre-training text encoders, and RTD-trained models such as DeBERTaV3 are strong on classification benchmarks. The same models, however, are known to be poor backbones for embedding tasks such as retrieval and semantic similarity: the binary "original vs. replaced" signal does not ask the final layer to retain the token identity and contextual content that dense representations rely on." -> 背景与动机 "We introduce ModernELECTRA, a pre-training recipe that keeps RTD as the main objective and adds a lightweight auxiliary task, boundary-window reconstruction. For every token, we sample a window of 3-12 tokens that strictly contains it and reconstruct the token's original identity only from the discriminator's hidden states at the two window boundaries. The task costs one small FFN at training time and is discarded afterwards, yet it forces every final-layer state to carry information about its neighbourhood." -> 方法 "Combined with a frozen, separately pre-trained generator, a temperature curriculum for hard negatives and a 512-to-8192 length curriculum, we train two compact encoders: EdgeCoder-31M, an 8-layer English model, and EdgeCoder-Multilingual-61M, a 16-layer model covering 46 languages, each on about 1T tokens." -> 模型训练 "They reach 86.0 and 85.1 on GLUE. The English model outperforms Ettin-Enc-32m (83.5) and MiniLM-L12 (84.6) on GLUE while matching them on MTEB English v2 (51.1), and the multilingual model outperforms the 2.3x larger mmBERT-small on GLUE and Multilingual MiniLM and mDistilBERT on XTREME over the languages it covers." -> 实验结果 "We also describe FlashDeBERTa, our open-source fused implementation of DeBERTa's disentangled attention that stores no $n \times n$ score matrix: at 4096 tokens it is 10x faster and uses 93% less memory than the reference implementation, and it loads existing DeBERTa checkpoints unchanged." -> 工程实现 根据规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 2. 每个自然段落用

包裹,长文用

/

划分小节。 3. 列表用
  • ,引用用
    ,代码用
    ,重要句子可用。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出//等文档级标签。
    
    如果我划分小节,需要添加小标题。但规则说“不得增删改内容”。添加小标题算不算“增”?
    “保留原文所有信息,不得增删改内容”通常意味着不能改变原文的文字,但排版需要HTML标签。如果添加了小标题(如

    背景与动机

    ),这些文字是原文没有的,这属于“增”了内容。 为了严格遵守“不得增删改内容”,我应该不添加任何原文没有的文字。那么如何体现“长文用

    /

    划分小节”?如果原文没有小节,我不加小标题,只把原文按自然段落(或逻辑段落)用

    包裹。或者原文本身就是一段,我可以直接用

    包裹整个段落,或者按照句子组合分成几个

    。 等一下,原文是一整段。如果我把它拆成几个

    ,没有添加文字,这是合理的排版。 或者,我可以使用

    或

    来包裹原文中的某些句子?不行,标题通常是概括性的。 既然原文是一整段且没有小标题,我直接用

    包裹这段文本,并对重要名词使用,这样最安全,不会违反“不得增删改内容”。 或者,我可以将这段长文分成几个

    段落,每个段落对应一个逻辑层,不添加额外文字。 比如:

    ELECTRA-style ... rely on.

    We introduce ModernELECTRA ... its neighbourhood.

    Combined with ... 1T tokens.

    They reach ... it covers.

    We also describe ... unchanged.

    这样既满足“每个自然段落用

    包裹”,又没有增删内容。 关于重要句子用: - ELECTRA-style replaced-token detection (RTD) - ModernELECTRA - boundary-window reconstruction - EdgeCoder-31M - EdgeCoder-Multilingual-61M - FlashDeBERTa 检查原文是否有需要转义的特殊字符: "original vs. replaced" -> 原文有双引号,在HTML中可以直接用,或者用",直接用"也可以。 $n \times n$ -> 原文有 LaTeX 公式,保留原样。 让我们仔细构建HTML:

    ELECTRA-style replaced-token detection (RTD) is a sample-efficient objective for pre-training text encoders, and RTD-trained models such as DeBERTaV3 are strong on classification benchmarks. The same models, however, are known to be poor backbones for embedding tasks such as retrieval and semantic similarity: the binary "original vs. replaced" signal does not ask the final layer to retain the token identity and contextual content that dense representations rely on.

    We introduce ModernELECTRA, a pre-training recipe that keeps RTD as the main objective and adds a lightweight auxiliary task, boundary-window reconstruction. For every token, we sample a window of 3-12 tokens that strictly contains it and reconstruct the token's original identity only from the discriminator's hidden states at the two window boundaries. The task costs one small FFN at training time and is discarded afterwards, yet it forces every final-layer state to carry information about its neighbourhood.

    Combined with a frozen, separately pre-trained generator, a temperature curriculum for hard negatives and a 512-to-8192 length curriculum, we train two compact encoders: EdgeCoder-31M, an 8-layer English model, and EdgeCoder-Multilingual-61M, a 16-layer model covering 46 languages, each on about 1T tokens.

    They reach 86.0 and 85.1 on GLUE. The English model outperforms Ettin-Enc-32m (83.5) and MiniLM-L12 (84.6) on GLUE while matching them on MTEB English v2 (51.1), and the multilingual model outperforms the 2.3x larger mmBERT-small on GLUE and Multilingual MiniLM and mDistilBERT on XTREME over the languages it covers.

    We also describe FlashDeBERTa, our open-source fused implementation of DeBERTa's disentangled attention that stores no $n \times n$ score matrix: at 4096 tokens it is 10x faster and uses 93% less memory than the reference implementation, and it loads existing DeBERTa checkpoints unchanged.

    检查规则: 1. 只输出HTML片段本身,不要