Research map / Large language models / Language, safety and interpretability
Unveiling Sentiment Representations in Code-LLMs
Yongyi Ji, Fuxiang Chen, Jaegul Choo, Seung-won Hwang, Lu Liu
University of Leicester · Korea Advanced Institute of Science and Technology · Seoul National University · University of Exeter
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply negative sentiment steering | Code-LLMs · HumanEval, MBPP, LiveCodeBench and + variants | Pass@k | Hurt |
| apply positive sentiment steering | Code-LLMs · code generation benchmarks | Pass@k | No clear effect |
| apply sentiment steering | Code-LLMs · CodeXGLUE code summarization | BLEU-4, ROUGE-L, METEOR | No clear effect |
| use orthogonal random vectors instead of sentiment directions (ablation) | steering · PANAS | PA/NA change: within +-2 points | No clear effect |
| apply negative steering | LLMs · PANAS | PA and NA: e.g. DeepSeek-Coder V2 PA 19 (down 21) | Improved |
| apply positive steering | LLMs · PANAS | PA and NA: modest PA increases | Mixed |
| increase steering strength alpha (ablation) | negative steering · code generation | accuracy | Hurt |
| apply steering | LLMs · perplexity | perplexity | No clear effect |
| shuffle labels in probe training (ablation) | sentiment probes · Senti4SD and SST-2 | F1: 0.36-0.38 (Senti4SD), 0.68 (SST-2) | Hurt |
Open problems this paper states
- “Experiments are limited to open-source models since closed-source models do not expose hidden representations.” → The method needs internal activations, so it works only on open-weight models. (an open problem in task vectors and steering)
Open problems in task vectors and steering
Does steering and task-vector localization found on small open models carry over to larger models, other languages and non-linear representations?
- Tested on a few open models of about 7B to 9B, so larger and other models are untested. · 37 papers state it
- Evidence comes from English text only. · 16 papers state it
- Steering assumes linear directions and tests only simple additive interventions. · 13 papers state it
Closest papers by meaning
- Latent Space Chain-of-Embedding Enables Output-free LLM Self-Evaluation (ICLR 2025 · similarity 0.85)
- Emergent Response Planning in LLMs (ICML 2025 · similarity 0.84)
- The Grounding Gap: How LLMs Anchor the Meaning of Abstract Concepts Differently from Humans (NeurIPS 2026 · similarity 0.84)
- The Good, The Bad, and Why: Unveiling Emotions in Generative AI (ICML 2024 · similarity 0.84)
- Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes (ICML 2025 · similarity 0.84)
- Less is More: Local Intrinsic Dimensions of Contextual Language Models (NeurIPS 2025 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.