Mennatallah El-Assady, Kenza Amara, Rita Sevastjanova
2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.
"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.07610.json · badge: /api/ran/2505.07610.svg
Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.
| Repository | Role | Ran |
|---|---|---|
| k-amara/conceptx | canonical (classifier label) classifier basis: classifier_2025 |
2 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| evaluate_similarity | Ran ran, honoured the contract we drafted |
k-amara/conceptx/src/faithfulness.py pointer only (licence: NONE) · get_code("761e9aeb3d71d871") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, k-amara/conceptx when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| mask_tokens | Ran ran; our contract draft was wrong, not the code |
k-amara/conceptx/src/faithfulness.py pointer only (licence: NONE) · get_code("e8af2d39efba1586") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, k-amara/conceptx when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).
Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.
Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
As large language models (LLMs) become widely deployed, concerns about their safety and alignment grow. An approach to steer LLM behavior, such as mitigating biases or defending against jailbreaks, is to identify which parts of a prompt influence specific aspects of the model's output. Token-level attribution methods offer a promising solution, but still struggle in text generation, explaining the presence of each token in the output separately, rather than the underlying semantics of the entire LLM response. We introduce ConceptX, a model-agnostic, concept-level explainability method that identifies the concepts, i.e., semantically rich tokens in the prompt, and assigns them importance based on outputs' semantic similarity. Unlike current token-level methods, ConceptX also offers to preserve context integrity through in-place token replacements and supports flexible explanation goals, e.g., gender bias. ConceptX enables both auditing, by uncovering sources of bias, and steering, by modifying prompts to shift the sentiment or reduce the harmfulness of LLM responses, without requiring retraining. Across three LLMs, ConceptX outperforms token-level methods like TokenSHAP in both faithfulness and human alignment. Steering tasks boost sentiment shift by 0.252 versus 0.131 for random edits and lower attack success rates from 0.463 to 0.242, outperforming attribution and paraphrasing baselines. While prompt engineering and self-explaining methods sometimes yield safer responses, ConceptX offers a transparent and faithful alternative for improving LLM safety and alignment, demonstrating the practical value of attribution-based explainability in guiding LLM behavior 2 . * supported by an ETH AI Center Doctoral Fellowship. 2 The code is available at https://github.com/k-amara/ConceptX Preprint. Under review. To overcome these challenges, we propose ConceptX, a family of concept-level, attribution-based explainability methods. Built upon a coalition-based Shapley framework, ConceptX addresses the three current limitations. First, instead of optimizing for token-level reproduction, it uses a semantic similarity objective, ensuring that concept attributions reflect changes in meaning rather than sticking to the form of the output. Second, it focuses on input concepts, i.e., semantically rich content words from ConceptNet [23], better suited for concept-aligned LLMs and yielding more interpretable, actionable explanations. Third, ConceptX evaluates input concepts in context while preserving the sentence's grammatical and semantic structure during attribution. It does so by introducing two alternative concept replacement strategies alongside traditional removal. Thanks to its similaritybased optimization, ConceptX can generate aspect-specific explanations by identifying what input concepts drive a particular semantic dimension of the output, beyond simply reproducing the original response. This allows users to audit and address the causes of undesired model behaviors. With this capability, ConceptX becomes a powerful tool for targeted prompt-level interventions: by detecting influential input concepts, users can steer LLM outputs without requiring retraining or fine-tuning. This makes ConceptX a lightweight yet effective approach for advancing both explainability and alignment in LLMs. Our model-based evaluation on the Alpaca dataset [24] shows that ConceptX provides more faithful explanations than prior attribution methods like TokenSHAP [19]. In addition, we show that ConceptX can be used for both auditing and steering the text generation process. In particular, the humanbased evaluation of our designed GenderBias dataset shows ConceptX's effectiveness in identifying semantically meaningful drivers of biased outputs. Results are consistent across three LLMs and suggest that ConceptX can be used for auditing LLMs by generating concept-level attributions and optimizing them for similarity to target aspects (e.g., bias or harm). Beyond explanation, ConceptX attributions can also guide prompt-level interventions by identifying which input concepts to modify for steering LLM outputs. We demonstrate this in two use cases: sentiment polarization, where ConceptX more effectively shifts sentiment than TokenSHAP, and jailbreak defense, where it reduces attack success and response harmfulness better than attribution and paraphrasing baselines [19,25]. While generative and prompt-based methods remain stronger in harm mitigation, they also come with the computational and annotation overhead of fine-tuning and prompt engineering. In contrast, ConceptX offers a lightweight, interpretable, and actionable alternative for guiding LLM behavior. Our contributions can be summarized as follows. • We introduce ConceptX, a family of concept-level attribution methods that addresses key challenges in text generation explainable AI (XAI) by focusing on semantics and enabling aspect-targeted explanations. • We demonstrate that ConceptX generates more faithful and human-aligned explanations when auditing LLM outputs compared to current model-agnostic attribution methods. • We propose a prompt-level steering method using ConceptX to edit aspect-relevant concepts, showing superior performance in mitigating sentiment and harmfulness in two practical use cases. By connecting explainability and controllability through aspect-specific concept-level attributions, ConceptX empowers users to revise prompts effectively. Its applications in bias, sentiment, and harmful content highlight its potential for aligning LLMs with human values and promoting safer AI.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2505.07610")
get_code_for_paper("2505.07610")
have("2505.07610")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2505.07610.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2505.07610)
Connect an agent — have() is free.