NeRF-inspired technique for learning relational dynamics of language. Not what words mean, but how they behave together — rhythm, pacing, punctuation patterns, style transitions. v1: positional field over text (baseline, memorises) v2: masked feature prediction (relational, actually works) Trained on Wodehouse "My Man Jeeves" (public domain, Gutenberg). All 11 style features are highly relational — the field learns that Wodehouse's style is a tightly coupled system. Key finding: style interpolation between narrative and dialogue produces sensible predictions for unmeasured features, suggesting the continuous field captures real structural patterns. Co-Authored-By: Virgil <virgil@lethean.io>
162 lines
No EOL
3.8 KiB
JSON
162 lines
No EOL
3.8 KiB
JSON
{
|
|
"feature_names": [
|
|
"avg_word_length",
|
|
"avg_sentence_length",
|
|
"sentence_length_variance",
|
|
"dialogue_ratio",
|
|
"vocabulary_richness",
|
|
"dash_density",
|
|
"exclamation_density",
|
|
"question_density",
|
|
"short_sentence_ratio",
|
|
"aside_density",
|
|
"avg_punct_per_sentence"
|
|
],
|
|
"influence_matrix": [
|
|
[
|
|
0.0,
|
|
-0.03247326612472534,
|
|
-0.0239107608795166,
|
|
-0.00048324093222618103,
|
|
0.1107892394065857,
|
|
0.015222892165184021,
|
|
-0.024353697896003723,
|
|
0.02327282726764679,
|
|
0.055540263652801514,
|
|
0.04952073097229004,
|
|
-0.018031805753707886
|
|
],
|
|
[
|
|
-0.11262395977973938,
|
|
0.0,
|
|
0.1966363489627838,
|
|
0.0003904178738594055,
|
|
-0.02297872304916382,
|
|
-0.068694107234478,
|
|
-0.12937799841165543,
|
|
-0.19205902516841888,
|
|
-0.29318100214004517,
|
|
-0.09364050626754761,
|
|
0.21115505695343018
|
|
],
|
|
[
|
|
0.005609989166259766,
|
|
0.13626961410045624,
|
|
0.0,
|
|
-0.0007154941558837891,
|
|
-0.02271491289138794,
|
|
0.005668185651302338,
|
|
-0.0020959973335266113,
|
|
-0.01791289448738098,
|
|
0.04299241304397583,
|
|
0.03149789571762085,
|
|
0.153947114944458
|
|
],
|
|
[
|
|
-0.01625087857246399,
|
|
0.012996375560760498,
|
|
0.004404813051223755,
|
|
0.0,
|
|
-0.004828751087188721,
|
|
-0.010406054556369781,
|
|
0.012377187609672546,
|
|
-0.007560417056083679,
|
|
0.017317771911621094,
|
|
-0.006858497858047485,
|
|
0.013844549655914307
|
|
],
|
|
[
|
|
0.05449041724205017,
|
|
-0.002728700637817383,
|
|
0.03543153405189514,
|
|
-0.0007495768368244171,
|
|
0.0,
|
|
0.02357766404747963,
|
|
-0.06922292709350586,
|
|
-0.01401202380657196,
|
|
0.03409099578857422,
|
|
-0.022808074951171875,
|
|
-0.06983467936515808
|
|
],
|
|
[
|
|
0.05502724647521973,
|
|
-0.028156444430351257,
|
|
0.016653388738632202,
|
|
-0.0004658550024032593,
|
|
0.008968591690063477,
|
|
0.0,
|
|
0.07332807779312134,
|
|
0.004690051078796387,
|
|
0.004198431968688965,
|
|
0.1471288800239563,
|
|
0.1343848705291748
|
|
],
|
|
[
|
|
-0.008408337831497192,
|
|
-0.03403817117214203,
|
|
-0.03511646389961243,
|
|
0.0002146884799003601,
|
|
0.01336967945098877,
|
|
0.012008734047412872,
|
|
0.0,
|
|
-0.038716867566108704,
|
|
0.01683211326599121,
|
|
0.015300273895263672,
|
|
0.038202375173568726
|
|
],
|
|
[
|
|
-0.04866918921470642,
|
|
-0.09030131995677948,
|
|
-0.08065217733383179,
|
|
0.0006130747497081757,
|
|
-0.04372537136077881,
|
|
0.035463668406009674,
|
|
0.020850971341133118,
|
|
0.0,
|
|
0.06807422637939453,
|
|
0.04871469736099243,
|
|
0.015091657638549805
|
|
],
|
|
[
|
|
0.07264012098312378,
|
|
-0.17126457393169403,
|
|
0.007805615663528442,
|
|
0.0005212798714637756,
|
|
-0.07545053958892822,
|
|
-0.011027880012989044,
|
|
0.16361884027719498,
|
|
0.1303078681230545,
|
|
0.0,
|
|
0.08242395520210266,
|
|
-0.042179644107818604
|
|
],
|
|
[
|
|
0.05252787470817566,
|
|
-0.06419773399829865,
|
|
0.006353020668029785,
|
|
-0.0005619712173938751,
|
|
-0.03329026699066162,
|
|
0.04053857922554016,
|
|
0.05099382996559143,
|
|
0.0370599627494812,
|
|
0.05590474605560303,
|
|
0.0,
|
|
0.22894394397735596
|
|
],
|
|
[
|
|
-0.011781513690948486,
|
|
0.0985381007194519,
|
|
0.09538811445236206,
|
|
-0.00027120113372802734,
|
|
-0.0469667911529541,
|
|
0.04663299024105072,
|
|
0.04154162108898163,
|
|
0.0520768016576767,
|
|
-0.12925076484680176,
|
|
0.32439711689949036,
|
|
0.0
|
|
]
|
|
],
|
|
"description": "WoRF v2: inter-feature influence matrix from masked prediction",
|
|
"interpretation": "influence_matrix[i][j] = when feature i goes high, how much does the predicted value of feature j change"
|
|
} |