We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Language models, while capable of generating remarkably coherent and seemingly accurate text, can occasionally produce undesirable content, including harmful or toxic outputs. In this paper, we present a new two-stage approach to detect and mitigate undesirable content generations by rectifying activations. First, we train an ensemble of layerwise classifiers to detect undesirable content using activations by minimizing a smooth surrogate of the risk-aware score. Then, for detected undesirable contents, we propose layerwise distributional steering policies that transform the attention heads. These policies are computed through principled semidefinite programming, which aims to minimally perturb the attention distribution while probabilistically guaranteeing the effectiveness of the editions. Empirical evaluations across multiple language models and datasets show that our method outperforms baselines in reducing the generation of undesirable output.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2501.15758")
get_code_for_paper("2501.15758")
have("2501.15758")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2501.15758.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2501.15758)
Connect an agent — have() is free.