{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2601-10960","title":"Steering Language Models Before They Speak: Logit-Level Interventions","arxiv_id":"2601.10960","date":"2026-01-16","proceeding":null,"authors":["Hyeseon An","Shinwoo Park","Hyundong Jin","Yo-Sub Han"],"abstract":"Controllable generation requires language models to realize output characteristics such as reading level, politeness, and toxicity. Existing steering methods are often indirect, require access to internal activations, or depend on auxiliary trained models. We propose SWAI, a training-free inference-time method that addresses these limitations by steering directly in logit space using corpus-derived token statistics. SWAI computes z-normalized one-vs-rest log-odds scores from labeled corpora and biases high-scoring tokens only within the model's top-K candidate set, allowing control to favor target-characteristic tokens while preserving contextually plausible choices. Across readability, politeness, and toxicity control, SWAI consistently improves over prompt-based and prior logit-level baselines without modifying model parameters, accessing internal layers, or training an auxiliary model. Selectivity and lookup-table ablations show that the gains come from target-specific statistical scores rather than generic logit perturbation. These results indicate that effective steering does not require learned controllers when the logit intervention is guided by target-specific statistics under high-probability candidates.","url_abs":"https://arxiv.org/abs/2601.10960","url_pdf":"https://arxiv.org/pdf/2601.10960","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2601.10960","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.10960"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/hsannn/swai","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":10},"by_repo_kind":{"found_in_text":{"samples":10,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"5c40e119c28a1376","entry":"build_prior","repo":"hsannn/swai","repo_kind":"found_in_text","path":"build_scores.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/build_scores.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5c40e119c28a1376"}},{"code_sha256_prefix":"0486e321b48e5519","entry":"build_prior_2way","repo":"hsannn/swai","repo_kind":"found_in_text","path":"build_scores.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/build_scores.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0486e321b48e5519"}},{"code_sha256_prefix":"824dcd5664e63215","entry":"build_prompt","repo":"hsannn/swai","repo_kind":"found_in_text","path":"logit_steering.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/logit_steering.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"824dcd5664e63215"}},{"code_sha256_prefix":"da3334f3c99128db","entry":"build_score_tensor","repo":"hsannn/swai","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"da3334f3c99128db"}},{"code_sha256_prefix":"c1b0786d78cff5bb","entry":"count_tokens","repo":"hsannn/swai","repo_kind":"found_in_text","path":"build_scores.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/build_scores.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1b0786d78cff5bb"}},{"code_sha256_prefix":"62a9cce47aca6b7d","entry":"detect_dataset_type","repo":"hsannn/swai","repo_kind":"found_in_text","path":"judge_triplet.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/judge_triplet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"62a9cce47aca6b7d"}},{"code_sha256_prefix":"9af0f1fac8da0331","entry":"extract_text_for_evaluation","repo":"hsannn/swai","repo_kind":"found_in_text","path":"judge_triplet.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/judge_triplet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9af0f1fac8da0331"}},{"code_sha256_prefix":"bc284eebe9511453","entry":"load_judge_prompt","repo":"hsannn/swai","repo_kind":"found_in_text","path":"judge_triplet.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/judge_triplet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bc284eebe9511453"}},{"code_sha256_prefix":"8a4737c10a23dcc9","entry":"load_score_table_json","repo":"hsannn/swai","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a4737c10a23dcc9"}},{"code_sha256_prefix":"858489c27398ecd2","entry":"quantile_threshold","repo":"hsannn/swai","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/hsannn/swai/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"858489c27398ecd2"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}