---
title: "Proof Net Structure for Neural Lambek Categorial Parsing (2021)"
description: "Bhargava and Penn use proof nets to train a Lambek grammar parser, testing whether it can find valid parses without annotated derivations."
canonical: "https://research.elamur.ai/free/en/papers/bhargava-2021-proof-net-structure-neural-lambek/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bhargava-2021-proof-net-structure-neural-lambek/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Proof Net Structure for Neural Lambek Categorial Parsing

# Proof Net Structure for Neural Lambek Categorial Parsing

Paper · 2021 · Aditya Bhargava and Gerald Penn

**Authors:** Aditya Bhargava and [Gerald Penn](https://md.research.elamur.ai/free/en/authors/gerald-penn/) · **Year:** 2021 · **Venue:** Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **1** paper in our library of more than 163,000 papers whose bibliographies we read · Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.iwpt-1.2/)
- [PDF](https://aclanthology.org/2021.iwpt-1.2.pdf)
- [DOI 10.18653/v1/2021.iwpt-1.2](https://doi.org/10.18653/v1/2021.iwpt-1.2)

## Summary

A word’s grammatical category can say what kinds of phrases the word needs and where to look for them. A parser still has to decide which phrases actually go together. Aditya Bhargava and Gerald Penn tackle that second decision in Lambek categorial grammar, a formalism in which a syntactic analysis is a proof. They present the first statistical parser for this grammar. Its input includes the words and their lexical categories, and its job is to assemble a proof by linking the elementary parts of those categories. [Parsing](https://md.research.elamur.ai/free/en/concepts/parsing/)

The authors use a kind of proof net called a term graph. The lexical categories determine a fixed graph fragment, the proof frame. The parser completes the graph by matching positive and negative occurrences of the same atomic category. A self-attention encoder scores candidate links. The authors give it information about the edges already in the frame and about links that would cross if drawn together. They also filter out some impossible or unwanted individual links, then use the grammar’s conditions to rank complete candidate matchings. This turns the internal structure of a lexical category into information the parser can use before it has assembled a full proof. [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/)

On the English LCGbank test set, the supervised parser using term graph structure reached 87.4% exact sentence accuracy when it retrieved a single matching and 88.2% when it retrieved up to 512. The corresponding baseline scores were 86.2% and 87.7%. Coverage, the share of sentences for which the parser found a grammatically valid analysis, rose from 97.3% to 98.4% in the single-candidate comparison and from 99.8% to 99.96% in the larger search. Adding a training objective for grammatical validity to the supervised objective lowered exact sentence accuracy relative to training the structured parser on reference linkages alone, while coverage remained high.

The authors also express the conditions for a valid proof as differentiable penalties. They penalize crossing links, cycles made of ordinary directed edges, and failures to connect the endpoints of special Lambek edges through ordinary paths. With these penalties as its only training objective, the parser reached 91.2% test coverage with one candidate and 96.2% with up to 512. In the wider search, the reference parse appeared somewhere in the output for 79.0% of test sentences. It ranked first for 53.4% with one candidate and 54.9% with the larger search. The most damaging ablation removed the ways the parser used planarity, reducing coverage to 19.2% and 44.7%, respectively. The experiment shows how much of the parsing task can be learned from proof conditions and corpus-supplied lexical categories without training on the reference derivations themselves.

## Deep dive: Proof Net Structure for Neural Lambek Categorial Parsing

Bhargava and Penn use proof nets to train a Lambek grammar parser, testing whether it can find valid parses without annotated derivations. · about 41 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The grammar already describes much of the sentence

Lambek categorial grammar, or LCG, asks a specific question about a sentence. Given a sequence of categories assigned to its words, can those categories yield the category of a complete sentence? The order of the sequence matters, and a category may carry detailed instructions about what it combines with. A transitive or ditransitive verb, for example, can have a category that expresses the directions in which its arguments must appear and what grammatical category remains as each argument is supplied. A proof accounts for how the input categories jointly produce the requested result. [Syntax & grammar formalisms](https://md.research.elamur.ai/free/en/topics/syntax-grammar/)

A parser for such a grammar normally inherits a substantial part of its input from a supertagger. A supertagger assigns a lexical category, or supertag, to each word. The word *tag* can make this decision sound like assigning a familiar label such as noun or verb. Here the label may itself be a nested expression. It can say that a word takes a noun phrase to its right and leaves behind something that still needs another argument. The next stage takes these expressions and determines whether and how they fit together. Bhargava and Penn study that stage with the lexical categories already supplied. The division gives them a way to ask what the structure *inside* the categories contributes to finding a parse.

The authors contrast LCG with combinatory categorial grammar, or CCG, which had received much more computational attention. As they describe it, there were already statistical CCG parsers and algorithms for both context-free and mildly context-sensitive forms of CCG parsing. They cite chart parsing in the context-free case and a separate line of work on algorithms for the more expressive case. LCG research had largely concentrated on the properties of the calculus and on parsing without statistical prediction. [A New Parsing Algorithm for Combinatory Categorial Grammar](https://md.research.elamur.ai/free/en/papers/kuhlmann-2014-new-parsing-algorithm-combinatory-categorial/)

The paper points to two results that help explain the imbalance. LCG and context-free grammars are weakly equivalent, which concerns the languages they can generate. LCG parsing is also NP-complete in general. The first result leaves open how each formalism represents a derivation. The second describes the general computational problem, while particular inputs may be easier. The authors cite an algorithm whose exponential dependence falls on category order, a quantity described as small for practical grammars. These observations make it reasonable to investigate whether a parser can find useful analyses on corpus examples without solving every possible instance of the general problem.

LCG also matters for how syntax relates to meaning. The paper argues that the formalism has a comparatively transparent syntax–semantics relationship because its derivations can stay within the categorial calculus. CCG and the Lambek calculus share some familiar operations, including first-degree harmonic composition and type-raising. Their rules still differ in important ways. The authors give crossing composition and substitution as examples of CCG operations outside the Lambek calculus. In the other direction, they cite a result establishing that a CCG with a finite rule inventory cannot derive the LCG introduction rules. A parser built for the details of LCG therefore has a different target from a parser built around an existing CCG rule inventory.

#### From a sequence of rule applications to a graph

A calculus gives a way to write a proof as a sequence or tree of rule applications. Sometimes several such derivations encode the same analysis because independent rule applications can take place in different orders. This is an instance of spurious ambiguity. It matters for statistical parsing because treating equivalent rule orders as separate outputs gives the parser distinctions to predict that need not correspond to distinct analyses. A proof net abstracts over those distinctions. In the example term graph in the paper, one graph represents multiple derivations that differ in this way.

The graph also separates fixed information from decisions that depend on the analysis. Suppose the lexical categories and the target category are known. Decomposing these categories gives the vertices and some of the edges. That part, the proof frame, is shared by all the proofs the parser can construct from those categories. The remaining edges record how elementary category occurrences connect across the frame. Finding them recasts proof search as a pairing problem with grammatical constraints. Word order, category structure, and matching preferences can then all be brought to bear on the same decision.

Earlier work on constructive supertagging had already argued for treating a lexical category as something assembled from smaller parts. The paper discusses work applying that approach to a type-logical grammar and to CCG. With constructive supertagging, the system can build a category from its primitives. This makes novel categories possible and allows later parts of a prediction to depend on earlier choices. The present paper gives those primitives a role after supertagging. Their positions, polarities and relationships become the objects over which the parser scores links and checks proofs. [Supertagging with CCG primitives](https://md.research.elamur.ai/free/en/papers/bhargava-2020-supertagging-ccg-primitives/)

The closest earlier parser the authors discuss is the neural proof-net system of Kogkalidis and colleagues for a Dutch type-logical grammar. That grammar has modal, nondirectional connectives and a much larger inventory of atomic categories. The earlier system is close in design to the baseline used here. Bhargava and Penn investigate additional ways of using the structure of the proof frame and the conditions on complete proofs. Their parser can also return multiple complete linkages from a single score matrix. The grammar difference is consequential. In the Lambek setting of this paper, the order of vertices supplies a condition on whether links cross. The Dutch formalism discussed by the authors lacks the corresponding requirement.

### The method, step by step

#### What the lexical categories say

Start with sentence and noun phrase as elementary category types, written S and NP. A forward slash makes a category that expects its argument on the right. A backward slash makes one that expects its argument on the left. In both cases the category before the slash is the result of supplying the category after it. The parts on either side of a slash can be complex expressions in their own right. The paper illustrates this with the kind of category an English ditransitive might receive.

```
(S\NP)/NP/NP
```

S denotes a sentence, and NP denotes a noun phrase. The forward slashes specify successive noun phrase arguments to the right. The parentheses group S\NP, which is the category left after those rightward arguments have been supplied. Its backward slash calls for a noun phrase on the left and leaves S. The paper uses the slash notation familiar from CCG for these Lambek categories.

The calculus is the associative, product-free variant that permits empty premises, called L*. To ask it a question about a sentence, the parser can write the words’ categories in sentence order and put the desired result on the other side of the turnstile.

```
A₁, A₂, …, Aₙ ⊢ B
```

Each A with a subscript denotes the category at that position in the input. The subscripts start at 1 and end at n, the number of antecedent categories. The ellipsis stands for the intervening categories, and commas preserve their order. The turnstile, ⊢, separates the antecedent list from B, the single consequent to be derived. In the typical sentence-parsing question described by the authors, B is S.

The slash elimination rules explain how a functional category is used. For forward elimination, the parser supplies an argument derivable from material to the right of the function. For backward elimination, the corresponding material is to the left. In either case the function and its argument give way to the result category for the purposes of the proof. The introduction rules work in the other direction. If an antecedent list with an additional category at its right boundary derives the result, the calculus can discharge that additional category and put a forward-slash function in the consequent. Discharging the extra category at the left boundary introduces a backward-slash function. The identity case connects a category to itself. These rules explain what the order and the nested syntax of the categories are doing before the parser converts them to a graph.

#### Turning a sequent into a proof frame

Each category in the antecedent starts with negative polarity. The consequent starts with positive polarity. These signs describe roles in the proof. During decomposition, the result part keeps the polarity of the functional category and the argument part takes the opposite polarity. The slash and the sign together determine the order of the pieces and which kind of edge connects them. The recursion stops at primitive categories, yielding a linearly ordered set of polarized atomic occurrences.

```
(X/Y)⁻ ⇒ X⁻ → Y⁺
```

X is the result category, and Y is the argument category. The slash is forward, the outer minus marks a negative antecedent occurrence or subexpression, and ⇒ means that the expression on the left is decomposed into the structure on the right. X⁻ comes before Y⁺ in the vertex order. The right-pointing arrow marks a regular directed edge from the negative result side to the positive argument side. The same decomposition can be applied again to any complex piece.

```
(X\Y)⁻ ⇒ Y⁺ ← X⁻
```

X and Y again denote result and argument. The backward slash puts the positive argument piece Y⁺ earlier in the order than the negative result piece X⁻. The left-pointing arrow gives the regular edge from X⁻ to Y⁺. The minus on the whole expression gives the rule its negative case, and ⇒ introduces the decomposition.

```
(X\Y)⁺ ⇒ X⁺ ⇢ Y⁻
```

X is the result and Y the argument. The plus on the backward-slash expression selects the positive case. After ⇒, the result X⁺ precedes the argument Y⁻. The dashed arrow ⇢ denotes a Lambek edge from the positive result to the negative argument. This edge will later specify a reachability requirement.

```
(X/Y)⁺ ⇒ Y⁻ ⇠ X⁺
```

X is again the result and Y the argument. The plus on the forward-slash expression selects the positive case, and ⇒ gives the resulting order and edge. Y⁻ comes before X⁺. The dashed leftward arrow ⇠ marks a Lambek edge directed from X⁺ to Y⁻.

The frame records individual occurrences, so two atoms of the same category and polarity can still be different vertices. They may come from different words or from different positions within one lexical expression. The total order starts with the order of the categories in the sequent and is refined by these decomposition rules. Each word can therefore contribute a stretch of vertices, and the atom order can distinguish positions that have the same word position. The paper’s term graph drawing makes these levels visible with separate marks for word boundaries and atom boundaries. It draws the frame edges below the ordered atoms and the predicted links above them. The example places the consequent with the final punctuation for display.

A linkage chooses edges from positive occurrences to negative occurrences of the same atomic category. It is a perfect matching. Every positive vertex receives a choice of exactly one negative partner, and every negative vertex is chosen exactly once. The word *matching* describes the choices between polarized vertices. Its edges are added to the regular edges of the proof frame when checking the full graph. The direction of a link is positive to negative, whereas a regular edge originally in the frame goes from negative to positive. This allows a directed path to travel through choices made by the parser and through structure that was already fixed.

A linkage plus its frame is a proof only when it meets the calculus’s correctness conditions. T1 is half-planarity. Place the vertices on a line and draw the links above it. The links must fit without crossings. T2 prohibits directed cycles made entirely of regular edges, counting the predicted links as regular edges for this purpose. T3 says that every Lambek edge must have an accompanying directed regular path from its source to its destination. A graph meeting these conditions is called L*-integral. The conditions ask different questions of the same set of choices. Planarity concerns the order of endpoints. Acyclicity concerns whether following directed regular edges can lead back to a starting point. The Lambek-edge condition concerns whether a particular destination can be reached from a particular source.

From lexical categories to ranked Lambek parses The steps in order.

#### Giving each atom a representation

The parser takes a matrix of word vectors, a representation of the proof frame’s vertices, and an alignment telling it which word goes with each vertex. The word vectors give it access to the lexical context. A separate trainable embedding gives each polarized atom type its own representation. The construction needs both because the atoms of a complex category can share a word vector yet play different roles in the proof.

Let H be the word matrix with axes `words` and `vec`. The first indexes positions in the sentence and the second indexes coordinates in a word vector. Let T be the grammar’s inventory of atomic categories. The inventory of polarized types, Pₜ, includes a positive and negative version of each member of T. Each vertex is initially encoded by a one-hot vector over this inventory. The paper writes the width of that vector as follows.

```
|pt| = |Pₜ| = 2|T|
```

The bars give the size of the enclosed set or axis. `pt` is the axis for polarized types, Pₜ is the corresponding set, and T is the set of primitive categories before polarity is added. The factor 2 accounts for the positive and negative versions. Stacking these one-hot vectors for the ordered occurrences gives N, a matrix with axes `vtx` and `pt`. Each row selects exactly one polarized type. M is the alignment matrix with vertex rows and word columns. Its entry at vertex i and word j is 1 if that vertex belongs with that word and 0 otherwise.

The encoder uses positions at both levels. At the word level, the authors add an absolute sinusoidal position vector to the word representation before passing it on to its associated atoms. The components of that vector are as follows.

```
PE(p)[i] = {
  sin((p − 1) / 10^(4(i − 1)/|vec|))   when i is odd
  cos((p − 1) / 10^(4(i − 2)/|vec|))   when i is even
}
```

PE is the positional encoding function. Its argument p is the position to encode, and `[i]` selects coordinate i of the result. The position is offset by 1 in the numerator. The sine and cosine functions alternate across odd and even coordinates. The caret denotes exponentiation with base 10, and the exponent uses the constants 4, 1 or 2 as shown to set the scale of a coordinate. `|vec|` is the vector width. At the word level, the encodings form the rows of a matrix Pʷ.

```
Pʷ[p] = PE(p)
```

Pʷ is the matrix of absolute word positions. Its row indexed by p contains the vector returned by PE at word position p. These vectors are added to H before the alignment moves the combined representations to the vertex axis.

```
X₀ = (H + Pʷ) ⊙words M + N ⊙pt A
```

X₀ is the input to the first encoder layer, with one `vec`-width row for each vertex. H contains lexical vectors, Pʷ contains absolute word-position vectors, and M aligns words with vertices. The first `⊙` contracts over the `words` axis. N contains the one-hot vertex types and A is the trainable matrix that embeds those types in `vec` coordinates. The second `⊙` contracts over `pt`, the polarized-type axis. The plus signs first combine a word and its position, then combine the resulting aligned representation with the atom embedding. Here and in the attention formulas, contraction means multiplying along the indicated shared axis and summing over it.

For a pair of vertices, the attention layers also receive a representation of the displacement from one vertex position to the other.

```
Pᵛ[i,j] = PE(i − j)
```

Pᵛ is the tensor of relative vertex positions. The index i refers to the query vertex, and j refers to the lookup vertex. The difference i − j is the signed relative position that PE encodes. The vertex rows of X₀ can share a word position while still differing in these relative atom positions. This lets the attention layers use distances within a word’s category as well as distances across words.

#### Scoring candidate partners with attention

Each layer derives a query, a key and a value from the input at each vertex. The query represents the position looking for information. The key is what gets compared with that query, and the value is the information available if the comparison leads the layer to attend to that position. The paper gives the key and value their own lookup axis, called `vtx′`, to distinguish them from the query positions on `vtx`. The distinction matters even though the positions themselves come from the same set of atoms. A score has both a query endpoint and a lookup endpoint. The implementation uses multiple attention heads, so separate learned projections can make separate comparisons for the same endpoints.

```
Qₗ = Wq,ₗ ⊙vec Xₗ₋₁
```

Here l indexes the layer. Xₗ₋₁ is its input, Wq,ₗ is the learned query projection for that layer, and Qₗ is the resulting set of queries. The contraction over `vec` replaces the input feature dimension with each head’s own feature dimension. The output retains the query axis `vtx`.

```
Kₗ = Wk,ₗ ⊙vec rename(Xₗ₋₁, vtx → vtx′)
```

Kₗ contains the keys for layer l. Wk,ₗ is the learned key projection, and the operation `rename` labels the vertex axis of Xₗ₋₁ as `vtx′` for use as a lookup axis. The arrow denotes the change of axis name, and `⊙vec` again contracts over input features. No vertex changes its order under this renaming.

```
Vₗ = Wv,ₗ ⊙vec rename(Xₗ₋₁, vtx → vtx′)
```

Vₗ contains the layer’s values. Wv,ₗ is the learned value projection. The input is Xₗ₋₁ with its vertex axis renamed to `vtx′`, and the contraction uses the same input feature axis `vec`. Values and keys use the same lookup positions because each key identifies the position whose value can contribute to the query’s output.

```
Rₗ = Wr,ₗ ⊙vec Pᵛ
```

Rₗ contains the projected relative positions for layer l. Wr,ₗ is the learned position projection and Pᵛ supplies the encoding for each pair of vertex positions. `⊙vec` contracts over the input feature axis of those encodings. The result can contribute a different term for each head and each pair of endpoints.

```
Sₗ = ((Qₗ + bk,ₗ) ⊙hdim Kₗ + (Qₗ + br,ₗ) ⊙hdim Rₗ) / √|hdim|
```

Sₗ contains the scores of the layer’s heads for all ordered vertex pairs. Qₗ, Kₗ and Rₗ are the queries, keys and relative positions just constructed. The trainable biases bk,ₗ and br,ₗ adjust the query for its content and position comparisons, respectively. Each `⊙hdim` contracts over `hdim`, the features within an attention head. The plus between the resulting terms combines the content and position contributions. The denominator is the square root of `|hdim|`, the head width.

In the ordinary layers, a softmax over lookup positions converts those scores into weights for the values. The layer then projects the collected information back into the feature space used by the rest of the encoder.

```
SelfAttnₗ(Xₗ₋₁) = Wo,ₗ ⊙hdim,heads (softmaxvtx′(Sₗ) ⊙vtx′ Vₗ)
```

SelfAttnₗ is the attention transformation in layer l, with input Xₗ₋₁. Sₗ supplies the scores. The softmax runs over `vtx′`, the lookup positions, and the contraction on that axis combines their weights with the corresponding values in Vₗ. Wo,ₗ is the learned output projection. Its contraction combines the `heads` axis and the within-head `hdim` axis, giving a feature vector for each query vertex.

```
Tₗ = SelfAttnₗ(Xₗ₋₁) + Xₗ₋₁
```

Tₗ is the intermediate representation after layer l adds the self-attention result to its input. Xₗ₋₁ is the input from the preceding layer, or the initial representation when there is no preceding layer. The addition is a residual connection, which carries the input directly into the next computation.

```
Xₗ = FFNₗ(Tₗ) + Tₗ
```

Xₗ is the layer output, FFNₗ is its feed-forward transformation, and Tₗ is the intermediate input to that transformation. The plus adds another residual connection. The implementation also uses layer normalization in pre-normalization order, placing normalization before the corresponding transformation. [Layer Normalization](https://md.research.elamur.ai/free/en/papers/ba-2016-layer-normalization/)

At the top of the stack, the quantities the authors want are the scores for pairs of vertices. They stop the last layer before the softmax and the value aggregation. This preserves the score for every ordered pair, and averaging over heads produces a single scalar per pair. The final scores are masked according to eligibility.

```
F[i,j] = {
  0   if atom(i) = atom(j) and pol(i) > pol(j)
  ∞   otherwise
}
```

F is the mask for ordered pairs, i is the source vertex and j the destination. The function `atom` returns a vertex’s primitive category. The function `pol` gives 1 for a positive vertex and −1 for a negative one. The greater-than condition therefore keeps the positive-to-negative orientation, and the equality requires the categories to match. A 0 leaves the score alone when the mask is subtracted, while ∞ excludes the pair. This mask is part of the baseline as well as the more structured system.

```
S = meanheads(Sᴸ) − F
```

S is the final link score matrix. Sᴸ gives the scores from the last layer, L, and the mean averages them over attention heads. Subtracting F applies the mask. A high score in S expresses a preference for a particular link. A complete matching must additionally use every eligible vertex exactly once on its own side.

#### Using edges and crossings before choosing a matching

The baseline receives the vertices of a proof frame and their word alignment. The structured parser also has access to the frame’s directed edges. An adjacency matrix Eᴿ records the regular frame edges, and an adjacency matrix Eᴸ records the Lambek edges. Each entry is 1 if an edge of the named kind goes from the row vertex to the column vertex and 0 otherwise. These matrices remain fixed for the sentence once the categories and the consequent have been decomposed.

The parser incorporates each edge type by giving queries and keys extra terms derived from neighboring vertices. For the query at a vertex, it collects transformed representations from outgoing neighbors. For the key at a vertex, it collects them from incoming neighbors. The two edge types have their own learned transformations in both roles. Written by vertex, the edge contributions have the following form, with the ordinary local projections collected into base terms.

```
Qₗ[i] = Qbaseₗ[i] + Σⱼ(Eᴿ[i,j] Wq,R,ₗ Xₗ₋₁[j] + Eᴸ[i,j] Wq,L,ₗ Xₗ₋₁[j])
```

Qₗ[i] is the query at vertex i in layer l and Qbaseₗ[i] is its local projection before neighbor information is added. The summation over j ranges over potential destinations of edges from i. Eᴿ[i,j] and Eᴸ[i,j] select the regular and Lambek outgoing neighbors. Wq,R,ₗ and Wq,L,ₗ are the learned query projections for the respective edge types. Each projection acts on the preceding layer’s representation Xₗ₋₁[j] at vertex j. The two products inside the sum contribute only for edges present in the frame.

```
Kₗ[j] = Kbaseₗ[j] + Σᵢ(Eᴿ[i,j] Wk,R,ₗ Xₗ₋₁[i] + Eᴸ[i,j] Wk,L,ₗ Xₗ₋₁[i])
```

Kₗ[j] is the key at lookup vertex j and Kbaseₗ[j] is its local projection. The index i now ranges over possible sources of edges into j. Eᴿ and Eᴸ again select the directed neighbors. Wk,R,ₗ and Wk,L,ₗ are the learned key projections for the two edge types. The term Xₗ₋₁[i] supplies the representation of each selected source vertex from the preceding layer. Summing their contributions gives the added key information for j.

This computation makes the structural role of a vertex available during attention. An atom and its word context already have a representation in the baseline. With the added terms, the comparison between atoms can also use information about what the fixed regular and Lambek edges connect to them. The authors describe this as message passing along the frame. The query and key still take part in the same pairwise score calculation, which lets the additional information affect both intermediate attention and the final link scores. [Neural Message Passing for Quantum Chemistry](https://md.research.elamur.ai/free/en/papers/gilmer-2017-neural-message-passing-quantum-chemistry/)

Planarity also affects the scores inside attention. Consider a candidate with endpoints i and j in the vertex order, with i on the left of j. A crossing arises when the competing link has one endpoint inside that interval and one endpoint outside. The paper writes the crossing sets as follows.

```
X′ᵢⱼ = {(k,m) | k < i < m < j or i < k < j < m}
```

X′ᵢⱼ lists the crossing endpoint pairs in left-to-right order, and the vertical bar means “such that.” The indices i and j mark the reference interval. The indices k and m are the ordered endpoints of a competing interval. Each chain of inequalities interleaves the endpoints of the reference pair with those of the competitor.

```
Xᵢⱼ = X′ᵢⱼ ∪ {(m,k) | (k,m) ∈ X′ᵢⱼ}
```

Xᵢⱼ contains the competing ordered pairs in both orientations. The union symbol ∪ combines X′ᵢⱼ with the set of reversed pairs. The membership symbol ∈ says that the reversal is included for each member `(k,m)` of X′ᵢⱼ. Both orientations are relevant because the scores are directed and the geometric question depends on the order of the endpoints on the line.

```
μcross(A)[i,j] = mean over (k,m) ∈ Xᵢⱼ of A[k,m]
```

A is any array of pair scores to which the crossing adjustment is applied. At pair `(i,j)`, μcross returns the mean of the entries indexed by `(k,m)` in the crossing set Xᵢⱼ. The function is applied to the attention scores within each layer.

```
Sₗ = S′ₗ − μcross(S′ₗ)
```

S′ₗ contains the layer’s scores before the adjustment, calculated from the content and relative-position terms. Sₗ contains the adjusted scores, and μcross supplies the average competitor score for each pair. Subtraction makes a candidate’s score depend on how strongly the same layer scores pairs that would cross it. The adjustment expresses competition among links. The complete linkage is still checked for actual crossings later.

#### Eliminating some links before matching

A further use of planarity comes at the final mask. An individual link can look plausible from its endpoints and still leave no way to make a spanning planar matching. The authors use a context-free grammar for generating planar linkages and run the inside–outside algorithm to identify links that belong to at least one such linkage. This filters out a pair when every possible full linkage containing the pair would run into a planarity problem. A pair that survives has passed a test about extendability. The future combination of several surviving links can still fail the tests on complete term graphs. [Context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/)

The worked term graph illustrates the difference between local eligibility and extendability. A positive NP atom from “for” and a negative NP atom from “What” have the right types and signs to link. Drawing that link would leave atoms from “accounts” and “the” unable to obtain planar links. The planarity filter therefore rules out that choice. In this example, the positive NP from “for” then has the negative NP from “the” as its remaining partner. The parser obtains this restriction from the positions and polarities in the frame before scoring complete analyses.

The other extra filter bans links whose endpoints align to the same word. The calculus admits some such links, but the authors report that they found none in the corpus and question their linguistic usefulness. In their example, the filter prevents the positive S atom of “What” from linking to its own negative S atom. The available alternative links it with the negative S from “accounts.” The forbidden choice would also have created a regular cycle. This example shows how a restriction motivated by the corpus can remove an invalid choice early, even though the restriction itself has a broader effect than the cycle condition.

#### Training with a soft assignment

Given the scores, the best discrete linkage by score is a maximum-weight perfect bipartite matching. The positive occurrences form one side, and the negative occurrences form the other. The score of a matching sums its selected pair scores, subject to the requirement that no vertex be used twice. For training, the authors need to propagate gradients from a loss through the linkage computation and back to the scoring layers. They use Sinkhorn’s procedure as a differentiable approximation to this assignment.

```
Z = Sinkhorn(exp(S/τ))
```

S is the masked pair score matrix, τ is a positive temperature, and `exp` exponentiates the scaled scores entry by entry. The feasible assignment uses the positive rows and the negative columns. Sinkhorn alternately rescales rows and columns. Z is the resulting soft assignment, with each active row and column summing to one at convergence. Lower temperatures lead toward discrete optimal assignments in the limit described by the paper. The authors also discuss adding Gumbel noise to the scores to sample matchings through the same operator.

A value in Z can be interpreted as soft weight on a possible link. Since the rows and columns are normalized together, increasing support for one partner affects other assignments involving the same vertices. This gives the training objective access to a joint matching relaxation. A row-wise choice alone would let several positive vertices favor the same negative vertex without allocating weight across the rest of the matching.

With reference linkages, the loss rewards weight placed on the annotated edges. It uses a mean over the links in a sentence’s reference analysis.

```
ℑNLL(ℒ,Z) = − mean over ⟨i,j⟩ ∈ ℒ of ln Z[i,j]
```

ℑNLL is the negative log-likelihood loss used in training. ℒ is the reference linkage, and each ordered pair ⟨i,j⟩ in it connects positive vertex i to negative vertex j. Z[i,j] is the soft weight on that link. The natural logarithm is denoted by `ln`, and the minus sign makes larger weights on the reference links reduce the loss. The mean is over the links in ℒ. Neither the averaging operation nor the loss requires a discrete assignment during training.

#### Making the proof conditions trainable

For the structural objective, the weights in Z are evaluated against the proof conditions. The planarity penalty uses the same crossing sets as the attention adjustment. Here the relevant quantities are weights after Sinkhorn, so a crossing matters when the soft matching gives weight to both members of a competing pair.

```
ℑT1(Z) = Σᵢ,ⱼ Z[i,j] (Σ over (k,m) ∈ Xᵢⱼ of Z[k,m])
```

ℑT1 is the planarity loss. The outer sum ranges over the vertex pairs indexed by i and j, and its multiplier Z[i,j] is the weight of the reference pair for that term. The inner sum adds Z[k,m] over the pairs `(k,m)` in Xᵢⱼ, the set of links that cross it. Multiplication makes the contribution small if either side has little weight. In a soft matching, several alternatives can contribute to the penalty simultaneously.

The other structural losses use directed walks. A walk continues from one vertex to the next along an edge, and it may revisit a vertex. For a weighted adjacency matrix, the contribution of a walk is the product of the weights of its edges. Matrix multiplication sums such contributions over the available intermediate vertices. Raising the adjacency matrix to a power therefore accumulates the walks of the corresponding length.

```
(Aⁿ)[i,j] = Σ over w ∈ Wᵢ,ⱼ,ₙ of (Π over ⟨k,l⟩ in w of A[k,l])
```

A in this formula is the weighted adjacency matrix of a graph. The exponent n specifies the walk length, and i and j specify its start and end. Wᵢ,ⱼ,ₙ is the set of those walks. A particular walk is w, and ⟨k,l⟩ is one of its directed edge occurrences, from k to l. The product Π multiplies the adjacency weights along that walk, and the sum Σ combines contributions across walks. With positive weights on present edges, the sum is zero exactly when no walk of that length connects the endpoints.

In the term graph, a regular walk is allowed to use fixed regular frame edges and proposed links. During training, a proposed link contributes its weight from Z. The frame’s Lambek edges set the targets for the reachability test.

```
G = Σₙ₌₁^|vtx| (Eᴿ + Z)ⁿ
```

G collects regular-walk weights. The sum starts with walks of length 1 and goes up to `|vtx|`, the number of vertices in the frame. Eᴿ contains the fixed regular frame edges and Z contains the proposed soft links, so their sum is the adjacency for regular traversal. The exponent n is a matrix power. The length bound is enough to detect a regular cycle, because a graph containing a cycle has one that uses at most the number of vertices.

```
ℑT2(G) = Σᵢ₌₁^|vtx| (G[i,i])²
```

ℑT2 is the loss for regular acyclicity. The sum visits every vertex i, and G[i,i] is the total weight of the regular walks returning to that vertex within the length bound. Squaring each diagonal entry penalizes positive return weight. A discrete acyclic regular graph has zeros along this diagonal.

```
ℑT3(G) = Σᵢ₌₁^|vtx| Σⱼ₌₁^|vtx| Eᴸ[i,j] (G[i,j] − 1)²
```

ℑT3 measures the reachability condition. The two sums range over ordered source and destination vertices i and j. Eᴸ[i,j] is 1 for a Lambek edge and 0 for other pairs, so only required endpoint pairs contribute. G[i,j] is their summed regular-walk weight. The target is 1, and the squared deviation penalizes failure to reach that unit value. On a valid discrete graph, the regular successor structure and acyclicity give the required path its unit contribution. During training, G can instead reflect contributions from several soft links, and the formula supplies a gradient for moving towards the target.

```
ℑL* = ℑT1 + ℑT2 + ℑT3
```

ℑL* is the total structural loss. The three terms are the penalties for crossings, regular cycles and Lambek-edge reachability, with the arguments suppressed for readability. Each can be evaluated from the soft assignment and the known frame. This is how the training procedure can learn from examples for which it has the supertags but does not use the annotated linkage.

The authors also train a supervised configuration that combines the reference and structural objectives.

```
ℑ = α ℑNLL + (1 − α) ℑL*
```

ℑ is the combined loss, and α is a tuned weight for the negative log-likelihood term ℑNLL. The complementary weight 1 − α multiplies the structural loss ℑL*. The paper uses separate Sinkhorn temperatures for the two objectives. The reference objective rewards one annotated assignment, while the structural objective can reward the grammatical properties shared by different assignments. Separate temperatures let the training procedure use different levels of concentration for these two evaluations of the scores.

#### Returning discrete parses

At inference the parser needs actual links it can place in a term graph. Sinkhorn can produce intermediate values rather than a fully discrete assignment, and drawing repeated noisy samples gives no direct way to retrieve matchings in order of score. The authors use Murty’s algorithm on S to obtain the k best discrete matchings by weight. Here k specifies the size of the requested candidate search. Candidate generation treats the problem as an assignment with link scores and masks. The grammar then evaluates each assignment together with its proof frame.

The parser stably sorts the candidates by violations of the term graph conditions. The authors allow a fractional violation for T3, so partial satisfaction of the required Lambek-edge paths can affect this ordering. Stability means candidates with equal violation totals retain their order from the matching search. Valid candidates can thus move ahead of invalid candidates while preserving the score preference among themselves. This decision point matters whenever the highest-scoring matching fails a proof condition and a lower-scoring matching yields a proof. The same process can return several distinct valid analyses for one sentence.

### Experiments and results

#### What the parser was given

The experiments use LCGbank, an English corpus produced by a semi-automatic conversion of CCGbank. Some CCGbank analyses use crossing rules unavailable in the Lambek calculus, and some use noncategorial operations such as unary type-changing. The conversion had to accommodate those analyses in LCG. It also drops category features and incorporates 274 sentences originally excluded from CCGbank. With features omitted, the paper reports 476 distinct lexical categories for CCGbank and 987 for LCGbank. Decomposition of the LCGbank categories yields 10 atomic categories. The distinction between the inventories illustrates the point of the representation. Many different lexical expressions can use the same primitive categories in different configurations. [Treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/)

The primitive inventory is unevenly represented. The paper’s corpus count for NP is 1,356,438, and its count for S is 563,390. Some punctuation types are vastly less common. The period and left round bracket categories each have a count of 2. These are counts of atomic categories after decomposition in LCGbank. They describe the inputs out of which the parser builds linkages. The parser also sees the associated words and positions, so the distribution of atomic types gives only one part of the context in which candidates compete.

Section 0 supplies the 1,921 development sentences, and section 23 supplies the 2,414 test sentences. For training, the authors use every data point that remains. Sections 1–22 and 24 yield 44,833 training sentences. They note that this differs from the customary CCGbank training choice of sections 2–21. Across the experiments, the word sequence and corpus supertags define the input. What changes between supervision conditions is whether the parser can use the corpus linkage as a training target.

#### The training and comparison setup

The authors use three encoder layers, including the truncated top layer, with a representation width of 384 and 4 attention heads. The encoder uses rectified linear activations and pre-normalization. For the lexical vectors it uses a distilled version of RoBERTa supplied through Hugging Face Transformers. The parser operates on the resulting word representations and the decomposed atoms, with the alignment bringing those sources together. [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/)

The implementation uses PyTorch and PyTorch Lightning. The authors adapt the inside–outside computation to GPU matrix operations and implement its intensive steps as CUDA kernels over packed Booleans. They use `fastmurty` to retrieve the ranked discrete matchings. Their training batches group examples by output length, and they shuffle the batches each epoch. The batching decision reflects the length of the output representation: after decomposition, a sentence is processed as a sequence of vertices drawn from its categories. [PyTorch](https://md.research.elamur.ai/free/en/papers/paszke-2019-pytorch-imperative-style-high-performance/)

Training uses AdamW for 40 epochs. When performance stops improving for three epochs, the authors cut the learning rate in half and keep the weights from whichever epoch performed best on the development set. They clip gradients when the sum of the gradient norms exceeds 1. The main results they report are averages across three runs, each using a different random seed. The ablated configurations in the later coverage analysis each come from one training run. [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/)

Optuna is used for the hyper-parameter search, with a tree-structured Parzen estimator for sampling and asynchronous successive halving for pruning. Initial learning rates and weight decays are sampled log-uniformly on [10⁻⁵, 10⁻²) and [10⁻⁷, 10⁻²), respectively. The dropout rate is sampled uniformly on [0, 0.6), and lexical token dropout uniformly on [0, 0.1). The reference-linkage loss uses a Sinkhorn temperature of 0.01. The initial temperature search for the structural objective is log-uniform on [0.01, 10), and the weight α in the combined loss is initially sampled uniformly on [0.05, 0.95). [Optuna](https://md.research.elamur.ai/free/en/papers/akiba-2019-optuna-next-generation-hyperparameter-optimization/)

The comparison separates three supervised configurations from the condition trained on grammar alone. The supervised baseline learns from the reference linkages and uses polarity and category to mask its scores. The second configuration adds the structured attention and edge filters while keeping the same kind of training objective. The third uses that structured architecture with both training objectives. The remaining configuration trains the structured parser with the proof-condition losses alone. Each is evaluated with k = 1 and k = 512. With k = 1, the baseline serves as the paper’s closest controlled comparison to earlier neural proof-net parsing. The authors describe it as similar in design, with some differences in representation and size, and evaluate it under their own grammar and corpus conditions.

There are four reported measures. Link accuracy is the percentage of positive vertices paired with their reference negative partner. Sentence accuracy requires all the links of a sentence to agree with the reference, so it is exact agreement on the selected complete linkage. Coverage is the percentage of sentences for which the search finds a valid term graph. The final measure averages the number of unique valid parses found per sentence. A candidate can disagree with the reference and still contribute to coverage and parse count by satisfying the proof conditions. The reference and the grammar therefore ask distinct questions of the same output.

#### Learning from reference linkages

With k = 1, the baseline reaches 97.7% link accuracy and 86.2% sentence accuracy on the test set. Coverage is 97.3%. Adding the term graph features and filters under the same supervised objective gives 97.9% link accuracy, 87.4% sentence accuracy and 98.4% coverage. The structured parser trained with the combined objective also reaches 97.9% link accuracy. Its exact sentence accuracy is 87.2%, and its coverage is 98.7%. The paper leaves the mean parse counts blank for these single-candidate comparisons.

At k = 512, test link accuracy is 97.9% for the baseline and 98.0% for each structured configuration. Coverage reaches 99.8% for the baseline and 99.96% for each structured configuration. The baseline returns 5.9 distinct valid parses per sentence on average. The structured supervised parser returns 5.7, and the structured parser with the combined objective returns 5.8. These counts refer to valid graphs retrieved within the candidate search. The exact sentence accuracies for the same comparison are shown below.

Supervised LCGbank test sentence accuracy with k = 512 The structured parser trained on reference linkages ranks the corpus parse first most often.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Baseline with reference-linkage loss | 87.7 |
| Term graph features with reference-linkage loss (this paper) | 88.2 |
| Term graph features with both losses | 87.8 |

The wider search raises coverage for all three supervised conditions and also raises their exact sentence accuracy. Because violations are used in a stable sort, an exact match can rise to the front when earlier candidates are invalid and the reference is the highest-scoring valid candidate recovered. This explains how the same score matrix can support a better final decision when it is searched more deeply. Changes to the score architecture and changes to the number of candidates have separate effects. The wider search works even for the baseline, and the architecture with term graph features helps at either search size.

The counts of valid parses also qualify what it means for the structured architecture to help. In the comparison with reference-linkage supervision alone, providing graph structure improves exact agreement and coverage while yielding a smaller mean number of valid parses at k = 512. A parser can give good scores to a reference analysis and let fewer alternative proofs survive within its search budget. The supervised objective makes that outcome intelligible. It is directly rewarded for recovering the corpus edges, while the parse count depends on the validity of all the other assignments that receive competitive scores.

#### Learning from proof conditions alone

The configuration trained without reference linkages finds a valid analysis for a large share of the test set even with a single candidate. Its coverage rises with a wider candidate search. At k = 512 it reports an average of 5.9 valid parses per test sentence. The paper reports that 3.8% of test sentences have no valid parse among the candidates, and that the average among covered sentences is 6.2 parses.

LCGbank test coverage with structural training alone Searching a wider list of matchings finds a proof for more test sentences.

**The numbers**

| System or setting | coverage % |
| --- | --- |
| Structural loss with k = 1 | 91.2 |
| Structural loss with k = 512 (this paper) | 96.2 |

On the wider search, 79.0% of test sentences have the corpus parse somewhere among the outputs. First-place agreement is 53.4% with k = 1 and 54.9% with k = 512. These measurements distinguish getting a proof, getting the annotated proof somewhere, and making the annotated proof the first answer. Grammar supplies a criterion for the first task. The trained scores and candidate search determine how much of the second task is achieved. The preference among several valid linkages remains important for the third. A structural objective can penalize candidates for violating the calculus, but two compliant linkages can present the same proof-validity signal even when only one matches the corpus analysis.

### What the ablations show

#### Removing all sources of planarity information

The authors carry out their ablation study on the configuration trained without reference linkages. For each ablation they remove the stated parts of the architecture or objective, start a fresh training run, and use the hyper-parameters of the original configuration. They measure coverage on the LCGbank test set. The complete configuration is the comparison point from the main experiment. The ablated numbers each come from a single run.

LCGbank test coverage at k = 1 after structural ablations Removing all uses of planarity yields the lowest coverage in the study.

**The numbers**

| System or setting | coverage % |
| --- | --- |
| Full structural parser (this paper) | 91.2 |
| Without planarity loss | 84.5 |
| Without cycle loss | 72.9 |
| Without Lambek reachability loss | 70.6 |
| Without frame edge inputs to attention | 89.0 |
| Without within-word link filter | 81.1 |
| Without either extra link filter | 73.9 |
| Baseline architecture with structural loss | 74.9 |
| Without either extra filter, planarity attention or planarity loss | 19.2 |

The most damaging removal takes away the planar-link filter, the crossing adjustment in attention, and the T1 loss. That row also removes the within-word filter. It reaches 19.2% coverage with k = 1 and 44.7% with k = 512. It is important to read the result as the effect of the combined removal. In the same study, removing only the planarity loss leaves 84.5% coverage with k = 1 and 95.1% with k = 512. Planarity still guides the scores and the eligibility decisions in that single-loss ablation. The much poorer result for the combined removal shows how strongly the parser depends on having access to planarity somewhere in the process.

The multiple uses of planarity intervene at different moments. The attention adjustment can change the scores of crossing competitors. The filter deletes candidates that fail the extendability check before the matching search. The structural penalty can train the assignment to put less weight on combinations that cross. The final validity test can still detect crossings after those components are removed. Its ability to find a useful answer then depends on whether the score-ranked search has surfaced any planar matchings. The coverage at k = 512 in the combined ablation shows that a wider search recovers some valid outputs, with many test sentences still left without a proof.

The authors relate the result to the noncommutativity of L*. Rearranging the antecedent can change what can be proved. The linear order used for half-planarity gives the parser useful information about this aspect of the grammar. They explicitly connect the importance of that constraint to the formalism under study. Earlier type-logical work on a grammar without the same ordering requirement would have a different set of constraints to exploit.

#### Removing individual losses, frame edges or filters

Removing the cycle loss by itself yields test coverage of 72.9% at k = 1 and 92.9% at k = 512. Removing the Lambek reachability loss gives 70.6% and 93.8%. Each loss therefore contributes to placing a valid graph high enough to be found, especially with the smaller search. The relative order of the two ablations depends on the search size. Without reachability the single-candidate result is lower, while without the cycle loss the wider-search result is lower. The measurements support a role for both proof conditions in training. They give little basis for ranking their importance independently of how the parser will search at inference.

The planarity loss has the smallest coverage effect of the three individual loss removals. The authors suggest that the surviving sources of planarity information partially compensate for it. A pairwise score change or a hard mask can supply planarity guidance before the loss even evaluates the assignments. By comparison, the cycle and Lambek path penalties are the training terms that directly evaluate their respective regular-walk properties. Their ablations show how the parser fares when it has less direct training information about those conditions and can still check them at inference.

Removing the regular and Lambek edge inputs to attention gives 89.0% coverage at k = 1 and 95.9% at k = 512. This removal concerns the use of frame edges by the scoring layers. Those edges still specify the proof frame and still enter the relevant validity calculations. The comparison addresses a focused question about whether passing these edges into attention helps discover a linkage when the objective and inference checks can already use them. The reported change is small alongside the loss and filter ablations.

The impact of the within-word filter was larger than the authors expected. Taking it away brings coverage to 81.1% at k = 1 and 91.0% at k = 512. The word alignment is still part of the parser’s input, so the system has an opportunity to learn that two atoms come from the same word. Explicitly using that relationship to forbid links has a substantial effect in this setup. Removing the planar-link filter as well brings coverage to 73.9% and 85.6%, respectively. Both operations change which complete matchings compete for the limited output positions as well as which individual pairs the scorer can use.

One joint removal gives a less straightforward result. Turning off both extra filters, planarity-aware attention and the frame-edge inputs leaves the baseline scoring architecture trained with the structural loss. Its coverage is 74.9% at k = 1 and 90.7% at k = 512. These are higher than the scores from turning off the two filters while leaving the extra attention components in place. The comparison shows that the effects of the architecture and the filters depend on which other pieces are present. It does not isolate a single attention component as the source of the partial recovery. The comparison changes several pieces together and uses one run per ablated setting.

#### What the combined objective reveals

The supervised experiments supply another controlled comparison, although the paper reports it with the main results. With the structured architecture held in place, the configuration trained on both objectives has lower exact sentence accuracy than the configuration trained only on reference linkages at both search sizes. At k = 1 the combined objective gives the higher coverage, and at k = 512 the two coverage figures are the same. Their link accuracy figures also coincide at each candidate setting.

The authors’ explanation rests on what the losses reward. Negative log-likelihood pushes the assignment toward one reference linkage. The validity terms can favor multiple ways of completing a proof frame. If the grammar admits alternatives, a shift toward a different proof can help produce valid output while reducing top-ranked agreement with the reference. That account fits the measurements of accuracy and coverage. The experiments compare the resulting parsers, so the proposed competition between objectives remains an interpretation of those output patterns instead of a direct measurement of how probability mass shifts during training.

### Limitations

#### Limits the authors identify

The structural-only experiment removes reference derivations from the training objective while retaining lexical categories from LCGbank. Those categories determine which atoms appear, their order, and the regular and Lambek edges of the frame. The approach therefore reduces the need for one form of linguistic annotation. It still relies on another form that supplies extensive syntactic information. The authors propose coupling the parser to a supertagger and passing gradients through proof frame construction. They make a corresponding distinction between jointly training tagging and parsing components and differentiating through the construction that connects them. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

The authors also recognize the limits of the validity objective for choosing an analysis. Several linkages can satisfy the calculus for the same frame. A training signal that assigns them the same grammatical status has no direct way to reward the corpus choice among them. The probability assigned to different valid graphs matters to a user who wants the most plausible analysis first, while coverage records success as soon as any of them is recovered. The authors propose investigating ways to make the structural and reference objectives work together more effectively. They also suggest further study of structural objectives as a route towards reducing how much annotated information a parser needs.

Their choice of discrete inference reflects limitations they identify in Sinkhorn. A relaxed assignment may retain values near 0.5 in positions where a parser ultimately needs a yes-or-no choice. Sampling also cannot promise that the next draw will retrieve the next-ranked matching. Murty’s algorithm addresses the need to retrieve a finite, ranked set of discrete assignments by score. This means the differentiable machinery applies to the training computation, while the actual ranking of complete analyses uses a discrete algorithm and graph checks.

The within-word filter narrows the parser’s hypothesis space beyond the calculus. The authors say that some within-word links are permitted in L*, that such links are absent from their corpus, and that their linguistic value is unclear. The ablation supports using the restriction for this evaluation setup. In a corpus or category inventory with legitimate analyses that need such a link, the same filter would delete those analyses before a full proof could be tested.

#### Limits of what the experiments establish

The test results characterize a parser given corpus supertags in one English resource. A predicted supertag can change the number, types or polarities of atoms and may change the fixed edges of the graph. These are changes to the assignment problem itself. An experiment with correct lexical categories cannot tell how often such errors would arise in a full pipeline, how frequently the correct proof would remain recoverable, or whether proof constraints would provide a useful training signal to the supertagger. The study isolates linkage prediction and gives evidence about that stage.

LCGbank’s conversion choices also matter for the interpretation of the tests. The reported parser uses the categories available after conversion, including the omission of category features, and it learns from the sentence distribution in that corpus. The results establish performance for that representation and split. They leave open whether the same balance of graph inputs, hard filters and losses would apply under different category inventories, in another language, or with a calculus whose connectives impose different kinds of proof conditions. The paper’s discussion of the Dutch system identifies one concrete reason generalization may require changes: half-planarity depends on properties of the grammar.

Gold agreement and proof validity also have different evidential limits. Exact sentence accuracy says that a predicted linkage agrees with the annotated one throughout the graph. Coverage says that the parser found a proof allowed by the calculus. The paper does not separately assess the linguistic quality of alternative valid analyses. A sentence can support genuine ambiguity, and a legal analysis can still be a poor reading in context. The reported number of valid parses per sentence combines those possibilities. It measures how many compliant output graphs the search finds, leaving interpretation of individual alternatives outside the evaluation.

The trained parser is described as operating in polynomial time and as an approximate solver for the general parsing problem. Its ranked assignment stage searches for high-scoring matchings, and the proof checks then assess those matchings. An eligible proof can lie below the requested candidates. An uncovered sentence in this evaluation means that the parser did not recover a valid graph within its search. The result gives no decision about whether all remaining matchings would fail. Similarly, high test coverage is empirical evidence that the ordering and search work well on those inputs. It supplies no completeness guarantee for the product-free Lambek calculus.

The ablations offer a practical test of which ingredients matter at the settings used in the paper. They reuse the hyper-parameters of the complete parser and each ablated configuration has one run. A small change in coverage could depend on training variation or on settings selected for the full system. The largest planarity result removes multiple mechanisms, including the within-word mask, and the study does not present all combinations of the mechanisms it changes. That makes the broad dependence on planarity easier to establish than a precise attribution of the observed losses to every individual path by which planarity enters the computation.

### What came after

There are no documented follow-up studies to trace here. The paper closes with a concrete extension it leaves open: a supertagger that can learn from gradients passed through the proof frame. In the reported experiments, the frame is known before link prediction begins. The proposed extension would let the consequences of a proof search inform how the lexical categories themselves are built, including how an atomic part of one word’s category can connect to a part supplied by another. The reported experiments establish the behavior of the linkage stage under supplied categories. They leave the coupled tagging and parsing experiment for future work.

## Cite

Cite as Aditya Bhargava and Gerald Penn. 2021. Proof Net Structure for Neural Lambek Categorial Parsing. Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.iwpt-1.2](https://doi.org/10.18653/v1/2021.iwpt-1.2)

```bibtex
@inproceedings{bhargava2021proof,
  title = {{Proof Net Structure for Neural Lambek Categorial Parsing}},
  author = {Aditya Bhargava and Gerald Penn},
  booktitle = {Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021)},
  year = {2021},
  doi = {10.18653/v1/2021.iwpt-1.2},
  url = {https://doi.org/10.18653/v1/2021.iwpt-1.2}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
