Documentation

Studies.GahlBaayen2024

Gahl and Baayen (2024): Time and Thyme Again #

Gahl had found that the more frequent of two homophones, such as time against thyme, tends to be shorter in speech. Gahl and Baayen recast this with a discriminative lexicon, linear maps between semantic vectors and triphone vectors with no stored words, so frequency cannot be a property of a word. It splits instead into practice, frequency-informed learning of the production map, and contextual independence, the share of a word's predictability in an utterance that it owes to itself. The duration models are not formalized; the paper's two worked examples are.

Main statements #

Implementation notes #

References #

The toy lexicon #

The toy lexicon uses five phones, with i standing for the paper's ɪ and the diphthong written as the two phones a ɪ.

Instances For
    @[instance_reducible]
    Equations
    def GahlBaayen2024.word :
    Fin 3 → List Phone

    The toy words time, lime and thyme are spelled as phone strings, the two homophones sharing a string.

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

      The six triphones of (2) are listed in the paper's column order #ta taɪ aɪm ɪm# #la laɪ.

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

        Each row of the form matrix C of (2) is the word's triphone indicator, the DLM's cue coding at width 3.

        Equations
        Instances For
          theorem GahlBaayen2024.toyForms_eq :
          toyForms = ![![1, 1, 1, 1, 0, 0], ![0, 0, 1, 1, 1, 1], ![1, 1, 1, 1, 0, 0]]

          The DLM's cue coding reproduces the form matrix (2).

          def GahlBaayen2024.semanticVectors :
          Matrix (Fin 3) (Fin 2) ℚ

          The semantic vectors of (1) give time, lime and thyme two arbitrary dimensions.

          Equations
          Instances For

            The toy lexicon pairs the semantic matrix S of (1) with the triphone matrix C of (2).

            Equations
            Instances For
              @[reducible, inline]
              abbrev GahlBaayen2024.time :
              Fin 3

              time is the first row of the toy lexicon.

              Equations
              Instances For
                @[reducible, inline]
                abbrev GahlBaayen2024.lime :
                Fin 3

                lime is the second row of the toy lexicon.

                Equations
                Instances For
                  @[reducible, inline]
                  abbrev GahlBaayen2024.thyme :
                  Fin 3

                  thyme is the third row of the toy lexicon.

                  Equations
                  Instances For

                    time, lime and thyme have token frequencies 100, 10 and 1 (A3).

                    Equations
                    Instances For

                      The arithmetic of the toy lexicon is decided over ℚ and cast into ℝ.

                      Endstate and frequency-informed learning #

                      The paper fits only the production side of the model. Mapping matrices act on row vectors, ĉ = sG, so a production map is toLin' Gᵀ.

                      noncomputable def GahlBaayen2024.endstateG :
                      Matrix (Fin 2) (Fin 6) ℝ

                      The endstate mapping G of (4) is the closed form (SᵀS)⁻¹SᵀC of (A2).

                      Equations
                      Instances For

                        The lexicon at the endstate of learning has the endstate mapping as its production map.

                        Equations
                        Instances For
                          noncomputable def GahlBaayen2024.frequencyInformedG :
                          Matrix (Fin 2) (Fin 6) ℝ

                          The frequency-informed mapping is the closed form (SᵀQS)⁻¹SᵀQC of the normal equations of (A4) at the frequencies freq.

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

                            The lexicon after frequency-informed learning has the frequency-informed mapping as its production map.

                            Equations
                            Instances For

                              Semantic support for form #

                              The support matrix T = ĈCᵀ of (A5), with Ĉ = SG, tabulates the support each word's form (column) receives from each word's meaning (row).

                              Equations
                              Instances For

                                Semantic support for form is the diagonal of T, the support a word's form receives from its own meaning.

                                Equations
                                Instances For

                                  At the endstate thyme's meaning supports its form more than time's does, 4.623 against 3.455 (Table 1).

                                  noncomputable def GahlBaayen2024.semanticSupportForFormFIL (i : Fin 3) :
                                  ℝ

                                  Under frequency-informed learning the paper reads support for form off the fitted values √Q S G of the √Q-scaled regression, paired with the words' own triphone vectors (A7).

                                  Equations
                                  Instances For

                                    Under practice time overtakes thyme, 39.805 against 6.225 (Table 1), reversing the endstate order.

                                    time and thyme share a form row, but their meaning difference lies outside the kernel of the production map, so identical triphones receive distinct predicted forms (appendix A3, Fig. A2).

                                    Contextual independence #

                                    A word-to-word map W with UW = U predicts every word of an utterance from all the words in it, and the diagonal of W is the share of that prediction a word owes to itself.

                                    The toy corpus has nine words.

                                    Instances For
                                      @[instance_reducible]
                                      Equations
                                      def GahlBaayen2024.utterance :
                                      Fin 5 → List Word

                                      The five toy utterances of (5).

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

                                        The columns of U and W list the words in the paper's order.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def GahlBaayen2024.U :
                                          Matrix (Fin 5) (Fin 9) ℝ

                                          The utterance-by-word matrix U multiple-hot encodes each utterance over the vocabulary.

                                          Equations
                                          Instances For

                                            The arithmetic of the toy corpus is decided over ℤ and cast into ℝ.

                                            noncomputable def GahlBaayen2024.W :
                                            Matrix (Fin 9) (Fin 9) ℝ

                                            The word-to-word map W of (6) is U⁺U = Uᵀ(UUᵀ)⁻¹U, the pseudoinverse solution of UW = U (A8).

                                            Equations
                                            Instances For

                                              W solves UW = U, so each word's prediction strength in an utterance containing it is 1 ((7), (8)).

                                              theorem GahlBaayen2024.isStarProjection_W :
                                              IsStarProjection W

                                              W is symmetric and idempotent, the orthogonal projection onto the row space of U.

                                              theorem GahlBaayen2024.not_existsUnique_isELTrained :
                                              ¬∃! G : Matrix (Fin 9) (Fin 9) ℝ, DiscriminativeLexicon.IsELTrained { S := U, C := U } G

                                              Regressing the words of each utterance on themselves, as the paper does for the toy corpus, does not determine W, since the identity, the "ideal solution" of (A9), is trained as well.

                                              theorem GahlBaayen2024.le_diag_W (i j : Fin 9) :
                                              W j i ≤ W i i

                                              The diagonal entry of each column of W is its largest, as the paper observes of (6).

                                              theorem GahlBaayen2024.diag_W_mem_Icc (i : Fin 9) :
                                              W i i ∈ Set.Icc 0 1

                                              The diagonal of W lies in [0, 1], the "proportions" of §3.2, because W is an orthogonal projection.

                                              noncomputable def GahlBaayen2024.cind (d : ℝ) :
                                              ℝ

                                              The contextual-independence measure of (9) is Cind = (log(1/d))^{1/4}, a log against the right skew of the diagonal values and a power to finish it.

                                              Equations
                                              Instances For
                                                theorem GahlBaayen2024.strictAntiOn_cind :
                                                StrictAntiOn cind (Set.Ioo 0 1)

                                                Cind reverses the order of the diagonal values on (0, 1), so the more a word predicts itself the lower its Cind, which is the sign of its correlation with frequency in Fig. 2.