mlsanityData to 7 Oct 2026

Aligning LLMs through Multi-perspective User Preference Ranking-based Feedback for Programming Question Answering

arXiv 2406.00037 ↗First posted 27 May 2024cs.CL cs.AIcited by 4

On the map: LLM alignment / RLHF / preference optimisation → Process reward models for reasoning

Abstract (arXiv)

Code Community Question Answering (CCQA) seeks to tackle programming-related issues, thereby boosting productivity in both software engineering and academic research. Recent advancements in Reinforcement Learning from Human Feedback (RLHF) have transformed the fine-tuning process of Large Language Models (LLMs) to produce responses that closely mimic human behavior. Leveraging LLMs with RLHF for practical CCQA applications has thus emerged as a promising area of study. Unlike standard code question-answering tasks, CCQA involves multiple possible answers, with varying user preferences for each response. Additionally, code communities often show a preference for new APIs. These challenges prevent LLMs from generating responses that cater to the diverse preferences of users in CCQA tasks. To address these issues, we propose a novel framework called Aligning LLMs through Multi-perspective User Preference Ranking-based Feedback for Programming Question Answering (ALMupQA) to create user-focused responses. Our approach starts with Multi-perspective Preference Ranking Alignment (MPRA), which synthesizes varied user preferences based on the characteristics of answers from code communities. We then introduce a Retrieval-augmented In-context Learning (RIL) module to mitigate the problem of outdated answers by retrieving responses to similar questions from a question bank. Due to the limited availability of high-quality, multi-answer CCQA datasets, we also developed a dataset named StaCCQA from real code communities. Extensive experiments demonstrated the effectiveness of the ALMupQA framework in terms of accuracy and user preference. Compared to the base model, ALMupQA showed nearly an 11% improvement in BLEU, with increases of 20% and 17.5% in BERTScore and CodeBERTScore, respectively.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Process reward models for reasoning, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 28 of its 59 references that are in the map. First posted on arXiv 27 May 2024.

Builds on

28 of 59 references.

References · 28

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  6. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  9. 2023PaLM 2 Technical Reportcited by 1,154
  10. 2023Large Language Models are not Fair Evaluatorscited by 1,050
  11. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  12. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
16 more
  1. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  2. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  3. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  4. 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 454
  5. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  6. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  7. 2023Preference Ranking Optimization for Human Alignmentcited by 283
  8. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  9. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
  10. 2020Generating Question Titles for Stack Overflow from Mined Code Snippetscited by 10
  11. 2018Toxic Code Snippets on Stack Overflowcited by 9
  12. 2023Drilling Down into the Discourse Structure with LLMs for Long Document Question Answeringcited by 8
  13. 2023SE-PQA: Personalized Community Question Answeringcited by 7
  14. 2021Multi-Relational Graph based Heterogeneous Multi-Task Learning in Community Question Answeringcited by 4
  15. 2023Evaluating and Optimizing the Effectiveness of Neural Machine Translation in Supporting Code Retrieval Models: A Study on the CAT Benchmarkcited by 2
  16. 2018Adapting Visual Question Answering Models for Enhancing Multimodal Community Q&A Platformscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 1.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback
  2. 2024Reinforcement learning for question answering in programming domain using public community scoring as a human feedback
  3. 2024Evaluating and Aligning CodeLLMs on Human Preference
  4. 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering
  5. 2025Learning to Align Human Code Preferences
  6. 2026Robustness and Reasoning Fidelity of Large Language Models in Long-Context Code Question Answering
  7. 2024A Survey on Human Preference Learning for Large Language Models
  8. 2023Knowledgeable Preference Alignment for LLMs in Domain-specific Question Answering