RLHF jobs remote: how to rank two code answers well

For experts4 min read

RLHF jobs remote work for developers often comes down to one task: read two code answers, pick the better one and say why. The skill is not taste. It is checking each answer against the spec, then writing a reason a stranger can verify.

What RLHF jobs remote work asks of a developer

In reinforcement learning from human feedback, people rank model outputs and those rankings are used to train the model further. The InstructGPT paper from 2022 describes this: labelers wrote examples of good behaviour, then ranked model outputs, and the rankings were used for further fine-tuning. In human evaluations, the 1.3 billion parameter InstructGPT model was preferred over the 175 billion parameter GPT-3.

Source: Ouyang et al., Training language models to follow instructions with human feedback(opens in a new tab)

For code, the comparison is between two answers to the same prompt. You pick the better one, often on a scale from slightly to much better, and give a written reason.

A worked example

The prompt: 'Write second_largest(nums), which returns the second largest distinct value in a list, or None if there is none.' Here are two answers.

Python
# Answer Adef second_largest(nums):    return sorted(set(nums))[-2]
Python
# Answer Bdef second_largest(nums):    first = second = None    for n in nums:        if first is None or n > first:            first, second = n, first        elif n != first and (second is None or n > second):            second = n    return second

Check each answer, not your impression

Answer A is short and reads well. Now try the awkward inputs. For [5, 5] the set has one element, so index -2 raises IndexError. For an empty list it raises IndexError too. The prompt explicitly asks for None in those cases, so A breaks the spec.

Answer B is longer. Trace [5, 5, 3]. The first 5 sets first to 5. The second 5 is not greater and equals first, so it is skipped. The 3 becomes second. The result is 3. For [5, 5] the result is None. For [1, 2] the swap sets first to 2 and second to 1. B meets every case in the prompt.

InputExpectedAB
[1, 2, 3]222
[5, 5, 3]333
[5, 5]NoneIndexErrorNone
[]NoneIndexErrorNone

A good written reason: 'B is better. A raises IndexError for [5, 5] and [] where the prompt asks for None. B returns None for both and gives the right answer for [1, 2, 3] and [5, 5, 3]. A is shorter, but B is the only correct one.' Four sentences, each checkable.

The spec decides, not your style

Change the prompt to 'assume the list has at least two distinct values' and the ranking can flip. Now A is correct, simple and easy to maintain, while B is correct and harder to read. Some reviewers would prefer A. The better answer depends on what was asked, so quote the requirement that decided it.

A routine for ranking

  1. Read the prompt and underline every requirement: input types, edge cases, output format, constraints.
  2. Check each answer against each requirement. Run the code if you can.
  3. If one answer is wrong, the question is mostly settled. If both are correct, compare clarity, safety and efficiency, in that order.
  4. If both are wrong, say so and pick the less wrong one only if the interface allows.
  5. Write the reason with the evidence: the input that fails, the requirement that is missed.

When the call is close, say so. Many interfaces let you mark an answer as only slightly better. Use that option honestly. A rating that claims a large gap when there is a small one teaches the model the wrong lesson, and a second reviewer who disagrees will reduce trust in your scores.

Also run the code when you can. Two answers that look equal on paper often differ on the first awkward input. If you cannot run it, trace the awkward inputs by hand as above and note that you did.

Biases to watch in yourself

  • Length. A longer answer with comments looks more careful. It may be wrong.
  • Order. The first answer you read sets your expectation for the second.
  • Style. If you prefer comprehensions, do not mark down a loop that is correct.
  • Confident prose. An explanation that sounds sure can sit on top of broken code.
  • Familiarity. A pattern you have used for years is not automatically better.

RLHF jobs remote: what to expect

The work is remote and task-based. Many projects pay per hour at a rate the client sets. Task volume depends on the project, so treat it as variable. Quality checks are common, and your reasons are often read by a second reviewer.

Be wary of any listing that asks you to pay to start, or that promises a fixed income. Real projects are tied to a client's active work.

Curatrain lists preference ranking (RLHF) among the work its experts do. Experts take graded tests, see their score when they finish and are matched only to jobs whose tests they have passed. Sign up free at curatrain.com/login.