SURGELLM: 通过任务感知特征门控与类别平衡归一化重新思考多任务评估
SURGELLM: Rethinking Multi-Task Evaluation through Task-Aware Feature Gating with Class-Balanced Normalization
AI总结:
针对异构NLP任务中归纳偏置不匹配、类别不平衡和缺乏外部词汇知识的问题,提出统一Transformer框架SURGELLM,包含手术特征门控、任务条件前缀令牌和实例加权归一化,在四个任务上平均F1提升0.036。
摘要:
部署在异构NLP任务上的微调编码器面临三个复合问题:归纳偏置不匹配、类别不平衡破坏特征统计、以及缺乏机制使注意力条件化于外部词汇知识。我们提出\textbf{\surgellm},一个统一的Transformer框架,通过专用轻量模块分别解决每个问题:\emph{手术特征门控}(对精选词汇指示器和\texttt{[CLS]}的逐维sigmoid;当特征无信息时可证明退化为恒等映射)、\emph{任务条件前缀令牌}(量化特征值和任务标识前置到每个输入)、以及\emph{实例加权归一化}(IWN;从门控统计中移除类别先验偏置)。我们证明了一个超额风险界,将门控收益与\emph{手术特征对齐}联系起来。在四个任务(SST-2、多跳检索、LLM提示归因、作者身份检测)上,涵盖17,830个样本和三个种子下的十一个模型变体,IWN变体实现了宏F1 \textbf{0.940}(比最强的非IWN基线高$+0.036$;在作者身份检测上高$+0.130$)。随机词汇对照(平均F1 $-0.028$)确认增益是词汇性的,而非参数性的。代码、词汇表和一个$99.5\%$恢复率的自动提取配方已发布。
英文摘要:
Fine-tuned encoders deployed across heterogeneous NLP tasks face three compounding problems: mismatched inductive biases, class-imbalance corruption of feature statistics, and no mechanism to condition attention on external lexical knowledge. We introduce \textbf{\surgellm}, a unified transformer framework that addresses each with a dedicated lightweight module: a \emph{surgical feature gate} (learned per-dimension sigmoid over curated lexical indicators and \texttt{[CLS]}; provably degenerates to identity when features are uninformative), \emph{task-conditioned prefix tokens} (quantized feature values and task identity prepended to every input), and \emph{Instance-Weighted Normalization} (IWN; removes class-prior bias from gate statistics). We prove an excess-risk bound linking gate benefit to \emph{surgical feature alignment}. Across four tasks, SST-2, multi-hop retrieval, LLM-prompt attribution, and authorship detection, covering 17,830 examples and eleven model variants over three seeds, the IWN variant achieves macro-F1 \textbf{0.940} ($+0.036$ over the strongest non-IWN baseline; $+0.130$ on authorship detection). A random-vocabulary control ($-0.028$ avg.\ F1) confirms gains are lexical, not parametric. Code, vocabularies, and a $99.5\%$-recovery auto-extraction recipe are released.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。