Paper: 2608.06111 Authors: Haris Riaz, Hyungji Kim, Mihai Surdeanu Categories: cs.CL, cs.AI

The Gap

Self-attention is permutation-invariant, so Transformers need positional embeddings to know anything about order at all. Three families have won out: absolute (add a position vector to the input), relative (bias the attention score by the distance between two tokens), and rotary (rotate query and key vectors by an angle proportional to position). All three encode the same underlying quantity — linear distance in the token sequence.

That quantity is a poor proxy for what actually determines how words relate. In “the keys to the cabinet are on the table,” the verb agrees with keys, four tokens away, not with cabinet, one token away. Linear distance says the wrong thing; the dependency structure says the right one. Positional embeddings are, in the paper’s phrasing, largely agnostic to syntactic structure.

There is a long line of work trying to fix this by injecting syntax, and it has a consistent and telling failure signature: syntax-injection methods improve syntactic generalization while degrading perplexity. That trade is the field’s standing result, and it is the reason none of these methods became default equipment. If forcing syntactic structure into a language model makes it a worse language model, the natural conclusion is that the syntax is fighting the objective rather than helping it — that the model was already extracting whatever structure it needed, and the injected prior is a constraint rather than information.

A second, more practical problem: existing syntactic language models tend to either marginalize over many parses at inference time — expensive, and a permanent tax on serving — or use syntax during training and discard it at runtime, which limits what the syntax can do.

Positional embeddings encode LINEAR DISTANCE only
         |
         v
But grammatical relatedness != token distance
("the keys to the cabinet ARE ...")
         |
         v
Prior syntax-injection work
         |
         +-----------------------+
         |                       |
         v                       v
  syntax metrics UP        perplexity DOWN
  (nearly every method)    (the standing trade-off)
         |                       |
         +----------+------------+
                    |
                    v
   Also: marginalize over parses at inference (costly)
         OR discard syntax at runtime (limited)
                    |
                    v
   [This paper] SiPE: put the prior in the POSITION channel,
   learned during pretraining, one parse at inference
                    |
                    v
   Evidence: SyntaxGym +10.3% AND perplexity -9.0%
             GLUE +8.2%
                    |
                    v
   The trade-off was not fundamental --
   it was about WHERE the prior enters

The Increment

One sentence: Before this paper, injecting syntax into a language model cost you perplexity; after it, a syntactic prior placed in the positional channel improves syntactic generalization, perplexity, and downstream understanding simultaneously.

Core Mechanism

SiPE — Syntax-informed Positional Embeddings — learns a lightweight syntactic prior from dependency parses during pretraining and injects it into the position channel. The architectural restraint is the point: self-attention and the rest of the model are left untouched. Nothing new is bolted onto the network; the existing positional mechanism is given better information about what “position” should mean. And it is applied across all three dominant PE families — absolute, relative, and rotary — and to both encoders and decoders, which is what turns it from a trick for one architecture into a general claim about where syntax belongs.

The paper’s most useful empirical contribution is not that this works but the careful isolation of where and how the prior should enter, and the finding that the answer is architecture-dependent. For autoregressive decoders using relative PE, the prior is strongest when coupled multiplicatively with the relative-position term of the attention score. The authors compared this against injecting into the input embeddings, into self-attention, and into the positional and attention terms jointly — and the multiplicative coupling with the relative-position term won. For encoders, the opposite: the prior is best added directly to the input embeddings, where it composes with whatever native positional mechanism the encoder already has. The same prior, entering at different points, depending on the architecture.

The headline result is that the standing trade-off simply does not appear. Models pretrained with SiPE improve on SyntaxGym by up to 10.3% while reducing perplexity by 9.0% over a base model with no syntactic supervision — where, as the paper notes, nearly every existing syntax-injection method degrades perplexity instead. The gains also extend past syntactic generalization into real language understanding, raising GLUE scores by up to 8.2%. On cost, SiPE conditions on a single parse rather than marginalizing over many, which places it on a new Pareto frontier between syntactic supervision and inference cost.

   Where the prior enters (the paper's core ablation)

   dependency parses (pretraining only)
              |
              v
      +------------------+
      | lightweight      |
      | syntactic prior  |
      +------------------+
              |
      +-------+--------+
      |                |
      v                v
   DECODER          ENCODER
   (relative PE)
      |                |
      v                v
  multiply into    add into input
  the relative-    embeddings,
  position term    composing with
  of attention     native PE
  score
      |                |
      v                v
   beat: input-emb injection      (self-attention
         self-attention injection  untouched in
         joint pos+attn injection  both cases)


   Inference cost comparison

   prior syntactic LMs:  marginalize over MANY parses   $$$
                    OR:  discard syntax at runtime      (weak)

   SiPE:                 condition on ONE parse         $

Here is the structural metaphor. Think of a Transformer reading a sentence as a traveler navigating a city, where positional embeddings are the map. Standard positional embeddings give you a map with straight-line distances only — Manhattan-style, as the crow flies. Two buildings 100 meters apart are marked as close. That is usually a decent proxy for how easy it is to get from one to the other, which is why plain PE works as well as it does.

But sometimes a river runs between them, and the nearest bridge is a kilometer away. And sometimes two buildings a kilometer apart sit on the same express line, one stop apart. Straight-line distance systematically misleads in exactly the cases that matter — which is the subject-verb agreement problem, where keys and are are far apart on the page but adjacent in the grammar.

The prior work’s mistake, in this metaphor, was to hand the traveler a separate transit map and ask them to reconcile it with the street map on the fly. That is the marginalizing-over-parses approach: expensive, and the two maps sometimes disagree. Alternatively, some methods showed the transit map during training and took it away before the trip — helpful for learning the city’s shape, useless at the moment of navigation.

SiPE instead redraws the distances on the original map. There is no second map and no reconciliation step; the notion of “how far apart” is simply corrected to account for the bridges and the express lines. And this is precisely why perplexity improves instead of degrading. A traveler with a separate, conflicting map moves worse. A traveler with a better map moves better at everything, including the ordinary walking they were already good at.

The architecture-dependence of the injection point also becomes legible here. A decoder reading left-to-right is navigating in real time, deciding each step from where it currently stands — so the correction belongs in the step-cost function, multiplied into the relative-position term as it computes each move. An encoder seeing the whole sentence at once is studying the map before setting out — so the correction belongs in the map itself, added to the input representation.

Key Concepts

  • The perplexity trade-off, and why it was not fundamental: The central puzzle. Nearly every prior syntax-injection method improved syntactic metrics while making the model a worse language model, and the field largely read this as the price of imposing structure. SiPE’s result suggests the trade was an artifact of where the structure entered. Injected into input embeddings or attention for a decoder, a syntactic prior competes with the representational work those components are already doing — it displaces information. Injected multiplicatively into the relative-position term, it modulates a quantity the model was already computing and already using as distance, so it refines rather than displaces. The lesson is sharper than “syntax helps”: it is that a prior which corrects an existing signal behaves completely differently from one that adds a competing signal.

  • Single parse versus marginalization: Syntactic ambiguity is real — a sentence can have many valid dependency parses — and the principled response is to marginalize over them, weighting each by probability. The problem is that this must happen at inference, every time, forever. SiPE conditions on a single parse instead. This is theoretically weaker and practically decisive, and the paper is right to frame it as a Pareto frontier rather than a strict improvement: you give up parse uncertainty and you get a model that costs the same to serve as a normal one. Note also that parses are only needed during pretraining for the prior to be learned, which is a one-time cost paid by whoever trains the model, not by whoever runs it.

  • Injecting into the position channel rather than the representation channel: The architectural idea worth carrying away. A Transformer has two broad places to put information about a token: into its representation (what this token is) or into the positional machinery (how this token relates to others). Syntax is relational information — a dependency arc is a fact about a pair, not about a word — so the position channel is where it structurally belongs. Prior work often put it in the representation channel, which is a type mismatch: encoding a fact about a pair by modifying one member of the pair. Once stated this way, the perplexity result stops being surprising.

Framework Shift

Before (prior syntax injection):     After (SiPE):

  parse tree                          parse tree
      |                                   |
      v                                   v
  inject into REPRESENTATION          inject into POSITION
  (input embeddings, or a             channel -- the thing
  separate syntax module)             that already encodes
      |                               "how tokens relate"
      v                                   |
  competes with the                       v
  representational work                 refines an existing
  those components do                   signal instead of
      |                                 adding a competing one
      v                                   |
  syntax metrics UP                       v
  perplexity DOWN                     syntax UP (+10.3%)
  (the standing trade-off)            perplexity DOWN (-9.0%)
      |                               GLUE UP (+8.2%)
      v                                   |
  inference: marginalize                  v
  over many parses ($$$)              inference: one parse ($)
  or discard syntax

From treating syntax as extra content to be added to a model’s representations, to treating it as a correction to the model’s notion of distance, the core shift is recognizing that relational information belongs in the channel that already encodes relations.

Expert Assessment

Problem choice: A real gap, and an unusually well-motivated one because the paper is not merely proposing another syntax-injection method — it is explaining why the previous ones traded away perplexity. The field had accumulated a consistent negative result and largely accepted it as a law; showing it was a consequence of an implementation choice is a more valuable contribution than the accuracy numbers. That said, the strategic question hanging over all syntax-injection work applies here too: at sufficient scale, models learn syntactic structure without help, and priors that pay off at moderate scale often stop paying off. The paper’s contribution is real regardless, but its long-run relevance depends on an extrapolation not tested here.

Method maturity: Genuinely clever, and the cleverness is in restraint — leaving self-attention untouched and improving the information the existing positional mechanism receives is a much better idea than adding a syntax module. The where-and-how ablation is the strongest part of the paper and the part most likely to be reused, because “multiplicatively into the relative-position term for decoders, additively into input embeddings for encoders” is a specific, actionable finding rather than a general endorsement. The obvious dependency is on parse quality: the whole method is conditioned on a dependency parser, and the paper’s framing does not foreground what happens as parse accuracy degrades — which is exactly what happens on the informal, code-mixed, and non-English text that a large share of real pretraining data consists of. A single parse is cheap, but a single wrong parse is a confidently wrong prior.

Experimental integrity: The result that carries the paper is the simultaneous improvement in SyntaxGym and perplexity, and it is the right result to lead with precisely because it contradicts the field’s expectation — a paper claiming its method also improves perplexity is making a falsifiable claim that reviewers will check. Covering all three PE families and both encoders and decoders is more thorough than this literature usually manages and substantially raises confidence that the effect is about the mechanism rather than a lucky configuration. The GLUE improvement of “up to 8.2%” is the number I would treat most cautiously: “up to” over a multi-task benchmark usually means one task moved a lot, and GLUE contains small, high-variance tasks where large relative swings are routine. The claim that gains extend beyond syntax into real understanding needs the average, not the maximum. Scale is the other open question — these are pretraining experiments, and the relevant sizes are not evident from the abstract.

Writing quality: The abstract is dense but well-organized, and the decision to state the where-and-how finding explicitly rather than burying it in an appendix reflects good judgment about what readers will actually use. The corner cut is the reliance on “up to” for both headline downstream numbers, which is the standard way to make a result look larger than its average and invites more skepticism than the underlying work probably deserves. The section that would most elevate the paper is a direct analysis of why multiplicative coupling with the relative-position term wins for decoders — the empirical finding is established, but the mechanism is left for the reader to reconstruct, and that mechanism is the paper’s most generalizable insight.

Verdict: weak accept — A well-executed idea with the right architectural instinct and a result that overturns an assumed trade-off, held back by “up to” reporting on downstream benchmarks and an unexamined dependency on parser quality.

Takeaways

Three things a practitioner can steal:

  1. Put relational information in the relational channel. The transferable principle, well beyond syntax: if the fact you want to inject is about a pair of elements, encoding it by modifying one element is a type mismatch that makes it compete with that element’s own representation. Attention biases and positional terms are where pairwise facts belong. This applies to injecting graph structure, document hierarchy, table layout, code AST relationships, or retrieval provenance into a Transformer.

  2. When a prior degrades your main objective, suspect the injection point before the prior. The field read “syntax injection hurts perplexity” as evidence that syntax was in tension with language modeling. It was evidence that the syntax was displacing information rather than refining it. Before concluding that auxiliary knowledge is unhelpful, try entering it where it corrects an existing signal rather than where it adds a new one — a prior that modulates a quantity the model already computes behaves entirely differently from one that competes for representational capacity.

  3. Ask whether marginalization is worth its permanent inference tax. Marginalizing over parses is the theoretically correct handling of ambiguity, and it costs you at every request forever. Conditioning on a single best hypothesis is theoretically weaker and often practically dominant. This trade recurs constantly — over retrieval results, over tool-call candidates, over segmentations — and the honest framing is a Pareto frontier, not a right answer. Also worth noting: SiPE needs parses only at pretraining time, which is the most favorable version of this trade, since the cost lands once on the trainer rather than repeatedly on the server.

论文: 2608.06111 作者: Haris Riaz, Hyungji Kim, Mihai Surdeanu 分类: cs.CL, cs.AI

缺口

自注意力是置换不变的,所以 Transformer 必须靠位置编码才能知道任何关于顺序的事。 三个家族胜出了:绝对式(给输入加一个位置向量)、相对式(用两个 token 之间的距离去偏置注意力分数)、旋转式(按与位置成正比的角度旋转 query 和 key 向量)。 三者编码的是同一个底层量——token 序列中的线性距离

而这个量,对于「词与词到底如何相关」来说是一个糟糕的代理。 在 “the keys to the cabinet are on the table” 里,动词与四个 token 之外的 keys 一致,而不是与相邻一个 token 的 cabinet 一致。 线性距离说的是错话;依存结构说的才是对的。 用论文的说法:位置编码在很大程度上对句法结构无感。

有一长串工作试图通过注入句法来修这件事,而它们有一个一致且耐人寻味的失败签名:句法注入方法改善句法泛化,却让困惑度变差。 这个取舍是这个领域的既定结论,也正是这些方法从未成为标配的原因。 如果把句法结构硬塞进语言模型会让它变成一个更差的语言模型,那自然的结论就是句法在与目标函数打架而不是帮忙——模型本来就已经在提取它所需要的任何结构,而注入的先验是一道约束,不是信息。

第二个更实际的问题:现有的句法语言模型,要么在推理时对多个句法分析做边缘化——很贵,而且是服务期永久缴纳的税——要么只在训练时用句法、运行时丢掉,这限制了句法能做的事。

位置编码只编码「线性距离」
     |
     v
但语法相关性 != token 距离
("the keys to the cabinet ARE ...")
     |
     v
此前的句法注入工作
     |
     +-----------------------+
     |                       |
     v                       v
  句法指标 上升          困惑度 变差
  (几乎所有方法)        (既定取舍)
     |                       |
     +----------+------------+
                |
                v
  另外:推理时对多个句法分析做边缘化(贵)
        或者运行时丢掉句法(弱)
                |
                v
  [本文] SiPE:把先验放进「位置通道」,
  在预训练中学出,推理时只用一个句法分析
                |
                v
  证据:SyntaxGym +10.3% AND 困惑度 -9.0%
        GLUE +8.2%
                |
                v
  那个取舍不是根本性的 ——
  问题在于先验从「哪里」进入

增量

一句话: 这篇论文之前,往语言模型里注入句法要拿困惑度去换;这篇论文之后,一个放进位置通道的句法先验能同时改善句法泛化、困惑度和下游理解。

核心机制

SiPE(Syntax-informed Positional Embeddings,句法感知位置编码)在预训练期间从依存句法分析中学出一个轻量的句法先验,并把它注入位置通道。 架构上的克制正是要点所在:自注意力和模型其余部分原封不动。 没有任何新东西被焊到网络上;只是让已有的位置机制拿到关于「位置该意味着什么」的更好信息。 而且它被应用到全部三个主流 PE 家族——绝对、相对、旋转——以及编码器和解码器两侧,这就把它从一个针对单一架构的技巧,变成了一个关于「句法该待在哪里」的一般论断。

论文最有用的经验贡献不是「这管用」,而是对先验应从何处、以何种方式进入的细致隔离,以及那个「答案取决于架构」的发现。 对使用相对 PE 的自回归解码器,先验在与注意力分数中的相对位置项做乘性耦合时最强。 作者把它与「注入输入嵌入」「注入自注意力」「同时注入位置项和注意力项」做了对比——乘性耦合于相对位置项胜出。 对编码器则相反:先验最好直接加到输入嵌入上,在那里与编码器原生的位置机制相组合。 同一个先验,在不同架构下从不同的点进入。

头条结果是:那个既定取舍根本没有出现。 用 SiPE 预训练的模型在 SyntaxGym 上最多提升 10.3%,同时相对无句法监督的基座模型降低 9.0% 的困惑度——而如论文所指出,几乎每一个现有的句法注入方法在这里都是让困惑度变差。 增益也不止于句法泛化,还延伸到真实的语言理解上,把 GLUE 分数最多抬高 8.2%。 在成本上,SiPE 只以单个句法分析为条件,而非对多个做边缘化,这把它放在了「句法监督 vs 推理成本」之间一条新的帕累托前沿上。

   先验从何处进入(论文的核心消融)

   依存句法分析(仅预训练期)
              |
              v
      +------------------+
      | 轻量句法先验      |
      +------------------+
              |
      +-------+--------+
      |                |
      v                v
   解码器            编码器
   (相对 PE)
      |                |
      v                v
  乘进注意力分数     加进输入嵌入,
  的相对位置项       与原生 PE 组合
      |                |
      v                v
   胜过:注入输入嵌入          (两种情况下
         注入自注意力            自注意力都
         联合注入位置+注意力      原封不动)


   推理成本对比

   此前的句法 LM:对「多个」句法分析边缘化   $$$
              或:运行时丢掉句法             (弱)

   SiPE:        以「一个」句法分析为条件     $

下面是结构性比喻。 把 Transformer 读一个句子,想成一个旅行者在城市里导航,而位置编码就是地图。 标准位置编码给你的地图只有直线距离——两点之间,如鸟飞过。 相距 100 米的两栋楼被标为很近。 这通常是「从一栋到另一栋有多容易」的不错代理,这也是为什么朴素 PE 已经工作得相当好。

但有时两者之间横着一条河,最近的桥在一公里外。 也有时相距一公里的两栋楼恰好在同一条快线上,只隔一站。 直线距离恰恰在最要紧的那些情形里系统性地误导——那就是主谓一致问题,keysare 在纸面上很远,在语法上却相邻。

用这个比喻说,此前工作的错误在于:递给旅行者另一张交通线路图,要求他在路上把它和街道图对上。 那就是对多个句法分析做边缘化的路线:贵,而且两张图有时还打架。 另一些方法则在训练时展示线路图、出发前收走——对学习城市形状有帮助,在真正导航的那一刻毫无用处。

SiPE 的做法是在原来那张图上重画距离。 没有第二张图,也没有对齐步骤;「有多远」这个概念被直接修正为把桥梁和快线计算在内。 而这恰恰是为什么困惑度改善而非变差。 一个拿着另一张互相冲突地图的旅行者,走得更差。 一个拿着更好那张地图的旅行者,做什么都更好,包括他本来就擅长的普通步行。

注入点为何依赖架构,在这里也变得可读。 一个从左到右阅读的解码器是在实时导航,从当前所站之处逐步决策——所以修正属于单步代价函数,在它计算每一步时乘进相对位置项。 一个一次看到整句的编码器是在出发前研究地图——所以修正属于地图本身,加进输入表示。

关键概念

  • 困惑度取舍,以及它为何不是根本性的: 核心谜题。 几乎每一个此前的句法注入方法都在改善句法指标的同时把模型变成更差的语言模型,而领域大体把这读作「强加结构的代价」。 SiPE 的结果提示这个取舍是「结构从哪里进入」造成的人为产物。 对解码器而言,注入到输入嵌入或注意力里的句法先验,会与那些组件本就在做的表示工作竞争——它挤占信息。 而乘性注入到相对位置项里,它调制的是一个模型本来就在计算、并且本来就当作距离在用的量,所以它是精化而非挤占。 这个教训比「句法有帮助」更锋利:一个修正已有信号的先验,与一个加入竞争信号的先验,行为完全不同。

  • 单个句法分析 vs 边缘化: 句法歧义是真实存在的——一个句子可以有多个有效的依存分析——而有原则的回应是对它们按概率加权做边缘化。 问题在于这必须在推理时发生,每一次,永远。 SiPE 转而只以单个句法分析为条件。 这在理论上更弱,在实践上却是决定性的;论文把它框成一条帕累托前沿而非严格改进,是对的:你放弃了句法分析的不确定性,换来一个服务成本与普通模型相同的模型。 另需注意,句法分析只在预训练期为了学出先验才需要,这是训练方付一次的一次性成本,不是运行方要付的。

  • 注入位置通道而非表示通道: 值得带走的架构思想。 Transformer 有两个大类位置可以安放关于一个 token 的信息:放进它的表示(这个 token 是什么),或放进位置机制(这个 token 与其他 token 如何相关)。 句法是关系信息——一条依存弧是关于一对元素的事实,不是关于一个词的事实——所以位置通道才是它在结构上该待的地方。 此前工作常把它放进表示通道,那是一次类型错配:通过修改一对元素中的一个,去编码关于这一对的事实。 一旦这样陈述,困惑度那个结果就不再令人意外了。

框架转变

之前(此前的句法注入):             之后(SiPE):

  句法分析树                        句法分析树
      |                                 |
      v                                 v
  注入「表示」通道                   注入「位置」通道 ——
  (输入嵌入,或一个                 那个本来就在编码
  独立的句法模块)                   「token 如何相关」的东西
      |                                 |
      v                                 v
  与那些组件本就在做的                精化一个已有信号,
  表示工作竞争                        而非加入一个竞争信号
      |                                 |
      v                                 v
  句法指标 上升                      句法 上升 (+10.3%)
  困惑度 变差                        困惑度 下降 (-9.0%)
  (既定取舍)                       GLUE 上升 (+8.2%)
      |                                 |
      v                                 v
  推理:对多个句法分析                推理:一个句法分析($)
  做边缘化($$$)
  或丢掉句法

从「把句法当作要添加进模型表示的额外内容」,到「把它当作对模型『距离』概念的一次修正」,核心转变是认识到关系信息属于那个本来就在编码关系的通道。

专家评审

选题眼光: 真缺口,而且动机异常充分,因为这篇论文不只是又提出一个句法注入方法——它在解释此前那些方法为什么要拿困惑度去换。 领域积累了一个一致的负面结果,并大体把它当成一条定律接受下来;证明那是一个实现选择的后果,比那些准确率数字更有价值。 话虽如此,悬在所有句法注入工作头上的战略性问题在这里同样适用:到了足够的规模,模型不需要帮助也能学到句法结构,而在中等规模上有回报的先验往往在更大规模上不再有回报。 这份贡献无论如何是真实的,但它的长期相关性依赖于一个本文未测试的外推。

方法成熟度: 确实巧,而巧就巧在克制——不碰自注意力、只改善已有位置机制所收到的信息,这比加一个句法模块是好得多的主意。 「何处、以何种方式」这个消融是全文最强、也最可能被复用的部分,因为「解码器乘进相对位置项、编码器加进输入嵌入」是一个具体、可操作的发现,而不是一句笼统的背书。 明显的依赖在于句法分析质量:整套方法以一个依存句法分析器为条件,而论文的叙述没有把「当句法分析准确率下降时会怎样」摆到前面——而那恰恰是在非正式文本、语码混合文本和非英语文本上会发生的事,那些构成了真实预训练数据的很大一部分。 一个句法分析很便宜,但一个错的句法分析是一个自信的错误先验。

实验诚意: 撑起这篇论文的结果是 SyntaxGym 与困惑度的同时改善,而以它领衔恰恰是对的,因为它与领域的预期相矛盾——一篇声称自己的方法还能改善困惑度的论文,是在提出一个审稿人会去核查的可证伪论断。 覆盖全部三个 PE 家族以及编码器和解码器两侧,比这条文献线通常做到的更彻底,也大幅提高了「效应源于机制而非某个走运配置」的可信度。 GLUE 上「最多 8.2%」是我会最谨慎对待的数字:在一个多任务基准上说「最多」,通常意味着某一个任务动得很多,而 GLUE 里就有一些小而高方差的任务,大幅相对波动是家常便饭。 「增益延伸到句法之外的真实理解」这个论断需要的是平均值,不是最大值。 规模是另一个悬着的问题——这些是预训练实验,而相关的模型尺寸从摘要看不出来。

写作功力: 摘要密集但组织良好,而把「何处、以何种方式」这个发现显式写出来、而不是埋进附录,体现了对「读者真正会用什么」的良好判断。 偷懒之处是两个头条下游数字都依赖「最多」这个措辞,那是让结果显得比其均值更大的标准手法,招来的怀疑多过底下这份工作应得的。 最能让整篇论文升一档的,是直接分析为什么乘性耦合于相对位置项对解码器更优——经验发现已经确立,但机制留给读者自己重建,而那个机制才是全文最可推广的洞察。

判决: 弱接收 —— 一个执行良好、架构直觉正确的想法,其结果推翻了一个被默认的取舍;被下游基准上的「最多」式报告和未经检视的句法分析器质量依赖拖了后腿。

要点总结

实践者可以从这篇论文「偷」走三样东西:

  1. 把关系信息放进关系通道。 远超句法的可迁移原则:如果你想注入的事实是关于一对元素的,那么通过修改其中一个元素来编码它就是类型错配,会让它与那个元素自身的表示相竞争。 注意力偏置和位置项才是成对事实该待的地方。 这适用于把图结构、文档层级、表格布局、代码 AST 关系或检索来源注入 Transformer。

  2. 当一个先验损害你的主目标时,先怀疑注入点,再怀疑先验。 领域把「句法注入损害困惑度」读作「句法与语言建模存在张力」的证据。 它其实是「句法在挤占信息而非精化信息」的证据。 在断定辅助知识没用之前,先试着让它从修正已有信号的地方进入,而不是从加入新信号的地方——一个调制模型已在计算之量的先验,与一个争夺表示容量的先验,行为完全不同。

  3. 问一句边缘化值不值它那笔永久推理税。 对多个候选做边缘化是处理歧义在理论上正确的方式,而它让你在每一次请求上永远付费。 以单个最佳假设为条件在理论上更弱,在实践中却常常占优。 这个取舍反复出现——在检索结果上、在工具调用候选上、在切分方案上——而诚实的框架是一条帕累托前沿,不是一个正确答案。 还值得注意:SiPE 只在预训练时需要句法分析,这是这个取舍最有利的版本,因为成本一次性落在训练方,而不是反复落在服务方。