Hang Chen, Jiaying Zhu, Wenya Wang
We lifted 26 functions out of this paper's own repositories and ran 15 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| Zodiark-ch/Future_localization | — | 15 of 26 |
| Function | Status | Where it lives |
|---|---|---|
| ComponentScore | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("318cd298d6914d45") |
| ComponentTarget | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("6024e707b8759a8b") |
| EAPComponentConfig | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("7bf66f7d8b42db5f") |
| _DirectionResult | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("b6bf36e2ed05303d") |
| _TensorActivationCache | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("790ea484360b755d") |
| _dot_grads_with_delta | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("e71b202896cc1942") |
| _filter_state_dict | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("bc44c7ae0493ffa3") |
| _math_sdp_kernel_context | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("20d950c8a4186f28") |
| _maybe_detach | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("29663f8c8bd1bbf8") |
| _normalize_state_dict | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("efe63f376cef373f") |
| _score_component_output_tensor | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("1cd9ddfa4748c7eb") |
| _score_o_proj_head_input_slice_tensor | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("6e5f29eb7e66ae33") |
| _temporary_parameter_delta | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("92bb2b8961e7c5af") |
| normalize_localization_mode | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("6dede1928b9c6a17") |
| select_token_rows | Ran | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("5ed8503aa9cab25b") |
| FutureLocalizationScorer | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("5d128c64e3e236f4") |
| PairBatch | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("2466bdd9b4ad1a38") |
| _compute_loss | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("293a8815916a599e") |
| _forward_model | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("3f97f19f12050d88") |
| _label_positions | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("56cc17cb7cc6f052") |
| _load_future_state_dict | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("74ca19fb20d75ae4") |
| _load_indexed_safetensors | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("ef6da88c5d2b10a8") |
| _load_safetensors_file | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("c04d561a0db6c734") |
| _logit_diff_loss | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("f0b3c1853c698c3e") |
| _loss_inputs | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("6d9b36163a1d6b8f") |
| ensure_src_on_path | Not yet run | Zodiark-ch/Future_localization/EAP_forComponent/future_localization.py code served (permissive licence) · get_code("7142c8b706a3c747") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Mechanistic Localization bridges mechanistic interpretability and post-training optimization by isolating critical parameters via interpretative approaches and then guiding parameter-efficient Supervised Fine-Tuning (SFT) in a "locatingthen-tuning" paradigm. However, due to the retrospective nature of mechanistic interpretability, directly interpreting pre-SFT models introduces misleading conclusions. Specifically for novel tasks, initially identified neurons differ drastically from those governing the final model, introducing biases that actively disrupt SFT. To address this, we propose a forward-looking localization framework that accurately estimates the post-SFT interpretability state using only pre-SFT parameters and the target dataset. Theoretically, we model SFT as a continuous parameter evolution, leveraging Taylor expansion to rigorously bridge the post-tuning mechanistic objective with the pre-SFT model's dynamic gradients. Practically, we design dual-granularity (neuron-and component-level) localization pipelines. Extensive experiments demonstrate that our approach not only provides superior SFT guidance but also exhibits robust performance and temporal scalability across increasing model sizes. This work transcends the fundamental limitation of traditional interpretability-its inability to identify taskcritical mechanisms before they are trained-pioneering a predictive frontier that unites mechanistic interpretability with targeted optimization. Code is available at: https://github.com/Zodiark-ch/Future_localization.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2608.24482")
get_code_for_paper("2608.24482")
have("2608.24482")
Connect an agent — have() is free.