---
title: "Span-based Semantic Parsing for Compositional Generalization"
description: "How span-based semantic parsing builds programs from phrases, improves compositional generalization, and reveals the limits of explicit structure."
canonical: "https://research.elamur.ai/free/en/papers/herzig-2021-span-based-semantic-parsing-compositional/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/herzig-2021-span-based-semantic-parsing-compositional/)

[home](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/) / Span-based Semantic Parsing for Compositional Generalization

# Span-based Semantic Parsing for Compositional Generalization

Paper · 2021 · Jonathan Herzig and Jonathan Berant

**Authors:** [Jonathan Herzig](https://md.research.elamur.ai/free/en/authors/jonathan-herzig/) and [Jonathan Berant](https://md.research.elamur.ai/free/en/authors/jonathan-berant/) · **Year:** 2021 · **Venue:** Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**73** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3086307406|W6929282742) · [Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)](https://aclanthology.org/volumes/2021.acl-long/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.acl-long.74/)
- [PDF](https://aclanthology.org/2021.acl-long.74.pdf)
- [DOI 10.18653/v1/2021.acl-long.74](https://doi.org/10.18653/v1/2021.acl-long.74)
- [arXiv 2009.06040](https://arxiv.org/abs/2009.06040)
- [OpenAlex](https://openalex.org/W3086307406)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Span-based Semantic Parsing for Compositional Generalization

How span-based semantic parsing builds programs from phrases, improves compositional generalization, and reveals the limits of explicit structure. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A system can answer familiar kinds of questions accurately and still fail when familiar pieces appear in an unfamiliar arrangement. This paper studies that problem in [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/): translating a natural-language request into a program that can be executed. Knowing how to interpret a question about neighboring states, and knowing how to interpret a question about the largest state, should help a parser understand a question that combines those operations. Yet the authors describe a recurring weakness in sequence-to-sequence parsing: success on randomly divided data does not reliably carry over to tests that require new combinations of known operations.

The proposed parser, SpanBasedSP, makes the relationship between language and program structure explicit. It assigns semantic categories to spans, meaning continuous stretches of the input sentence. A span can introduce a domain constant, such as an entity or a predicate; indicate that smaller meanings should combine; or contribute no program content. These decisions define a tree over the sentence. A deterministic procedure then assembles the program from the leaves upward, using a domain-specific type system to decide which expressions can combine. The learned component identifies meaningful pieces and scores their arrangements; the composition procedure determines how those pieces become an executable expression.

The paper also makes this approach usable under ordinary program supervision. Training examples provide sentences and their correct programs, without specifying the tree connecting them. SpanBasedSP therefore treats that tree as hidden structure. During training, it searches for a high-scoring tree that produces the required program, then learns from the selected tree. A further extension handles a particular kind of non-projective composition, where meanings associated with separated phrases must combine before an intervening phrase applies. These changes distinguish the approach from earlier neural span parsing that relied on annotated, projective trees.

The experiments compare ordinary random splits with splits designed to test compositional generalization. Across GeoQuery, SCAN-SP, and the CLEVR/CLOSURE setting, SpanBasedSP remains competitive on random splits and performs much better when the test structures differ from the training structures. The paper reports average accuracy of 61.0 for the comparison baselines and 88.9 for SpanBasedSP on compositional evaluations. Its reported absolute accuracy gains are 32.9 points on GeoQuery, 34.6 points on CLOSURE, and 13.5 points on SCAN. On the GeoQuery length split, where evaluation uses the longest programs, SpanBasedSP reaches 63.6 denotation accuracy. The result supports explicit semantic composition as a useful architectural bias under these conditions.

The scope of that conclusion matters. SpanBasedSP depends on a close correspondence between phrases and domain constants. It struggles with representations that require an unspoken predicate or repeated program content supported by a single mention. Its non-projective extension also covers only a restricted structural pattern. The paper therefore establishes a strong result for tasks with suitable language-to-program alignment, instead of a universal solution to compositional generalization. The authors make their implementation and data available under the project name span-based-sp.

### Ideas worth borrowing

Make composition an enforced operation. SpanBasedSP does more than encourage a system to produce plausible program strings. Its output must arise through permitted combinations of smaller meanings. This changes what the learner has to discover: it identifies semantic pieces and their organization within an available composition system. The reusable idea is to place reliable domain structure inside the computation itself. It is especially relevant when an application has a clear inventory of operations and well-defined rules for combining them. A learned scorer can choose among possibilities while a deterministic component preserves the intended structure.

Separate local evidence from global validity. Each span receives its category scores independently, but the final prediction must form a coherent tree and satisfy semantic typing. This division gives local decisions access to rich contextual information while keeping structural requirements explicit. The same design principle can guide other structured prediction tasks: learn scores for manageable pieces, then assemble those pieces under constraints that express what a valid complete object looks like. The important qualification is that independent scores do not make the complete search trivial. SpanBasedSP still needs approximate inference because semantic validity introduces dependencies beyond the local classifier.

Learn hidden structure from a richer observed target. The training program does not specify phrase boundaries or tree attachments, but it supplies much more information than a final answer alone. SpanBasedSP uses that information to rule out constants and combinations that cannot belong to the required program. This is a useful pattern whenever annotation provides the destination without the derivation. Search can infer a compatible intermediate explanation, and the learner can train on that explanation. The paper also shows why the quality of supervision matters: hard-EM is workable here partly because the observed program strongly narrows the hidden search space.

Use a small lexicon to stabilize grounding. Matching an entity name or a familiar predicate expression supplies a direct connection between language and a formal symbol. SpanBasedSP adds such evidence to its learned span scores rather than replacing the learned representation. That combination is useful when data are scarce or when entities may appear that were absent from training. The GeoQuery ablation makes the lesson concrete: a powerful encoder does not remove the difficulty of learning phrase-to-predicate correspondences from a small dataset. A modest amount of explicit lexical knowledge can support the structural learning that follows.

Test recombination separately from ordinary generalization. Randomly dividing examples asks whether a system handles new samples from a familiar distribution. Grouping examples by program template, or reserving longer programs for evaluation, asks whether it can handle a different structural challenge. The paper uses both kinds of evaluation, which makes its central result interpretable. This idea applies well beyond semantic parsing: an evaluation should expose the particular novelty that a system is expected to handle. Strong random-split performance alone cannot establish an ability to recombine known operations in arrangements absent from training.

Evaluate intermediate explanations with room for ambiguity. The authors compare predicted trees with semi-automatically constructed reference trees, then inspect cases where structural disagreement does not imply semantic error. This offers a useful approach to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). Intermediate structures should be checked, but a reference explanation may represent only one valid derivation. Agreement with that reference and correctness of the resulting computation answer different questions. A good analysis measures both, then investigates where they diverge rather than treating every alternative structure as a failure.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the most relevant proposal is an explicit connection between a phrase, its semantic contribution, and the operation that uses it. The paper does not establish that Mova already implements SpanBasedSP, its training procedure, or its decoding algorithm. The application should therefore be understood as a possible architectural direction. A concrete adaptation would record which input span introduces each semantic symbol and retain the composition steps that produce a complete interpretation.

That would give transparency a specific form. For a question involving a place and a geographic relation, an explanation could identify the phrase associated with the place, the phrase associated with the relation, and the typed application that joins them. A failed interpretation could then be examined at the level where it breaks: missing lexical grounding, an unsuitable attachment, incompatible types, or an unsupported structural pattern. This follows from the paper’s representation of meaning as a composition tree. It does not require claiming that every such tree matches a person’s preferred linguistic analysis.

The small-lexicon mechanism is another plausible borrowing. Mova could maintain explicit mappings from recognized phrases to formal constants and combine those mappings with whatever scoring machinery it uses. The paper gives a reason to consider this carefully: lexical support is particularly valuable in the small-data GeoQuery setting. For a transparent system, the mapping itself could also be inspected and corrected. However, the paper’s measured gains belong to SpanBasedSP with its complete experimental setup. They do not predict what an alternative implementation, encoder, or language inventory would achieve.

The type system offers a separate, concrete idea. Mova could check whether the meanings proposed for neighboring phrases can combine before accepting a complete interpretation. Such checks would make certain errors visible as failed operations rather than allowing them to remain hidden inside an output string. The paper demonstrates this principle through domain-specific types; it does not provide a universal type inventory for unrestricted language. Any Mova implementation would have to define its own semantic operations and the conditions under which they apply.

The main caution is representational fit. A system intended to cover broad language may encounter meanings that are implied, reused, or distributed across a sentence. SpanBasedSP’s close phrase-to-constant alignment can make those cases difficult. A careful use in Mova would begin with a domain where the alignment assumption is reasonable and compare ordinary examples with deliberately unfamiliar combinations. That would test the proposed benefit directly. The paper supports investigating explicit composition in such a setting; it supplies no evidence that Mova has already gained compositional generalization from it.

### The problem and its context

#### Familiar ingredients, unfamiliar arrangements

The paper’s central distinction is between recognizing familiar material and recombining it successfully. A parser may encounter all the relevant words and operations during training, yet still fail on a new arrangement of them. In the authors’ motivating example, questions about borders and questions about a largest state supply ingredients for a more complex question that combines those meanings. The test is whether the parser can construct the required nested operation when that particular program structure has not appeared before.

This is a practical problem because semantic parsing produces something executable. The desired output is not merely a sentence that resembles an answer. It must identify the relevant entities and operations, arrange them correctly, and produce a program whose execution returns the intended result. An incorrect attachment can change which object a relation applies to. An incorrect nesting can change whether a superlative is evaluated before or after another operation. Structural novelty therefore tests more than vocabulary recognition.

The authors place this problem against the popularity of sequence-to-sequence semantic parsing. In that approach, an encoder represents the input, and a decoder emits the program incrementally. An [attention mechanism](https://md.research.elamur.ai/free/en/concepts/transformer/) allows the decoder to draw on different parts of the encoded sentence as it chooses output tokens. The paper characterizes this connection as soft: attention helps relate input and output, but it does not require each partial program to be assembled from a corresponding phrase through an explicit semantic derivation.

The proposed explanation is that this freedom makes unfamiliar compositions difficult. That is the paper’s architectural hypothesis, not an independently isolated account of every failure in sequence decoding. SpanBasedSP changes several connected properties of the system: its representation, its search space, its lexical features, and its composition procedure. The experiments show that the complete alternative generalizes much better in the tested settings. They provide evidence for the value of the compositional bias while leaving room for further investigation of the precise contribution of each design choice.

#### A return to explicit semantic composition

The approach also has a historical setting within the paper’s account of earlier work. Before neural parsing became dominant, semantic parsers commonly connected phrases to partial meanings through a lexicon and combined those meanings using explicit rules. Candidate analyses could be scored with log-linear functions using information about the utterance and the program. SpanBasedSP returns to that general organization while replacing older representations with contextual neural span representations.

This is why the contribution is more specific than introducing trees into semantic parsing. The paper builds on an established idea: meaning can be assembled locally over an input sentence. The question is whether that idea, combined with a strong encoder and a practical learning procedure, helps on evaluations designed around compositional novelty. The authors’ answer is empirical. Their span-based system maintains ordinary parsing performance while reducing the deterioration seen in sequence-based alternatives on those harder splits.

The closest earlier system identified by the authors is the neural span parser of Pasupat and colleagues. That work trained with annotated trees and restricted the structure to projective analyses. It also evaluated on independently sampled examples. The present paper removes the need for tree annotations, expands the supported structural patterns, and makes compositional generalization the main evaluation question. These changes matter together: an architecture that requires richer supervision or accepts fewer target structures would be harder to compare fairly with a parser trained from sentence–program pairs.

The paper also draws on progress in span-based syntactic parsing. Work such as [Constituency Parsing with a Self-Attentive Encoder](https://md.research.elamur.ai/free/en/papers/kitaev-2018-constituency-parsing-self-attentive-encoder/) supports the broader intuition that contextual encoders can supply strong representations for local spans. SpanBasedSP uses that intuition for semantic categories. The span classifier can inspect representations informed by the entire sentence, even though its category score is computed separately for each candidate span.

#### What previous evaluations had exposed

In the authors’ account, earlier research had already documented poor performance on compositional splits and developed datasets to make that weakness measurable. Other work proposed architectures aimed especially at SCAN. SpanBasedSP is positioned as a general semantic parsing architecture instead of a solution designed only for navigation commands. Its evaluations therefore include geography questions and scene-based questions as well as the semantic parsing version of SCAN.

Another relevant line concerns grammar-constrained output. Earlier work showed that restricting decoding to a grammar could improve ordinary parsing accuracy. The paper includes a grammar-based baseline because a valid program structure might also help compositional generalization. This comparison distinguishes different kinds of structural discipline. Restricting which output programs can be generated is useful, but it does not necessarily specify how the meanings of input phrases must combine to produce those programs.

The related-work discussion also mentions concurrent research by Shaw and colleagues that induced a synchronous grammar from utterance–program pairs. The shared theme is a compositional constraint connecting language and formal output. SpanBasedSP’s particular route uses span categories, typed program construction, and latent trees. The paper closes by suggesting that explicit composition might eventually be incorporated into sequence-to-sequence approaches as well. Its larger question is thus about the right structural commitments for generalization, instead of a requirement that every parser adopt the same architecture.

### The method, step by step

#### From a sentence to a semantic derivation

Begin with the output that the system is intended to produce. A training example contains a sentence and a program. The program belongs to a domain-specific formal language with entities, predicates, and types. The parser must learn how words and phrases connect to those formal pieces, and how the pieces fit together. It does not receive the intended span tree as part of the ordinary training example.

A span is a continuous portion of the sentence, identified by its boundaries. A span tree organizes selected spans into a hierarchy. Some nodes introduce formal symbols, some combine meanings from their children, and some add no semantic content. The sentence-wide node eventually contains the complete program. This makes the intermediate derivation explicit: each partial program is associated with a portion of the input and a position in the composition structure.

The overall procedure can be read as a sequence of representation, scoring, constrained assembly, and execution-oriented interpretation.

Building a program through span composition The steps in order.

During training, the search is restricted by the known program. During prediction, that restriction is unavailable, so the parser seeks a high-scoring tree that yields a semantically valid program. The same representation therefore supports different search conditions at learning time and test time.

#### The supervised target and the hidden tree

The training collection can be written as follows.

```
D = {(xⁱ, zⁱ)}ᵢ₌₁ᴹ
```

D denotes the dataset, M its number of examples, xⁱ the input utterance for example i, and zⁱ its target program. The superscript distinguishes examples rather than token positions. The essential point is what the collection omits: there is no required tree annotation connecting the sentence to the program.

For a candidate tree, the semantic requirement is:

```
program(T) = z
```

T is the span tree, z is the desired program, and program is the deterministic conversion from a tree into a formal expression. The parser learns to predict T from the sentence. The conversion procedure then supplies z. Keeping the tree and conversion separate helps explain both the architecture’s strength and its restrictions: the tree provides an explicit derivation, while the conversion procedure defines which derivations are representable.

The category inventory is small in kind, although its domain-specific part depends on the task.

```
C = Σ ∪ {φ, join}
```

C is the full category set. Σ contains domain constants, including entities and predicates. The symbol φ denotes a null category, and join denotes semantic composition. A constant can identify a particular place or an operation such as a geographic relation. A join node requests composition of its children’s partial programs.

The null category has a dual role. It marks language that does not contribute a separate program component, and it labels candidate spans that are absent from the selected tree. This matters because the classifier scores all candidate spans, not merely those eventually chosen as constituents. A complete categorical assignment therefore includes many null decisions.

The directly assigned terminal categories are:

```
Σ⁺ = Σ ∪ {φ}
```

Σ⁺ contains domain constants and the null category. It excludes join because join describes how a parent’s meaning is obtained from children. This distinction separates semantic pieces attached directly to language from the operations that assemble those pieces into larger meanings.

#### How a tree becomes a program

At a node labeled with a domain constant, the partial program is simply that constant. At a join node, the conversion procedure combines the children’s partial programs through function application. The paper relates this operation to combinatory categorial grammar: one child supplies a function, another supplies an argument, and semantic types determine which arrangement is permitted.

The orientation is therefore not fixed by left-to-right word order alone. A phrase on either side may supply the function. For predicates with several arguments, the type system also helps identify the relevant argument position. This is a substantial part of the architecture. The span classifier does not independently predict every detail of program construction; some decisions are delegated to the domain’s formal semantics.

The geography example illustrates the mechanism.

```
z₈:₁₁ = next_to_1(stateid('new york'))
```

Here z₈:₁₁ is the partial program associated with the combined span. The entity expression stateid('new york') denotes the state, while next_to_1 supplies the geographic relation. Their types permit the entity to serve as an argument to the predicate. The resulting expression represents the meaning of the larger span.

If one child is null, the parent inherits the meaningful child’s program. This allows surrounding question words or punctuation to be incorporated into the tree without introducing extra semantic operations. The architecture also limits a join node to at most a single null child. It consequently requires a meaningful basis for composition rather than constructing an entirely empty semantic combination.

Not every syntactically possible combination is type-compatible. The paper gives the example of applying a capital-related operation to an entity representing Mount McKinley. A tree can satisfy the structural grammar while still failing semantic construction. This distinction is why the parser needs both a grammar over trees and a type system over programs.

#### Representing and scoring spans

SpanBasedSP uses the encoder introduced in [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) in its base configuration. The encoder supplies a contextual vector for each input token. “Contextual” matters here because a boundary representation reflects the sentence around the token, rather than only the token’s identity. A span is represented by concatenating the vectors at its starting and ending boundaries.

The scoring network is:

```
s(xᵢ:ⱼ, c) = [W₂ relu(W₁[hᵢ ; hⱼ])]ind(c)
```

The expression xᵢ:ⱼ denotes the span, c a candidate category, and s its real-valued score. The vectors hᵢ and hⱼ are the contextual boundary representations; the semicolon inside brackets means concatenation. W₁ and W₂ are learned matrices. The relu function supplies the hidden-layer nonlinearity, and ind(c) selects the output entry corresponding to category c.

The hidden layer has size 250. If h_dim denotes the width of a token representation, W₁ has dimensions 250 by 2h_dim, while W₂ has dimensions |C| by 250. The notation |C| means the number of categories. Thus the network converts the paired boundary representation into a score for every possible span category.

Scores become probabilities through a softmax.

```
pθ(T[i,j] = c) = exp(s(xᵢ:ⱼ,c)) / ∑c′∈C exp(s(xᵢ:ⱼ,c′))
```

The parameters θ include the learned components of the scorer. T[i,j] is the category assigned to the span with boundaries i and j. The candidate category is c, while c′ ranges across C in the denominator. The exponential function turns scores into positive values, and the denominator normalizes them into a distribution.

Given a known tree, the training objective decomposes across spans.

```
log p(T) = ∑i<j log pθ(T[i,j])
```

The probability p(T) is the probability assigned to the complete categorical description of the tree. The sum includes every candidate span satisfying the indexing condition, including spans labeled null. This is an independence assumption about the score factorization. It does not mean that each span representation ignores sentence context.

If a reference tree were available, minimizing its negative log probability would amount to ordinary category classification over spans. The paper averages cross-entropy terms across those spans. The global problem reappears when a valid tree must be selected and when the tree itself is unobserved.

#### Turning probabilities into a chart-search objective

The parser uses CKY, a chart-based method for combining analyses of smaller spans into analyses of larger ones. Its search is easier to express with raw scores than with the full normalized probabilities. Expanding the tree log probability gives:

```
log p(T) = ∑i<j [s(xᵢ:ⱼ,T[i,j]) − log ∑c′∈C exp(s(xᵢ:ⱼ,c′))]
```

The first term inside the brackets is the score of the category selected by T. The second is the span’s normalization term. Because that normalizer is computed over the same category inventory regardless of which tree is selected, it does not distinguish candidate trees for a fixed input.

The authors also shift every span’s scores relative to its null score.

```
s′(xᵢ:ⱼ,c) = s(xᵢ:ⱼ,c) − s(xᵢ:ⱼ,φ)
```

The prime marks the shifted score. Subtracting the same value from every category score for a span leaves its softmax probabilities unchanged. The practical benefit is that the null category now has score zero. Spans that are absent from the tree, and spans that add no meaning, need not contribute a separate non-zero term to the search objective.

Tree ranking can then use:

```
S(T) = ∑i<j s′(xᵢ:ⱼ,T[i,j])
```

S is the unnormalized tree score used in decoding. It sums the shifted category scores selected by T. Maximizing this quantity yields the same ranking as maximizing the tree probability under the stated factorization, before semantic invalidity is imposed.

The structural grammar has a start symbol S and a composition nonterminal join. Its rules limit where null material can attach. In the ordinary case, semantically empty material joins meaningful material located to its left; the root allows the corresponding attachment on the other side. These conventions reduce arbitrary variation in trees. That is particularly useful when the selected trees will become training targets, because unnecessary structural ambiguity would otherwise create additional instability.

#### Approximate search with semantic checks

The chart begins with candidate constants over spans and null entries with zero shifted score. It then combines smaller analyses according to the grammar, adds the relevant composition scores, and retains high-scoring alternatives. A chart item records analyses for a span and a nonterminal. The paper’s notation π(i,j,X) refers to the best score for an analysis covering that span with root category X.

The implementation retains a bounded set of alternatives.

```
K = 5
```

K is the number of high-scoring analyses kept for a span and nonterminal in the approximate search. Preserving alternatives matters because a locally attractive analysis may later prove incompatible with semantic types or with a larger structure.

Once the full-sentence chart entry is available, the parser checks candidate trees in score order and returns the highest-ranked candidate that can be converted into a valid program. A semantically invalid tree receives an effective score of negative infinity. In the authors’ formulation, this global semantic requirement prevents exact inference with the ordinary chart state, motivating the approximate K-best procedure.

The distinction between structural legality and semantic validity should remain clear. A grammar can ensure that a candidate has the right tree form without ensuring that its operations accept the supplied arguments. Type checking provides that further filter. Conversely, a tree that passes type checking may still express the wrong interpretation of the sentence. Validity narrows the possibilities; learned scores must still select the intended meaning.

#### Learning when the tree is unobserved

With program supervision, the probability of a target program depends on every tree that produces it.

```
log p(z | x) = log ∑T:program(T)=z p(T)
```

The utterance is x, the target program is z, and the summation ranges over trees whose deterministic conversion yields z. The notation p(T) leaves conditioning on the input implicit, following the scoring setup. This objective would reward all compatible derivations instead of requiring a particular annotated tree.

The paper treats full marginalization as intractable and uses hard-EM. Its operational selection step is:

```
T*train = argmaxT:program(T)=z p(T)
```

T*train is the highest-probability compatible tree sought under the current parameters. The argmax selects a tree, rather than returning a probability value. Search is approximate, so the procedure seeks this optimum within the candidates it can construct and retain. Training then uses the selected tree as the categorical target.

The hard-selection surrogate can be expressed as:

```
log p(z | x) ≈ log p(T*train)
```

This captures the training operation: replace the contribution of many compatible trees with the probability of the chosen derivation. The paper’s displayed approximation places argmax inside the logarithm; the procedural description makes clear that the selected tree supplies the training labels. Distinguishing the selected object from its probability avoids confusing tree selection with the scalar objective being optimized.

The constrained search uses the known program aggressively. It first excludes constants absent from that program.

```
s′(xᵢ:ⱼ,c) = −∞ for c ∈ Σ ∖ const(z)
```

The function const(z) returns the domain constants occurring in z. The set difference selects constants in Σ that are missing from the target. Assigning them negative infinity prevents their use anywhere in a compatible training derivation.

The search also permits a composition only when the resulting subprogram agrees with the target program’s structure. A candidate can therefore fail even if its constants are individually allowed: the program must use them in the required relationship. After constrained decoding, the system trains on the best target-producing tree if it finds one. The paper presents this as a simple and adequate learning method because program supervision supplies strong guidance through the latent space.

#### Lexical features and entity names

Learning structure and lexical grounding simultaneously can be difficult. To ease grounding, SpanBasedSP adds a feature for exact phrase matches in a lexicon.

```
slex(xᵢ:ⱼ,c) = [W₂ relu(W₁[hᵢ ; hⱼ])]ind(c) + λδ(xᵢ:ⱼ,c)
```

The score slex includes both the neural score and the lexical contribution. The indicator δ is 1 when the lexicon associates the phrase with c, and 0 otherwise. The hyper-parameter λ sets the weight of this evidence. The feature therefore encourages a match without making it the entire scoring rule.

The automatic lexicon maps entity names to their formal constants. A written place name can consequently identify an entity even when training did not contain that entity. The authors compare this function to a copying mechanism. Their sequence baselines also include copying, following the approach associated with [Incorporating Copying Mechanism in Sequence-to-Sequence Learning](https://md.research.elamur.ai/free/en/papers/gu-2016-incorporating-copying-mechanism-sequence-sequence/).

The manually supplemented lexicon adds at most a small collection of phrase examples per constant: the authors specify no more than two. For a geographic relation, inflected variants of a border-related expression can point to the same predicate. This supplies explicit lexical knowledge beyond sentence–program pairs. Its cost is modest in the authors’ account, but it remains part of the supervision and should be remembered when interpreting the results.

#### Supporting a discontinuous composition order

The ordinary tree procedure composes adjacent spans. Sometimes the semantic operations demand a different order. In the authors’ example, the phrases associated with a population predicate and a state predicate should combine even though a superlative-bearing word lies between them. A strictly binary, contiguous derivation cannot directly express that intended sequence of operations.

The extension permits a ternary composition rule.

```
join → join join join
```

The symbols on the right denote the analyses of the ordered child spans. The crucial addition is the semantic conversion rule: combine the outer children first, then apply the meaning associated with the middle child. This supports the identified non-projective pattern without making every discontinuous structure available.

The additional chart candidate has the following score.

```
maxs₁∈i…(j−2), s₂∈(s₁+1)…(j−1) [s′(xᵢ:ⱼ,join) + π(i,s₁,join) + π(s₁+1,s₂,join) + π(s₂+1,j,join)]
```

The split points s₁ and s₂ divide the parent span into ordered parts. The score includes the parent’s join score and the chart scores of the child analyses. The maximization searches possible divisions. As elsewhere, the implementation keeps high-scoring alternatives and applies the domain’s semantic constraints.

This extra flexibility increases the implementation’s search cost.

```
O(n³) → O(n⁴)
```

Here n is the input length, and O describes asymptotic time complexity. The left side is the ordinary CKY cost cited in the paper; the right side is the cost of its ternary extension. The authors also note that prior work provides a cubic algorithm for this particular discontinuous pattern. Their reported complexity concerns their implementation, rather than a claim that the higher cost is unavoidable.

### Experiments and results

#### What accuracy measures

The evaluation uses denotation accuracy. A denotation is the result obtained by executing a program in the relevant environment. A prediction is counted as correct when its result agrees with the target program’s result. On geography questions, this concerns the answer retrieved from the domain. On scene questions, execution uses the scene description. On SCAN-SP, execution returns an action sequence.

This metric fits the practical purpose of semantic parsing, but it does not require the predicted program to be textually identical to the reference. Distinct programs can sometimes yield the same result. The paper’s separate tree analysis therefore provides useful additional evidence about the internal decompositions. Answer correctness and derivational agreement are related measurements, with different interpretations.

The main experimental comparison uses random, or iid, splits alongside compositional splits. In the iid setting, training and evaluation are sampled from the same distribution. In the compositional setting, the division deliberately withholds structural arrangements. This contrast is essential: the proposed benefit is not simply higher accuracy everywhere, but greater resilience when the arrangement of familiar semantic material changes.

#### GeoQuery and structural novelty

GeoQuery supplies 880 questions about geography in the United States. The programs use FunQL. The standard split serves as the iid condition, with 10% of the training examples sampled for development. This domain is especially useful for the paper because it combines a relatively small dataset with programs involving entities and composable geographic operations.

The template split groups examples according to an anonymized program. Entity expressions are replaced by their types, so programs differing only in the particular state name share a template. All examples belonging to the same template are assigned together to training, development, or test. The authors aim to keep the resulting set sizes close to those of the iid division. The structural challenge is therefore not merely a new place name inside an otherwise familiar program.

The length split addresses a different form of novelty. Programs are sorted by token length, and the longest 280 examples become the test set. The remaining 600 examples supply training and development data, with 10% allocated to development. This asks the parser to handle longer formal structures after learning from shorter ones. It is a more directed extrapolation test than an ordinary random division.

#### CLEVR and CLOSURE

[CLEVR](https://md.research.elamur.ai/free/en/papers/johnson-2016-clevr-diagnostic-dataset-compositional-language/) contains synthetic questions about scenes populated by objects with attributes such as shape, material, color, and size. Its questions were generated from 80 templates. CLOSURE introduces seven additional templates by combining referring expressions from CLEVR in unfamiliar ways. The pairing makes it possible to contrast familiar question structures with new combinations within a related domain.

The paper uses a semantic parsing formulation. An image is represented by a scene knowledge base containing object properties and positional relations, and programs operate over that representation. This detail limits what the experiment establishes: SpanBasedSP is evaluated on the interpretation of questions over a supplied structured scene, rather than on learning visual perception from raw images.

The development set consists of 5K examples taken from CLEVR’s original training collection. The baselines train on the remaining 695K examples. SpanBasedSP instead receives 10K training examples, a choice made to shorten training. For the iid evaluation, the authors use CLEVR’s original development set because the test scenes are unavailable publicly. For compositional evaluation, they use CLOSURE.

The training-size imbalance is striking, but its interpretation should stay precise. SpanBasedSP’s strong result is obtained with a much smaller training sample in this setting. The experiment does not isolate a general sample-efficiency curve across matched training sizes. It establishes performance under the stated data allocations, alongside the architectural comparison.

#### Turning SCAN into a parsing task

SCAN begins with navigation commands paired with action sequences. Because those outputs are execution results instead of the programs required by this study, the authors construct SCAN-SP. They define a program vocabulary containing command predicates, repetition predicates, and directional constants, then use a synchronous [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/) to map the commands into programs.

The command predicates include walk and jump, while the broader inventory also covers other actions and combinations. Repetition is represented through twice and thrice; directional constants include left and right, with additional constants for the other supported directional constructions. The resulting program can be executed to recover the action sequence associated with the original command.

The random simple split provides the iid condition. The compositional conditions are the primitive right split and the primitive around right split, labeled right and aroundRight in the experiments. For each condition, 20% of the original training portion is assigned to development. These are the particular SCAN conditions evaluated; the paper’s claims should not be extended to every possible division of the command dataset.

#### What the baselines test

The basic Seq2Seq baseline uses a bidirectional LSTM encoder and an attention-equipped LSTM decoder. Its input representations come from [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) or [ELMo](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/), and it includes copying for entities not observed during training. This supplies a conventional neural parsing comparison with mechanisms intended to handle both contextual encoding and unfamiliar names.

BERT2Seq replaces that encoder with BERT-base. This is a particularly important comparison because SpanBasedSP uses the same encoder family. Better compositional performance cannot therefore be attributed simply to the presence of BERT rather than a recurrent encoder. The systems still differ in their output representation and decoding procedure, which is the architectural contrast of interest.

The grammar baseline keeps the Seq2Seq architecture but constrains decoding with a program grammar. The authors use an existing geography grammar and write grammars for the command and scene domains. This tests whether restricting outputs to valid program forms is enough to address compositional novelty. It also places SpanBasedSP alongside an alternative way to inject formal structure.

[BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/) provides another comparison, using its base configuration as a pretrained sequence-to-sequence system. The paper also includes an End2End approach for the scene domain. That system combines the question with object representations, encodes them with BERT-base, and predicts an answer directly rather than generating a program for an executor.

The direct-answer condition is plausible because the scene tasks have 28 possible answers and compact structured contexts. Each object representation adds learned embeddings for its attributes and positional ranks. A classification decision from the encoded input produces the answer. Including this baseline asks whether a strong system can learn the desired generalization without constructing an explicit executable interpretation.

#### The main numerical findings

The paper reports a large improvement in average accuracy across its compositional evaluations.

Average denotation accuracy on compositional evaluations SpanBasedSP performs substantially better when test examples require unfamiliar compositions.

**The numbers**

| System or setting | denotation accuracy % |
| --- | --- |
| Baseline average reported by the paper | 61.0 |
| SpanBasedSP (this paper) | 88.9 |

This aggregate expresses the central finding, but the individual domains reveal its conditions. The authors report absolute denotation-accuracy improvements of 32.9 points for GeoQuery, 34.6 points for CLOSURE, and 13.5 points for SCAN. These are the paper’s reported comparisons. They should not be interpreted as new calculations from the average shown in the chart.

On CLOSURE, the baseline accuracies fall within 51.3–64.2, in spite of perfect performance in the iid scene condition. SpanBasedSP is described as performing almost equally well across the ordinary and compositional scene evaluations. The authors also report near-perfect results across the tested SCAN-SP and CLEVR conditions. The important pattern is the contrast between familiar-distribution success and the ability to retain that success after structural recombination.

There are exceptions to the general baseline decline: BERT2Seq and BART do well on aroundRight. That qualification prevents an overly broad conclusion that sequence decoding always fails on every compositional condition. The result is instead that SpanBasedSP performs strongly across the range of conditions examined, while the alternatives are less consistent when the structural challenge changes.

GeoQuery supplies a more difficult case for the span parser itself. On the template split, the authors describe a drop of 4 accuracy points relative to its iid performance. On the length split, denotation accuracy is 63.6. The paper reports that this length result exceeds every baseline by more than 37 accuracy points. Thus the architecture substantially improves longer-program generalization without making that task nearly solved.

#### Training and implementation conditions

Hyper-parameters are chosen using development-set denotation accuracy and early stopping. SpanBasedSP uses a batch size of 5. Its selected learning rate is 1e⁻⁵, after consideration of 1e⁻⁴, 1e⁻⁵, and 1e⁻⁶. The baseline tuning includes learning rate, batch size, and dropout. These choices tie system selection to held-out task performance rather than the test results.

The paper reports training times from 2 hours on GeoQuery to 20 hours on CLEVR, using a GeForce GTX 1080 GPU. The sequence baselines come from [AllenNLP](https://md.research.elamur.ai/free/en/papers/gardner-2018-allennlp-deep-semantic-natural-language/), and the BERT-base implementations use the [Transformers](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) software library. Executors are implemented for scene-based denotations and navigation action sequences. These details locate the reported results within a concrete training and execution setup.

### What the ablations show

#### Lexical grounding remains important

The manual-lexicon ablation is particularly revealing on GeoQuery. Removing the manually supplied lexical entries hurts performance substantially in this small-data setting. The authors interpret this as evidence that learning phrase-to-predicate correspondences is difficult when the training collection is limited. The architecture may know how to compose correctly typed operations, yet still need help recognizing which operation a phrase expresses.

This distinguishes lexical knowledge from compositional competence. A parser cannot benefit from a sound composition rule if it attaches the wrong predicate to the input. Conversely, memorizing a phrase-to-predicate mapping does not specify how that predicate should combine with others. SpanBasedSP joins these sources of information, and the ablation shows that the lexical component is consequential rather than incidental.

The result also qualifies the supervision claim. Ordinary training does not use annotated trees, but the full system can use manually entered phrases for domain constants. The paper presents that lexicon as small and practical. It is still an explicit source of domain information, especially valuable where sentence–program examples alone leave lexical grounding uncertain.

#### Non-projective coverage changes accuracy

Removing the non-projective extension also reduces GeoQuery performance. The paper reports losses of 2–6 accuracy points across its GeoQuery splits. This supports the practical relevance of the structural pattern addressed by the ternary rule. The extension is not merely a formal generalization of the parser; some target interpretations require the additional composition order.

The comparison is useful because the extension changes representational coverage. Without it, the parser may be unable to express an appropriate derivation even if the lexical assignments are correct. Better scoring cannot compensate for a missing structural possibility. This is a distinct explanation from the lexicon ablation, where the difficulty lies in recognizing semantic pieces rather than in representing their combination.

At the same time, the result does not establish that every non-projective construction is important in the evaluated domains, or that the chosen rule is sufficient for unrestricted language. The authors identify a frequent pattern and show that supporting it helps. The broader coverage question remains open and appears explicitly among their limitations.

#### Checking the learned decompositions

The decomposition analysis asks whether training from programs recovers plausible trees. To create references, the authors extend their domain lexicons and write rules that align program components with input spans. They traverse the program structure from the bottom upward and annotate the corresponding span categories and joins. Ambiguous cases are left without a reference tree rather than being forced into an arbitrary annotation.

This semi-automatic procedure covers 100% of SCAN-SP examples, 94.9% of GeoQuery examples, and 95.9% of the combined CLEVR/CLOSURE examples. These are annotation-coverage figures. They describe how much data received a reference decomposition, not the accuracy of the learned parser. Keeping that distinction explicit avoids confusing the availability of an analysis target with success against it.

As a check on the reference annotations, the authors train SpanBasedSP directly from them. Performance is similar to training from programs alone. This supports the usefulness of the annotated trees and suggests that latent-tree training can recover effective supervision in these domains. It does not demonstrate that the learned derivation is always unique or that the annotation procedure is independent of the parser’s representational assumptions.

The structural metric is labeled-span F₁. A predicted span must match both the reference boundaries and its category to count as an agreement. Null-category spans are excluded because they add no semantic contribution. On GeoQuery, the reported test F₁ scores are 94.7 for iid, 91.6 for template, and 93.7 for length. The paper describes the SCAN-SP trees as perfect.

For CLEVR, structural F₁ is 70.6 in the iid condition and also 70.6 in CLOSURE. That lower agreement does not track the strong denotation results directly. On manual inspection of iid predictions, the authors find trees that differ from the reference yet are semantically appropriate. A descriptive adjective, its noun, and punctuation can be grouped in different orders while preserving the same interpretation.

This analysis is valuable precisely because it resists a simple conclusion. The trees are explicit enough to inspect and often resemble the references closely. Yet structural disagreement can reflect alternative valid derivations, especially in deeper scene-question trees. The evidence supports meaningful learned decomposition while warning that agreement with a single annotated tree is an imperfect measure of semantic reasoning.

### Limitations

#### Author-stated limits on alignment

The authors’ principal limitation concerns the relationship between language and formal symbols. SpanBasedSP assumes a direct correspondence between domain constants and phrases that express them. That assumption makes local semantic assembly attractive, but some target languages require operations that are not separately spoken. Others repeat a formal symbol even though the sentence mentions the relevant concept only once.

The text-to-SQL example makes the problem concrete. A question asks for minimum and maximum age among singers from France. Its SQL representation uses age in each aggregation, although the sentence contains a single age mention. It also needs a country field to express the France restriction, even though the question does not explicitly name that field. A tree that assigns each needed constant to its own phrase does not naturally cover these requirements.

The authors connect this issue to earlier semantic parsing work, including [Semantic Parsing on Freebase from Question-Answer Pairs](https://md.research.elamur.ai/free/en/papers/berant-2013-semantic-parsing-freebase-question-answer/) and [Compositional Semantic Parsing on Semi-Structured Tables](https://md.research.elamur.ai/free/en/papers/pasupat-2015-compositional-semantic-parsing-semi-structured/). Their conclusion is about representational suitability: the method fits formal languages with a tighter surface-to-program correspondence. It is not evidence that explicit structure in general is unsuitable for SQL.

This matters when considering the paper’s success as a design recommendation. A strong inductive bias helps when its assumptions match the task. The same bias can exclude correct answers when the formal language requires implicit content or reuse that the derivation cannot represent. Before adopting the architecture, the relevant question is whether the desired programs can be derived under its alignment rules.

#### Author-stated limits on discontinuity

The non-projective rule handles a selected pattern, rather than arbitrary discontinuous meaning composition. Other arrangements remain outside the parser’s supported structures. The authors note that extending the chart method to the broader structures discussed in the cited discontinuous-parsing work would carry the following time complexity.

```
O(n⁶)
```

Here n denotes sentence length. The expression describes the asymptotic cost discussed for that broader extension, which the authors consider potentially impractical. It is not the complexity of the implemented SpanBasedSP procedure evaluated in the paper.

The limitation is therefore both expressive and computational. More permissive grammars could represent additional derivations, but they would enlarge the search problem. The paper chooses a restricted extension with measurable benefit on GeoQuery. It does not resolve the general tradeoff between coverage, search cost, and the ambiguity introduced by additional structural freedom.

#### Limits visible in the experimental setup

A careful reader should distinguish the reported benchmark result from unrestricted natural-language understanding. The scene questions are synthetic, and their visual environments are supplied as structured scene descriptions. SCAN-SP programs are generated through a synchronous grammar. GeoQuery contributes naturally phrased questions, but it is a small domain-specific collection. These settings support controlled tests of semantic recombination; they do not establish comparable performance across open-ended language and arbitrary program languages.

The data imbalance in the scene experiments is another interpretive boundary. SpanBasedSP succeeds using 10K training examples while baselines use 695K. That is strong evidence under the reported configuration. It does not by itself separate the effects of architecture, lexical support, program representation, and training size. A broader claim about how much data each approach requires would need further matched comparisons.

The evaluation metric also limits what correctness means. Matching denotations verifies the observed execution result, rather than exact identity of the intended program or correctness across every possible environment. The tree analysis gives a complementary view, but its references are only available for the covered examples and can admit multiple valid alternatives. The paper does not claim a complete proof of semantic equivalence for every successful prediction.

Approximate search adds another boundary. Keeping a limited collection of chart candidates can discard an analysis that would become useful later. Hard-EM then trains on a selected compatible tree instead of averaging over all valid derivations. The procedure is effective in the experiments, but its success should not be confused with a guarantee of finding the globally best interpretation or the uniquely correct hidden structure.

Finally, the central explanation remains a supported architectural argument rather than a fully isolated causal law. Explicit phrase-based composition performs well across the tested conditions, and the ablations illuminate important components. The experiments do not show that soft attention alone causes every sequence parser’s difficulty, or that increasing explicit composition always improves generalization. The paper’s strongest conclusion concerns a coherent architecture whose constraints match the evaluated tasks.

### What came after

The later citation record spans several directions, but citation alone does not establish that a later study adopted SpanBasedSP’s parser, training objective, or search procedure. The works discussed below have identifiable subjects and cite this paper; their detailed use of its ideas is not established by that relationship. It is therefore useful to distinguish the research question they share from any stronger claim of direct methodological inheritance.

[Least-to-most prompting enables complex reasoning in large language models](https://md.research.elamur.ai/free/en/papers/al-2022-least-most-prompting-enables-complex/) appeared in 2022. Its title places decomposition within prompting and complex reasoning. That creates a natural conceptual connection to SpanBasedSP: a difficult interpretation can be approached through smaller components whose results support a larger computation. However, the citation does not establish that least-to-most prompting uses span trees, typed program application, or CKY. The relationship that can be stated confidently is a later engagement with decomposition and compositional reasoning in a different setting.

[Improving Compositional Generalization with Latent Structure and Data Augmentation](https://md.research.elamur.ai/free/en/papers/qiu-2022-improving-compositional-generalization-latent-structure/) is also from 2022. Its stated subject is especially close to the original paper’s central combination of compositional evaluation and unobserved intermediate structure. SpanBasedSP provides a concrete example of learning a hidden derivation from a known formal target. The later title adds data augmentation to that research agenda. Without further details, it would be unjustified to identify its latent representation with SpanBasedSP’s span trees or to claim that it retains the same learning algorithm.

[Draw Me a Flower: Processing and Grounding Abstraction in Natural Language](https://md.research.elamur.ai/free/en/papers/lachmy-2022-draw-me-flower-processing-grounding/) broadens the surrounding discussion towards abstraction and grounding. The relevant connection is the need to relate language to a structured interpretation that can guide some further process. SpanBasedSP addresses that relationship through formal constants and their compositions. The later work’s title identifies a different problem setting, but it does not establish which parts of the span-based approach it reuses. No result about its grounding performance follows from the citation alone.

[Improving Cross-lingual Transfer through Subtree-aware Word Reordering](https://md.research.elamur.ai/free/en/papers/arviv-2023-improving-cross-lingual-transfer-through/) appeared in 2023. Its focus on subtrees and reordering creates a structural connection to the problem of aligning language with meaningful units. In SpanBasedSP, the order and contiguity of those units determine which semantic derivations are available. The later title instead places structural information within cross-lingual transfer. The available relationship supports discussing the continued relevance of tree structure, while leaving the exact transfer mechanism and its dependence on this parser unspecified.

[Examining Algebraic Recombination for Compositional Generalisation](https://md.research.elamur.ai/free/en/papers/ruiz-2026-examining-algebraic-recombination-compositional-generalisation/) is a later entry from 2026. Its subject returns directly to the ability to construct unfamiliar combinations from known material. SpanBasedSP makes that issue operational through a typed function-application system over input spans. Algebraic recombination suggests another way to examine the composition problem, but the title does not show whether the later study extends this architecture, critiques its assumptions, or cites it as a comparison point. Those possibilities should remain distinct.

[Semantic Distance for Presburger Formula Generation](https://md.research.elamur.ai/free/en/papers/taniguchi-2026-semantic-distance-presburger-formula-generation/) also appears in 2026. Its title locates the later work in formal expression generation and semantic comparison. That shares a broad concern with this paper: producing structured formal meaning rather than judging output only as an unconstrained sequence. SpanBasedSP evaluates executed denotations and inspects derivation trees; the later title highlights semantic distance. The citation does not establish a shared metric, parser, or experimental outcome, so no such continuity should be assumed.

[DocPolarBERT](https://md.research.elamur.ai/free/en/papers/uthayasooriyar-2026-docpolarbert-pre-trained-model-document/), another 2026 work, concerns document understanding with relative polar-coordinate encoding of layout structure. Its subject is farther from the executable-program setting of SpanBasedSP. The connection that can safely be drawn is the broader importance of representing structure when interpreting language-containing inputs. The later work’s citation does not demonstrate that document layout is processed with semantic span trees or that the original compositional results transfer to documents.

These later references show that the paper became relevant to discussions of decomposition, hidden structure, grounding, transfer, and formal output. The precise inheritance varies and cannot be reconstructed from citation titles alone. The original paper’s enduring contribution remains well defined: it demonstrates that explicitly assembling meanings over phrases can greatly improve performance on selected compositional tests, while making the alignment assumptions and structural limits of that success visible.

## Cite

Cite as Jonathan Herzig and Jonathan Berant. 2021. Span-based Semantic Parsing for Compositional Generalization. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.acl-long.74](https://doi.org/10.18653/v1/2021.acl-long.74) · [arXiv 2009.06040](https://arxiv.org/abs/2009.06040)

```bibtex
@inproceedings{herzig2021span,
  title = {{Span-based Semantic Parsing for Compositional Generalization}},
  author = {Jonathan Herzig and Jonathan Berant},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.74},
  eprint = {2009.06040},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2021.acl-long.74}
}
```

> 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)
