qinghuiwan commited on
Commit
9c9c9b5
·
verified ·
1 Parent(s): 60cc984

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +59 -475
README.md CHANGED
@@ -1,509 +1,93 @@
1
  ---
 
 
 
 
 
2
  tags:
3
- - sentence-transformers
4
- - sentence-similarity
5
- - feature-extraction
6
- - dense
7
- - generated_from_trainer
8
- - dataset_size:35145
9
- - loss:MultipleNegativesRankingLoss
10
  base_model: shibing624/text2vec-base-chinese
11
- widget:
12
- - source_sentence: 科学史上的重大突破不是均匀分布在时间轴上的。某些短暂时期集中产生了大量突破性发现——比如二十世纪初的物理学革命。之前和之后都是相对平静的渐进期。知识的积累似乎有一个临界点,突破后带来一连串爆发性的进展。
13
- sentences:
14
- - 超分子凝胶由非共价作用驱动的纤维网络构成,施加剪切力后网络断裂变为溶胶,停止剪切后纤维通过非共价相互作用快速重新组装恢复凝胶态,称为触变性。恢复时间从毫秒到数小时不等,取决于纤维重新成核和生长速率,与可注射生物材料和自修复涂层密切相关。
15
- - 政府采购实行公开招标制度:所有供应商密封报价,最低价中标。每个供应商为了中标会尽可能报出接近成本的低价,竞争规则让政府不需要判断合理价格就能以最低成本采购到所需物资。
16
- - 国际冲突的爆发呈现出明显的丛集效应:和平年代可能持续几十年,然后短期内多场战争密集爆发。第一次世界大战结束二十年后就爆发了第二次。冲突不是随机均匀分布在历史时间轴上的,而是倾向于成簇出现。
17
- - source_sentence: Notch受体与相邻细胞(反式)Delta结合时被激活,与本细胞(顺式)Delta结合时则被抑制。这种反式激活-顺式抑制的布尔逻辑确保信号只在不同细胞之间传递。高Delta的细胞因顺式抑制而对Notch信号不敏感,只能作为信号发送者;低Delta的细胞Notch可被激活,只能作为接收者,实现信号流方向的结构性规定,阻止同一细胞既发送又接收产生的自激活回路。
18
- sentences:
19
- - 单个非线性负载产生的谐波微弱,但大量变频器、整流器同时运行时,各次谐波叠加后总畸变率远超单台设备贡献之和,电能质量严重劣化。
20
- - 在线学习算法的遗憾定义为累计损失与最佳固定策略损失之差。乘法权重算法在T轮后遗憾的上界正比于T的平方根乘以动作数对数,随轮数增加人均遗憾趋零。将遗憾最小化算法的均值对应到博弈的策略,所有玩家同时使用此算法时策略均值会收敛到粗糙相关均衡。
21
- - 酸奶冷藏期乳酸菌继续缓慢代谢使pH持续下降影响口感与稳定性,菌种选育低后酸化菌株可延长货架期。
22
- - source_sentence: 一个五十人的班级要选五人组成课题小组。可能的分组方案超过两百万种,其中大部分会因为性格冲突或能力不均而效果不佳。班主任分组时凭直觉筛选的,其实只是这个巨大方案空间中极小的一部分。
23
- sentences:
24
- - 服务器上的处理器时间和内存总量是固定的,容器技术把总资源切成若干份分配给不同应用——每个应用只能用自己那份不能侵占别人的。资源总量守恒,只是被重新划分和分配。
25
- - 二维量子自旋霍尔绝缘体(如HgTe量子阱)边缘存在时间反演保护的螺旋边缘态:自旋向上电子向右传播,自旋向下向左传播。非磁性散射无法打开背散射通道,输运接近量子化。磁性杂质或外加时间反演破缺磁场可打开边缘能隙,使螺旋态失保护。
26
- - 电容器组只能以固定容量级别投入或切除,要在有限的投切组合中找到使系统损耗最小的方案。候选方案随组数呈组合增长,需高效搜索策略。
27
- - source_sentence: 服务业要求工作者管理自身情绪以诱导顾客产生期望感受,这种情感的管理技能被组织系统性地纳入生产过程。长期的情感表演使工作者难以区分真实情感与表演性情感,导致情感麻木、身份混乱或过度认同角色,个体情绪因此不再是私人领域,而是被资本逻辑所规训的劳动力组成部分。
28
- sentences:
29
- - 萨林斯研究布须曼人后提出'原始丰裕社会'理论:田野计时发现他们每天仅需工作三到四小时即可满足需求,其余时间用于休息社交。需求有限才能被满足,而非资源无限——这是丰裕的另一种实现路径。
30
- - 政府设定高于均衡价的价格下限(如最低工资)时,供给超过需求产生过剩。过剩由非价格配给机制分配,如排队、关系或歧视。剩余劳动力与有工作者之间形成租金分割:获得就业者收益增加,失业者损失,总体效率损失取决于过剩规模和配给成本,分配效果高度依赖配给机制本身。
31
- - 大雁每年秋天南飞春天北返,路线几乎不变时间高度规律。气温和日照长度的季节性变化触发迁徙本能,迁徙行为年复一年地按固定周期重复,形成了精确的年度循环模式。
32
- - source_sentence: 当射频波频率精确等于粒子在磁场中的回旋频率时,粒子在连续的半圆轨道上持续被波加速,每圈都获得能量。在共振层附近,能量吸收效率极高,等离子体加热功率呈尖峰状集中。离共振层越远,频率失谐,加热效率急剧下降,体现了共振的选频特性。
33
- sentences:
34
- - 单位河道长度的水流功率(流量与坡降之积)决定了河床形态:功率低时为沙纹,中等时为沙丘,高时沙丘被冲平形成平坦床面,继续升高则出现逆行沙丘。流量的周期性变化使床面形态在洪枯水期间反复转变,并通过水流阻力影响洪水传播速度。
35
- - 北极地区升温速率显著高于全球平均,主因是海冰融化降低反照率、低层大气稳定度高使热量集中近地面,以及水汽与云的正反馈叠加,形成局地温度响应的非线性放大。
36
- - 质膜中蛋白质扩散被肌动蛋白皮层形成的纳米尺度围栏分割为约100nm的小区域。蛋白质在区域内自由扩散,偶尔越过围栏跳跃至相邻区域,宏观上呈现比自由扩散慢10倍的限制扩散。这种马尔可夫式跳跃扩散使膜蛋白分布有序化,防止不同信号系统的无限混合,维持膜信号传导的局部性,每次跳跃都是一个独立的随机事件。
37
- pipeline_tag: sentence-similarity
38
- library_name: sentence-transformers
39
  ---
40
 
41
- # SentenceTransformer based on shibing624/text2vec-base-chinese
42
 
43
- This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [shibing624/text2vec-base-chinese](https://huggingface.co/shibing624/text2vec-base-chinese). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
44
 
45
- ## Model Details
46
 
47
- ### Model Description
48
- - **Model Type:** Sentence Transformer
49
- - **Base model:** [shibing624/text2vec-base-chinese](https://huggingface.co/shibing624/text2vec-base-chinese) <!-- at revision 183bb99aa7af74355fb58d16edf8c13ae7c5433e -->
50
- - **Maximum Sequence Length:** 128 tokens
51
- - **Output Dimensionality:** 768 dimensions
52
- - **Similarity Function:** Cosine Similarity
53
- <!-- - **Training Dataset:** Unknown -->
54
- <!-- - **Language:** Unknown -->
55
- <!-- - **License:** Unknown -->
56
 
57
- ### Model Sources
 
 
 
58
 
59
- - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
60
- - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
61
- - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
62
 
63
- ### Full Model Architecture
64
-
65
- ```
66
- SentenceTransformer(
67
- (0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'BertModel'})
68
- (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
69
- )
70
- ```
71
 
72
  ## Usage
73
 
74
- ### Direct Usage (Sentence Transformers)
75
-
76
- First install the Sentence Transformers library:
77
 
78
- ```bash
79
- pip install -U sentence-transformers
80
- ```
81
-
82
- Then you can load this model and run inference.
83
  ```python
84
- from sentence_transformers import SentenceTransformer
85
-
86
- # Download from the 🤗 Hub
87
- model = SentenceTransformer("sentence_transformers_model_id")
88
- # Run inference
89
- sentences = [
90
- '当射频波频率精确等于粒子在磁场中的回旋频率时,粒子在连续的半圆轨道上持���被波加速,每圈都获得能量。在共振层附近,能量吸收效率极高,等离子体加热功率呈尖峰状集中。离共振层越远,频率失谐,加热效率急剧下降,体现了共振的选频特性。',
91
- '单位河道长度的水流功率(流量与坡降之积)决定了河床形态:功率低时为沙纹,中等时为沙丘,高时沙丘被冲平形成平坦床面,继续升高则出现逆行沙丘。流量的周期性变化使床面形态在洪枯水期间反复转变,并通过水流阻力影响洪水传播速度。',
92
- '质膜中蛋白质扩散被肌动蛋白皮层形成的纳米尺度围栏分割为约100nm的小区域。蛋白质在区域内自由扩散,偶尔越过围栏跳跃至相邻区域,宏观上呈现比自由扩散慢10倍的限制扩散。这种马尔可夫式跳跃扩散使膜蛋白分布有序化,防止不同信号系统的无限混合,维持膜信号传导的局部性,每次跳跃都是一个独立的随机事件。',
93
- ]
94
- embeddings = model.encode(sentences)
95
- print(embeddings.shape)
96
- # [3, 768]
97
-
98
- # Get the similarity scores for the embeddings
99
- similarities = model.similarity(embeddings, embeddings)
100
- print(similarities)
101
- # tensor([[ 1.0000, 0.7606, -0.3357],
102
- # [ 0.7606, 1.0000, -0.3780],
103
- # [-0.3357, -0.3780, 1.0000]])
104
- ```
105
-
106
- <!--
107
- ### Direct Usage (Transformers)
108
-
109
- <details><summary>Click to see the direct usage in Transformers</summary>
110
-
111
- </details>
112
- -->
113
-
114
- <!--
115
- ### Downstream Usage (Sentence Transformers)
116
-
117
- You can finetune this model on your own dataset.
118
-
119
- <details><summary>Click to expand</summary>
120
-
121
- </details>
122
- -->
123
-
124
- <!--
125
- ### Out-of-Scope Use
126
-
127
- *List how the model may foreseeably be misused and address what users ought not to do with the model.*
128
- -->
129
 
130
- <!--
131
- ## Bias, Risks and Limitations
132
 
133
- *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
134
- -->
 
135
 
136
- <!--
137
- ### Recommendations
138
-
139
- *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
140
- -->
141
-
142
- ## Training Details
143
-
144
- ### Training Dataset
145
-
146
- #### Unnamed Dataset
147
-
148
- * Size: 35,145 training samples
149
- * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
150
- * Approximate statistics based on the first 1000 samples:
151
- | | sentence1 | sentence2 | label |
152
- |:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:--------------------------------------------------------------|
153
- | type | string | string | float |
154
- | details | <ul><li>min: 43 tokens</li><li>mean: 93.32 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 37 tokens</li><li>mean: 84.51 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 1.0</li><li>mean: 1.0</li><li>max: 1.0</li></ul> |
155
- * Samples:
156
- | sentence1 | sentence2 | label |
157
- |:-----------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|:-----------------|
158
- | <code>山区溪流的水量变化极其不均匀。枯水期可能几周水量极小甚至断流,一场暴雨后几小时内水量暴涨百倍形成洪峰,之后又快速回落。水量的时间分布高度集中——全年的大部分水量可能集中在几次洪峰中输送。</code> | <code>初次犯罪者被司法系统贴上罪犯标签后因就业歧视和社交排斥回到合法生活困难,惩罚本身提高再犯概率,形成越干预越固化的二级偏差过程。</code> | <code>1.0</code> |
159
- | <code>快递公司有十个分拣中心,一个包裹从起点到终点可以走不同路线。如果中转次数不超过三次,可行线路就有几百条。调度系统要从这些方案中选出成本最低的那条,本质上就是在庞大配置空间里做筛选。</code> | <code>投资同一赛道多家公司计算至少有一家成功的概率,投资数量越多命中概率越高——组合计数式的概率覆盖策略。</code> | <code>1.0</code> |
160
- | <code>冬天把一根铁棒的一端插进火堆,热量从灼热的一端缓缓传向冰冷的另一端。温差越大传热越快,随着两端温度趋近,传热也越来越慢。热量总是自发地从热处流向冷处,直到均匀为止。</code> | <code>当工资和债券利息条款自动与过去通胀挂钩时,历史通胀被嵌入未来成本,形成强烈的通胀惯性。央行即使提高利率,通胀也需要较长时间才能下降,且会面临更大的产出损失。阿根廷、巴西的历史表明,广泛索引化可将高通胀状态锁定多年。</code> | <code>1.0</code> |
161
- * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
162
- ```json
163
- {
164
- "scale": 20.0,
165
- "similarity_fct": "cos_sim",
166
- "gather_across_devices": false
167
- }
168
- ```
169
-
170
- ### Evaluation Dataset
171
-
172
- #### Unnamed Dataset
173
-
174
- * Size: 3,905 evaluation samples
175
- * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
176
- * Approximate statistics based on the first 1000 samples:
177
- | | sentence1 | sentence2 | label |
178
- |:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:--------------------------------------------------------------|
179
- | type | string | string | float |
180
- | details | <ul><li>min: 44 tokens</li><li>mean: 92.67 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 45 tokens</li><li>mean: 83.57 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 1.0</li><li>mean: 1.0</li><li>max: 1.0</li></ul> |
181
- * Samples:
182
- | sentence1 | sentence2 | label |
183
- |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
184
- | <code>一条爆炸性新闻刚出来时人人讨论,但热度消退的速度惊人——第一天刷屏,第三天就只剩茶余饭后偶尔提起。关注度越低,被提及的频率也越低,新闻像退潮一样逐渐沉寂。</code> | <code>半导体中双光子吸收(TPA)截面正比于光强平方,低功率时可忽略,高功率超过阈值时吸收急剧增大,导致自幅调制和折射率变化。TPA引起的自由载流子可进一步吸收,形成级联非线性损耗。在非线性光子集成中,TPA是限制硅微腔高Q运转的主要机制,需控制载流子寿命。</code> | <code>1.0</code> |
185
- | <code>运动神经末梢释放Agrin蛋白激活MuSK激酶,触发烟碱型乙酰胆碱受体从弥散分布迅速聚集到突触位点下方,密度从100个/μm²升至10000个/μm²以上。聚集体通过Rapsyn锚定后稳定化,突触下肌核上调受体基因转录进一步自我强化聚集。初始聚集后的正反馈放大使受体密度涌现式地跃升至功能阈值以上,是突触形成中局部分子密度涌现为突触功能的典型案例。</code> | <code>单独的应力或腐蚀环境都不足以引发开裂,两者共同作用时裂纹以远超预期的速率扩展。应力腐蚀开裂的危害远大于力学和化学因素的简单叠加,呈超加性涌现。</code> | <code>1.0</code> |
186
- | <code>一段文章中最常用的词出现频率极高,次常用的词频率骤降,罕见词大量但每个都极少出现。有趣的是,无论分析一本书、一个章节还是一段话,这种频率分布的形状都差不多。语言的使用模式在不同文本规模上自我重复。</code> | <code>闪电的先导放电从云底向地面延伸时不断分叉,形成树状分枝结构。主通道分出支通道支通道再分出更细的支通道,不同尺度的分叉模式呈现自相似特征。</code> | <code>1.0</code> |
187
- * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
188
- ```json
189
- {
190
- "scale": 20.0,
191
- "similarity_fct": "cos_sim",
192
- "gather_across_devices": false
193
- }
194
- ```
195
-
196
- ### Training Hyperparameters
197
- #### Non-Default Hyperparameters
198
-
199
- - `eval_strategy`: epoch
200
- - `per_device_train_batch_size`: 16
201
- - `per_device_eval_batch_size`: 16
202
- - `learning_rate`: 2e-05
203
- - `num_train_epochs`: 5
204
- - `warmup_ratio`: 0.1
205
- - `use_mps_device`: True
206
- - `dataloader_pin_memory`: False
207
 
208
- #### All Hyperparameters
209
- <details><summary>Click to expand</summary>
210
 
211
- - `overwrite_output_dir`: False
212
- - `do_predict`: False
213
- - `eval_strategy`: epoch
214
- - `prediction_loss_only`: True
215
- - `per_device_train_batch_size`: 16
216
- - `per_device_eval_batch_size`: 16
217
- - `per_gpu_train_batch_size`: None
218
- - `per_gpu_eval_batch_size`: None
219
- - `gradient_accumulation_steps`: 1
220
- - `eval_accumulation_steps`: None
221
- - `torch_empty_cache_steps`: None
222
- - `learning_rate`: 2e-05
223
- - `weight_decay`: 0.0
224
- - `adam_beta1`: 0.9
225
- - `adam_beta2`: 0.999
226
- - `adam_epsilon`: 1e-08
227
- - `max_grad_norm`: 1.0
228
- - `num_train_epochs`: 5
229
- - `max_steps`: -1
230
- - `lr_scheduler_type`: linear
231
- - `lr_scheduler_kwargs`: None
232
- - `warmup_ratio`: 0.1
233
- - `warmup_steps`: 0
234
- - `log_level`: passive
235
- - `log_level_replica`: warning
236
- - `log_on_each_node`: True
237
- - `logging_nan_inf_filter`: True
238
- - `save_safetensors`: True
239
- - `save_on_each_node`: False
240
- - `save_only_model`: False
241
- - `restore_callback_states_from_checkpoint`: False
242
- - `no_cuda`: False
243
- - `use_cpu`: False
244
- - `use_mps_device`: True
245
- - `seed`: 42
246
- - `data_seed`: None
247
- - `jit_mode_eval`: False
248
- - `bf16`: False
249
- - `fp16`: False
250
- - `fp16_opt_level`: O1
251
- - `half_precision_backend`: auto
252
- - `bf16_full_eval`: False
253
- - `fp16_full_eval`: False
254
- - `tf32`: None
255
- - `local_rank`: 0
256
- - `ddp_backend`: None
257
- - `tpu_num_cores`: None
258
- - `tpu_metrics_debug`: False
259
- - `debug`: []
260
- - `dataloader_drop_last`: False
261
- - `dataloader_num_workers`: 0
262
- - `dataloader_prefetch_factor`: None
263
- - `past_index`: -1
264
- - `disable_tqdm`: False
265
- - `remove_unused_columns`: True
266
- - `label_names`: None
267
- - `load_best_model_at_end`: False
268
- - `ignore_data_skip`: False
269
- - `fsdp`: []
270
- - `fsdp_min_num_params`: 0
271
- - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
272
- - `fsdp_transformer_layer_cls_to_wrap`: None
273
- - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
274
- - `parallelism_config`: None
275
- - `deepspeed`: None
276
- - `label_smoothing_factor`: 0.0
277
- - `optim`: adamw_torch_fused
278
- - `optim_args`: None
279
- - `adafactor`: False
280
- - `group_by_length`: False
281
- - `length_column_name`: length
282
- - `project`: huggingface
283
- - `trackio_space_id`: trackio
284
- - `ddp_find_unused_parameters`: None
285
- - `ddp_bucket_cap_mb`: None
286
- - `ddp_broadcast_buffers`: False
287
- - `dataloader_pin_memory`: False
288
- - `dataloader_persistent_workers`: False
289
- - `skip_memory_metrics`: True
290
- - `use_legacy_prediction_loop`: False
291
- - `push_to_hub`: False
292
- - `resume_from_checkpoint`: None
293
- - `hub_model_id`: None
294
- - `hub_strategy`: every_save
295
- - `hub_private_repo`: None
296
- - `hub_always_push`: False
297
- - `hub_revision`: None
298
- - `gradient_checkpointing`: False
299
- - `gradient_checkpointing_kwargs`: None
300
- - `include_inputs_for_metrics`: False
301
- - `include_for_metrics`: []
302
- - `eval_do_concat_batches`: True
303
- - `fp16_backend`: auto
304
- - `push_to_hub_model_id`: None
305
- - `push_to_hub_organization`: None
306
- - `mp_parameters`:
307
- - `auto_find_batch_size`: False
308
- - `full_determinism`: False
309
- - `torchdynamo`: None
310
- - `ray_scope`: last
311
- - `ddp_timeout`: 1800
312
- - `torch_compile`: False
313
- - `torch_compile_backend`: None
314
- - `torch_compile_mode`: None
315
- - `include_tokens_per_second`: False
316
- - `include_num_input_tokens_seen`: no
317
- - `neftune_noise_alpha`: None
318
- - `optim_target_modules`: None
319
- - `batch_eval_metrics`: False
320
- - `eval_on_start`: False
321
- - `use_liger_kernel`: False
322
- - `liger_kernel_config`: None
323
- - `eval_use_gather_object`: False
324
- - `average_tokens_across_devices`: True
325
- - `prompts`: None
326
- - `batch_sampler`: batch_sampler
327
- - `multi_dataset_batch_sampler`: proportional
328
- - `router_mapping`: {}
329
- - `learning_rate_mapping`: {}
330
 
331
- </details>
 
 
 
 
332
 
333
- ### Training Logs
334
- <details><summary>Click to expand</summary>
335
 
336
- | Epoch | Step | Training Loss | Validation Loss |
337
- |:------:|:-----:|:-------------:|:---------------:|
338
- | 0.0455 | 100 | 2.7356 | - |
339
- | 0.0910 | 200 | 2.5624 | - |
340
- | 0.1365 | 300 | 2.4543 | - |
341
- | 0.1821 | 400 | 2.3932 | - |
342
- | 0.2276 | 500 | 2.2464 | - |
343
- | 0.2731 | 600 | 2.0937 | - |
344
- | 0.3186 | 700 | 2.1172 | - |
345
- | 0.3641 | 800 | 2.0323 | - |
346
- | 0.4096 | 900 | 1.9005 | - |
347
- | 0.4552 | 1000 | 1.7351 | - |
348
- | 0.5007 | 1100 | 1.7081 | - |
349
- | 0.5462 | 1200 | 1.5792 | - |
350
- | 0.5917 | 1300 | 1.4061 | - |
351
- | 0.6372 | 1400 | 1.3286 | - |
352
- | 0.6827 | 1500 | 1.1789 | - |
353
- | 0.7283 | 1600 | 1.131 | - |
354
- | 0.7738 | 1700 | 1.0396 | - |
355
- | 0.8193 | 1800 | 1.0363 | - |
356
- | 0.8648 | 1900 | 0.9753 | - |
357
- | 0.9103 | 2000 | 0.8501 | - |
358
- | 0.9558 | 2100 | 0.8085 | - |
359
- | 1.0 | 2197 | - | 0.6340 |
360
- | 1.0014 | 2200 | 0.7142 | - |
361
- | 1.0469 | 2300 | 0.5768 | - |
362
- | 1.0924 | 2400 | 0.5857 | - |
363
- | 1.1379 | 2500 | 0.5691 | - |
364
- | 1.1834 | 2600 | 0.5566 | - |
365
- | 1.2289 | 2700 | 0.5359 | - |
366
- | 1.2745 | 2800 | 0.5055 | - |
367
- | 1.3200 | 2900 | 0.5114 | - |
368
- | 1.3655 | 3000 | 0.4625 | - |
369
- | 1.4110 | 3100 | 0.4353 | - |
370
- | 1.4565 | 3200 | 0.4781 | - |
371
- | 1.5020 | 3300 | 0.4141 | - |
372
- | 1.5476 | 3400 | 0.4385 | - |
373
- | 1.5931 | 3500 | 0.378 | - |
374
- | 1.6386 | 3600 | 0.3761 | - |
375
- | 1.6841 | 3700 | 0.3788 | - |
376
- | 1.7296 | 3800 | 0.3598 | - |
377
- | 1.7751 | 3900 | 0.3512 | - |
378
- | 1.8207 | 4000 | 0.3588 | - |
379
- | 1.8662 | 4100 | 0.3364 | - |
380
- | 1.9117 | 4200 | 0.3215 | - |
381
- | 1.9572 | 4300 | 0.3074 | - |
382
- | 2.0 | 4394 | - | 0.2764 |
383
- | 2.0027 | 4400 | 0.3134 | - |
384
- | 2.0482 | 4500 | 0.2353 | - |
385
- | 2.0938 | 4600 | 0.2632 | - |
386
- | 2.1393 | 4700 | 0.2416 | - |
387
- | 2.1848 | 4800 | 0.2669 | - |
388
- | 2.2303 | 4900 | 0.2456 | - |
389
- | 2.2758 | 5000 | 0.2314 | - |
390
- | 2.3213 | 5100 | 0.2342 | - |
391
- | 2.3669 | 5200 | 0.2518 | - |
392
- | 2.4124 | 5300 | 0.2147 | - |
393
- | 2.4579 | 5400 | 0.2209 | - |
394
- | 2.5034 | 5500 | 0.2377 | - |
395
- | 2.5489 | 5600 | 0.2113 | - |
396
- | 2.5944 | 5700 | 0.248 | - |
397
- | 2.6400 | 5800 | 0.2126 | - |
398
- | 2.6855 | 5900 | 0.2253 | - |
399
- | 2.7310 | 6000 | 0.2525 | - |
400
- | 2.7765 | 6100 | 0.2394 | - |
401
- | 2.8220 | 6200 | 0.2254 | - |
402
- | 2.8675 | 6300 | 0.1928 | - |
403
- | 2.9131 | 6400 | 0.2184 | - |
404
- | 2.9586 | 6500 | 0.2255 | - |
405
- | 3.0 | 6591 | - | 0.2227 |
406
- | 3.0041 | 6600 | 0.1808 | - |
407
- | 3.0496 | 6700 | 0.1698 | - |
408
- | 3.0951 | 6800 | 0.1765 | - |
409
- | 3.1406 | 6900 | 0.1695 | - |
410
- | 3.1862 | 7000 | 0.1807 | - |
411
- | 3.2317 | 7100 | 0.1721 | - |
412
- | 3.2772 | 7200 | 0.184 | - |
413
- | 3.3227 | 7300 | 0.2107 | - |
414
- | 3.3682 | 7400 | 0.1541 | - |
415
- | 3.4137 | 7500 | 0.1708 | - |
416
- | 3.4593 | 7600 | 0.1802 | - |
417
- | 3.5048 | 7700 | 0.1678 | - |
418
- | 3.5503 | 7800 | 0.1646 | - |
419
- | 3.5958 | 7900 | 0.1793 | - |
420
- | 3.6413 | 8000 | 0.1759 | - |
421
- | 3.6868 | 8100 | 0.1568 | - |
422
- | 3.7324 | 8200 | 0.1864 | - |
423
- | 3.7779 | 8300 | 0.152 | - |
424
- | 3.8234 | 8400 | 0.1429 | - |
425
- | 3.8689 | 8500 | 0.1765 | - |
426
- | 3.9144 | 8600 | 0.1623 | - |
427
- | 3.9599 | 8700 | 0.1645 | - |
428
- | 4.0 | 8788 | - | 0.1886 |
429
- | 4.0055 | 8800 | 0.1499 | - |
430
- | 4.0510 | 8900 | 0.1428 | - |
431
- | 4.0965 | 9000 | 0.172 | - |
432
- | 4.1420 | 9100 | 0.1237 | - |
433
- | 4.1875 | 9200 | 0.1418 | - |
434
- | 4.2330 | 9300 | 0.1568 | - |
435
- | 4.2786 | 9400 | 0.1547 | - |
436
- | 4.3241 | 9500 | 0.1514 | - |
437
- | 4.3696 | 9600 | 0.1626 | - |
438
- | 4.4151 | 9700 | 0.1313 | - |
439
- | 4.4606 | 9800 | 0.1673 | - |
440
- | 4.5061 | 9900 | 0.1422 | - |
441
- | 4.5517 | 10000 | 0.151 | - |
442
- | 4.5972 | 10100 | 0.1398 | - |
443
- | 4.6427 | 10200 | 0.1286 | - |
444
- | 4.6882 | 10300 | 0.1486 | - |
445
- | 4.7337 | 10400 | 0.1591 | - |
446
- | 4.7792 | 10500 | 0.1503 | - |
447
- | 4.8248 | 10600 | 0.1375 | - |
448
- | 4.8703 | 10700 | 0.141 | - |
449
- | 4.9158 | 10800 | 0.154 | - |
450
- | 4.9613 | 10900 | 0.1392 | - |
451
- | 5.0 | 10985 | - | 0.1758 |
452
 
453
- </details>
454
 
455
- ### Framework Versions
456
- - Python: 3.9.6
457
- - Sentence Transformers: 5.1.2
458
- - Transformers: 4.57.6
459
- - PyTorch: 2.8.0
460
- - Accelerate: 1.10.1
461
- - Datasets: 4.5.0
462
- - Tokenizers: 0.22.2
463
 
464
  ## Citation
465
 
466
- ### BibTeX
467
-
468
- #### Sentence Transformers
469
  ```bibtex
470
- @inproceedings{reimers-2019-sentence-bert,
471
- title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
472
- author = "Reimers, Nils and Gurevych, Iryna",
473
- booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
474
- month = "11",
475
- year = "2019",
476
- publisher = "Association for Computational Linguistics",
477
- url = "https://arxiv.org/abs/1908.10084",
478
  }
479
  ```
480
 
481
- #### MultipleNegativesRankingLoss
482
- ```bibtex
483
- @misc{henderson2017efficient,
484
- title={Efficient Natural Language Response Suggestion for Smart Reply},
485
- author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
486
- year={2017},
487
- eprint={1705.00652},
488
- archivePrefix={arXiv},
489
- primaryClass={cs.CL}
490
- }
491
- ```
492
-
493
- <!--
494
- ## Glossary
495
-
496
- *Clearly define terms in order to be accessible across audiences.*
497
- -->
498
-
499
- <!--
500
- ## Model Card Authors
501
-
502
- *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
503
- -->
504
-
505
- <!--
506
- ## Model Card Contact
507
 
508
- *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
509
- -->
 
1
  ---
2
+ language:
3
+ - zh
4
+ license: mit
5
+ library_name: sentence-transformers
6
+ pipeline_tag: sentence-similarity
7
  tags:
8
+ - sentence-transformers
9
+ - structural-isomorphism
10
+ - cross-domain
11
+ - analogy
 
 
 
12
  base_model: shibing624/text2vec-base-chinese
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
+ # structural-isomorphism/structural-v1
16
 
17
+ A sentence-transformer model fine-tuned for **structural similarity** -- recognizing that phenomena from completely different domains share the same underlying structure.
18
 
19
+ Unlike standard semantic similarity models that match by surface vocabulary, this model maps descriptions with the same structural pattern close together in embedding space, regardless of domain.
20
 
21
+ ## Model Description
 
 
 
 
 
 
 
 
22
 
23
+ - **Base model**: [shibing624/text2vec-base-chinese](https://huggingface.co/shibing624/text2vec-base-chinese) (BERT-based, 768-dim)
24
+ - **Training data**: [SIBD](https://huggingface.co/datasets/structural-isomorphism/SIBD) -- 1,214 descriptions across 84 structural types
25
+ - **Training objective**: MultipleNegativesRankingLoss (positive pairs = same structural type, different domain)
26
+ - **Epochs**: 10 | **Batch size**: 16 | **Learning rate**: 2e-5 | **Warmup**: 10%
27
 
28
+ ## Evaluation Results
 
 
29
 
30
+ | Metric | Base Model | This Model | Improvement |
31
+ |---|---|---|---|
32
+ | Silhouette Score | -0.012 | **0.847** | +0.859 |
33
+ | Retrieval@5 | 20.3% | **100.0%** | +79.7% |
34
+ | Retrieval@10 | 18.0% | **100.0%** | +82.0% |
35
+ | Intra-class Similarity | 0.643 | **0.933** | +0.290 |
36
+ | Inter-class Similarity | 0.569 | **0.174** | -0.395 |
 
37
 
38
  ## Usage
39
 
40
+ ### With sentence-transformers
 
 
41
 
 
 
 
 
 
42
  ```python
43
+ from sentence_transformers import SentenceTransformer, util
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
+ model = SentenceTransformer("structural-isomorphism/structural-v1")
 
46
 
47
+ # Encode two descriptions from different domains
48
+ emb1 = model.encode("A thermostat detects low temperature and turns on heating")
49
+ emb2 = model.encode("The pancreas detects high blood sugar and releases insulin")
50
 
51
+ similarity = util.cos_sim(emb1, emb2).item()
52
+ print(f"Structural similarity: {similarity:.3f}")
53
+ # Both are negative feedback loops -> high similarity
54
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
+ ### With the search engine
 
57
 
58
+ ```python
59
+ from structural_isomorphism import StructuralSearch
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
+ search = StructuralSearch()
62
+ results = search.query("Small input causes disproportionately large output")
63
+ for r in results[:5]:
64
+ print(f"{r['name']} ({r['domain']}) - {r['score']:.3f}")
65
+ ```
66
 
67
+ ## Intended Use
 
68
 
69
+ - Cross-domain structural similarity search
70
+ - Finding analogies and inspiration across fields
71
+ - Scientific discovery: identifying unknown structural connections
72
+ - Educational tools for teaching structural thinking
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
+ ## Limitations
75
 
76
+ - Language: Currently trained on Chinese text only
77
+ - Domain coverage: 84 structural types may not cover all possible patterns
78
+ - The model recognizes structural types present in training data; novel structural types may not be well represented
 
 
 
 
 
79
 
80
  ## Citation
81
 
 
 
 
82
  ```bibtex
83
+ @article{structural-isomorphism-2026,
84
+ title={Structural Isomorphism Search: Cross-Domain Structural Similarity Retrieval via Fine-tuned Embeddings},
85
+ author={Wan, Qihang},
86
+ journal={arXiv preprint arXiv:XXXX.XXXXX},
87
+ year={2026}
 
 
 
88
  }
89
  ```
90
 
91
+ ## License
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
+ MIT