当非正式文本破坏NLI:分词失败、分布偏移和针对性缓解
When Informal Text Breaks NLI: Tokenization Failure, Distribution Shift, and Targeted Mitigations
AI总结:
研究非正式表层形式如何降低ELECTRA-small和RoBERTa-large在SNLI和MultiNLI中的NLI准确性,分析俚语替换、表情符号替换、Gen-Z填充词及组合的影响,提出预处理和增强策略以缓解分词失败和分布偏移问题。
摘要:
我们研究了非正式表层形式如何在ELECTRA-small (14M)和RoBERTa-large (355M)上降低NLI准确性,通过在SNLI和MultiNLI上应用四种转换:俚语替换、表情符号替换、Gen-Z填充词及其组合。俚语替换(将正式词替换为非正式等价词,例如“going to”->“gonna”,“friend”->“homie”)导致最小的降级(最多1.1个百分点):俚语词汇大部分在WordPiece覆盖范围内,因此分词器在不丢失信号的情况下处理。表情符号用Unicode字符替换内容词,ELECTRA的WordPiece分词器将其映射为[UNK],在任何学习参数看到它之前破坏输入信号(93.6%的emoji示例至少包含一个[UNK],平均每个示例2.91个)。噪声词(no cap,deadass,tbh)完全在词汇表内但不在NLI训练数据中,与模型赋予其不存在的推理权重一致。两种失败模式响应不同的干预:预处理通过在分词前标准化文本恢复emoji准确性;增强通过在训练期间暴露模型于带有噪声的示例来处理噪声。两种方法的混合在ELECTRA上的SNLI组合变体中达到88.93%(从75.88%提升),在干净文本上无显著下降。在GPT-4o-mini零样本情况下,未缓解的ELECTRA在转换变体上显著更差(p < 0.0001);混合ELECTRA在所有SNLI变体上超过它并在MultiNLI上达到统计平衡。
英文摘要:
We study how informal surface forms degrade NLI accuracy in ELECTRA-small (14M) and RoBERTa-large (355M) across four transforms applied to SNLI and MultiNLI: slang substitution, emoji replacement, Gen-Z filler tokens, and their combination. Slang substitution (replacing formal words with informal equivalents, e.g., "going to" -> "gonna", "friend" -> "homie") causes minimal degradation (at most 1.1pp): slang vocabulary falls largely within WordPiece coverage, so the tokenizer handles it without signal loss. Emoji replaces content words with Unicode characters that ELECTRA's WordPiece tokenizer maps to [UNK], destroying the input signal before any learned parameters see it (93.6% of emoji examples contain at least one [UNK], mean 2.91 per example). Noise tokens (no cap, deadass, tbh) are fully in-vocabulary but absent from NLI training data, consistent with the model assigning them inferential weight they do not carry. The two failure modes respond to different interventions: preprocessing recovers emoji accuracy by normalizing text before tokenization; augmentation handles noise by exposing the model to noise-bearing examples during training. A hybrid of both achieves 88.93% on the combined variant for ELECTRA on SNLI (up from 75.88%), with no statistically significant drop on clean text. Against GPT-4o-mini zero-shot, unmitigated ELECTRA is significantly worse on transformed variants (p < 0.0001); hybrid ELECTRA surpasses it across all SNLI variants and reaches statistical parity on MultiNLI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。