加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做CSOCMP5328、代寫Python編程設計

時間:2024-05-19  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CSOCMP5**8 - Advanced Machine Learning 
Bias and Fairness in Large Language Models (LLMs) 
 
This is a group assignment, 2 to 3 students only. This is NOT an individual assignment. It is worth 
25% of your total mark. 
 
1. Introduction 
Generative AI models have garnered significant attention and adoption in various domains due to 
their remarkable output quality. Nevertheless, these models, reliant on massive, internet-sourced 
datasets, exhibit vulnerabilities that sparked a debate on important ethical concerns, especially 
around fairness, pertaining to the amplification of human biases and a potential decline in 
trustworthiness. 
 
This assignment aims to investigate methods for bias mitigation within generative AI models and 
provide your own method to mitigate the bias in the LLMs. While there are two main critical areas: 
Text-to-Text and Text-to-Image where fairness is paramount, our focus in this assignment is 
specifically on the Text-to-Text problem. 
● Text-to-Text using Large Language Models (LLMs): This area encompasses prominent 
language models such as Llama-2, BERT, T5, GPT-2/3, and Chat-GPT, and examines the 
potential for these models to generate biased textual content and its implications. 
1.1 Common biased categories 
To contextualise our investigation, we have identified several common categories of bias that 
may manifest within generative AI models: 
● Gender and Occupations: One significant aspect involves exploring biases related to 
gender disparities in various professions. By analysing the output of generative models, we 
can discern whether these models tend to associate specific careers more with one gender 
over another, thus potentially perpetuating occupational stereotypes, for example: 
○ Text-to-Text: GPT-2 may generate text that reinforces traditional gender 
stereotypes. For example, it might associate caregiving with women and leadership 
with men, perpetuating societal biases. Example: "She is a nurturing mother, 
always putting her family first." 
○ Text-to-Image: The results generated by Stable Diffusion for the prompt “A photo 
of a firefighter.”  
 
● Race / Ethnicity: Another critical dimension involves assessing biases related to race and 
ethnicity: 
○ Text-to-Text: GPT-2 may generate text that perpetuates racial stereotypes or 
generalisations about specific racial or ethnic groups, for example: "Asian people 
are naturally good at math." or the model may generate content that oversimplifies 
or misrepresents the cultures and traditions of certain racial or ethnic groups. for 
example: "All Latinos are passionate dancers." 
○ Text-to-Image: The bias results for “intelligent person” using Image Search 
Engines. 
 
 
Addressing bias and fairness in generative AI represents a complex and ongoing challenge. 
Researchers and developers are actively engaged in devising a range of techniques aimed at bias 
detection and mitigation. These approaches include the diversification of training data sources, the 
development of ethical guidelines for AI development, and the creation of algorithms designed 
explicitly to identify and rectify bias within AI-generated outputs. 
1.2 Safety 
Generative AI is used in intentionally harmful ways. This includes misusing generative AI to 
generate child sexual exploitation and abuse material based on images of children, or generating 
sexual content that appears to show a real adult and then blackmailing them by threatening to 
distribute it over the internet. Generative AI can also be used to manipulate and abuse people by 
impersonating human conversation convincingly and responding in a highly personalised manner, 
often resembling genuine human responses. 
Note: The resultant figures from Stable Diffusion are only presented to demonstrate the bias. This 
assignment is only for "text-based bias and fairness" in LLMs. 
 
2. A Guide to Using the Datasets 
To effectively investigate and assess bias within generative AI models for Text-to-Text, it is crucial 
to select appropriate datasets that reflect real-world scenarios and challenges. Depending on your 
chosen focus, you may need to find specific datasets for your area of investigation e.g., healthcare, 
sports, entertainment datasets etc. We provide some examples below however you are free to choose any dataset not listed. There are several datasets used for LLM bias evaluation [1], you 
may refer to this link for more information: https://github.com/i-gallegos/Fair-LLM-Benchmark. 
Those datasets are only used for evaluation, do not train your model with these datasets. 
 
Depending on your research objectives, select training datasets that align with your area of 
investigation. 
● Access the chosen datasets through official sources, research papers, or relevant 
repositories. 
● Download the training dataset (s) to your local environment. Ensure that you adhere to any 
licensing or usage terms associated with the dataset(s). Depending on the debiasing 
techniques employed, retraining the model may be necessary. Commonly utilised datasets 
for training LLMs such as Common Crawl, Wikipedia, BookCorpus, PubMed, arXiv, 
ImageNet, COCO, VQA, Flickr30k, etc. 
● Pre-process the dataset as necessary for compatibility with your chosen de-biasing (i.e., 
enabling fairness) methods in generative AI model. Consider factors like label imbalance 
among various demographic groups in the training data, as this can lead to bias. One 
common method for addressing bias is counterfactual data augmentation (CDA) [1] to 
balance labels. Additionally, other pre-processing techniques involve adjusting harmful 
information in the data or eliminating potentially biased texts. Identify and handle harmful 
text subsets using different methods to ensure a fairer training corpus. 
● Integrate the pre-processed dataset(s) into your code for training and evaluation. Ensure 
that you have the appropriate data loading and pre-processing routines in place to work 
seamlessly with generative AI models. 
 
Remember that data pre-processing and formatting are crucial steps in ensuring that the datasets 
are ready for input into your generative AI models. Additionally, make sure to document your 
dataset selection and pre-processing steps thoroughly in your research report for transparency and 
reproducibility. 
 
3. Performance Evaluations 
Most fairness metrics for LLMs can be categorised by what they use from the model such as the 
embeddings, probabilities, or generated text, including: 
● Embedding-based metrics: Using the dense vector representations to measure bias, which 
are typically contextual sentence embeddings. 
● Probability-based metrics: Using the model-assigned probabilities to estimate bias (e.g., to 
score text pairs or answer multiple-choice questions). 
● Generated text-based metrics: Using the model-generated text conditioned on a prompt 
(e.g., to measure co-occurrence patterns or compare outputs generated from perturbed 
prompts). 
 
 
 4. Tasks 
Your main tasks are: 
 
● Research: Conduct in-depth research to identify various methods for addressing bias in 
Generative AI. Ensure you understand the theoretical foundations and practical 
implementation of these methods. Provide comprehensive comparison of various methods 
based on the conducted evaluations and discuss their contributions, evaluation methods, 
strengths, and weaknesses (this will help in the Related Work section of the report). 
 
● Proposed Mathematical Model: 
○ Chose a language model such as Llama-2, BERT, T5, GPT-2/3, and Chat-GPT you 
would like to remove the bias. Write mathematical model for your proposed 
approach, represent training datasets as a database or feature sets etc., preprocessing
 steps that you have taken on the training datasets, the objective and 
optimisation method that you employed, training model using LLM, and evaluation 
metrics to evaluate your model. Write comprehensive table to show all the notations 
along with their descriptions. 
○ Write algorithms to show all the steps of the proposed approach, including system 
initialisation, training/testing, bias evaluations, results evolutions, or any other 
steps that show the implementation of your proposed approach. 
○ Show schematic representation of your proposed approach. 
● Code Development: 
○ Implement the selected bias mitigation methods, based on the proposed 
mathematical model. 
○ Train the model using selected LLM with the pre-processed dataset (if needed). 
○ Evaluate the bias, show experimental evaluations of various metrics, generate their 
corresponding figures. 
○ The code (including interfacing for training model using LLM and results 
evaluations) must be written in Python 3. You are allowed to use any external 
libraries for performance comparisons; however, you need to provide details on 
how the libraries were setup and how evaluation metrics were used, in the Appendix 
section. 
 
● Evaluation: 
○ Perform the chosen model before applying debiasing techniques on evaluation 
datasets and show if the bias exists via various prompts, these results are termed as 
the baseline. 
○ Pre-process the dataset and train the model using LLM using your proposed 
method. Evaluate the performance of the trained model via various prompts to 
demonstrate that you have addressed the bias. Note that, some debiasing techniques 
may not require retraining the model. 
○ Compare the performance of proposed method with the baseline. 
○ Evaluate other performance evaluation metrics, e.g., utility, training time, average, 
St. Dev etc. Note that some of the evaluation metrics might not be applicable in 
your proposed scenario, hence, you must actively think of various evaluation 
metrics to determine the applicability of your model; comprehensive literature survey will help you find how authors evaluated the bias and enabled fairness of 
generative AI models. 
○ Important: Please note that this is our understanding of how to carry out this study 
and evaluations i.e., show bias of chosen model via prompts à apply chosen 
debiasing technique (for example, pre-process the dataset (to remove imbalance 
labels and re-train model with pre-processed dataset) à via prompts, show that you 
have addressed the bias à compare baseline with proposed approach. If you think 
that this might not work, you need to come up with other techniques. 
 
● Conclude: 
○ Conclude your findings and show the strengths and weaknesses of your proposed 
approach. 
○ Provide hypothetical comparison of your approach with other approaches in the 
literature. This comparison could be based on various performance metrics. 
○ Provide future research directions about how to mitigate those weaknesses. 
○ Provide comprehensive directions on how your proposed model could be 
generalised and applicable for various application scenarios e.g., social media 
applications, stock markets, health or sports analytics etc. 
 
Note: Above steps are written with quite details. If you still have any ambiguity about those steps 
or implementation/technical questions or understanding of the problem scenario, then please do 
your own research, share your findings on the Ed so that other students could also get idea of how 
to deal with specific problem steps. Furthermore, please also post your concerns/questions no Ed 
under the “Assignment 2” thread, our teaching team will be happy to share their experience and 
suggestions. Please note that this is an open research assignment, use your own creativity and come 
up with the understanding of this problem scenario and solution. 
 
4.1 Report 
The report should be organised similar to research papers, and should contain at least the following 
sections: 
 
Abstract: 
• Clearly introduces the topic scenario and its significance. 
• Provides a concise summary of the proposed evaluation method. 
• Provide the results from various evaluation metrics. 
• Conclude your contributions and discuss its applicability in the real-world scenario. 
 
Introduction: 
• Clearly introduces the problem of bias in generative AI and its importance. 
• Provides a clear and detailed overview of the proposed methods. 
• Write contributions in detail e.g., pre-processing, experimental setup, mathematical 
model, proposed evaluation method and metrics, various steps to achieve evaluate your 
results. 
• Provide discussion on the key results and show the organisation of your report at the end 
of this section. 
 Related Work: 
• Provides a comprehensive review of related debiasing and fairness methods. 
• Discusses the advantages and disadvantages of the reviewed methods in the literature. 
• Demonstrates understanding of the existing literature. 
• Provide a summarised table of the existing works and show their contributions, evaluation 
method, strengths, and weaknesses of existing work. 
 
Proposed Method: 
• Explains the theoretical foundations of the proposed solution effectively. 
• Describes the details of debiasing methods clearly, including the objective function. 
• Presents the algorithmic representation of the proposed solution comprehensively. 
• Show schematic representation of your proposed approach. 
 
Experiments/Evaluations: 
• Provides a clear description of the experimental setup, including datasets, algorithm 
evaluations, and metrics. 
• Presents experimental results effectively, with appropriate figures. 
• Conducts a thorough analysis and comparison of baseline and proposed method. 
• Provides detailed insights on the results. 
 
Conclusion: 
• Effectively summarises the methods and results. 
• Provides valuable insights or suggestions for future work. 
• Provide strengths and weaknesses of your work, furthermore, provide future directions. 
 
References: 
• Lists all references, cited in the report. 
• Formats all references consistently and correctly. 
 
Appendix: 
• Provide instructions on how to run your code. 
• Provide additional/supporting figures or experimental evaluations. 
 
Note: Please follow the provided latex format for the report on Canvas. 
 
5. Submission guidelines 
1. Go to Canvas and upload the following files/folders compressed together as a zip file. 
● Report (a PDF file) 
The report should include all member’s details (student IDs and names). 
● Code (a folder): 
○ Algorithm (a sub-folder): Your code (could be multiple files or a project) ○ Input data (a sub-folder) Empty. Please do NOT include the dataset in the zip file 
as they are large. Please provide detailed instructions on how the datasets are used 
and how to download them. We will copy the dataset to the input folder when we 
test the code. 
2. A plagiarism checker will be used, both for code and report. 
3. A penalty of MINUS 20 percent marks (−20%) per day after the due date. The maximum 
delay is 5 (five) days, after that assignments will not be accepted. 
 
Note: Only one student needs to submit the zip file which must be renamed as student ID numbers 
of all group members separated by underscores, which should contain all the relevant files and 
report. E.g., “xxxxxxxx_xxxxxxxx_xxxxxxxx.zip”. Please write names and email addresses of 
each member in the report. 
 
 
Example References: 
1. Bias and Fairness in Large Language Models: A Survey. Isabel O. Gallegos, Ryan A. 
Rossi, Joe Barrow, Md Mehrab Tanjim, Sungchul Kim, Franck Dernoncourt, Tong Yu, 
Ruiyi Zhang, Nesreen K. Ahmed. https://arxiv.org/abs/2309.00770 
2. A Survey on Fairness in Large Language Models. Yingji Li, Mengnan Du, Rui Song, Xin 
Wang, Ying Wang. https://arxiv.org/abs/2308.10149 
3. Fair Diffusion: Instructing Text-to-Image Generation Models on Fairness. Felix Friedrich, 
Manuel Brack, Lukas Struppek, Dominik Hintersdorf, Patrick Schramowski, Sasha 
Luccioni, Kristian Kersting. https://arxiv.org/abs/2302.10893 
4. Stable Bias: Analyzing Societal Representations in Diffusion Models. Alexandra Sasha 
Luccioni, Christopher Akiki, Margaret Mitchell, Yacine Jernite. 
https://arxiv.org/abs/2303.11408 
 
 6. Marking Rubrics 
Criterion Marks Comments 
 
Coding (30 Marks): 
• Coding will be run to see whether it works properly and 
produces the figures and all evaluations demonstrated in 
the report. 
 
Abstract (5 Marks): 
• Clearly introduces the topic scenario and its 
significance. (1 Marks) 
• Provides a concise summary of the proposed evaluation 
method. (2 Marks) 
• Provide the results from various evaluation metrics. (1 
Marks) 
• Conclude your contributions and discuss its 
applicability in the real-world scenario. (1 Marks) 
 
Introduction (10 Marks): 
• Clearly introduces the problem of bias in generative AI 
and its importance. (3 Marks) 
• Provides a clear and detailed overview of the proposed 
methods. (3 Marks) 
• Write contributions in detail e.g., pre-processing, 
experimental setup, mathematical model, proposed 
evaluation method and metrics, various steps to achieve 
evaluate your results. (2 Marks) 
• Provide discussion on the key results and show the 
organisation of your report at the end of this section. (2 
Marks) 
 
Related Work (10 Marks): 
• Provides a comprehensive review of related debiasing 
and fairness methods. (3 Marks) 
• Discusses the advantages and disadvantages of the 
reviewed methods in the literature. (3 Marks) 
• Demonstrates understanding of the existing literature. (2 
Marks) 
• Provide a summarised table of the existing works and 
show their contributions, evaluation method, strengths, 
and weaknesses of existing work. (2 Marks) 
 
 
 
  
Proposed Method (20 Marks): 
• Explains the theoretical foundations of the proposed 
solution effectively. (7 Marks) 
• Describes the details of debiasing methods clearly, 
including the objective function. (4 Marks) 
• Presents the algorithmic representation of the proposed 
solution comprehensively. (7 Marks) 
• Shows schematic representation of proposed approach. 
(2 Marks) 
 
Experiments/Evaluations (20 Marks): 
• Provides a clear description of the experimental setup, 
including datasets, algorithm evaluations, and metrics. 
(7 Marks) 
• Presents experimental results effectively, with 
appropriate figures. (7 Marks) 
• Conducts a thorough analysis and comparison of 
baseline and proposed method. (4 Marks) 
• Provides detailed insights on the results. (4 Marks) 
 
Conclusion (5 Marks): 
• Effectively summarises the methods and results. (1 
Marks) 
• Provides valuable insights or suggestions for future 
work. (2 Marks) 
• Provide strengths and weaknesses of your work, 
furthermore, provide future directions. (2 Marks) 
 
References: 
• Lists all references, cited in the report. 
• Formats all references consistently and correctly. 
 
Overall Presentation (10 Marks): 
• Maintains a clear and logical structure throughout the 
report. (5 Marks) 
• Demonstrates excellent writing quality, including clarity 
and coherence. (3 Marks) 
• Adheres to formatting and citation guidelines 
consistently. (2 Marks) 
 
Total: 100 Marks 


 請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp









 

掃一掃在手機打開當前頁
  • 上一篇:菲律賓移民北美的條件(移民材料是什么)
  • 下一篇:代做CSC 4120、代寫Python程序語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区第一页| 日韩国产网站| 精品视频99| 亚洲美女91| 国产精品久久久久一区二区三区厕所 | 日韩在线卡一卡二| 国内亚洲精品| 日本午夜精品久久久| 免费一级欧美片在线播放| 国产精品99在线观看| 天天精品视频| 91精品国产乱码久久久竹菊| av在线国产精品| 国产美女久久| 中文字幕在线视频网站| 中国女人久久久| 精品欧美午夜寂寞影院| 国产亚洲一区二区三区啪| 日韩精品亚洲一区二区三区免费| 91综合网人人| 男女精品网站| 偷偷www综合久久久久久久| 三级欧美日韩| 亚洲制服一区| 国产一区二区三区精品在线观看| 欧美在线看片| 国产一区二区三区国产精品| 国产精品久久久久无码av| 亚洲一区二区免费看| **女人18毛片一区二区| 亚洲成人国产| 久久99国产精品久久99大师| 日韩不卡在线视频| 亚洲第一二三区| 国产亚洲电影| 国产精品2区| 中文字幕免费一区二区| 国产精品啊v在线| 国产日韩高清一区二区三区在线| 美女网站视频一区| av高清不卡| 少妇视频一区| 小黄鸭精品aⅴ导航网站入口| 美女av在线免费看| 久久久男人天堂| av在线播放资源| 中文字幕在线高清| 亚洲三级欧美| 日韩免费视频| jizz久久久久久| 欧美v亚洲v综合v国产v仙踪林| 视频一区在线免费看| 免费一级片91| 99久久伊人| 国产黄色一区| 国产资源一区| 青青草视频一区| 国产精品v亚洲精品v日韩精品 | 一区二区三区自拍视频| 激情不卡一区二区三区视频在线| 日韩美女国产精品| av不卡一区| 91精品久久久久久久蜜月| 欧美日韩水蜜桃| 女主播福利一区| 日本欧美在线观看| 日韩片欧美片| 欧美伊人久久| 欧美激情91| 日韩精品一区二区三区中文| 国产丝袜一区| 欧美福利影院| 免费精品视频| 欧美日韩精品免费观看视完整| 欧美性生活一级| 亚洲久久在线| 精品亚洲a∨一区二区三区18| 成人av资源网址| 亚洲香蕉网站| 蜜臀av在线播放一区二区三区| www.51av欧美视频| 国产精品亚洲综合色区韩国| 亚洲影视一区| 久久的色偷偷| 欧美色就是色| 久久久久久久欧美精品| 欧美日韩五区| 综合一区在线| 亚洲国产一区二区三区网站| 亚洲一级特黄| 欧美激情偷拍自拍| 日本在线观看不卡视频| 国产免费久久| 秋霞影视一区二区三区| 午夜亚洲视频| 精品美女一区| 日韩欧美四区| 图片区亚洲欧美小说区| 日韩大片免费观看| 欧美国产免费| 国产精品黄网站| 久久最新视频| 久久精品国产亚洲高清剧情介绍| 国产日韩欧美一区二区三区| 久久99偷拍| 97国产成人高清在线观看| 日韩和欧美的一区| 亚洲成av人片在线观看www| 99国产精品视频免费观看一公开| 五月激情久久| 少妇精品久久久| 欧美精品羞羞答答| 日韩不卡视频在线观看| 欧美极品在线观看| 羞羞答答成人影院www| 欧美gv在线| 91大神在线观看线路一区| 午夜欧美巨大性欧美巨大| 91视频亚洲| 亚洲小说区图片区| 久久xxx视频| 国产免费av国片精品草莓男男| 黄色一区二区三区四区| 久久国内精品视频| 国产精品中文字幕制服诱惑| 色偷偷综合网| 国产精品一区二区三区av麻 | 免费欧美日韩| 日本欧美大码aⅴ在线播放| 国产欧美一区二区三区米奇| 免费高清不卡av| 国产成人久久精品一区二区三区| 欧美.日韩.国产.一区.二区| 五月激情久久| 超碰在线成人| 日韩国产专区| 欧美三级视频| 日韩av中字| 极品束缚调教一区二区网站| 国产精品久久观看| 日韩美脚连裤袜丝袜在线| 视频一区视频二区中文| 国产美女视频一区二区 | 中文字幕成在线观看| 日本一不卡视频| 欧美1级片网站| 日韩va欧美va亚洲va久久| 91蜜臀精品国产自偷在线| 日韩电影一二三区| 国产一二三在线| 韩国女主播一区二区三区 | 国产精品99久久免费观看| 在线成人av观看| 红杏视频成人| 福利一区二区| 欧美激情第二页| 久久中文字幕导航| 免费欧美在线| 1769国产精品视频| 国产综合色在线观看| 成人羞羞在线观看网站| 国产欧美一区二区色老头| 图片小说视频色综合| 欧美久久亚洲| 国产黄大片在线观看| 国内精品免费| 国产日韩亚洲| 午夜在线播放视频欧美| 日韩av网站在线观看| 蜜桃成人精品| 婷婷综合网站| 久久不卡国产精品一区二区 | 九一精品国产| 亚洲三级网页| 国产一区一一区高清不卡 | 日本不卡免费在线视频| 国产精品日韩久久久| 99久久影视| 国产精品久久久久蜜臀 | 成人h动漫免费观看网站| 深夜福利亚洲| 夜夜夜久久久| 欧美顶级毛片在线播放| 日本在线不卡一区| 日韩一区精品字幕| 日韩精品水蜜桃| 亚洲欧美在线综合| 日本免费久久| 在线视频日韩| 嫩草国产精品入口| 欧美另类中文字幕| 日韩精品第二页| 成人一区不卡| 激情国产一区| 伊人精品久久| 国产精品xvideos88| 国产精品久久久久av电视剧| 欧美午夜不卡| 精品成av人一区二区三区| 亚洲精品裸体|