Patterns of Priming in Production: Lexical, Semantic and Structural Alignment in Language Model Generation
Organizations: School of Natural and Computing Science, University of Aberdeen · School of Computer Science, University of Birmingham · Department of Information Studies, University College London
Abstract
This paper investigates structural priming in language model (LM) production, examining how preceding structural context influences sentence completion. While prior work has demonstrated priming effects in comprehension of structural alternations, it remained unclear whether these persist in production, where, when generating, an LM samples from many possible continuations at each step. We address this question through a series of controlled sentence-completion experiments on dative constructions. In line with prior work, we find that LMs are susceptible to structural priming, particularly in sentences that are semantically coherent. In terms of priming magnitude, we find that while there is a greater relative increase of double-object datives against our baselines, in line with inverse frequency effects, there is a larger absolute increase in prepositional-objects, the more frequently produced construction. Finally, we not only observe that structural priming is boosted by lexico-semantic coherence, but that structurally primed completions display greater levels of lexico-semantic repetition. Taken together, our evidence supports the view that structural priming in LMs operates across multiple levels of linguistic representation, facilitating, and facilitated by syntactic, lexical, and semantic alignment. Code: https://github.com/the-context-lab/primedproduction.
Figures & tables
| Condition | Example prompt |
|---|---|
| prime target stem | |
| No context | The student sent the |
| Non-dative | Roger is lucky. The student sent the |
| Unrelated | …gave a toy to a man. The student sent the |
| Coherence | …gave a toy to a man . The man sent the |
| Model | Test Set | Accuracy | Precision | Recall | F1-score | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PO | DO | Non-dative | PO | DO | Non-dative | PO | DO | Non-dative | |||
| Logistic Regression | PrimeLMDative+ | 0.96 | 0.99 | 0.98 | 0.91 | 1.00 | 0.88 | 0.98 | 1.00 | 0.93 | 0.95 |
| Gemma-2-2B | 0.56 | 0.67 | 0.20 | 0.85 | 0.67 | 0.67 | 0.50 | 0.67 | 0.30 | 0.63 | |
| EuroLLM-1.7B | 0.59 | 0.56 | 0.09 | 0.72 | 0.48 | 0.17 | 0.69 | 0.51 | 0.12 | 0.71 | |
| Phi-2-2.7B | 0.52 | 0.43 | 0.21 | 0.92 | 0.70 | 0.79 | 0.45 | 0.53 | 0.34 | 0.60 | |
| BERT | PrimeLMDative+ | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| Metric | Prim. | Phi-2 | Gemma-2-2B | Gemma-2-9B | EuroLLM-1.7B | EuroLLM-9B | Qwen-3-1.7B | Qwen-3-8B | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| t | t | t | t | t | t | t | ||||||||||||||||
| MiniLM | U | 0.26 | 0.36 | 8.78 | 0.28 | 0.38 | 8.65 | 0.27 | 0.36 | 8.18 | 0.23 | 0.35 | 11.20 | 0.23 | 0.33 | 9.80 | 0.27 | 0.35 | 6.96 | 0.26 | 0.35 | 7.86 |
| C | 0.36 | 0.48 | 12.54 | 0.38 | 0.49 | 13.22 | 0.39 | 0.53 | 15.05 | 0.32 | 0.44 | 13.29 | 0.36 | 0.48 | 14.64 | 0.36 | 0.46 | 10.68 | 0.37 | 0.48 | 12.35 | |
| MPNet | U | 0.26 | 0.35 | 8.40 | 0.27 | 0.37 | 8.52 | 0.26 | 0.34 | 7.76 | 0.23 | 0.34 | 11.03 | 0.23 | 0.32 | 9.41 | 0.26 | 0.34 | 6.53 | 0.26 | 0.33 | 6.83 |
| C | 0.34 | 0.44 | 11.67 | 0.36 | 0.46 | 12.05 | 0.37 | 0.49 | 13.52 | 0.31 | 0.42 | 12.56 | 0.34 | 0.44 | 12.80 | 0.35 | 0.43 | 9.68 | 0.35 | 0.45 | 11.09 | |
| BERTScore F1 | U | 0.21 | 0.26 | 8.55 | 0.18 | 0.22 | 6.14 | 0.18 | 0.23 | 7.76 | 0.15 | 0.20 | 7.08 | 0.17 | 0.21 | 6.24 | 0.15 | 0.21 | 8.42 | 0.16 | 0.21 | 7.49 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Augmentation | PO Sentence | DO Sentence |
|---|---|---|
| Original | The teacher sent the book to the student. | She gave her mother a present. |
| Vocabulary | Jasmine sent the book to the student. | Stacy gave her mother a present. |
| Temporal | A couple of days ago, the teacher sent the book to the student. | Last month, she gave her mother a present. |
| Indirect Speech | Joana told Susan that the teacher sent the book to the student. | Angela said that she gave her mother a present. |
| Negation | The teacher did not send the book to the students. | She didn’t give her mother a present. |
| Augmentation Templates |
|---|
| Temporal Complement |
| a couple of days ago, a few weeks ago, a few hours ago, a long time ago, at dawn, at dusk, early this morning, five minutes ago, last autumn, last summer, last spring, last winter, last week, last month, last year, yesterday. |
| Indirect Speech verbs |
| told, said, saw, heard, found out, read, wanted to say, wanted to tell, wanted to show, could have said, could have told, could have shown, should have said, should have told, should have shown |
| Vocabulary: ROC Names |
| Abe, Allen, Allie, Andy, Angela, Anita, Ann, Anna, Annie, Arthur, Barry, Bea, Ben, Beverly, Bill, Billy, Bob, Bobby, Bonnie, Boston, Boy, Brad, Cam, Cara, Carl, Carly, Charles, Chris, Clint, Cora, Crystal, Dan, Daniel, David, Diana, Diane, Eliza, Ella, Ellie, Francine, Francis, Fred, Gary, Genie, Glenda, Greg, Hank, Heather, Jaime, Jake, James, Jane, Janet, Janie, Jasmin, Jasmine, Jason, Jean, Jeff, Jenn, Jenny, Jessica, Jill, Jo, Joan, Joanne, Jody, Joe, John, Johnnie, Joshua, Josie, Jude, Julie, July, June, Justin, Karl, Kaya, Kayla, Kelly, Ken, Kerry, Kira, Kyle, Lance, Larry, Laura, Leah, Lenny, Linda, Lisa, Lola, Lucy, Ludo, Luke, Marc, Marcus, Mario, Mark, Marlene, Martin, Mary, Matt, Meg, Megan, Melody, Meredith, Mia, Mike, Mikey, Naomi, Ned, Nick, Nicole, Niels, Noah, Oscar, Phil, Richard, Robbie, Roger, Rosie, Sam, Sammy, Sarah, Shane, Shannon, Shawn, Sonia, Sophia, Stacy, Stephanie, Stuart, Sue, Susan, Theo, Theodore, Tim, Timmy, Tom, Vanessa, Vera, Vivian, Walter, Wendy, |
| Method | Accuracy |
|---|---|
| spacy’s Senticizer | 67% |
| hybrid (cleaning + spacy) | 70% |
| ours | 98% |
| Condition | Prime Structure | Prime sentence | Target stem | Completion | Pred. |
|---|---|---|---|---|---|
| No Context | – | – | The student sent a | letter. | non-dative |
| Unrelated | Non-dative | The princess opened the old book. | The student sent a | message to the professor. | PO |
| PO | The princess gave a book to the man. | The student sent a | book to the teacher. | PO | |
| DO | The princess gave the man a book. | The student sent a | letter to his teacher. | PO | |
| Coherence | Non-dative | The princess opened the old book. | They sent a | letter to the prince. | PO |
| PO | The princess gave a book to the man. | The man gave | a book to a girl. | PO |
| Comparison | Structure | Phi-2 | Gemma2-2B | Gemma2-9B | EuroLLM-1.7B | EuroLLM-9B | Qwen3-1.7B | Qwen3-8B |
|---|---|---|---|---|---|---|---|---|
| Unrelated vs. No Prime | PO | 0.38*** | 0.47*** | 0.57*** | 0.56*** | 0.49*** | 0.41*** | 0.52*** |
| Unrelated vs. No Prime | DO | 0.15*** | 0.29*** | 0.47*** | 0.24*** | 0.34*** | 0.21*** | 0.29*** |
| Unrelated vs. Non-Dative | PO | 0.46*** | 0.47*** | 0.51*** | 0.54*** | 0.51*** | 0.43*** | 0.56*** |
| Unrelated vs. Non-Dative | DO | 0.21*** | 0.26*** | 0.40*** | 0.21*** | 0.31*** | 0.29*** | 0.28*** |
| Unrelated vs. Dative Non-match | PO | 0.16*** | 0.09* | 0.17*** | 0.22*** | 0.23*** | 0.09* | 0.26*** |
| Unrelated vs. Dative Non-match | DO | 0.12** | 0.15** | 0.28*** | 0.13** | 0.23*** | 0.17*** | 0.24*** |
| Metric | Context | Phi-2 | Gemma2-2B | Gemma2-9B | EuroLLM-1.7B | EuroLLM-9B | Qwen3-1.7B | Qwen3-8B |
|---|---|---|---|---|---|---|---|---|
| MiniLM | Unrelated | 0.60*** | 0.55*** | 0.48*** | 0.70*** | 0.57*** | 0.44*** | 0.47*** |
| MiniLM | Coherence | 0.64*** | 0.65*** | 0.77*** | 0.69*** | 0.70*** | 0.55*** | 0.60*** |
| MPNet | Unrelated | 0.55*** | 0.53*** | 0.45*** | 0.68*** | 0.54*** | 0.41*** | 0.40*** |
| MPNet | Coherence | 0.59*** | 0.60*** | 0.68*** | 0.64*** | 0.61*** | 0.49*** | 0.53*** |
| BERTScore F1 | Unrelated | 0.53*** | 0.38*** | 0.44*** | 0.41*** | 0.34*** | 0.49*** | 0.43*** |
| BERTScore F1 | Coherence | 0.48*** | 0.44*** | 0.59*** | 0.40*** | 0.44*** | 0.36*** | 0.46*** |
| Baseline | |||
|---|---|---|---|
| Percent difference | No Context | 8.516 | |
| Non-Dative | 11.420 | ||
| Dative | 2.117 | .0599 | |
| Percent increase | No Context | -1.005 | .3500 |
| Non-Dative | -0.919 | .3887 | |
| Dative | -4.440 | .0024 |
| Group | Struct. | Mean Prime | Mean Generated | % Same |
|---|---|---|---|---|
| Primed | DO | 7.00 | 11.93 ∗ | 5.42 |
| Primed | PO | 8.00 | 12.60 ∗ | 8.75 |
| Primed | DO | 7.00 | 10.20 ∗ | 37.37 |
| Primed | PO | 8.00 | 12.40 ∗ | 26.17 |
| Metric | Mean U | Mean C | ||
|---|---|---|---|---|
| Jaccard | 0.0367 | 0.0933 | 5.126 | .0083 |
| BLEU | 1.4533 | 4.0700 | 3.998 | .0327 |
| BERTScore F1 | 0.0433 | 0.0333 | -0.671 | .5512 |
| MPNet | 0.0567 | 0.0767 | 0.616 | .5825 |
| MiniLM | 0.0700 | 0.0667 | -0.100 | .9252 |
| Model | Target | Contrasts | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| N | O | D | P | ||||||||
| EuroLLM-1.7B | PO | 7.20 | 7.81 | 18.40 | 27.60 | 20.40 | 16.37 | 19.79 | 14.11 | 9.20 | 4.89 |
| DO | 2.12 | 2.49 | 3.90 | 6.90 | 4.78 | 7.04 | 4.41 | 5.66 | 3.00 | 2.97 | |
| EuroLLM-9B | PO | 10.47 | 9.70 | 19.70 | 29.40 | 18.93 | 13.97 | 19.70 | 13.40 | 9.70 | 5.04 |
| DO | 3.16 | 3.60 | 5.40 | 11.60 | 8.44 | 9.95 | 8.00 | 8.26 | 6.20 | 4.97 | |
| Gemma-2-2B | PO | 7.59 | 7.53 | 20.30 | 24.20 | 16.61 | 13.64 | 16.67 | 12.38 | 3.90 | 2.10 |
| % PO priming | % DO priming | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Coher. | Unrel. | Coher. | Unrel. | ||||||
| EuroLLM-1.7B | 31.80 | 27.60 | 4.20 | 2.06 | 17.20 | 6.90 | 10.30 | 7.07 | ||
| EuroLLM-9B | 38.10 | 29.40 | 8.70 | 4.11 | 26.00 | 11.60 | 14.40 | 8.24 | ||
| Gemma-2-2B | 32.90 | 24.20 | 8.70 | 4.31 | 17.60 | 7.50 | 10.10 | 6.82 | ||
| Gemma-2-9B | 31.10 | 28.90 | 2.20 | 1.07 | 21.40 | 11.50 | 9.90 | 5.97 | ||
| Phi-2-2.7B | 32.40 | 24.70 | 7.70 | 3.81 | 18.50 | 6.90 | 11.60 | 7.79 | ||
| Metric | Prim. | Phi-2 | Gemma-2-2B | Gemma-2-9B | EuroLLM-1.7B | EuroLLM-9B | Qwen-3-1.7B | Qwen-3-8B | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| t | t | t | t | t | t | t | ||||||||||||||||
| MiniLM | U | 0.26 | 0.38 | 8.29 | 0.29 | 0.39 | 7.08 | 0.28 | 0.36 | 6.37 | 0.24 | 0.36 | 9.57 | 0.24 | 0.35 | 8.49 | 0.26 | 0.35 | 6.12 | 0.27 | 0.36 | 7.09 |
| C | 0.38 | 0.49 | 9.74 | 0.38 | 0.50 | 10.89 | 0.39 | 0.52 | 11.02 | 0.34 | 0.47 | 11.13 | 0.36 | 0.48 | 11.27 | 0.36 | 0.46 | 8.94 | 0.35 | 0.45 | 8.37 | |
| MPNet | U | 0.25 | 0.36 | 8.38 | 0.27 | 0.38 | 7.67 | 0.27 | 0.35 | 6.13 | 0.23 | 0.36 | 9.75 | 0.23 | 0.33 | 8.44 | 0.26 | 0.33 | 5.54 | 0.27 | 0.35 | 6.41 |
| C | 0.36 | 0.46 | 8.90 | 0.36 | 0.47 | 10.38 | 0.36 | 0.48 | 10.20 | 0.32 | 0.44 | 11.37 | 0.34 | 0.44 | 9.73 | 0.34 | 0.44 | 8.45 | 0.33 | 0.41 | 7.85 | |
| BERTScore F1 | U | 0.23 | 0.28 | 6.39 | 0.20 | 0.23 | 4.05 | 0.20 | 0.25 | 7.45 | 0.16 | 0.21 | 6.01 | 0.19 | 0.22 | 4.31 | 0.17 | 0.22 | 6.39 | 0.18 | 0.22 | 6.06 |
| Metric | Prim. | Phi-2 | Gemma-2-2B | Gemma-2-9B | EuroLLM-1.7B | EuroLLM-9B | Qwen-3-1.7B | Qwen-3-8B | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| t | t | t | t | t | t | t | ||||||||||||||||
| MiniLM | U | 0.25 | 0.30 | 2.29 | 0.27 | 0.35 | 3.52 | 0.26 | 0.35 | 4.24 | 0.22 | 0.30 | 3.60 | 0.22 | 0.30 | 3.83 | 0.27 | 0.34 | 3.18 | 0.26 | 0.30 | 2.01 |
| C | 0.34 | 0.45 | 6.84 | 0.37 | 0.47 | 6.61 | 0.39 | 0.55 | 10.38 | 0.30 | 0.40 | 6.17 | 0.35 | 0.49 | 9.06 | 0.36 | 0.46 | 5.99 | 0.39 | 0.53 | 10.04 | |
| MPNet | U | 0.26 | 0.30 | 1.97 | 0.27 | 0.34 | 2.97 | 0.26 | 0.34 | 4.11 | 0.23 | 0.30 | 3.53 | 0.22 | 0.28 | 3.36 | 0.27 | 0.35 | 3.71 | 0.26 | 0.29 | 1.50 |
| C | 0.33 | 0.42 | 6.53 | 0.36 | 0.44 | 5.84 | 0.37 | 0.50 | 9.12 | 0.30 | 0.38 | 5.13 | 0.34 | 0.45 | 8.14 | 0.35 | 0.43 | 5.11 | 0.37 | 0.49 | 8.74 | |
| BERTScore F1 | U | 0.19 | 0.22 | 2.21 | 0.16 | 0.18 | 1.34 | 0.17 | 0.17 | 0.20 | 0.14 | 0.14 | 0.19 | 0.16 | 0.18 | 1.99 | 0.14 | 0.17 | 2.40 | 0.14 | 0.15 | 0.90 |
| Model | Prompt | LM completion | Label |
|---|---|---|---|
| EuroLLM | A winner threw a juice to a husband. A husband kept the | A husband kept the juice and drank it. | non-dative |
| EuroLLM | A lawyer saved a tea for a buddy. A buddy gave the | A buddy gave the scruffy-looking solo lawyer a drink since they tasted funny. | DO |
| EuroLLM | A husband brought a meal to a writer. A writer designed the | A writer designed the meal by placing between each serving of meat and each vegetable a single small, leafy, green vegetable. | non-dative |
| EuroLLM | An attorney made a camera for an opponent. An opponent gave the | An opponent gave the attorney 10 yellow cameras. | DO |
| Gemma | A man promised a husband a coffee. A man purchased the | A man purchased the goods, but instead put coffee on sugar. | non-dative |
| Gemma | A husband purchased the | A husband purchased the house his wife grew up in. | non-dative |
| Model | Target | No Context | Non-dative | Unrelated | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| EuroLLM-1.7B | PO | 6.00 | 14.00 | 15.00 | 9.00 | 2.08 | .114 | 1.00 | 0.20 | .841 |
| DO | 5.00 | 9.00 | 7.00 | 2.00 | 0.60 | .662 | -2.00 | -0.52 | .841 | |
| Gemma-2-2B | PO | 11.00 | 8.00 | 19.00 | 8.00 | 1.58 | .226 | 11.00 | 2.28 | .137 |
| DO | 2.00 | 5.00 | 4.00 | 2.00 | 0.83 | .611 | -1.00 | -0.34 | .841 | |
| Phi-2-2.7B | PO | 6.00 | 12.00 | 22.00 | 16.00 | 3.26 | .007 | 10.00 | 1.88 | .179 |
| DO | 8.00 | 5.00 | 9.00 | 1.00 | 0.25 | .800 | 4.00 | 1.11 | .535 |
| PO priming | DO priming | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Coher. | Unrel. | Coher. | Unrel. | ||||||
| EuroLLM-1.7B | 20.00 | 15.00 | 5.00 | 0.93 | .423 | 21.00 | 7.00 | 14.00 | 2.85 | .013 |
| Gemma-2-2B | 25.00 | 19.00 | 6.00 | 1.02 | .423 | 18.00 | 4.00 | 14.00 | 3.16 | .009 |
| Phi-2-2.7B | 21.00 | 22.00 | -1.00 | -0.17 | .863 | 19.00 | 9.00 | 10.00 | 2.04 | .083 |
| Metric | Cond. | EuroLLM-1.7B | Gemma-2-2B | Phi-2-2.7B | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MiniLM | U | 0.28 | 0.31 | 0.64 | 0.29 | 0.40 | 2.55 ∗ | 0.25 | 0.32 | 2.06 |
| C | 0.36 | 0.38 | 0.62 | 0.39 | 0.47 | 2.46 ∗ | 0.37 | 0.47 | 3.64 ∗ | |
| MPNet | U | 0.27 | 0.30 | 0.94 | 0.28 | 0.36 | 1.75 | 0.25 | 0.31 | 2.06 |
| C | 0.34 | 0.37 | 0.79 | 0.37 | 0.44 | 2.38 ∗ | 0.35 | 0.48 | 4.62 ∗ | |
| BERTScore F1 | U | 0.17 | 0.20 | 1.43 | 0.18 | 0.23 | 2.56 ∗ | 0.21 | 0.26 | 2.44 ∗ |