{"id":"https://openalex.org/W7223199800","doi":"https://doi.org/10.21203/rs.3.rs-11491535/v1","title":"Transformers as Generic Deep Neural Networks: Exact Compilation, the Cost of Removing Activation\u2013Activation Products, and Multi-Agent Attention Clustering","display_name":"Transformers as Generic Deep Neural Networks: Exact Compilation, the Cost of Removing Activation\u2013Activation Products, and Multi-Agent Attention Clustering","alternate_titles":[],"publication_year":2026,"publication_date":"2026-11-17","ids":{"openalex":"https://openalex.org/W7223199800","doi":"https://doi.org/10.21203/rs.3.rs-11491535/v1","arxiv":"https://arxiv.org/abs/2610.28958"},"language":"en","primary_location":{"id":"doi:10.21203/rs.3.rs-11491535/v1","doi":"https://doi.org/10.21203/rs.3.rs-11491535/v1","is_oa":true,"landing_page_url":"https://doi.org/10.21203/rs.3.rs-11491535/v1","pdf_url":"https://www.researchsquare.com/article/rs-11491535/latest.pdf","source":{"id":"https://openalex.org/S4306525896","display_name":"Research Square","issn_l":null,"issn":null,"is_oa":false,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":null,"host_organization_name":null,"host_organization_lineage":[],"host_organization_lineage_names":[],"type":"repository"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":"Research Square","raw_type":"posted-content"},"parent_works":[],"lineage":["https://openalex.org/W7223199800"],"child_works_count":0,"type":"preprint","is_traditional":true,"indexed_in":["arxiv","crossref","datacite"],"open_access":{"is_oa":true,"oa_status":"green","oa_url":"https://www.researchsquare.com/article/rs-11491535/latest.pdf","any_repository_has_fulltext":true},"authorships":[{"author_position":"first","author":{"id":"https://openalex.org/A5052314911","display_name":"Sergey I. Salishev","orcid":"https://orcid.org/0000-0003-1099-1912","observed_orcids":["https://orcid.org/0000-0003-1099-1912"]},"institutions":[{"id":"https://openalex.org/I172901346","display_name":"St Petersburg University","ror":"https://ror.org/023znxa73","country_code":"RU","type":"education","lineage":["https://openalex.org/I172901346"]}],"countries":["RU"],"is_corresponding":true,"contributor_roles":[],"raw_author_name":"Sergey Salishev","raw_affiliation_strings":["St Petersburg University"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"St Petersburg University","institution_ids":["https://openalex.org/I172901346"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5159255845","display_name":"Zeev Volkovich","orcid":null,"observed_orcids":[]},"institutions":[{"id":"https://openalex.org/I231622532","display_name":"Braude College of Engineering Karmiel","ror":"https://ror.org/004af2v94","country_code":"IL","type":"education","lineage":["https://openalex.org/I231622532"]}],"countries":["IL"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Zeev Volkovich","raw_affiliation_strings":["Braude College of Engineering Karmiel"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"Braude College of Engineering Karmiel","institution_ids":["https://openalex.org/I231622532"]}]},{"author_position":"last","author":{"id":"https://openalex.org/A5056320794","display_name":"Oleg Nikolaevich Granichin","orcid":"https://orcid.org/0000-0002-3631-7347","observed_orcids":["https://orcid.org/0000-0002-3631-7347"]},"institutions":[{"id":"https://openalex.org/I172901346","display_name":"St Petersburg University","ror":"https://ror.org/023znxa73","country_code":"RU","type":"education","lineage":["https://openalex.org/I172901346"]}],"countries":["RU"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Oleg Granichin","raw_affiliation_strings":["St Petersburg University"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"St Petersburg University","institution_ids":["https://openalex.org/I172901346"]}]}],"institutions":[],"countries_distinct_count":2,"institutions_distinct_count":2,"corresponding_author_ids":["https://openalex.org/A5052314911"],"corresponding_institution_ids":["https://openalex.org/I172901346"],"apc_list":null,"apc_paid":null,"fwci":null,"has_fulltext":true,"cited_by_count":0,"reviewed_by_count":0,"citation_normalized_percentile":null,"cited_by_percentile_year":null,"biblio":{"volume":null,"issue":null,"first_page":null,"last_page":null},"is_retracted":false,"is_pulled":false,"is_paratext":false,"is_xpac":false,"primary_topic":{"id":"https://openalex.org/T10036","display_name":"Advanced Neural Network Applications","score":0.9375,"subfield":{"id":"https://openalex.org/subfields/1707","display_name":"Computer Vision and Pattern Recognition"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},"topics":[{"id":"https://openalex.org/T10036","display_name":"Advanced Neural Network Applications","score":0.9375,"subfield":{"id":"https://openalex.org/subfields/1707","display_name":"Computer Vision and Pattern Recognition"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T10054","display_name":"Parallel Computing and Optimization Techniques","score":0.015699999406933784,"subfield":{"id":"https://openalex.org/subfields/1708","display_name":"Hardware and Architecture"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T10028","display_name":"Topic Modeling","score":0.011800000444054604,"subfield":{"id":"https://openalex.org/subfields/1702","display_name":"Artificial Intelligence"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}}],"keywords":[{"id":"https://openalex.org/keywords/transformer","display_name":"transformer models","score":0.5440000295639038},{"id":"https://openalex.org/keywords/neural-processing-units","display_name":"neural processing units","score":0.5569999814033508},{"id":"https://openalex.org/keywords/post-training-quantization","display_name":"post-training quantization","score":0.8349999785423279},{"id":"https://openalex.org/keywords/gelu","display_name":"GELU","score":0.5659999847412109},{"id":"https://openalex.org/keywords/layer-normalization","display_name":"layer normalization","score":0.6669999957084656},{"id":"https://openalex.org/keywords/mamba","display_name":"Mamba","score":0.3930000066757202},{"id":"https://openalex.org/keywords/deit","display_name":"DeiT","score":0.7160000205039978},{"id":"https://openalex.org/keywords/pythia","display_name":"Pythia","score":0.9850000143051147}],"concepts":[{"id":"https://openalex.org/C81388566","wikidata":"https://www.wikidata.org/wiki/Q526668","display_name":"Sigmoid function","level":3,"score":0.8378999829292297},{"id":"https://openalex.org/C50644808","wikidata":"https://www.wikidata.org/wiki/Q192776","display_name":"Artificial neural network","level":2,"score":0.6837000250816345},{"id":"https://openalex.org/C28855332","wikidata":"https://www.wikidata.org/wiki/Q198099","display_name":"Quantization (signal processing)","level":2,"score":0.6446999907493591},{"id":"https://openalex.org/C92757383","wikidata":"https://www.wikidata.org/wiki/Q382497","display_name":"Affine transformation","level":2,"score":0.5895000100135803},{"id":"https://openalex.org/C45374587","wikidata":"https://www.wikidata.org/wiki/Q12525525","display_name":"Computation","level":2,"score":0.57669997215271},{"id":"https://openalex.org/C207467116","wikidata":"https://www.wikidata.org/wiki/Q4385666","display_name":"Inverse","level":2,"score":0.5},{"id":"https://openalex.org/C66322947","wikidata":"https://www.wikidata.org/wiki/Q11658","display_name":"Transformer","level":3,"score":0.4977000057697296},{"id":"https://openalex.org/C11413529","wikidata":"https://www.wikidata.org/wiki/Q8366","display_name":"Algorithm","level":1,"score":0.48840001225471497},{"id":"https://openalex.org/C41008148","wikidata":"https://www.wikidata.org/wiki/Q21198","display_name":"Computer science","level":0,"score":0.4796000123023987},{"id":"https://openalex.org/C146599234","wikidata":"https://www.wikidata.org/wiki/Q511093","display_name":"Centroid","level":2,"score":0.43950000405311584},{"id":"https://openalex.org/C73555534","wikidata":"https://www.wikidata.org/wiki/Q622825","display_name":"Cluster analysis","level":2,"score":0.42750000953674316},{"id":"https://openalex.org/C33923547","wikidata":"https://www.wikidata.org/wiki/Q395","display_name":"Mathematics","level":0,"score":0.42010000348091125},{"id":"https://openalex.org/C2984842247","wikidata":"https://www.wikidata.org/wiki/Q197536","display_name":"Deep neural networks","level":3,"score":0.383899986743927},{"id":"https://openalex.org/C158622935","wikidata":"https://www.wikidata.org/wiki/Q660848","display_name":"Nonlinear system","level":2,"score":0.37470000982284546},{"id":"https://openalex.org/C34736171","wikidata":"https://www.wikidata.org/wiki/Q918333","display_name":"Preprocessor","level":2,"score":0.3368000090122223},{"id":"https://openalex.org/C154945302","wikidata":"https://www.wikidata.org/wiki/Q11660","display_name":"Artificial intelligence","level":1,"score":0.3296999931335449},{"id":"https://openalex.org/C2777904410","wikidata":"https://www.wikidata.org/wiki/Q7397","display_name":"Software","level":2,"score":0.296999990940094},{"id":"https://openalex.org/C155032097","wikidata":"https://www.wikidata.org/wiki/Q798503","display_name":"Backpropagation","level":3,"score":0.2930999994277954},{"id":"https://openalex.org/C153180895","wikidata":"https://www.wikidata.org/wiki/Q7148389","display_name":"Pattern recognition (psychology)","level":2,"score":0.2791000008583069},{"id":"https://openalex.org/C135252773","wikidata":"https://www.wikidata.org/wiki/Q1567213","display_name":"Inverse problem","level":2,"score":0.2660999894142151},{"id":"https://openalex.org/C184720557","wikidata":"https://www.wikidata.org/wiki/Q7825049","display_name":"Topology (electrical circuits)","level":2,"score":0.2590999901294708},{"id":"https://openalex.org/C94375191","wikidata":"https://www.wikidata.org/wiki/Q11205","display_name":"Arithmetic","level":1,"score":0.25780001282691956},{"id":"https://openalex.org/C53533937","wikidata":"https://www.wikidata.org/wiki/Q185020","display_name":"Histogram","level":3,"score":0.25440001487731934},{"id":"https://openalex.org/C139945424","wikidata":"https://www.wikidata.org/wiki/Q1940696","display_name":"Mean squared error","level":2,"score":0.2531000077724457}],"mesh":[],"locations_count":3,"locations":[{"id":"doi:10.21203/rs.3.rs-11491535/v1","doi":"https://doi.org/10.21203/rs.3.rs-11491535/v1","is_oa":true,"landing_page_url":"https://doi.org/10.21203/rs.3.rs-11491535/v1","pdf_url":"https://www.researchsquare.com/article/rs-11491535/latest.pdf","source":{"id":"https://openalex.org/S4306525896","display_name":"Research Square","issn_l":null,"issn":null,"is_oa":false,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":null,"host_organization_name":null,"host_organization_lineage":[],"host_organization_lineage_names":[],"type":"repository"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":"Research Square","raw_type":"posted-content"},{"id":"pmh:oai:arXiv.org:2610.28958","doi":null,"is_oa":true,"landing_page_url":"https://arxiv.org/abs/2610.28958","pdf_url":"https://arxiv.org/pdf/2610.28958","source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":"cc-by-sa","license_id":"https://openalex.org/licenses/cc-by-sa","version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"text"},{"id":"doi:10.48550/arxiv.2610.28958","doi":"https://doi.org/10.48550/arxiv.2610.28958","is_oa":true,"landing_page_url":"https://doi.org/10.48550/arxiv.2610.28958","pdf_url":null,"source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":"cc-by-sa","license_id":"https://openalex.org/licenses/cc-by-sa","version":null,"is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"Preprint"}],"best_oa_location":{"id":"doi:10.21203/rs.3.rs-11491535/v1","doi":"https://doi.org/10.21203/rs.3.rs-11491535/v1","is_oa":true,"landing_page_url":"https://doi.org/10.21203/rs.3.rs-11491535/v1","pdf_url":"https://www.researchsquare.com/article/rs-11491535/latest.pdf","source":{"id":"https://openalex.org/S4306525896","display_name":"Research Square","issn_l":null,"issn":null,"is_oa":false,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":null,"host_organization_name":null,"host_organization_lineage":[],"host_organization_lineage_names":[],"type":"repository"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":"Research Square","raw_type":"posted-content"},"sustainable_development_goals":[],"study_designs":[],"awards":[],"funders":[{"id":"https://openalex.org/F4320324632","display_name":"Ministero dello Sviluppo Economico","ror":"https://ror.org/011z3ff80"}],"has_content":{"grobid_xml":true,"pdf":true},"content_urls":{"pdf":"https://content.openalex.org/works/W7223199800.pdf","grobid_xml":"https://content.openalex.org/works/W7223199800.grobid-xml"},"referenced_works_count":49,"referenced_works":["https://openalex.org/W1561337879","https://openalex.org/W1821462560","https://openalex.org/W1972501001","https://openalex.org/W1977295328","https://openalex.org/W1977662557","https://openalex.org/W1993929164","https://openalex.org/W2006681603","https://openalex.org/W2035476608","https://openalex.org/W2047920195","https://openalex.org/W2103496339","https://openalex.org/W2108598243","https://openalex.org/W2112164016","https://openalex.org/W2156450311","https://openalex.org/W2158581396","https://openalex.org/W2528305538","https://openalex.org/W2741137940","https://openalex.org/W2752782242","https://openalex.org/W2777406049","https://openalex.org/W2798341898","https://openalex.org/W2899663614","https://openalex.org/W2944779197","https://openalex.org/W2970903692","https://openalex.org/W3006439205","https://openalex.org/W3037132819","https://openalex.org/W3118568258","https://openalex.org/W3159727696","https://openalex.org/W3168244670","https://openalex.org/W3169537799","https://openalex.org/W3170437634","https://openalex.org/W4281806276","https://openalex.org/W4285601701","https://openalex.org/W4293025109","https://openalex.org/W4387559178","https://openalex.org/W4390873673","https://openalex.org/W4395073431","https://openalex.org/W4401568649","https://openalex.org/W4402159576","https://openalex.org/W4402263660","https://openalex.org/W4402716122","https://openalex.org/W4404314891","https://openalex.org/W4406141849","https://openalex.org/W4407196790","https://openalex.org/W4411881822","https://openalex.org/W4412944640","https://openalex.org/W4413145332","https://openalex.org/W4413146346","https://openalex.org/W7071554757","https://openalex.org/W7133188976","https://openalex.org/W7133193293"],"related_works":["https://openalex.org/W7133267101","https://openalex.org/W7117626072","https://openalex.org/W4285236966","https://openalex.org/W4391871302","https://openalex.org/W4220865834","https://openalex.org/W4393967974","https://openalex.org/W4393157624","https://openalex.org/W4416686036","https://openalex.org/W3173222967","https://openalex.org/W4387356194"],"abstract_inverted_index":{"Transformers":[0],"are":[1],"deployed":[2],"as":[3,193],"a":[4,40,46],"special":[5],"model":[6],"class.":[7],"Neural":[8],"processing":[9],"units":[10],"(NPU)":[11],"add":[12],"dedicated":[13],"operators":[14],"for":[15,86,199],"attention":[16,115,135],"and":[17,19,39,57,61,109,168,183],"normalization,":[18],"quantization":[20,181],"relies":[21],"on":[22,101,196,201],"Transformer-specific":[23],"algorithms.":[24],"We":[25],"show":[26],"the":[27,58,107,134,150,154,170,184],"computation":[28],"does":[29],"not":[30],"force":[31],"this.":[32],"Every":[33],"Transformer":[34],"block,":[35],"with":[36,106,116,176,191],"attention,":[37],"LayerNorm":[38],"GELU":[41,66],"MLP,":[42],"compiles":[43],"exactly":[44],"into":[45],"generic":[47],"deep":[48],"neural":[49],"network":[50],"built":[51],"from":[52,159],"fixed":[53],"affine":[54],"maps,":[55],"routing":[56],"square,":[59],"sigmoid":[60,69,108],"inverse":[62,110],"square":[63,111],"root,":[64],"plus":[65],"or":[67,124,145],"its":[68,97],"approximation.":[70],"Without":[71],"activation--activation":[72],"products,":[73],"every":[74,102],"transform-wise":[75],"compilation":[76],"adds":[77],"at":[78],"least":[79],"$N^2$":[80,160],"scalar":[81],"nonlinear":[82],"evaluations":[83],"per":[84,163],"head":[85],"dense":[87],"scores.":[88],"Keeping":[89],"that":[90,122],"one":[91],"operation":[92],"type":[93],"removes":[94],"this":[95],"cost;":[96],"elementwise":[98],"form,":[99],"present":[100],"surveyed":[103],"NPU,":[104],"suffices":[105],"root.":[112],"For":[113],"top-$k$":[114],"exchangeable":[117],"tail":[118,126,138,189],"scores,":[119],"we":[120],"prove":[121],"exact":[123,185],"conditional-mean":[125],"mass":[127],"gives":[128],"an":[129],"unbiased,":[130],"minimum-mean-square-error":[131],"estimate":[132,187],"of":[133,156],"distribution,":[136],"while":[137],"drop":[139],"is":[140],"conditionally":[141],"biased.":[142],"When":[143],"queries":[144],"agents":[146],"cluster,":[147],"centroids":[148],"choose":[149],"keys":[151,195],"first,":[152],"reducing":[153],"number":[155],"computed":[157],"scores":[158],"to":[161],"$Nk$":[162],"head.":[164],"On":[165],"DeiT-Tiny,":[166],"MambaIRv2-Light":[167],"Pythia-70M":[169],"compiled":[171],"models":[172],"match":[173],"their":[174],"references":[175],"all":[177],"keys,":[178],"standard":[179],"post-training":[180],"applies,":[182],"tail-mass":[186],"beats":[188],"dropping":[190],"half":[192],"many":[194],"DeiT-Tiny":[197],"and,":[198],"$k\\le8$,":[200],"Pythia-70M.":[202]},"cited_by_api_url":"https://api.openalex.org/works?filter=cites:W7223199800","counts_by_year":[],"updated_date":"2026-11-22T12:46:00.618207","created_date":"2026-10-23T00:00:00"}
