Related Experiment Video
Updated: Mar 24, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
CodeSafetyBench evaluating and improving ethical safety in large language model code generation
None:
As large language models transform software development, they introduce significant ethical and safety risks, with research revealing a 78.67% probability of harmful code generation under malicious prompts. To address this, we developed CodeSafetyBench, a benchmark comprising 1,050 harmful request cases across healthcare, law, and education. Our approach employs a triadic response structure-consisting of harmful outputs, refusals, and educational feedback-to train models via supervised fine-tuning (SFT) and direct preference optimization (DPO). The results demonstrate that this framework reduces harmful response rates by up to 48%, highlighting that educational feedback is more effective than simple rejection. This work exposes fundamental safety challenges in AI-generated code and provides a systematic foundation for developing safer, ethically aligned models that balance high performance with human values.
Related Concept Videos
Improving Translational Accuracy
Improving Translational Accuracy
Types of Errors: Detection and Minimization
Absolute error in a measurement is the numerical difference from the true or central value. Relative error is the ratio between absolute error and the true or central value, expressed as a percentage.
Errors can be classified by source, magnitude, and sign. There are three types of errors: systematic, random, and gross.
Systematic or...
Language Development
The critical period for language acquisition suggests that the ability to acquire language is at its peak early in life. As people age, this proficiency decreases. Language development begins very...
Ethical Standards II
Nurses are entrusted with upholding various ethical principles and standards. Nurses forge solid therapeutic relationships using trust, empathy, autonomy, confidentiality, and professional competence.
Confidentiality is crucial, embodying respect for individual privacy...
Ethical Issues
Ethical Concerns in Healthcare:
