CAUS-RAG: Algorithmic Interceptor for Mitigating Positional Bias in Technical Code Generation
ID:63 View Protection:ATTENDEE Updated Time:2026-07-22 16:09:34 Hits:33 Online

Start Time:2026-07-31 11:40(Asia/Kolkata)

Duration:15min

Session:S6 Artificial Intelligence Use Cases » S6-4Artificial Intelligence Use Cases

Video No Permission Presentation File Attachment File

Tips: Only the registered participant can access the file. Please sign in first.

Abstract
Retrieval-Augmented Generation (RAG) revolutionised the fields of Large Language Models (LLMs) and Natural Language Processing by helping to fetch the latest external knowledge while generating responses. However, standard RAG faces a critical challenge when it comes to technical code genera tion, as it depends solely on semantic similarity, which often leads to failure in retrieving the correct lexical API tokens. The “Lost in-the-Middle” phenomenon in RAG further causes the model to neglect information placed in the middle of a long query prompt. The proposed framework, CAUS-RAG (Confidence Aware Adaptive U-Shape), solves this problem by being an algorithmic interceptor that helps in achieving accurate retrieval and effective context placement. It works based on two principles. Firstly, the framework makes use of a Hybrid Confidence Scoring (HCS) mechanism that aggregates both semantic scores and lexical cues to achieve more code-oriented document retrieval. Secondly, the architecture employs a model-aware U-shaped position permutation tuned through a Position Sensitivity Index (PSI) score in order to place the retrieved chunks based on the model’s positional attention bias. Experiments conducted based on a PyTorch API benchmark across different models such as Phi-3.5 (3.8B), Mistral (7B), and Qwen-2.5 (7B) show a significant performance improvement measured in terms of Exact Match (EM). CAUS-RAG boosts the Exact Match accuracy of Qwen 2.5 from 17.3% to 86.5% and Phi-3.5 from 11.5% to 71.2%
Keywords
—Retrieval-Augmented Generation, Positional Bias, Code Generation, Large Language Models, Lost in the Middle, Hybrid Retrieval, BM25
Speaker
Mithun Martin
Student SRM Institute of Science and Technology *

Aritra Roy
Student SRM Institute of Science and Technology *

Submission Author
Mithun Martin SRM Institute of Science and Technology *
Aritra Roy SRM Institute of Science and Technology *
Grace Shalini T SRM Institute of Science and Technology *
Submit Comment
Verify Code Change Another
All Comments
Important Date
  • Conference Date

    Jul 30

    2026

    to

    Aug 01

    2026

  • Jul 28 2026

    Registration deadline

  • Jul 30 2026

    Draft paper submission deadline

Sponsored By
The United Societies of Science
Organized By
Kongunadu College of Engineering and Technology
Supported By
IEEE Section
IEEE Madras Section
Previous Conferences