Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-convergent-representations-linguistic-construcgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-convergent-representations-linguistic-construc/SKILL.md---
name: convergent-representations-linguistic-constructions
description: "Convergent representations of linguistic constructions in human and artificial neural systems. Analyzes alignment between biological brain activity (EEG) and artificial neural language models (RNNs, Transformers) in processing Argument Structure Constructions. Activation: linguistic constructions, ASC, brain-language alignment, EEG language, construction grammar, convergent representations."
---
# Convergent Representations of Linguistic Constructions
基于论文 "Convergent Representations of Linguistic Constructions in Human and Artificial Neural Systems" (arXiv:2603.29617v1, 2026-03-31)
## Overview
本研究探讨人类大脑和人工神经网络在处理语言结构(Argument Structure Constructions, ASCs)时的表征趋同现象。通过EEG记录人类被试在理解不同句型时的神经活动,并与RNN和Transformer模型的内部表征进行对比,发现生物和人工系统在语言处理的整合阶段表现出相似的表征模式。
## Core Concept
Argument Structure Constructions (ASCs) 是构式语法中的核心概念,代表形式-意义的配对模式:
1. **Transitive (及物)**:主语 + 动词 + 宾语 (e.g., "She kicks the ball")
2. **Ditransitive (双及物)**:主语 + 动词 + 间接宾语 + 直接宾语 (e.g., "She gives him a book")
3. **Caused-motion (致使位移)**:主语 + 动词 + 宾语 + 路径 (e.g., "She pushes the cart into the room")
4. **Resultative (结果)**:主语 + 动词 + 宾语 + 补语 (e.g., "She paints the wall red")
这些构式在大脑中形成独特的神经表征,与人工语言模型学到的表征存在惊人的对应关系。
## Key Findings
### 1. 神经表征的时间动态
- **句子末尾位置**:构式特异性信号在句子末尾(论元结构完全确定时)最为显著
- **Alpha波段主导**:构式区分主要在alpha波段(8-12Hz)实现
- **分类准确率**:ditransitive与resultative构式区分度最高
### 2. 人工-生物系统对齐
- **时序对应**:模型中构式表征出现的时机与EEG信号的时间窗口吻合
- **相似性结构**:构式间的相似性关系在两种系统中一致
- **整合阶段**:表征在语义整合阶段(而非早期感知阶段)出现
### 3. Platonic Representational Space
- 学习系统自发发现表征空间中的稳定区域
- 这些区域对应于语言的有效抽象
- 生物和人工系统受制于相似的计算约束
## Methodology
### Step 1: EEG数据采集
```python
# 实验设计
stimuli = {
"transitive": ["She kicks the ball", "He reads the book", ...],
"ditransitive": ["She gives him a book", "He tells her a story", ...],
"caused_motion": ["She pushes the cart into the room", ...],
"resultative": ["She paints the wall red", "He wipes the table clean", ...]
}
# 数据记录参数
params = {
"sampling_rate": 1000, # Hz
"channels": 64, # 电极数
"participants": 10, # 被试数
"trials_per_condition": 50
}
# 时频分析
from mne.time_frequency import tfr_multitaper
def analyze_oscillations(epochs, freqs=np.arange(4, 40, 1)):
"""Extract time-frequency representations"""
power = tfr_multitaper(
epochs,
freqs=freqs,
n_cycles=freqs / 2,
use_fft=True
)
return power
```
### Step 2: 特征提取与分类
```python
from sklearn.svm import SVC
from sklearn.model_selection import cross_val_score
def extract_features(power_data, time_window, freq_band):
"""Extract features from time-frequency data"""
# Average over time window and frequency band
features = power_data[:, :, freq_band, time_window].mean(axis=(2, 3))
return features
def classify_constructions(features, labels):
"""Classify construction types"""
clf = SVC(kernel='rbf', C=1.0)
scores = cross_val_score(clf, features, labels, cv=5)
return scores.mean()
# 关键发现:句子末尾时间窗口分类效果最佳
window_end = slice(-200, None) # Last 200ms
alpha_band = slice(8, 13) # 8-12 Hz
features = extract_features(power, window_end, alpha_band)
accuracy = classify_constructions(features, construction_labels)
```
### Step 3: 人工模型分析
```python
import torch
import torch.nn as nn
class RNNLanguageModel(nn.Module):
def __init__(self, vocab_size, hidden_dim):
self.embedding = nn.Embedding(vocab_size, hidden_dim)
self.rnn = nn.LSTM(hidden_dim, hidden_dim, num_layers=2)
self.output = nn.Linear(hidden_dim, vocab_size)
def forward(self, x):
embedded = self.embedding(x)
output, (hidden, cell) = self.rnn(embedded)
logits = self.output(output)
return logits, hidden # Return hidden states for analysis
# 提取构式表征
def extract_construction_representations(model, sentences):
"""Extract hidden states at sentence-final position"""
representations = {}
for construction_type, sents in sentences.items():
reps = []
for sent in sents:
tokens = tokenize(sent)
_, hidden = model(tokens)
# Extract final hidden state
final_rep = hidden[-1, -1, :].detach().numpy()
reps.append(final_rep)
representations[construction_type] = np.array(reps)
return representations
```
### Step 4: 对齐分析
```python
from scipy.stats import pearsonr
from sklearn.metrics.pairwise import cosine_similarity
def compute_rdm(representations):
"""Compute Representational Dissimilarity Matrix"""
# Average within category
mean_reps = np.array([reps.mean(axis=0) for reps in representations.values()])
# Compute pairwise distances
rdm = 1 - cosine_similarity(mean_reps)
return rdm
def compare_rdms(rdm_brain, rdm_model):
"""Compare representational structures"""
# Vectorize upper triangle
triu_idx = np.triu_indices(len(rdm_brain), k=1)
brain_vec = rdm_brain[triu_idx]
model_vec = rdm_model[triu_idx]
correlation, p_value = pearsonr(brain_vec, model_vec)
return correlation, p_value
# 分析结果
rdm_eeg = compute_rdm(eeg_representations)
rdm_rnn = compute_rdm(rnn_representations)
rdm_transformer = compute_rdm(transformer_representations)
corr_rnn, p_rnn = compare_rdms(rdm_eeg, rdm_rnn)
corr_transformer, p_transformer = compare_rdms(rdm_eeg, rdm_transformer)
```
## Activation Keywords
- linguistic constructions
- ASC (Argument Structure Construction)
- brain-language alignment
- EEG language
- construction grammar
- convergent representations
- Platonic representational space
- 语言构式
- 脑-语言对齐
- 构式语法
## Applications
### 1. 语言理解模型评估
使用大脑活动作为ground truth来评估和改进语言模型:
```python
def evaluate_model_alignment(model, test_sentences, eeg_data):
"""Evaluate how well model aligns with brain activity"""
model_reps = extract_representations(model, test_sentences)
# Compute correlation at each time point
correlations = []
for t in range(n_timepoints):
brain_at_t = eeg_data[:, :, t]
model_at_t = model_reps[:, t, :]
corr = compute_representation_correlation(brain_at_t, model_at_t)
correlations.append(corr)
return correlations
```
### 2. 神经语言学假设验证
通过计算模型验证语言理论的神经基础:
```python
def test_construction_grammar_hypothesis(model, sentences):
"""Test if model learns construction-like representations"""
# Check if model shows construction-specific clustering
reps = extract_representations(model, sentences)
# Measure clustering quality
from sklearn.metrics import silhouette_score
labels = [construction_type for sent in sentences]
score = silhouette_score(reps, labels)
return score # Higher score = stronger construction separation
```
### 3. 脑机接口语言解码
利用构式知识改进语言BCI:
```python
class ConstructionBasedDecoder:
def __init__(self, n_constructions=4):
self.construction_templates = {
"transitive": "{subject} {verb} {object}",
"ditransitive": "{subject} {verb} {recipient} {theme}",
# ...
}
def decode_from_eeg(self, eeg_data):
"""Decode sentence structure from EEG"""
# Classify construction type
construction = self.classify_construction(eeg_data)
# Fill template with predicted words
template = self.construction_templates[construction]
words = self.decode_content_words(eeg_data)
return template.format(**words)
```
## Tools Used
- **MNE-Python**: EEG数据分析
- **NLTK/spaCy**: 自然语言处理
- **PyTorch/TensorFlow**: 语言模型训练与分析
- **SciPy/sklearn**: 统计分析和机器学习
- **Matplotlib/Seaborn**: 可视化
## Workflow
### EEG数据分析流程
1. **预处理**
- 滤波(1-40 Hz)
- 去除伪迹(ICA)
- 分段(Epoching)
- 基线校正
2. **时频分解**
- Morlet小波变换
- 多锥形方法
- 提取功率谱
3. **特征提取**
- 选择感兴趣的时间窗口
- 选择频率波段
- 空间降维(可选)
4. **分类分析**
- 训练分类器
- 交叉验证
- 统计检验
### 模型分析流程
1. **表征提取**
- 前向传播获取隐藏状态
- 选择分析层
- 提取目标位置表征
2. **RDM计算**
- 计算表征间距离
- 构建RDM矩阵
3. **对齐分析**
- 比较不同系统的RDM
- 统计显著性检验
## Advantages
1. **理论验证**:为构式语法提供神经证据
2. **模型评估**:以大脑为基准评估AI模型
3. **双向启发**:神经科学和AI相互促进
4. **方法通用**:可扩展到其他认知领域
## Limitations
- EEG空间分辨率有限
- 实验样本量相对较小
- 人工模型与大脑机制不完全等同
- 仅测试英语,跨语言通用性待验证
## Related Skills
- **meta-learning-in-context-brain-decoding**: 跨被试脑解码
- **neural-decoding-llm**: LLM神经解码
- **computational-neuroscience-models**: 计算神经科学模型
## References
- Paper: "Convergent Representations of Linguistic Constructions in Human and Artificial Neural Systems" (arXiv:2603.29617v1)
- Authors: Pegah Ramezani, Thomas Kinfe, Andreas Maier, et al.
- Published: 2026-03-31
- Keywords: q-bio.NC, cs.AI, cs.CL