Skip to main content
QUICK REVIEW

[Paper Review] Studying the Transfer of Biases from Programmers to Programs.

Tore Pedersen, Christian Johansen|arXiv (Cornell University)|May 17, 2020
Explainable Artificial Intelligence (XAI)Computer Science69 references7 citations
TL;DR

This paper investigates how programmer biases—shaped by cultural background and programming context—can transfer into code via metaphors, leading to machine bias independent of training data. Using experimental and comparative methods, it shows cultural metaphors influence coding choices, and contextual metaphors can amplify or reduce these effects, revealing a new source of algorithmic bias beyond data-driven factors.

ABSTRACT

It is generally agreed that one origin of machine bias is resulting from characteristics within the dataset on which the algorithms are trained, i.e., the data does not warrant a generalized inference. We, however, hypothesize that a different `mechanism', hitherto not articulated in the literature, may also be responsible for machine's bias, namely that biases may originate from (i) the programmers' cultural background, such as education or line of work, or (ii) the contextual programming environment, such as software requirements or developer tools. Combining an experimental and comparative design, we studied the effects of cultural metaphors and contextual metaphors, and tested whether each of these would `transfer' from the programmer to program, thus constituting a machine bias. The results show (i) that cultural metaphors influence the programmer's choices and (ii) that `induced' contextual metaphors can be used to moderate or exacerbate the effects of the cultural metaphors. This supports our hypothesis that biases in automated systems do not always originate from within the machine's training data. Instead, machines may also `replicate' and `reproduce' biases from the programmers' cultural background by the transfer of cultural metaphors into the programming process. Implications for academia and professional practice range from the micro programming-level to the macro national-regulations or educational level, and span across all societal domains where software-based systems are operating such as the popular AI-based automated decision support systems.

Motivation & Objective

  • To investigate whether programmer cultural background and contextual programming environments contribute to machine bias.
  • To examine if cultural metaphors influence programming decisions and code structure.
  • To explore whether contextual metaphors (e.g., tools or requirements) can moderate or intensify cultural metaphor effects.
  • To challenge the prevailing assumption that bias in AI systems originates solely from biased training data.
  • To identify new mechanisms of bias propagation in software development, with implications for education, regulation, and system design.

Proposed method

  • Conducted controlled experiments with programmers from diverse cultural backgrounds to assess metaphor use in coding tasks.
  • Used cultural metaphors (e.g., metaphors tied to education or work experience) as independent variables in programming tasks.
  • Introduced contextual metaphors (e.g., through software tools or requirement specifications) to manipulate programming environments.
  • Compared programming outcomes across groups to measure differences in code structure, naming, and logic.
  • Applied comparative analysis to isolate the effects of cultural vs. contextual metaphors on code generation.
  • Used qualitative and quantitative analysis to trace metaphor transfer from programmer to program.

Experimental results

Research questions

  • RQ1Do cultural metaphors used by programmers influence the structure and logic of the code they produce?
  • RQ2Can contextual metaphors in development environments moderate or exacerbate the effects of cultural metaphors on code?
  • RQ3To what extent do programmer biases—rooted in cultural background—get encoded into software systems?
  • RQ4Is machine bias in automated systems always a result of biased training data, or can it originate from programmer-level influences?
  • RQ5How do metaphors in programming environments shape the transfer of cultural biases into code?

Key findings

  • Cultural metaphors significantly influence programmers' choices in naming, structure, and logic of code.
  • Contextual metaphors—such as those embedded in development tools or requirements—can amplify or reduce the impact of cultural metaphors on code.
  • The transfer of cultural metaphors into code demonstrates a new mechanism for bias propagation in software systems, independent of training data.
  • Programmers from different cultural backgrounds produce code with measurable differences when exposed to the same task, indicating cultural influence on implementation.
  • The study reveals that bias in automated systems may originate not only from data but also from the human and environmental factors in the programming process.
  • This challenges the dominant narrative that bias is solely a data problem, highlighting the need to consider programmer and environmental factors in AI fairness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.