[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-83792-en":3,"doc-seo-83792-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},83792,4398048950312,"Violet","https://ap-avatar.wpscdn.com/avatar/400002538284de19e3c?_k=1778320343897328908",8,"Research & Report","LBR: Towards Mitigating Length Bias in Large Language Models for Recommendation","Large language models (LLMs) increasingly power recommender systems by reframing recommendation as token-level generation, yet a pervasive issue limits their effectiveness: Length Bias. Longer textual item descriptions can dominate input-side attention mass in user modeling, while decoding with summed autoregressive log-likelihood inherently penalizes long outputs. Conventional length normalization may worsen performance. LBR (Length Bias Reduction) provides a lightweight, model-agnostic solution via attention calibration and information-theoretic length normalization, improving accuracy and fairness on multiple Amazon datasets and LLM recommenders.","LBR: Towards Mitigating Length Bias in Large Language Models  \nfor Recommendation  \narXiv :2607 .04270v 1 [ cs .IR] 5 Jul 2026  \nHongchen Li†‡ [void_jack@zju.edu.cn](void_jack@zju.edu.cn)[ ](void_jack@zju.edu.cn)Zhejiang University Hangzhou, Zhejiang, China  \nWeiqin Yang†‡ [tinysnow@zju.edu.cn](tinysnow@zju.edu.cn)[ ](tinysnow@zju.edu.cn)Zhejiang University Hangzhou, Zhejiang, China  \nBohao Wang†‡ [bohao.wang@zju.edu.cn](bohao.wang@zju.edu.cn)[ ](bohao.wang@zju.edu.cn)Zhejiang University Hangzhou, Zhejiang, China  \nHang Pan  \n[hungpaan@mail.ustc.edu.cn](hungpaan@mail.ustc.edu.cn)[ ](hungpaan@mail.ustc.edu.cn)University of Science and Technology of China Hefei, Anhui, China  \nJingbang Chen  \n[chenjb@cuhk.edu.cn](chenjb@cuhk.edu.cn)[ ](chenjb@cuhk.edu.cn)The Chinese University of Hong Kong Hong Kong, China  \nBingde Hu  \n[tonyhu@zju.edu.cn](tonyhu@zju.edu.cn)[ ](tonyhu@zju.edu.cn)Bangsun Technology Hangzhou, China  \nCan Wang†‡ [wcan@zju.edu.cn](wcan@zju.edu.cn)[ ](wcan@zju.edu.cn)Zhejiang University Hangzhou, Zhejiang, China  \nJiawei Chen∗†‡ [sleepyhunt@zju.edu.cn](sleepyhunt@zju.edu.cn)[ ](sleepyhunt@zju.edu.cn)Zhejiang University Hangzhou, Zhejiang, China  \nAbstract  \nLarge language models (LLMs) have recently emerged as powerful backbones for recommender systems by reformulating recommendation as a token-level generation task. Despite their promise, we identify a pervasive yet underexplored issue: Length Bias. Because items are represented by textual descriptions of varying lengths, LLM-based recommenders can be systematically biased in two ways. On the input side, longer item descriptions occupy more tokens in the context and thus receive disproportionately large aggregate attention mass during user preference modeling. On the output side, decoding based on summed autoregressive log-likelihood score inherently disfavors long items. Worse still, conventional length normalization can introduce an additional bias and even degrade recommendation performance.  \nTo address this problem, we propose LBR (Length Bias Reduction), a lightweight and model-agnostic framework for mitigating length bias in LLM-based recommendation. LBR mitigates input-side bias via Length-Aware Attention Calibration, which incorporates a lengthdependent offset into attention logits to neutralize attention skew. For the output side, LBR introduces Effective Information Length Normalization, replacing naive token count with an informationtheoretic length surrogate derived from the branching structure of  \n∗ Corresponding author.  \n†State Key Laboratory of Blockchain and Data Security, Zhejiang University.‡College of Computer Science and Technology, Zhejiang University.  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission [and/or a fee. Request permissions from permissions@acm.org](and/or a fee. Request permissions from permissions@acm.org).  \nPreprint, Hangzhou, China  \n© 2026 Copyright held by the owner/author(s) . Publication rights licensed to ACM. ACM ISBN XXX-X-XXXX-XXXX-X/XXXX/XX [https://doi.org/XXXXXXX.XXXXXXX](https://doi.org/XXXXXXX.XXXXXXX)  \nthe prefix tree. Extensive experiments on three real-world Amazon datasets and two representative LLM-based recommenders demonstrate that LBR substantially alleviates length bias while consistently improving recommendation accuracy and fairness, with negligible additional training and inference overhead (with an average NDCG@5 gain of 16. 82%) . The code is available at [https://github.com/Void-JackLee/LBR](https://github.com/Void-JackLee/LBR).","cbCaifRcCJQSF20I","https://ap.wps.com/l/cbCaifRcCJQSF20I","pdf",1229971,1,12,"English","en",105,"# Abstract\n# Introduction\n## LLM-based recommendation paradigm\n## Token-level generation and decoding\n## Length bias motivation","[{\"question\":\"What is Length Bias in LLM-based recommendation?\",\"answer\":\"Length Bias arises because item textual length affects both input-side attention accumulation and output-side score computation during token-level generation and decoding.\"},{\"question\":\"How does LBR mitigate input-side length bias?\",\"answer\":\"LBR uses Length-Aware Attention Calibration, adding a length-dependent offset to attention logits to neutralize attention skew caused by longer item descriptions.\"},{\"question\":\"How does LBR mitigate output-side length bias?\",\"answer\":\"LBR introduces Effective Information Length Normalization, replacing naive token-count normalization with an information-theoretic length surrogate derived from the prefix tree’s branching structure.\"}]",1784190436,30,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"lbr-towards-mitigating-length-bias-in-large-language-models-for-recommendation","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/lbr-towards-mitigating-length-bias-in-large-language-models-for-recommendation/83792/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What is Length Bias in LLM-based recommendation?","Question",{"text":75,"@type":76},"Length Bias arises because item textual length affects both input-side attention accumulation and output-side score computation during token-level generation and decoding.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does LBR mitigate input-side length bias?",{"text":80,"@type":76},"LBR uses Length-Aware Attention Calibration, adding a length-dependent offset to attention logits to neutralize attention skew caused by longer item descriptions.",{"name":82,"@type":73,"acceptedAnswer":83},"How does LBR mitigate output-side length bias?",{"text":84,"@type":76},"LBR introduces Effective Information Length Normalization, replacing naive token-count normalization with an information-theoretic length surrogate derived from the prefix tree’s branching structure.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":28,"slug":121},"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]