"""GPT-2 SAE last-token programs, layer 7 -- features 02400 to 02499 (100 programs). One function per SAE feature. Grouped 100 to a file so the set stays browsable; the programs themselves are unchanged. """ def prog_L07F02400(input_tokens): """4 token families, 7 surface forms (train F1 of the uncapped optimum: 0.178). Fires at 139,931 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: references to organizations, events or places""" # --- end external annotation --- fire = { # , (127,479 firings) ',', ' ,', # ), (1,970 firings) '),', ' ),', # ., (650 firings) '.,', # ", (379 firings) '",', ' ",', } token = input_tokens[-1] if token not in fire: return "no match", 0 return ',-family', 1 def prog_L07F02401(input_tokens): """2 token families, 3 surface forms (train F1 of the uncapped optimum: 0.124). Fires at 96,073 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: words related to importance or significance""" # --- end external annotation --- fire = { # , (86,103 firings) ',', # ", (394 firings) '",', ' ",', } token = input_tokens[-1] if token not in fire: return "no match", 0 return ',-family', 1 def prog_L07F02402(input_tokens): """31 token families, 41 surface forms (train F1 of the uncapped optimum: 0.673). Fires at 9,928 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: references to types of oils""" # --- end external annotation --- fire = { # oil (3,673 firings) ' oil', ' Oil', 'oil', ' oils', 'Oil', 'OIL', # fat (584 firings) ' fat', ' fats', # olive (209 firings) ' olive', ' Olive', # wax (202 firings) ' wax', ' Wax', # veget (146 firings) ' vegetable', # spray (136 firings) ' spray', # sauce (116 firings) ' sauce', # venom (115 firings) ' venom', # fry (111 firings) ' fry', ' frying', # glos (82 firings) ' gloss', # poison (77 firings) ' poison', # fatty (76 firings) ' fatty', # thc (71 firings) ' THC', # oxide (65 firings) ' oxide', 'oxide', # grease (59 firings) ' grease', # acid (56 firings) ' acids', # inflamma (54 firings) ' inflammation', # petroleum (52 firings) ' petroleum', # rae (51 firings) ' Rae', # lubr (48 firings) ' lubric', # acryl (47 firings) ' acrylic', # silicone (45 firings) ' silicone', # prope (44 firings) ' prope', # towel (38 firings) ' towels', # oily (35 firings) ' oily', # shampoo (32 firings) ' shampoo', # ι (30 firings) 'ι', # resin (29 firings) ' resin', # moistur (27 firings) ' moistur', # omega (27 firings) ' omega', # coat (27 firings) ' coated', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'oil-family', 1 def prog_L07F02403(input_tokens): """44 token families, 50 surface forms (train F1 of the uncapped optimum: 0.611). Fires at 22,505 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: words related to political or social movements and changes""" # --- end external annotation --- fire = { # iza (1,933 firings) 'ization', # ation (1,484 firings) 'ation', 'ATION', # isa (831 firings) 'isation', # ifica (655 firings) 'ification', # integra (371 firings) ' integration', ' Integration', # ila (333 firings) 'ILA', 'ilation', # transforma (295 firings) ' transformation', ' Transformation', # occupa (210 firings) ' occupation', # automa (209 firings) ' automation', # ina (202 firings) 'ination', # ula (195 firings) 'ulation', # ization (192 firings) 'izations', # ica (187 firings) 'ication', # transla (182 firings) ' translation', # legal (176 firings) ' legalization', # ver (170 firings) 'version', # genera (170 firings) ' Generation', # osi (167 firings) 'osis', # libera (141 firings) ' Liberation', ' liberation', # vaccina (124 firings) ' vaccination', # visual (122 firings) ' visualization', # optim (112 firings) ' optimization', # exploita (110 firings) ' exploitation', # ign (109 firings) 'ignment', # ain (100 firings) 'ainment', # restructur (99 firings) ' restructuring', # manipula (97 firings) ' manipulation', # igra (95 firings) 'igration', # forma (94 firings) 'formation', 'FORMATION', # redevelop (88 firings) ' redevelopment', # advance (88 firings) ' advancement', # custom (83 firings) ' customization', # rifica (81 firings) 'rification', # ular (75 firings) 'ularity', # privat (73 firings) ' privatization', # global (73 firings) ' globalization', # manage (73 firings) 'management', # consolida (71 firings) ' consolidation', # annexa (67 firings) ' annexation', # empower (65 firings) ' empowerment', # enrich (59 firings) ' enrichment', # ogenesi (59 firings) 'ogenesis', # deforesta (59 firings) ' deforestation', # omic (58 firings) 'omics', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'iza-family', 1 def prog_L07F02404(input_tokens): """32 token families, 39 surface forms (train F1 of the uncapped optimum: 0.522). Fires at 14,066 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: terms related to sports franchises and their players""" # --- end external annotation --- fire = { # franchise (1,809 firings) ' franchise', ' Franchise', # reboot (315 firings) ' reboot', ' Reboot', # empire (267 firings) ' empire', # franchis (255 firings) ' franchises', # studio (241 firings) ' Studios', # legion (237 firings) ' Legion', ' legion', ' Legions', # republ (161 firings) ' republic', # mascot (133 firings) ' mascot', # dynasty (127 firings) ' dynasty', ' Dynasty', # fandom (120 firings) ' fandom', # moff (117 firings) ' Moff', # vet (108 firings) 'Veter', # incarna (102 firings) ' incarnation', # fiance (102 firings) ' fiance', # apost (101 firings) ' apost', ' Apost', # cousin (95 firings) ' Cousins', # fanbase (81 firings) ' fanbase', # bow (77 firings) 'bow', # dealership (75 firings) ' dealership', # entitle (68 firings) ' entitle', # homegrown (68 firings) ' homegrown', # hold (60 firings) ' Holdings', # custom (58 firings) ' customization', # unrestrict (58 firings) ' unrestricted', # kem (57 firings) ' Kem', # archie (53 firings) ' Archie', # lot (46 firings) 'lot', # gener (45 firings) ' generational', # patriarch (43 firings) ' patriarch', # lent (40 firings) ' Lent', # franch (40 firings) ' franch', ' Franch', # ranch (37 firings) 'ranch', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'franchise-family', 1 def prog_L07F02405(input_tokens): """1 token families, 1 surface forms (train F1 of the uncapped optimum: 0.155). Fires at 121,689 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: punctuation marks at the end of sentences""" # --- end external annotation --- fire = { # , (110,492 firings) ',', } token = input_tokens[-1] if token not in fire: return "no match", 0 return ',-family', 1 def prog_L07F02406(input_tokens): """32 token families, 51 surface forms (train F1 of the uncapped optimum: 0.651). Fires at 7,729 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: terms related to web development and coding, particularly focusing on HTML and CSS elements""" # --- end external annotation --- fire = { # ele (1,472 firings) ' elements', ' element', ' ele', ' Elements', ' Element', ' ELE', 'Element', 'element', # firefight (432 firings) ' firefighters', ' firefighter', # wheel (238 firings) ' Wheeler', 'Wheel', # tenant (207 firings) ' tenants', ' tenant', # attribut (197 firings) ' attributes', ' Attributes', 'Attributes', # ori (180 firings) 'ori', # lement (155 firings) 'lement', 'lements', # attribute (143 firings) ' attribute', 'Attribute', 'attribute', # garn (140 firings) ' Garner', # sibl (112 firings) ' siblings', # dom (105 firings) ' DOM', 'DOM', # lopez (103 firings) ' Lopez', # gallagh (82 firings) ' Gallagher', # elector (77 firings) ' electors', # essent (73 firings) ' Essential', # flan (73 firings) ' Flan', # ero (72 firings) ' erosion', # ancestor (64 firings) ' ancestor', # element (60 firings) ' elemental', ' Elemental', # harrington (51 firings) ' Harrington', # goodwin (45 firings) ' Goodwin', # component (45 firings) 'Component', ' Component', # eaton (44 firings) ' Eaton', # emblem (44 firings) ' Emblem', # sutton (41 firings) ' Sutton', # alloy (40 firings) ' alloy', ' Alloy', # hybrid (36 firings) ' Hybrid', # dimension (31 firings) ' Dimensions', # ]] (27 firings) ']]', # ik (26 firings) ' Ik', # frame (26 firings) ' Frame', # magnesium (21 firings) ' magnesium', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'ele-family', 1 def prog_L07F02407(input_tokens): """31 token families, 42 surface forms (train F1 of the uncapped optimum: 0.227). Fires at 69,350 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: phrases relating to effects or consequences""" # --- end external annotation --- fire = { # mean (1,564 firings) ' means', ' mean', ' Means', ' Mean', # mak (1,475 firings) ' makes', ' Makes', 'makes', # look (1,286 firings) ' looks', # doe (881 firings) ' does', # doesn (770 firings) ' doesn', # turn (669 firings) ' turns', # tak (523 firings) ' takes', # work (489 firings) ' works', # giv (479 firings) ' gives', # includ (465 firings) ' includes', 'Includes', # allow (458 firings) ' allows', ' Allows', # sound (386 firings) ' sounds', ' sounded', # feel (339 firings) ' feels', # provid (307 firings) ' provides', # off (293 firings) ' offers', # affect (270 firings) ' affect', ' affects', # represent (268 firings) ' represents', # requir (265 firings) ' requires', 'Requires', # tell (259 firings) ' tells', # help (250 firings) ' helps', # follow (239 firings) ' follows', # involv (230 firings) ' involves', # bring (225 firings) ' brings', # unlock (217 firings) ' unlocks', # add (210 firings) ' adds', # contain (205 firings) ' contains', # mark (195 firings) ' marks', # hurt (193 firings) ' hurt', ' hurts', # appl (178 firings) ' applies', # focus (178 firings) ' focuses', # depend (177 firings) ' depends', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'mean-family', 1 def prog_L07F02408(input_tokens): """11 token families, 14 surface forms (train F1 of the uncapped optimum: 0.081). Fires at 76,065 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: phrases related to giving or providing""" # --- end external annotation --- fire = { # him (782 firings) ' him', # them (732 firings) ' them', 'them', # us (599 firings) ' us', # children (356 firings) ' children', 'children', # student (345 firings) ' students', # fan (341 firings) ' fans', # fc (340 firings) ' FC', # everyone (286 firings) ' everyone', # user (281 firings) ' users', 'users', # custom (259 firings) ' customers', # shar (194 firings) ' Shares', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'him-family', 1 def prog_L07F02409(input_tokens): """13 token families, 41 surface forms (train F1 of the uncapped optimum: 0.095). Fires at 80,883 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: strong verbs indicating action or movement""" # --- end external annotation --- fire = { # with (2,412 firings) ' with', # form (832 firings) ' former', ' Former', ' forming', 'formed', 'former', 'forms', # ing (659 firings) 'ing', # ed (578 firings) 'ed', # born (575 firings) 'Born', ' born', 'born', ' Born', # tak (479 firings) ' taking', 'Taking', ' Taking', 'taking', ' Takes', # hav (284 firings) ' having', 'having', # mak (278 firings) ' making', # winn (233 firings) ' winning', ' winner', 'winning', 'winner', ' Winner', 'Winner', ' Winning', # suffer (220 firings) ' suffering', ' suffered', # join (211 firings) ' joining', ' joined', 'join', 'Joined', ' joins', # doing (210 firings) ' doing', 'doing', ' Doing', # forc (205 firings) ' forced', ' forcing', ' Forced', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'with-family', 1 def prog_L07F02410(input_tokens): """41 token families, 54 surface forms (train F1 of the uncapped optimum: 0.605). Fires at 14,471 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: phrases related to pedestrian infrastructure and safety""" # --- end external annotation --- fire = { # walk (962 firings) ' walking', 'walk', 'walking', # cyclist (589 firings) ' cyclists', ' cyclist', # pedestrian (586 firings) ' pedestrian', ' pedestrians', # tourist (582 firings) ' tourist', ' tourists', # sidewalk (381 firings) ' sidewalk', ' sidewalks', # bicycle (372 firings) ' bicycle', ' Bicycle', # landmark (293 firings) ' landmark', ' landmarks', # deer (198 firings) ' deer', # decrimin (172 firings) ' decriminal', # bicycl (166 firings) ' bicycl', ' bicycles', # electr (164 firings) ' electr', # vand (151 firings) ' vandal', # ped (149 firings) ' Ped', 'Ped', # wendy (137 firings) ' Wendy', # pass (136 firings) ' passers', ' passer', # pave (134 firings) ' pavement', # vandalism (120 firings) ' vandalism', # christine (116 firings) ' Christine', # bystand (114 firings) ' bystanders', ' bystand', # ging (105 firings) ' ginger', # kind (102 firings) ' kindness', # motorist (91 firings) ' motorists', # ux (88 firings) ' UX', # visual (82 firings) ' visually', # touchscreen (78 firings) ' touchscreen', # typ (76 firings) ' typ', # intersection (75 firings) ' intersections', # roadway (70 firings) ' roadway', # neon (65 firings) ' neon', # crow (59 firings) ' crow', # usabil (57 firings) ' usability', # icular (57 firings) 'icular', # signage (54 firings) ' signage', # tresp (53 firings) ' tresp', # rolley (50 firings) 'rolley', # veh (47 firings) ' veh', ' Veh', # http (45 firings) ' HTTPS', # bicy (43 firings) ' bicy', # robat (41 firings) 'robat', # landsl (38 firings) ' landsl', # tactile (38 firings) ' tactile', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'walk-family', 1 def prog_L07F02411(input_tokens): """1 token families, 5 surface forms (train F1 of the uncapped optimum: 0.461). Fires at 30,388 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: words related to making a decision not to do something""" # --- end external annotation --- fire = { # not (25,224 firings) ' not', ' Not', 'not', ' NOT', 'NOT', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'not-family', 1 def prog_L07F02412(input_tokens): """32 token families, 81 surface forms (train F1 of the uncapped optimum: 0.378). Fires at 70,769 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: references to jars and cans""" # --- end external annotation --- fire = { # box (1,946 firings) ' box', ' boxes', ' Box', ' boxed', 'boxes', # bag (1,172 firings) ' bag', ' bags', ' Bag', # pack (717 firings) ' pack', ' packs', ' Pack', 'pack', 'packs', ' Packs', 'Pack', ' PACK', # cas (704 firings) ' cases', ' cas', 'cases', ' casing', ' Cases', # file (649 firings) ' file', ' FILE', # bottle (510 firings) ' bottle', ' Bottle', # package (457 firings) ' package', # packag (453 firings) ' packages', ' packaging', ' packaged', # tank (452 firings) ' tank', ' tanks', ' tanker', # contain (437 firings) ' container', ' containers', ' Container', 'container', # sampl (416 firings) ' samples', # bottl (389 firings) ' bottles', ' bottled', # cup (384 firings) ' cup', ' cups', # barrel (383 firings) ' barrels', ' barrel', ' Barrel', # copy (381 firings) ' copy', # cop (364 firings) ' copies', # fil (330 firings) ' files', ' filings', 'files', # glas (298 firings) ' glass', # sample (296 firings) ' sample', ' Sample', 'sample', 'Sample', # bowl (290 firings) ' bowl', ' bowls', # piec (280 firings) ' pieces', # stack (267 firings) ' stack', ' stacks', ' stacked', 'stack', # batch (251 firings) ' batch', ' batches', # field (242 firings) ' fields', # pill (233 firings) ' pills', ' pill', # load (232 firings) ' loaded', 'load', 'loads', # ship (209 firings) ' shipment', ' shipments', # can (193 firings) ' cans', # pile (191 firings) ' pile', # jar (191 firings) ' jar', ' jars', 'Jar', # tin (181 firings) ' tin', ' Tin', 'tin', # ball (179 firings) ' balls', 'balls', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'box-family', 1 def prog_L07F02413(input_tokens): """1 token families, 1 surface forms (train F1 of the uncapped optimum: 0.047). Fires at 42,571 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: the word "the." """ # --- end external annotation --- fire = { # the (32,998 firings) ' the', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'the-family', 1 def prog_L07F02414(input_tokens): """5 token families, 8 surface forms (train F1 of the uncapped optimum: 0.034). Fires at 63,251 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: relevant entities (specifically instances of "its" or "the") along with descriptors that indicate membership or association""" # --- end external annotation --- fire = { # the (24,185 firings) ' the', ' THE', 'THE', # two (665 firings) ' two', ' TWO', # ] (407 firings) ']', # form (252 firings) ' former', # as (169 firings) ' As', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'the-family', 1 def prog_L07F02415(input_tokens): """15 token families, 24 surface forms (train F1 of the uncapped optimum: 0.821). Fires at 5,800 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: phrases containing the word "Trans" """ # --- end external annotation --- fire = { # tran (2,946 firings) ' Trans', ' trans', 'Trans', 'trans', ' TRANS', ' TRAN', # rawdownloadcloneembedreportprint (204 firings) 'rawdownloadcloneembedreportprint', # transform (189 firings) ' Transformers', 'Transform', 'transform', # tele (178 firings) ' Tele', 'Tele', 'tele', # transc (140 firings) ' transc', # transcript (136 firings) ' Transcript', # kind (76 firings) ' Kinder', # ran (74 firings) 'rans', # transl (73 firings) ' transl', # ο (72 firings) 'ο', # transf (60 firings) ' transf', # transm (45 firings) ' transm', # trin (32 firings) ' Trin', # transforma (24 firings) ' Transformation', # mex (21 firings) ' Mex', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'tran-family', 1 def prog_L07F02416(input_tokens): """1 token families, 1 surface forms (train F1 of the uncapped optimum: 0.195). Fires at 164,101 of 36,786,566 positions. Fires at 0.45% of positions, and token rules do not serve features this dense: median test F1 0.086 across the 37,173 features above 0.39% of positions, against 0.763 for the 76,283 below 0.016%. Read this fire set as the best available approximation, not as what the feature does.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: references to reports or studies specifically mentioning different organizations or entities""" # --- end external annotation --- fire = { # the (148,119 firings) ' the', } token = input_tokens[-1] if token not in fire: return "no match", 0 return 'the-family', 1 def prog_L07F02417(input_tokens): """47 token families, 55 surface forms (train F1 of the uncapped optimum: 0.658). Fires at 7,596 of 36,786,566 positions.""" # --- begin external annotation (ignored at runtime) --- """prev SAE description: questions or uncertainties expressed using punctuation symbols""" # --- end external annotation --- fire = { # ™ (470 firings) '™', # ? (327 firings) ' ?', # ~ (297 firings) ' ~', # ! (259 firings) ' !', # % (187 firings) ' %', # \ (176 firings) ' \\', # ?? (166 firings) '??', ' ??', # ; (154 firings) ' ;', # plasma (154 firings) ' plasma', ' Plasma', # ​ (105 firings) ' \u200b', # *** (101 firings) ' ***', # « (78 firings) ' «', # .. (74 firings) ' ..', # ^ (74 firings) ' ^', # orbit (71 firings) ' Orbit', # || (69 firings) ' ||', '||', # eclipse (67 firings) ' Eclipse', # 000 (67 firings) ' 000', # ??? (63 firings) '???', ' ???', # flux (62 firings) ' flux', # nightmare (59 firings) ' Nightmare', # 192 (58 firings) ' 192', '192', # .? (55 firings) '.?', # "" (54 firings) ' ""', '""', # vu (52 firings) ' Vu', # --- (48 firings) ' ---', # $$ (43 firings) ' $$', # .... (41 firings) ' ....', # 196 (39 firings) ' 196', # du (38 firings) ' DU', # 191 (37 firings) ' 191', '191', # [[ (37 firings) ' [[', '[[', # ° (37 firings) ' °', #