Affirm130 open jobs

Manager, Machine Learning Engineering

ML and AIPosted 2 weeks agofrom Affirm's own hiring page

Work type
RemoteIn the US and Canada
Experience
8+ years
Pay
$181k–241k a year
Posted
2 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Machine learning and Deep learning

About the job

At Affirm, we exist for the moments that matter—giving people a clear, predictable way to pay over time, with no hidden fees, no surprises, and no tradeoffs on what matters most.

About the role

Join Affirm as a Machine Learning Engineering Manager and lead our Commerce Optimization Machine Learning team. You will manage a team of ML engineers that builds and scales models, simulations, and optimization systems to improve how Affirm’s products are configured and offered. Your team will use novel ML techniques and rich data representations to model consumer behavior, optimize pricing and financing offers, and drive better outcomes for consumers, merchants, and Affirm. Under your guidance, the team will develop reusable user behavior models that power applications across Affirm, from personalized experiences and targeted incentives to consumer engagement and growth.

In this role, you will help shape the future of machine learning at Affirm, partnering with engineering, product, and risk leaders to design, implement, and scale advanced ML solutions that drive critical capabilities across the company. Your leadership will include mentoring engineers, bringing clarity to complex, ambiguous problems, and contributing to a cohesive long-term ML strategy.

What you’ll do

* Set the technical strategy for your team, and help your engineers tie it together with critical, business-impacting projects in our underwriting system

* Act as a force multiplier through your definition and advocacy of technical solutions and operational processes.

* Collaborate across teams in the product development lifecycle by partnering with product management, design, analytics, and risk to ensure technical sustainability, risks and trade-offs are well understood and managed.

* Develop talent by providing feedback and guidance, and leading by example.

What we look for

* Bachelor's in a technical field with 8+ years of industry experience, including 3+ years managing engineers.

* A background in financial services, specifically in credit / lending.

* Proficiency in machine learning with experience in areas including tree-based models, transformers, deep learning, and agentic ML.

* Strong engineering skills and the ability to provide hands-on technical leadership while working with our code and architecture.

* You thrive in ambiguity, and are comfortable moving from low-level language idioms all the way to the architecture of large systems to understand how they work

Pay Grade - P 
Equity Grade - 7

Employees new to Affirm typically come in at the start of the pay range. Affirm focuses on providing a simple and transparent pay structure which is based on a variety of factors, including location, experience and job-related skills. 

Base pay is part of a total compensation package that may include monthly stipends for health, wellness and tech spending, and benefits (including 100% subsidized medical coverage, dental and vision for you and your dependents). In addition, the employees may be eligible for equity rewards offered by Affirm Holdings, Inc. (parent company).

CAN base pay range per year: CAD $181,000 - $241,000

#LI-Remote


Remote-first with flexibility built in
Affirm is proud to be a remote-first company. Most roles can be done from almost anywhere within the country of employment. Some positions may occasionally require in-person work at an Affirm office, and a few are office-based due to the nature of the work. All new hires will be invited to attend an in-person onboarding experience.

Benefits designed for you
Our benefits reflect our commitment to care, transparency, and flexibility. Here are a few highlights:

  • Health coverage at no cost: We cover 100% of premiums for employees and their dependents.
  • Spending stipends: Monthly stipends support your tech setup, and the ability to choose health and wellness options that are right for you.
  • Time off to recharge: Flexible time off and generous holiday calendars help you rest when you need to.
  • Own a piece of what you build: Our employee stock purchase plan (ESPP) lets you buy Affirm stock at a discount.

We’re committed to providing an inclusive interview process, including accommodations for candidates with disabilities. If you need support, we’re happy to help.

For positions based in San Francisco or Los Angeles: Affirm considers qualified applicants with arrest and conviction records, as required by law.

By clicking "Submit Application," you acknowledge that you have read Affirm's Global Candidate Privacy Notice and consent to the use of your personal information as described.

1 more opening for this job

Affirm posts this job once per place or skill set. Pick the one that fits you.

Interested?Manager, Machine Learning Engineering at Affirm

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Machine learning and Deep learning

Interview questions for this job

For the skills the ad mentions: Machine learning and Deep learning.

235 questions
  • What is the difference between linear regression and logistic regression?Machine learning
    • Linear regression output as probabilities

      It's tempting to use the linear regression output as probabilities but it's a mistake because the output can be negative, and greater than 1 whereas probability can not. As regression might actually produce probabilities that could be less than 0, or even bigger than 1, logistic regression was introduced.

      Source: http://gerardnico.com/wiki/data_mining/simple_logistic_regression

    • Outcome

      In linear regression, the outcome (dependent variable) is continuous. It can have any one of an infinite number of possible values.

      In logistic regression, the outcome (dependent variable) has only a limited number of possible values.

    • The dependent variable

      Logistic regression is used when the response variable is categorical in nature. For instance, yes/no, true/false, red/green/blue, 1st/2nd/3rd/4th, etc.

      Linear regression is used when your response variable is continuous. For instance, weight, height, number of hours, etc.

    • Equation

      Linear regression gives an equation which is of the form Y = mX + C, means equation with degree 1.

      However, logistic regression gives an equation which is of the form Y = eX + e-X

    • Coefficient interpretation

      In linear regression, the coefficient interpretation of independent variables are quite straightforward (i.e. holding all other variables constant, with a unit increase in this variable, the dependent variable is expected to increase/decrease by xxx).

      However, in logistic regression, depends on the family (binomial, Poisson, etc.) and link (log, logit, inverse-log, etc.) you use, the interpretation is different.

    • Error minimization technique

      Linear regression uses ordinary least squares method to minimise the errors and arrive at a best possible fit, while logistic regression uses maximum likelihood method to arrive at the solution.

      Linear regression is usually solved by minimizing the least squares error of the model to the data, therefore large errors are penalized quadratically.

      Logistic regression is just the opposite. Using the logistic loss function causes large errors to be penalized to an asymptotically constant.

      Consider linear regression on categorical {0, 1} outcomes to see why this is a problem. If your model predicts the outcome is 38, when the truth is 1, you've lost nothing. Linear regression would try to reduce that 38, logistic wouldn't (as much)2.

    From Stack Overflow: asked by Abhishek Shivkumar, answered by Sayali Sonawane (CC BY-SA 4.0)

  • Cross-entropy loss explanationDeep learning

    The cross entropy formula takes in two distributions, $p(x)$, the true distribution, and $q(x)$, the estimated distribution, defined over the discrete variable $x$ and is given by

    $$H(p,q) = -\sum_{\forall x} p(x) \log(q(x))$$

    For a neural network, the calculation is independent of the following:

    • What kind of layer was used.

    • What kind of activation was used - although many activations will not be compatible with the calculation because their outputs are not interpretable as probabilities (i.e., their outputs are negative, greater than 1, or do not sum to 1). Softmax is often used for multiclass classification because it guarantees a well-behaved probability distribution function.

    For a neural network, you will usually see the equation written in a form where $\mathbf{y}$ is the ground truth vector and $\mathbf{\hat{y}}$ (or some other value taken direct from the last layer output) is the estimate. For a single example, it would look like this:

    $$L = - \mathbf{y} \cdot \log(\mathbf{\hat{y}})$$

    where $\cdot$ is the inner product.

    Your example ground truth $\mathbf{y}$ gives all probability to the first value, and the other values are zero, so we can ignore them, and just use the matching term from your estimates $\mathbf{\hat{y}}$

    $L = -(1\times log(0.1) + 0 \times \log(0.5) + ...)$

    $L = - log(0.1) \approx 2.303$

    An important point from comments

    That means, the loss would be same no matter if the predictions are $[0.1, 0.5, 0.1, 0.1, 0.2]$ or $[0.1, 0.6, 0.1, 0.1, 0.1]$?

    Yes, this is a key feature of multiclass logloss, it rewards/penalises probabilities of correct classes only. The value is independent of how the remaining probability is split between incorrect classes.

    You will often see this equation averaged over all examples as a cost function. It is not always strictly adhered to in descriptions, but usually a loss function is lower level and describes how a single instance or component determines an error value, whilst a cost function is higher level and describes how a complete system is evaluated for optimisation. A cost function based on multiclass log loss for data set of size $N$ might look like this:

    $$J = - \frac{1}{N}\left(\sum_{i=1}^{N} \mathbf{y_i} \cdot \log(\mathbf{\hat{y}_i})\right)$$

    Many implementations will require your ground truth values to be one-hot encoded (with a single true class), because that allows for some extra optimisation. However, in principle the cross entropy loss can be calculated - and optimised - when this is not the case.

    From Data Science Stack Exchange: asked by enterML, answered by Neil Slater (CC BY-SA 4.0)

  • Epoch vs Iteration when training neural networksMachine learning

    In the neural network terminology:

    • one epoch = one forward pass and one backward pass of all the training examples
    • batch size = the number of training examples in one forward/backward pass. The higher the batch size, the more memory space you'll need.
    • number of iterations = number of passes, each pass using [batch size] number of examples. To be clear, one pass = one forward pass + one backward pass (we do not count the forward pass and backward pass as two different passes).

    For example: if you have 1000 training examples, and your batch size is 500, then it will take 2 iterations to complete 1 epoch.

    FYI: Tradeoff batch size vs. number of iterations to train a neural network

    The term "batch" is ambiguous: some people use it to designate the entire training set, and some people use it to refer to the number of training examples in one forward/backward pass (as I did in this answer). To avoid that ambiguity and make clear that batch corresponds to the number of training examples in one forward/backward pass, one can use the term mini-batch.

    From Stack Overflow: asked by mohammad, answered by Franck Dernoncourt (CC BY-SA 4.0)

  • What does "unsqueeze" do in Pytorch?Deep learning

    unsqueeze turns an n.d. tensor into an (n+1).d. one by adding an extra dimension of depth 1. However, since it is ambiguous which axis the new dimension should lie across (i.e. in which direction it should be "unsqueezed"), this needs to be specified by the dim argument.

    e.g. unsqueeze can be applied to a 2d tensor three different ways:

    The resulting unsqueezed tensors have the same information, but the indices used to access them are different.

    From Stack Overflow: asked by user6549804, answered by End genocide - save Gaza (CC BY-SA 4.0)

  • How does the Google "Did you mean?" Algorithm work?Machine learning

    Here's the explanation directly from the source ( almost )

    Search 101!

    at min 22:03

    Worth watching!

    Basically and according to Douglas Merrill former CTO of Google it is like this:

    1) You write a ( misspelled ) word in google

    2) You don't find what you wanted ( don't click on any results )

    3) You realize you misspelled the word so you rewrite the word in the search box.

    4) You find what you want ( you click in the first links )

    This pattern multiplied millions of times, shows what are the most common misspells and what are the most "common" corrections.

    This way Google can almost instantaneously, offer spell correction in every language.

    Also this means if overnight everyone start to spell night as "nigth" google would suggest that word instead.

    EDIT

    @ThomasRutter: Douglas describe it as "statistical machine learning".

    They know who correct the query, because they know which query comes from which user ( using cookies )

    If the users perform a query, and only 10% of the users click on a result and 90% goes back and type another query ( with the corrected word ) and this time that 90% clicks on a result, then they know they have found a correction.

    They can also know if those are "related" queries of two different, because they have information of all the links they show.

    Furthermore, they are now including the context into the spell check, so they can even suggest different word depending on the context.

    See this demo of google wave ( @ 44m 06s ) that shows how the context is taken into account to automatically correct the spelling.

    Here it is explained how that natural language processing works.

    And finally here is an awesome demo of what can be done adding automatic machine translation ( @ 1h 12m 47s ) to the mix.

    I've added anchors of minute and seconds to the videos to skip directly to the content, if they don't work, try reloading the page or scrolling by hand to the mark.

    From Stack Overflow: asked by Andrew Harry, answered by OscarRyz (CC BY-SA 2.5)

  • Can you tell us about a personal achievement at work?Behavioural

    Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:

    • when have you faced a challenging situation?
    • can you tell us about a personal achievement at work?
    • have you ever taken the initiative?
    • have you ever failed at a task?

    Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.

    If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.

    Use the  STAR method  to help structure your answers.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Machine learning and AI jobs in the USA (2,015) and Remote Machine learning and AI jobs in the USA (1,177)