Documentation

Linglib.Theories.Processing.CueBasedRetrieval.Basic

Cue-Based Retrieval #

@cite{lewis-vasishth-2005}

Content-addressable memory retrieval for sentence processing. Items in working memory are encoded with feature bundles and retrieved via parallel cue matching: the parser generates retrieval cues from grammatical constraints, and the item best matching those cues is accessed.

Cue Source Decomposition #

Following @cite{bakay-etal-2026}, retrieval cues are classified by source:

The central empirical question is whether structural cues contribute to retrieval independently of item-level and positional cues.

Two Accounts #

Two classes of model predict a structural advantage — that c-commanding antecedents are retrieved over non-c-commanding distractors even when item-level cues don't distinguish them:

  1. Weighted activation (@cite{lewis-vasishth-2005}; @cite{kush-2013}): Activation is a weighted sum of cue matches. Structural cues can be weighted more heavily, or structural features (like Kush's LOCAL:1/0) can be dynamically maintained to approximate c-command.

  2. Privileged access (@cite{mcelree-2006}; @cite{oberauer-2002}): Structurally prominent items occupy a "region of direct access" and bypass cue-based search entirely.

The models diverge on interference: the weighted model predicts graded interference from feature-matching distractors, while the privileged- access model predicts little early interference from non-prominent items. @cite{bakay-etal-2026} find limited, inconsistent evidence for number- based interference, leaving this distinction open.

Source of a retrieval cue.

@cite{bakay-etal-2026}'s core empirical contribution is decomposing the structural cues that prior studies confounded with clause-level and case-marking cues (their Figure 1 Venn diagram), and showing that structural cues guide retrieval independently.

  • structural : CueSource

    Hierarchical relations: c-command, clause-mate, argument role

  • itemLevel : CueSource

    Morphosyntactic features of the item: case, number, gender

  • positional : CueSource

    Serial order: recency, linear precedence

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      A retrieval cue: a feature value tagged with its source.

      When a dependency is encountered (e.g., a reciprocal anaphor), the grammar generates a bundle of retrieval cues specifying the required antecedent. For example, processing Turkish birbirleri generates:

      • structural: +c-commanding, +clause-mate
      • item-level: +plural
      • positional: (none — no recency preference)
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          An item in working memory, stored with a feature bundle.

          Features encode both intrinsic properties (case, number, category) and dynamically assigned structural properties (c-commands-anaphor, clause-mate-of-anaphor). The structural features are computed from the evolving parse and dynamically updated at clause boundaries (@cite{kush-2013}: LOCAL:1 items reset to LOCAL:0).

          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Does an item's feature bundle contain a given feature?

              Equations
              Instances For

                Does an item match a given cue? Match is based on the feature value only; the cue source is metadata for the retrieval model, not a matching criterion.

                Equations
                Instances For
                  def Processing.CueBasedRetrieval.matchCount {F : Type} [BEq F] (item : Item F) (cues : List (Cue F)) (s : CueSource) :

                  Count of cue matches from a specific source type.

                  Equations
                  Instances For
                    def Processing.CueBasedRetrieval.totalMatchCount {F : Type} [BEq F] (item : Item F) (cues : List (Cue F)) :

                    Total cue matches across all source types.

                    Equations
                    Instances For
                      def Processing.CueBasedRetrieval.fan {F : Type} [BEq F] (cue : Cue F) (items : List (Item F)) :

                      Fan: number of items matching a particular cue. Higher fan reduces the associative boost each item receives from that cue, leading to similarity-based interference (@cite{van-dyke-mcelree-2011}).

                      Equations
                      Instances For
                        def Processing.CueBasedRetrieval.isDistractor {F : Type} [BEq F] (item : Item F) (cues : List (Cue F)) :

                        An item is a distractor for a retrieval scenario if it matches some but not all cues — a partial cue match that competes with the target.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          A retrieval scenario: a probe triggers retrieval with a set of cues, and multiple items in memory compete for access.

                          • probe : String

                            Description of what triggered retrieval (e.g., "reciprocal anaphor")

                          • cues : List (Cue F)

                            Cues generated by the grammar at the retrieval site

                          • items : List (Item F)

                            Items currently in working memory

                          Instances For
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Weighted Activation #

                              @cite{lewis-vasishth-2005}: activation = Σ (weight × match). Items with higher activation are retrieved faster and more accurately. The weights determine the relative importance of different cue sources.

                              The key prediction: when structural cues are weighted positively, items matching more structural cues are retrieved, independent of item-level overlap between target and distractor.

                              def Processing.CueBasedRetrieval.weightedActivation {F : Type} [BEq F] (ws wi wp : Nat) (item : Item F) (cues : List (Cue F)) :

                              Weighted activation: total score is a weighted sum of match counts by source type. Weights are natural numbers; only their relative magnitude matters for ordering predictions.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                theorem Processing.CueBasedRetrieval.structural_advantage {F : Type} [BEq F] (ws wi wp : Nat) (h_ws : 0 < ws) (target distractor : Item F) (cues : List (Cue F)) (h_struct : matchCount distractor cues CueSource.structural < matchCount target cues CueSource.structural) (h_item : matchCount target cues CueSource.itemLevel = matchCount distractor cues CueSource.itemLevel) (h_pos : matchCount target cues CueSource.positional = matchCount distractor cues CueSource.positional) :
                                weightedActivation ws wi wp distractor cues < weightedActivation ws wi wp target cues

                                Structural Advantage Theorem (weighted activation model).

                                If the target matches strictly more structural cues than the distractor, they tie on item-level and positional cues, and the structural weight is positive, then the target has strictly higher activation.

                                This is the qualitative prediction tested by @cite{bakay-etal-2026} Experiments 1–3: c-commanding antecedents are retrieved over non-c-commanding distractors even when clause, case, and number are controlled.

                                The proof reduces to monotonicity of multiplication over ℕ.

                                theorem Processing.CueBasedRetrieval.recency_advantage {F : Type} [BEq F] (ws wi wp : Nat) (h_wp : 0 < wp) (recent distant : Item F) (cues : List (Cue F)) (h_struct : matchCount recent cues CueSource.structural = matchCount distant cues CueSource.structural) (h_item : matchCount recent cues CueSource.itemLevel = matchCount distant cues CueSource.itemLevel) (h_pos : matchCount distant cues CueSource.positional < matchCount recent cues CueSource.positional) :
                                weightedActivation ws wi wp distant cues < weightedActivation ws wi wp recent cues

                                Recency Advantage: when only positional cues differ (more recent = more positional matches), a more recent item has higher activation, all else equal.

                                @cite{bakay-etal-2026} Experiment 1 finds that the recency advantage is additive with the structural advantage: linearly recent targets receive even more looks.

                                Privileged Access #

                                @cite{mcelree-2006}; @cite{oberauer-2002}: structurally prominent items (those c-commanding the retrieval site) occupy a "region of direct access" in working memory. They are retrieved without search, yielding an immediate structural advantage independent of cue matching.

                                This model predicts less interference from feature-matching distractors than the weighted model, because non-prominent items don't compete directly — they require slower, search-based retrieval.

                                def Processing.CueBasedRetrieval.isPrivileged {F : Type} [BEq F] (item : Item F) (cues : List (Cue F)) :

                                An item is privileged (in the region of direct access) if it matches all structural cues. Under the privileged-access model, such items are retrieved without search.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  theorem Processing.CueBasedRetrieval.privileged_structural_advantage {F : Type} [BEq F] (target distractor : Item F) (cues : List (Cue F)) (h_target : isPrivileged target cues = true) (h_distractor : isPrivileged distractor cues = false) :
                                  isPrivileged target cues isPrivileged distractor cues

                                  Under privileged access, if the target is privileged and the distractor is not, the target is accessed directly regardless of the distractor's item-level cue match quality.

                                  This captures the key prediction shared with the weighted model (structural advantage), while remaining agnostic about interference from non-privileged distractors.

                                  Bridge to ProcessingModel #

                                  A retrieval scenario can be projected to a ProcessingProfile for comparison across conditions. The mapping:

                                  Retrieval propertyProcessingProfile dimension
                                  Number of distractorsreferentialLoad
                                  Distance to targetlocality
                                  Clause boundaries crossedboundaries
                                  Structural cue match qualityease

                                  This bridge connects cue-based retrieval predictions to the Pareto- dominance comparison framework in Core.ProcessingModel.

                                  def Processing.CueBasedRetrieval.toProcessingProfile {F : Type} [BEq F] (scenario : Scenario F) (target : Item F) (distance clauseBoundaries : Nat) :

                                  Project a retrieval scenario onto a processing profile. Requires explicit target identification and distance information.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For