Google Research Scientist (Mid-Level) Interview Preparation Guide
Google's Research Scientist interview process is designed to assess deep technical expertise, research capabilities, and ability to conduct novel, publishable research. The process combines recruiter engagement, technical phone screens, and comprehensive onsite interviews focused on your research background, domain expertise, and collaboration skills. For mid-level positions, expect 4-6 weeks from initial contact to offer decision, with emphasis on your ability to independently conduct research while contributing to team direction and mentoring junior researchers.
Interview Rounds
Recruiter Screening
What to Expect
Initial phone or video call with a Google recruiter to assess basic fit, verify qualifications, and understand your research background and career motivations. The recruiter will discuss the Research Scientist role, Google's research direction, and answer your questions. This is not a technical assessment but rather a mutual fit evaluation and discussion of expectations for the role.
Tips & Advice
Come with specific questions about Google's research focus areas, team structure, and publication expectations. Have a clear 2-3 minute summary of your research trajectory prepared. Be ready to discuss why you're interested in Google specifically and what aspects of research at scale appeal to you. Demonstrate enthusiasm for fundamental research while also showing understanding of how research connects to Google's products and mission. Be honest about your career goals and what you want from a research position.
Focus Topics
Motivation for Google Research
Understanding of Google's research direction in AI/ML and articulate reasons for wanting to work at Google specifically versus other research institutions.
Practice Interview
Study Questions
Research Project Highlights (Non-Technical Summary)
Ability to summarize 1-2 key research projects in accessible language, including problem, approach, and impact without requiring deep technical knowledge.
Practice Interview
Study Questions
Research Background & Career Narrative
Clear articulation of your research journey, key projects, publications, and career progression as a researcher. Ability to convey what drives your research interests.
Practice Interview
Study Questions
Technical Phone Screen 1: Research Fundamentals
What to Expect
First technical phone screen conducted by a Google Research Scientist or Senior Scientist. This round assesses your depth of knowledge in core machine learning, artificial intelligence, or your research domain. Expect questions about fundamental concepts, recent research trends, and your understanding of state-of-the-art approaches. This screen is conversational and focuses on evaluating your technical depth and ability to think critically about research problems.
Tips & Advice
Review fundamental concepts in your research area thoroughly. Be prepared to discuss recent papers and state-of-the-art approaches in your domain. If asked about unfamiliar topics, think out loud and show your problem-solving approach rather than claiming knowledge you don't have. Demonstrate depth by discussing not just what approaches exist, but why they work, their limitations, and when you would or wouldn't use them. For mid-level, interviewers expect you to have authored or deeply understood multiple papers in your area. Use specific examples from your own research when possible to ground theoretical discussions.
Focus Topics
Critical Analysis of Research Approaches
Ability to analyze pros/cons of different research methods. Understanding of trade-offs between approaches (e.g., accuracy vs. interpretability, theoretical guarantees vs. practical performance). Knowing when and why to choose one approach over another.
Practice Interview
Study Questions
Mathematical & Statistical Rigor
Strong grasp of mathematics underlying your research (probability, linear algebra, calculus, statistics). Ability to derive or explain key results. Understanding of statistical significance and experimental design principles.
Practice Interview
Study Questions
Core ML/AI Fundamentals in Your Domain
Deep understanding of foundational concepts in your research area (e.g., neural network architectures, optimization techniques, statistical methods, algorithmic complexity). Ability to explain not just what these are but why they work.
Practice Interview
Study Questions
Recent Research Trends & State-of-the-Art
Knowledge of recent papers, methods, and breakthroughs in your domain. Understanding of which problems are currently being tackled and what makes them challenging. Familiarity with multiple published approaches to key problems.
Practice Interview
Study Questions
Technical Phone Screen 2: Research Application & Problem Solving
What to Expect
Second technical phone screen with another Google researcher, focusing on your ability to apply knowledge to novel problems and think through research challenges. You may be presented with a research problem, given data to analyze, or asked to design an experiment. This round evaluates your research methodology, experimental design thinking, and ability to propose novel approaches to problems.
Tips & Advice
Think out loud throughout this round. Interviewers want to see your research process: how you formulate hypotheses, design experiments, identify confounding variables, and interpret results. For mid-level, you're expected to propose reasonable approaches independently. If given a problem, start by clarifying requirements and assumptions, then outline your approach. Be prepared to discuss trade-offs in your proposed methodology. Show awareness of practical constraints (computational cost, data availability, time) alongside theoretical considerations. If you're uncertain about something, acknowledge it and explain how you would approach learning more.
Focus Topics
Bridging Theory & Practice
Ability to connect theoretical understanding to practical implementation. Discussing computational constraints, approximations necessary in practice, and how they affect theoretical guarantees.
Practice Interview
Study Questions
Data Analysis & Interpretation
Practical skills in analyzing results, creating meaningful visualizations, and drawing correct conclusions from data. Understanding of when results are convincing vs. inconclusive. Recognizing limitations and failure modes.
Practice Interview
Study Questions
Novel Algorithm or Method Development
Capacity to propose new approaches to problems. Understanding of how to combine existing techniques in novel ways or propose fundamentally new methods. Thinking about advantages and disadvantages of proposed approaches.
Practice Interview
Study Questions
Experimental Design & Hypothesis Formulation
Ability to formulate testable hypotheses, design controlled experiments, identify and mitigate confounding variables. Understanding of statistical power, sample size considerations, and significance testing.
Practice Interview
Study Questions
Onsite: Research Talk
What to Expect
This is the signature interview for research scientist positions at Google. You present one of your core research projects (typically 30-40 minutes) followed by 20-30 minutes of deep technical questioning. You'll present to a panel of 2-3 senior researchers. This round evaluates your ability to communicate complex research clearly, your depth of understanding of your own work, and how you think about research impact and implications.[1]
Tips & Advice
Choose a research project where you made significant contributions and understand every detail deeply. Prepare a polished presentation covering: (1) Problem statement and why it matters, (2) Existing approaches and their limitations, (3) Your novel contribution and key insights, (4) Results with quantified metrics, (5) Failure cases and lessons learned. Practice your presentation multiple times with colleagues and ask for feedback. Anticipate follow-up questions about assumptions, scalability, generalization, alternative approaches, and future work. Interviewers will probe deeply into your reasoning, so know not just what you did but why you made each choice. For mid-level, show understanding that your work fits into a broader research context and discuss how it might extend or apply to other problems.[1]
Focus Topics
Assumptions, Scalability & Generalization
Recognition of assumptions underlying your work. Thinking about how approaches scale to larger problems, different datasets, or new domains. Understanding of generalization limitations and when approaches might fail.
Practice Interview
Study Questions
Research Project Deep Dive - Limitations & Future Work
Honest discussion of what your work does not address, failure cases, and assumptions. Ideas for extensions or improvements. Understanding of broader implications and connections to other research areas.
Practice Interview
Study Questions
Communication & Clarity
Ability to explain complex research concepts clearly to a technical audience. Quality of presentation materials. Responsiveness to audience understanding and questions. Enthusiasm for the work.
Practice Interview
Study Questions
Research Project Deep Dive - Technical Approach
Detailed explanation of your methodology, algorithms, or theoretical framework. Clarity on design decisions and why specific choices were made over alternatives. Ability to discuss mathematical details and handle technical probing.
Practice Interview
Study Questions
Research Project Deep Dive - Results & Impact
Clear presentation of results with appropriate metrics and visualizations. Quantification of impact (performance improvements, novel capabilities, efficiency gains, academic citations). Understanding of what results mean and their significance.
Practice Interview
Study Questions
Research Project Deep Dive - Problem Definition
Clear articulation of the research problem, why it matters, and why it was interesting to tackle. Understanding of prior work and existing limitations. Ability to position your work in the research landscape.
Practice Interview
Study Questions
Onsite: Technical Domain & Machine Learning Expertise
What to Expect
A focused technical interview with 1-2 Google researchers assessing your expertise in your specific research domain and broader ML/AI knowledge. This may involve discussing research papers, solving focused technical problems, analyzing datasets, or working through theoretical concepts relevant to Google's research. The format is flexible but probing, designed to assess depth and breadth of technical knowledge at the level expected for mid-career research scientists.
Tips & Advice
Be prepared for discussions about papers, not just your own but landmark papers in your field. Understand key results, limitations, and implications. You might be asked to critique a paper or propose improvements. Have strong understanding of how different subfields connect (e.g., how optimization relates to generalization, or how architectural choices in neural networks affect training dynamics). For mid-level, show both specialized knowledge and awareness of connections to broader research. If presented with a technical problem or data analysis task, approach it systematically: understand the problem, propose approaches, discuss trade-offs, and show iterative thinking.
Focus Topics
Cross-Domain Connections & Synthesis
Ability to connect your domain expertise to related areas and identify synergies. Understanding of how your research relates to other subfields of ML/AI. Thinking about novel combinations of techniques.
Practice Interview
Study Questions
Advanced Technical Concepts in Your Area
Deep expertise in specialized techniques relevant to your research (e.g., specific neural network architectures, probabilistic methods, optimization algorithms, causal inference methods). Nuanced understanding of when and how to apply them.
Practice Interview
Study Questions
Domain-Specific Research Literature
Comprehensive knowledge of important papers, methods, and researchers in your specific research area. Understanding of evolution of ideas and current open problems. Ability to critically evaluate and compare different approaches.
Practice Interview
Study Questions
Machine Learning Theory & Fundamentals
Strong understanding of learning theory, generalization bounds, optimization theory, or other theoretical ML foundations relevant to your work. Ability to reason about why methods work and when they fail.
Practice Interview
Study Questions
Onsite: Behavioral & Team Collaboration
What to Expect
A structured behavioral interview (typically 45-60 minutes) with a Google manager or senior researcher assessing your ability to work effectively in teams, handle challenges, take initiative, communicate across disciplines, and embody Google's leadership principles and research values. Expect questions about past experiences dealing with ambiguity, research setbacks, collaboration, mentoring, and your approach to research problems and career growth.[3]
Tips & Advice
Use the SPAR framework (Situation, Problem, Solution, Result/Impact) for behavioral stories. Prepare 5-7 stories covering: research failures and what you learned, times you had to adapt your approach, successful collaborations with colleagues, instances of mentoring or helping junior researchers, challenges you overcame, and times you took initiative. For mid-level, emphasize independent project ownership, ability to mentor others, and contributing to team decisions. Be specific about metrics and impact. Show self-awareness about your strengths and growth areas. Google values researchers who are curious, collaborative, and willing to explore novel ideas even if they fail. Demonstrate commitment to advancing the field, not just personal advancement. Be authentic and let your passion for research show.[3]
Focus Topics
Adaptability & Learning
Examples of learning new techniques, domains, or tools when needed for research. Adapting your approach when initial ideas didn't work. Taking on challenging problems outside comfort zone. Growth mindset.
Practice Interview
Study Questions
Mentoring & Helping Others Grow
Examples of mentoring junior researchers, interns, or less experienced colleagues. Demonstrating investment in others' growth and development. For mid-level, this should show you're thinking about team development.
Practice Interview
Study Questions
Collaboration & Teamwork in Research
Examples of working effectively with collaborators, co-authors, cross-functional teams, or advisors. Demonstrating ability to integrate feedback, resolve disagreements on research direction, and produce better work through collaboration.
Practice Interview
Study Questions
Research Project Ownership & Initiative
Examples of identifying important research problems, taking ownership of projects, seeing them through to completion or publication, and driving decisions. Demonstrates ability to work independently as expected for mid-level positions.
Practice Interview
Study Questions
Handling Research Setbacks & Failure
Honest discussion of research that didn't work out, failed experiments, rejected papers, or approaches that didn't pan out. What you learned and how it shaped your approach. Showing resilience and growth mindset.
Practice Interview
Study Questions
Frequently Asked Research Scientist Interview Questions
Explain singular value decomposition. How is it used to compute PCA, and how do singular values relate to variance explained?
Sample Answer
The idea in plain words
The singular value decomposition (SVD) writes any matrix X (any shape, no square or symmetric requirement) as a rotation, a stretch along the axes, and another rotation:
X=UΣV⊤
For a data matrix with n rows (samples) and d columns (features), after dropping empty directions:
- U is n×r with orthonormal columns (each column has length 1 and any two columns are perpendicular, so U⊤U=I); these are the left singular vectors, one coordinate per sample.
- Σ is an r×r diagonal matrix of singular values σ1≥σ2≥⋯≥0 (how much the matrix stretches along each axis).
- V is d×r with orthonormal columns (the right singular vectors, directions in feature space).
- r is the rank: the number of independent directions the matrix really uses, which equals its number of nonzero singular values and is at most min(n,d).
PCA (principal component analysis) finds the orthogonal directions in feature space that carry the most variance. The insight: if Xc is the data with each column's mean subtracted, its SVD gives those directions directly. The columns of V are the principal directions, and each singular value gives the variance along its direction.
Mechanism, in order
- Center. Subtract each column's mean: Xc=X−1μ⊤, with μ the vector of column means. This step is not optional (see the last example below).
- Decompose. Xc=UΣV⊤.
- Relate to the covariance. The sample covariance matrix is C=n−11Xc⊤Xc, and substituting the SVD gives
C=n−11VΣU⊤UΣV⊤=Vn−1Σ2V⊤
since U⊤U=I. That is an eigendecomposition of C: the eigenvectors are the columns of V and the eigenvalues are σi2/(n−1).
Step 3 on four points: the program below takes four centered points in two features, computes Xc⊤Xc/(n−1) directly, and checks that Vdiag(σi2/(n−1))V⊤ gives the same matrix. It then builds a matrix with singular values 1 and 1e-9 to show the condition-number effect discussed under the cost heading.
import numpy as np
# four centered points in 2 features: check C = V diag(S^2/(n-1)) V^T by hand-sized numbers
Xc = np.array([[3.0, 2.0], [1.0, 0.0], [-1.0, 0.0], [-3.0, -2.0]])
n = len(Xc)
U, S, Vt = np.linalg.svd(Xc, full_matrices=False)
C = Xc.T @ Xc / (n - 1)
print("Xc^T Xc / (n-1) =", C.tolist())
print("singular values:", np.round(S, 4), " S^2/(n-1):", np.round(S**2 / (n - 1), 4))
print("eigenvalues of C:", np.round(np.linalg.eigvalsh(C)[::-1], 4))
print("V diag(S^2/(n-1)) V^T equals C:", np.allclose(Vt.T @ np.diag(S**2 / (n - 1)) @ Vt, C))
print("columns of V have length 1 and are perpendicular (V^T V = I):", np.allclose(Vt @ Vt.T, np.eye(2)))
print("rank (number of nonzero singular values):", int((S > 1e-10).sum()))
# squaring the condition number: singular values 1 and 1e-9
rng = np.random.default_rng(0)
Q1, _ = np.linalg.qr(rng.normal(size=(50, 2)))
Q2, _ = np.linalg.qr(rng.normal(size=(2, 2)))
X = Q1 @ np.diag([1.0, 1e-9]) @ Q2.T
s = np.linalg.svd(X, compute_uv=False)
print("SVD of X, singular values:", s, " condition number:", f"{s[0] / s[1]:.2e}")
ev = np.linalg.eigvalsh(X.T @ X)[::-1]
print("eigenvalues of X^T X:", ev, " (true values 1 and 1e-18)")
print("sqrt of those eigenvalues:", np.sqrt(np.abs(ev)))
Output:
Xc^T Xc / (n-1) = [[6.666666666666667, 4.0], [4.0, 2.6666666666666665]]
singular values: [5.2361 0.7639] S^2/(n-1): [9.1388 0.1945]
eigenvalues of C: [9.1388 0.1945]
V diag(S^2/(n-1)) V^T equals C: True
columns of V have length 1 and are perpendicular (V^T V = I): True
rank (number of nonzero singular values): 2
SVD of X, singular values: [1.00000000e+00 1.00000001e-09] condition number: 1.00e+09
eigenvalues of X^T X: [1.00000000e+00 6.37266093e-17] (true values 1 and 1e-18)
sqrt of those eigenvalues: [1.0000000e+00 7.9828948e-09]
Reading it: the covariance matrix is (6.667442.667), its eigenvalues 9.1388 and 0.1945 equal σi2/(n−1) for the singular values 5.2361 and 0.7639 (5.23612/3=9.1388), the columns of V have length 1 and are perpendicular, and the rank is 2. The last block of the output is used in the cost section below.
- Variance explained. Variance along component i is λi=σi2/(n−1), and the explained variance ratio is λi/∑jλj. The divisor n−1 is the sample-variance convention (the one
np.covand scikit-learn's PCA use); with divisor n every variance scales by the same constant, so the ratios do not change. - Project. The component scores (coordinates of each sample in the new basis) are XcVk=UkΣk, using the first k columns.
Worked example
The program builds 200 samples in 5 features from 2 hidden factors plus small noise and a nonzero mean. It computes PCA three ways (SVD, eigendecomposition of the covariance, scikit-learn) and checks that they agree. It also prints a wrong-divisor check that is expected to fail, and shows what skipping the centering does.
import numpy as np
from sklearn.decomposition import PCA
rng = np.random.default_rng(0)
n, d = 200, 5
latent = rng.normal(size=(n, 2)) * np.array([4.0, 2.0])
W = rng.normal(size=(2, d))
X = latent @ W + 0.5 * rng.normal(size=(n, d)) + np.array([10.0, -3.0, 0.0, 5.0, 1.0])
# PCA through SVD of the CENTERED data matrix (n x d)
Xc = X - X.mean(axis=0)
U, S, Vt = np.linalg.svd(Xc, full_matrices=False) # U: n x d, S: d, Vt: d x d
print("shapes U, S, Vt:", U.shape, S.shape, Vt.shape)
# variance along component i = S_i^2 / (n - 1) (sample variance, divisor n-1)
var_svd = S**2 / (n - 1)
ratio = var_svd / var_svd.sum()
print("variance from SVD: ", np.round(var_svd, 4))
print("explained variance ratio:", np.round(ratio, 4))
# same thing via eigendecomposition of the covariance matrix (also divisor n-1)
evals, evecs = np.linalg.eigh(np.cov(X, rowvar=False))
evals = evals[::-1]
print("eigenvalues of covariance:", np.round(evals, 4))
print("S^2/(n-1) equals eigenvalues:", np.allclose(var_svd, evals))
print("S^2/n equals eigenvalues:", np.allclose(S**2 / n, evals))
# compare with scikit-learn (it centers internally; components match up to sign)
pca = PCA(n_components=d).fit(X)
print("sklearn explained_variance_:", np.round(pca.explained_variance_, 4))
print("matches SVD variances:", np.allclose(pca.explained_variance_, var_svd))
same_axes = np.allclose(np.abs(pca.components_), np.abs(Vt))
print("components match up to sign:", same_axes)
# scores: projecting onto the top k components, two equivalent ways
k = 2
scores_a = Xc @ Vt[:k].T
scores_b = U[:, :k] * S[:k]
print("scores via Xc @ V equal U*S:", np.allclose(scores_a, scores_b))
# skipping the centering step changes the answer
U2, S_unc, Vt2 = np.linalg.svd(X, full_matrices=False)
print("top singular value, centered vs uncentered:", round(S[0], 3), round(S_unc[0], 3))
mean_dir = X.mean(0) / np.linalg.norm(X.mean(0))
print("|cosine| of first component with the mean direction, centered: ", round(abs(Vt[0] @ mean_dir), 3))
print("|cosine| of first component with the mean direction, uncentered:", round(abs(Vt2[0] @ mean_dir), 3))
# truncated / randomized SVD: only the top 2 components, as used for large data
rp = PCA(n_components=2, svd_solver="randomized", random_state=0).fit(X)
print("randomized top-2 variances:", np.round(rp.explained_variance_, 4))
print("close to the full SVD's top 2:", np.allclose(rp.explained_variance_, var_svd[:2], rtol=1e-3))
Output:
shapes U, S, Vt: (200, 5) (5,) (5, 5)
variance from SVD: [139.5319 8.4273 0.2688 0.2384 0.2119]
explained variance ratio: [0.9385 0.0567 0.0018 0.0016 0.0014]
eigenvalues of covariance: [139.5319 8.4273 0.2688 0.2384 0.2119]
S^2/(n-1) equals eigenvalues: True
S^2/n equals eigenvalues: False
sklearn explained_variance_: [139.5319 8.4273 0.2688 0.2384 0.2119]
matches SVD variances: True
components match up to sign: True
scores via Xc @ V equal U*S: True
top singular value, centered vs uncentered: 166.634 169.18
|cosine| of first component with the mean direction, centered: 0.032
|cosine| of first component with the mean direction, uncentered: 0.718
randomized top-2 variances: [139.5319 8.4273]
close to the full SVD's top 2: True
What the output shows:
- Shapes: U is 200 by 5, Σ is stored as a length-5 vector, and V⊤ is 5 by 5.
- σi2/(n−1) equals the covariance eigenvalues (True), and equals scikit-learn's
explained_variance_(True). Dividing by n instead is False, which is the check that the divisor matters. - The first component carries 0.9385 of the variance and the second 0.0567, so two components keep about 0.9952 of it, as expected from 2 hidden factors.
- Components match scikit-learn up to sign. The sign of a singular vector is arbitrary, so comparisons use absolute values.
- Without centering, the top singular value changes from 166.634 to 169.18 and the first direction tilts toward the mean. Its absolute cosine with the mean direction is 0.718 uncentered versus 0.032 centered; how far it tilts depends on how large the mean is compared with the spread of the data. Uncentered, the first "component" is partly just the direction from the origin to the data cloud, not the direction of greatest spread.
Cost for large datasets
- Full SVD of an n×d matrix costs on the order of ndmin(n,d) operations. Forming the covariance first costs about nd2 and then a d×d eigendecomposition costs about d3. Squaring the data this way also squares the condition number (the ratio of the largest to the smallest singular value, a measure of how lopsided the matrix is), which loses precision for small singular values, so the SVD of the data matrix is the more accurate route. In the last block of the four-point program's output, a matrix with singular values 1 and 1e-9 (condition number 1e9) is decomposed correctly by the SVD (1 and 1.00000001e-09), but the eigenvalues of X⊤X come out as 1 and 6.37e-17 instead of 1e-18. The second value is rounding noise: 64-bit floats resolve about 16 digits, so against an eigenvalue of 1 anything near 1e-16 cannot be told from zero, and the squared condition number 1e18 is beyond that reach. Its size and even its sign change from matrix to matrix (200 other random matrices with the same singular values gave values between about -3e-16 and +3e-16, negative roughly half the time, which is why the code takes the absolute value before the square root). Here the square root, 7.98e-09, is nearly 8 times the true 1e-9, and on another matrix it could be larger, or zero.
- For ordinary data (up to thousands of columns) the full SVD of the centered matrix is the right default. When you need only the top k components (the number you want to keep) with k≪min(n,d), use a truncated SVD (iterative Lanczos-type methods, which find the few leading singular vectors using only products of the matrix with vectors) or a randomized SVD. Randomized SVD multiplies Xc by a random d×(k+p) matrix, where p is a small number of extra random columns (the oversampling, for example 5 to 10) that make a good approximation more likely; the product is a sketch, a much smaller matrix n×(k+p) that captures the dominant directions of Xc. An exact SVD of the small sketch then gives the answer. Cost drops to roughly nd(k+p). In the program, scikit-learn's randomized solver with
random_state=0returns top-2 variances that match the full SVD to the printed precision. - Randomized methods are approximate. They are most accurate when singular values decay quickly; with a flat spectrum (singular values that decay slowly), add oversampling p or power iterations (multiplying by Xc⊤Xc a few times before sketching, which widens the gap between large and small singular values).
Common mistakes
- Forgetting to center (shown above), or centering but not scaling when features have different units.
- Confusing singular values with variances: the variance is the singular value squared, divided by n−1.
- Assuming eigenvectors and singular vectors come with a fixed sign.
- Choosing k by a fixed variance target alone: look at the spectrum for a gap, and judge the downstream task.
How do you decide what to delegate to someone you're growing versus what you keep for yourself? Walk through how you use delegation deliberately as a coaching tool.
Sample Answer
Direct answer
Decide what to delegate by looking at two things: where the task sits relative to the person's current skill level, and what happens if they get it wrong. Delegate work that stretches them but is reversible or cheap to fix. Keep for yourself work that needs context you can't hand off in time, decisions whose blast radius exceeds the trust you've built with this person so far, or one-off tasks where teaching would take longer than doing it. Treat each handoff as a deliberate intervention, not an offload: pick the task for the specific gap it targets, define what "done" looks like up front, and calibrate how much support comes with it.
Decision framework
Match difficulty to their zone of growth. Too easy and it's busywork with no development value. Too hard with no support and it's discouraging or risky. The sweet spot is a task just past what they've done independently before.
Weigh reversibility, not just difficulty. Prefer delegating decisions that are cheap to undo (a first draft, a component design, a low-stakes customer interaction) over ones that are hard to walk back (a commitment made externally, a change with security or compliance exposure). Trust for higher-stakes delegation gets built incrementally through the reversible tasks.
Compare time-to-teach against time-to-do. If explaining the task well would take meaningfully longer than doing it yourself, and it's a one-off with no repeat value, do it yourself. If it's a skill they'll use again, the teaching cost is an investment that pays back on the second and third time.
Define the support structure explicitly. Delegating isn't handing off and disappearing. Decide in advance: what checkpoints happen, what they can decide alone versus what needs a quick check-in, and what "stuck enough to escalate" looks like.
What you keep. Work that needs institutional context you can't transfer in the available time, early-relationship politically sensitive conversations, and anything where a mistake would damage a stakeholder's trust in the team broadly rather than just cost you some rework time.
Worked example
Say you're leading a project with three distinct pieces. One is well-scoped, reversible, and slightly above where this person has worked before: a strong candidate to delegate as a growth task, with a design check-in before they start building and a review before it ships. Another piece is customer-facing with real cost if it goes wrong: you either delegate it with heavy pairing so you catch problems before they land, or you keep it yourself this round and delegate the next similar piece once trust is established. The third is a one-off internal chore with no growth value: you delegate it purely for your own capacity, not as a coaching move, and you say so, because dressing up busywork as a growth opportunity erodes trust.
Trade-offs and pitfalls
Delegating only "safe" tasks because failure is expensive to you personally caps the person's growth. They never build judgment under real stakes if you only ever hand them things that can't go wrong.
Delegating and then vanishing looks like empowerment but is often abdication. The failure mode shows up late, when it's expensive to fix, because there was no checkpoint designed to catch it earlier.
Over-specifying the implementation defeats the purpose. If you hand someone a task but dictate every step, there's no room left for them to exercise judgment, which is the actual thing you're trying to develop.
The honest trade-off: delegating a stretch task usually costs you more short-term time, in reviewing and coaching, than doing it yourself would. That extra cost is the investment, and it's worth naming rather than pretending delegation is free.
Tell me about a time your work convinced stakeholders or leadership to change direction.
Sample Answer
Direct answer
Show the moment your evidence, not your title or persistence, changed what leadership decided to do, and be precise about what specifically shifted (a roadmap priority, a budget line, a technical approach) as a direct result of what you brought them. The strongest version has a clear before (what leadership planned to do) and after (what they did instead because of your input).
How to build the case
- Lead with evidence, not opinion: pair a quantitative signal (usage data, error rates, funnel drop-off) with a qualitative one (user quotes, incident detail, direct observation), one alone is easier to dismiss.
- Address the standing objection directly: name the reason leadership was leaning the other way (cost, timeline, competing priority) and show how you specifically answered it, rather than only restating your own case louder.
- De-risk the ask: a prototype, pilot, or small experiment that shows early signal before asking for the full commitment makes the change easier to approve than a request based on projection alone.
- This scales: the same shape (evidence, a direct answer to the standing objection, a way to de-risk the ask) sits behind a smaller "changed the sprint plan" story and a larger "got executive sponsorship for a multi-month investment" story, only the size of the audience and the ask differs.
Worked example (skeleton)
Situation: leadership was planning to prioritize new-feature marketing pushes; I believed drop-off in an early funnel step was costing more than those pushes would gain.
Task: make the case to reprioritize.
Action: I pulled the funnel data (drop-off at that step was roughly double the next-worst step), ran five quick user sessions that surfaced a specific trust concern at that exact point, and built a lightweight prototype of a fix rather than only describing it. I brought a one-page brief to the planning review and addressed the standing objection directly: "this doesn't have to compete with the marketing work, it's a two-day fix we can land first."
Result: leadership moved the fix ahead of the marketing work for that sprint. After it shipped, completion at that funnel step rose from 48 out of 100 sessions to 66 out of 100 over the following two weeks, measured from the same analytics view used to make the original case.
Trade-offs and pitfalls
- Bringing only a strong opinion with no evidence, or data with no answer to the specific objection leadership actually has, both tend to stall rather than change the decision.
- Overselling the size of the shift: if the "direction change" was really a minor scheduling tweak, calling it a strategic pivot invites a skeptical follow-up you can't support.
- Taking sole credit when the decision was genuinely a group call; name who else weighed in and what your specific contribution was to the outcome.
Devise a strategy for choosing model evaluation baselines and ablation experiments when you suspect small effect sizes and potential overfitting. Explain the trade-offs between more statistical tests, stronger baselines, and computational cost, and propose a template for robust claims.
Sample Answer
Approach summary
Start by assuming tiny true effects and high overfitting risk. Prioritize strong, reproducible evidence: conservative baselines, rigorous validation splits, and targeted ablations that isolate mechanisms.
Strategy
- Strong baselines first
- Reproduce simple but competitive baselines (e.g., tuned logistic/regressor, random features, data augmentation only). A new method must beat these reliably.
- Validation design
- Use nested cross-validation or repeated random splits to estimate variance. Hold out a final locked test set for the claim.
- Ablation plan
- Pre-register a small set (~3–6) of hypothesis-driven ablations: remove key components individually, replace with controlled alternatives, and run pairwise comparisons.
- Statistical testing
- Apply paired tests (e.g., Wilcoxon signed-rank or paired t if normality holds) across folds; adjust for multiple comparisons (Benjamini–Hochberg) when testing multiple ablations.
- Power and sample-effort trade-off
- Run a pilot to estimate effect size and variance; compute required runs for desired power (e.g., 80%). If required runs are prohibitive, favor stronger baselines and tighter claims.
Trade-offs
- More tests → higher chance of false positives and greater computational cost; need corrections and pre-registration.
- Stronger baselines → higher bar but reduces risk of publishing artifacts.
- More runs/permutations → better confidence but linear increase in cost; use stratified sampling and variance-reduction (control seeds, common random numbers).
Template for robust claims
- Claim statement (precise metric, dataset, and seed regime)
- Experimental protocol (data splits, hyperparameter tuning budget, number of repeats)
- Baselines (list + how tuned)
- Ablations (pre-registered list and rationale)
- Statistical results (mean ± SE, p-values, effect size, correction method)
- Power analysis and limitations
- Reproducibility artifacts (code, seeds, config)
This balances scientific rigor with computational practicality and is appropriate for research-grade claims.
Tell me about a time a paper or grant you submitted was rejected. Walk me through your emotional reaction, your analysis of the reviewer comments, the concrete improvements you made (if any), whether you resubmitted or pivoted, and what you learned about improving future submissions.
Sample Answer
Direct answer
Rejection of a paper or grant hits differently than a single comment because months or years of work are being judged all at once. My honest first reaction is disappointment, sometimes with a flash of wanting to dismiss the reviewers as having missed the point. I've learned to let that pass before actually reading the comments closely, then treat the review panel's reasoning the same way I'd treat any other critique: sort what's genuinely valid from what's a misunderstanding, make the improvements the valid points call for, and decide between resubmitting, pivoting the framing, or moving on based on how much of the core idea survives that process.
Structured elaboration
Emotional reaction. Rejection, especially after a long review cycle, tends to trigger either deflation or a defensive certainty that the reviewers didn't understand the work. Both are normal and neither is useful for the next step, so I treat the first read of the decision as informational only, and delay any real analysis or decision until I've had a day or two of distance.
Analyzing the reviewer comments. On the second, calmer read, I separate reviewer comments into valid gaps (a real weakness in the method, evidence, or framing), fixable presentation problems (the work was fine but wasn't explained clearly enough for the reviewer to see it), and genuine misreadings (the reviewer's critique doesn't actually apply once you look closely at what was submitted). Each of those calls for a different fix: strengthen the work itself, rewrite the explanation, or write a clear rebuttal for a misreading rather than silently reworking something that wasn't actually broken.
Concrete improvements. For valid gaps, the fix is substantive, more evidence, a stronger baseline, an additional analysis, not just rewording around the weakness. For presentation problems, the fix is in the writing, restructuring the argument so the actual contribution is legible to someone reading it cold, since a reviewer's misunderstanding is often partly the paper's fault for not being clear enough.
Resubmit, pivot, or move on. If the core contribution survives after addressing the valid criticism, resubmit, often to the same venue or a comparable one. If the reviewers collectively pointed at a framing problem rather than a substance problem, pivot: keep the underlying result but present it around a different, better-supported claim. If the rejection exposes a genuine flaw that can't be fixed without redoing the central piece of work, the honest call is to set that specific direction aside rather than keep resubmitting a patched version of something structurally weak.
Worked example
A grant proposal for a new modeling approach was rejected, with reviewers split: two said the preliminary results didn't convincingly support the proposed scale-up, one said the proposal's core idea was unclear. After the initial disappointment passed, re-reading calmly, I judged the "results don't support scale-up" comments as valid: our preliminary experiments really were on a much smaller scale than we were asking to fund. The "idea unclear" comment, on rereading our own proposal, was fair too, the motivation section buried the actual contribution behind background material. We didn't resubmit as-is; we ran one additional experiment at an intermediate scale to strengthen the evidence, rewrote the motivation section to lead with the contribution, and resubmitted to the next cycle with those two changes, rather than assuming the reviewers had simply missed something that was already clear.
Trade-offs and pitfalls
Responding to rejection with an immediate rebuttal, before the initial emotional reaction has settled, tends to read as defensive even when some points are valid. Treating every reviewer comment as equally deserving of a full rework, without distinguishing valid gaps from misreadings, can weaken a proposal by removing content that was actually fine and just misunderstood. And resubmitting the same work with only surface changes after genuine flaws were identified usually reads to reviewers as not having engaged with the critique at all, which is worse than not resubmitting.
Beyond the initial launch experiment, why would you keep a long-run holdout group even after a feature or a pricing algorithm change has fully shipped? Explain how you would decide the size of the holdout, how long to maintain it, and what you are trying to learn from it that the original launch experiment could not tell you. How would you communicate the cost of maintaining a holdout to stakeholders who want the new experience rolled out to everyone?
Sample Answer
Direct answer
A launch experiment tells you what happens over its own short window; it cannot tell you what happens after novelty fades, after users have had months to adjust their real behavior, or after a pricing algorithm has compounded across several billing cycles. A long-run holdout is a small slice of the eligible population that is deliberately kept on the old experience indefinitely, purely so you still have a counterfactual after everyone else has moved on. Once you roll out to 100%, that counterfactual disappears unless you built one in on purpose, so the holdout is not a nicety, it is the only way to keep answering "compared to what" after full rollout.
Structured elaboration
What the launch experiment structurally cannot tell you
- Novelty and primacy effects. A novelty effect is a short-term bump from users noticing and exploring something new, which fades as the new experience becomes routine. A primacy effect is the opposite pattern: a change that depresses behavior briefly while users re-learn a workflow, then recovers or improves as they adapt. A one- or two-week launch test mostly measures whichever of these dominates early, not the steady-state effect.
- Compounding and delayed effects. A pricing algorithm change or an onboarding flow can shift 90-day retention, churn, or lifetime value in ways that simply have not happened yet by the time the launch test ends. There is nothing to measure early because the outcome has not occurred.
- Post-launch drift. Once a feature is fully shipped, everything else in the product keeps changing around it (other launches, seasonality, market conditions). Without a live control, you cannot separate the feature's ongoing effect from all of that background drift.
Sizing the holdout
Size the holdout the same way you would size any two-arm comparison: pick the smallest long-run effect you would regret missing on your slowest-maturing primary metric, then run the sample-size calculation against your actual eligible population.
n=(p2−p1)2(z1−α/22pˉ(1−pˉ)+z1−βp1(1−p1)+p2(1−p2))2,pˉ=2p1+p2
This gives you the minimum number of users per arm; convert that into a required holdout percentage against your eligible population size (worked below). Round the resulting percentage up, both for attrition out of the holdout itself and because a holdout that is exactly borderline-powered on day one will be underpowered a year later as the population shifts.
How long to maintain it
Tie the minimum duration to the natural maturation window of the outcome you actually care about (a 90-day retention outcome needs at least one full 90-day window past stabilization, not one arbitrary calendar month). Beyond that minimum, treat "keep the holdout" as a decision revisited on a fixed cadence (for example, quarterly) rather than a permanent default:
- If two consecutive readout windows show a stable, well-understood effect, that is the trigger to either retire the holdout or shrink it to a smaller size that still clears the power bar above.
- If the effect is still moving or the product around the feature keeps changing, that is the trigger to keep the holdout at full size.
Surrogate metrics while waiting for the readout
Waiting 90 days for the primary outcome does not mean flying blind for 90 days. Track short-horizon metrics that historically correlate with the long-run outcome, such as week-1 activation or day-7 return rate as leading indicators for 90-day retention, and monitor them on a lightweight, non-primary basis. Two things matter about surrogate metrics: they are for early warning only ("this is trending in a worrying direction, look closer"), and they do not substitute for the long-run readout, because a surrogate can move without the outcome it is supposed to predict actually moving in the same direction once the novelty period ends.
Keeping the holdout uncontaminated
SUTVA, the stable unit treatment value assumption, is the assumption that one unit's outcome does not depend on another unit's treatment assignment. A long-run holdout only tells the truth if it holds: if held-out and treated users interact (shared households, marketplace two-sidedness, referral loops), the "control" group is partly experiencing the treatment through spillover and the comparison is biased. Keep the holdout cohort assignment stable and out of unrelated concurrent experiments on the same surface, and periodically re-check that its demographics still resemble the overall population (holdout users who disproportionately churn out over time silently change what the holdout represents).
Communicating the cost to stakeholders
Frame the holdout as a bounded cost with a defined trigger to shrink it, not an indefinite tax on the business:
- State the cost concretely: holdout size times the per-user value of the already-measured launch uplift times the time period, so a stakeholder sees an opportunity-cost number in the same units as their other decisions, not an abstract appeal to rigor.
- Pair that cost with what it buys: the ability to catch a long-run reversal (a change that looked good for two weeks but erodes retention over two quarters) before it has already happened to 100% of users.
- Offer a shrinking schedule tied to the review cadence above, so "keep a holdout forever" is never the actual proposal on the table.
Worked example
Suppose the primary long-run outcome is 90-day retention, currently at a 40% baseline, and the team wants to be able to detect a 1 percentage point absolute erosion (39% vs 40%) at α=0.05 two-sided, 80% power (z1−α/2=1.9600, z1−β=0.8416).
pˉ=20.40+0.39=0.395
z1−α/22pˉ(1−pˉ)=1.9600×2×0.395×0.605=1.9600×0.6910=1.3544
z1−βp1(1−p1)+p2(1−p2)=0.8416×0.40×0.60+0.39×0.61=0.8416×0.6931=0.5833
n=(0.01)2(1.3544+0.5833)2=0.00013.7511≈37,513 users per arm
Against a population of 2,000,000 monthly eligible users, a 1% holdout (20,000 users) falls short of this bar, a 2% holdout (40,000 users) clears it with a small margin, and a 3% holdout (60,000 users) clears it comfortably and leaves room for attrition. That is the actual decision: 2% is the honest minimum for this MDE, 3% is the safer operating choice, and anything above that is buying detection of a smaller effect than the team said it cared about, at a cost that keeps growing.
Trade-offs & pitfalls
- Conflating a holdout with a canary. A canary (see ramp and staged rollout) exists to catch acute, short-term harm during rollout. A holdout exists to measure a slow-moving counterfactual after rollout is complete. Sizing and duration logic for one does not transfer to the other; a 2% canary held for three days answers a completely different question than a 2% holdout held for two quarters.
- Letting the holdout go stale. A holdout that was correctly sized against last year's population and last year's MDE can silently become underpowered as traffic composition shifts; the sizing calculation is not a one-time exercise.
- Treating "permanent" as the default answer. The strongest version of this answer is a holdout with an explicit re-evaluation trigger, not an open-ended commitment that stakeholders correctly resent paying for indefinitely.
Describe the purpose of splitting data into training, validation, and test sets. Explain what each split is used for, why a model should never be evaluated on the same data used to fit or tune it, and give typical split-ratio guidance for a large dataset (for example, around 100,000 rows) versus a small one.
Sample Answer
Direct answer
A dataset is split into training, validation, and test sets so that a model can be fit, tuned, and honestly evaluated using three separate pools of data, none of which contaminate each other. The training set is what the model actually learns its parameters from. The validation set is used to make decisions about the model (comparing hyperparameters, comparing candidate models, deciding when to stop training) while it's still being developed. The test set is held back and used exactly once, at the very end, to get an unbiased estimate of how the finished model will perform on new data.
Structured elaboration
- Why not just use the training set to evaluate: a model's performance on the exact data it was fit to is optimistic by construction, especially for flexible models, so it doesn't tell you how the model will do on data it hasn't seen.
- Why the validation set isn't enough by itself: if you use the validation set to make many decisions (try model A, try model B, try ten hyperparameter settings, pick the best one on validation performance), you're implicitly fitting to the validation set too, just at a higher level than parameter fitting. The best-on-validation choice is itself a form of overfitting to that particular validation set, so its own validation score is an optimistic estimate of true future performance.
- Why the test set has to be held back and touched once: it exists specifically to give an estimate that hasn't been used, even indirectly, to make any modeling decision. As soon as you look at test performance and then go back and change something in response, it stops serving that purpose and becomes a second validation set in disguise.
- Typical split ratios: for a large dataset there's plenty of data to go around, so a common starting point is roughly 70 percent training, 15 percent validation, 15 percent test, though the exact split matters less once each piece is large enough to give a stable estimate. For a small dataset, holding out 15 percent for validation and 15 percent for test might leave too little data to train on or to get a stable estimate from either held-out set, so techniques like k-fold cross-validation (using different rotating subsets of the training data as validation across several training runs) are often preferred over a single fixed validation split, to make more efficient use of limited data. Splitting strategy also needs to adapt when data isn't simple independent rows, for example, time-ordered data (where the split should respect time order, not be randomized) or imbalanced or grouped data (where naive random splitting can leak related rows across the split boundary or produce splits with badly skewed class proportions).
Worked example
For a dataset of 100,000 rows using a 70/15/15 split, that's 70,000 rows for training, 15,000 for validation, and 15,000 for test. During development, you might try several model configurations, each trained on the 70,000-row training set and scored on the 15,000-row validation set, and pick whichever configuration scores best there. Only once that choice is final do you run the chosen model on the 15,000-row test set a single time, and that number, not the validation number, is what you report as the honest estimate of how the model will perform on new data.
Trade-offs and pitfalls
The most common mistake is treating the test set as just another validation set and checking it repeatedly during development; even a small amount of this quietly turns the test score into an optimistic estimate again. Another common mistake is splitting the data randomly regardless of its structure; for time-series data especially, a random split will leak future information into training and make validation performance look far better than the model will actually achieve in production, where it only ever has access to the past.
Write a short, professional email making a specific ask of someone (for example, requesting access, information, or a decision). State the ask, the essential context, and the next step in the first two sentences rather than burying it at the end.
Sample Answer
Direct answer
Put the ask, the essential context, and the next step in the first two sentences, so a busy reader can act on the email even if they only read the opening before deciding whether to reply now or later.
Structured elaboration
- State the ask as the first sentence, not buried after several paragraphs of context: "I'd like to request temporary access to X" or "Could you approve Y by Thursday?"
- Give only the essential context, one or two sentences of why this ask exists, not the full backstory. Include it because it makes the ask easier to say yes to quickly, not because it's interesting.
- State the next step explicitly: what you need them to do, and by when, so they don't have to infer the deadline or the required action.
- Use the subject line to state the ask, not just the topic: "Approval needed by Thursday: Q3 budget line" tells the reader more than "Budget question."
- Keep the whole email short. If the request genuinely needs more context, put the essential ask up top and the detail below it, rather than making the reader wade through detail to find the ask.
Worked example
Subject: "Access request: prod DB read access, needed by Wednesday"
Body: "Could you grant me temporary read access to the orders table in prod? I'm investigating a customer-reported data discrepancy (ticket #4821) and need to check actual row values, which I can't do in staging since the issue only reproduces with real production data. Happy to have this access time-boxed to a few days and revoked afterward if that's easier to approve."
The ask (temporary read access) and the deadline context (needed by Wednesday) are in the subject line alone; the body confirms the specific ask, gives the minimum context needed to approve it, and proactively offers a constraint (time-boxed) that makes approval easier.
Trade-offs and pitfalls
- Leading with a long justification before the ask is the single most common failure; a reader has to hold the whole paragraph in their head waiting to find out what you actually want.
- Too little context can also fail: an ask with zero justification can force the reader to ask a clarifying question back, which is slower than including the one sentence of context that would have let them approve it immediately.
- For sensitive or high-stakes asks (a large budget approval, access to something risky), a slightly longer, more carefully justified email is worth the extra length; the "front-load the ask" principle still applies, it just means front-loading a well-justified ask rather than skipping justification entirely.
What does it mean for a function to be convex, and why does that guarantee every local minimum is global? What do L-smoothness and strong convexity add for gradient descent?
Sample Answer
The idea in plain words
A function f is convex if the straight line between any two points on its graph never dips below the graph. In symbols, for all points x,y and every weight t∈[0,1]:
f(tx+(1−t)y)≤tf(x)+(1−t)f(y)
The left side is the function value at a point on the segment between x and y; the right side is the height of the chord at the same point. A bowl satisfies this; a double well (two valleys with a hill between) does not.
Why every local minimum is global
A local minimum is a point x whose value is no larger than that of any point in some small neighbourhood. Suppose x is a local minimum of a convex f but some other point y has f(y)<f(x). Walk from x toward y. For a small step t>0, convexity gives
f(x+t(y−x))≤(1−t)f(x)+tf(y)<f(x)
so points arbitrarily close to x have strictly lower value, contradicting that x is a local minimum. Hence no such y exists, and the local minimum is global. Two caveats: the minimizer may not be unique (a flat valley is convex), and the minimum may not exist (for example ex on the real line approaches 0 but never reaches it).
What smoothness and strong convexity add
Convexity alone says nothing about how fast gradient descent (the update xk+1=xk−η∇f(xk), with step size η) gets there. Two curvature bounds do.
| Property | Meaning | For twice-differentiable f | What it gives gradient descent |
|---|---|---|---|
| L-smooth | The gradient does not change faster than L times the distance: ∥∇f(x)−∇f(y)∥≤L∥x−y∥ | Hessian eigenvalues at most L | Safe step size: η=1/L guarantees decrease at each step. For convex f, f(xk)−f⋆≤2kL∥x0−x⋆∥2, an O(1/k) rate |
| mu-strongly convex | f lies above a quadratic bowl of curvature μ>0 | Hessian eigenvalues at least μ | Unique minimizer and a linear (geometric) rate: f(xk)−f⋆≤(1−μ/L)k(f(x0)−f⋆) with η=1/L |
Here f⋆ is the minimum value, x⋆ a minimizer, and κ=L/μ is the condition number. Larger κ means a rate closer to 1 and slower progress.
Reading the table in plain words. A differentiable function has a gradient (slope) at every point; the Hessian is the matrix of second derivatives, which for a function of one variable is just f′′, and its eigenvalues are the curvature of f along perpendicular directions (the curvature is how fast the slope changes). "Eigenvalues at most L" says no direction bends more sharply than L; "at least μ" says every direction bends at least as much as a parabola with curvature μ. The word linear in "linear rate" is a name, not a speed: the gap shrinks by a constant factor each step, so log(gap) against k is a straight line, and that is the fast case. O(1/k) is the slow one: ten times less gap needs ten times more steps.
Worked example
The program does three things: it tests the convexity inequality on 10,000 random pairs for a convex function and for a double well (a check that can fail, and does); it runs gradient descent with step 1/L on logcoshx, which is convex and 1-smooth but not strongly convex because its curvature goes to 0 in the tails; and it runs gradient descent on a quadratic with μ=1 and L=10 and compares with the linear-rate bound. The bounds are upper bounds, so they hold with room to spare.
import numpy as np
rng = np.random.default_rng(0)
# 1. The convexity inequality f(t*x + (1-t)*y) <= t*f(x) + (1-t)*f(y), tested on random pairs.
def violations(f, trials=10000):
bad = 0
for _ in range(trials):
x, y = rng.uniform(-2, 2, size=2)
t = rng.uniform()
if f(t * x + (1 - t) * y) > t * f(x) + (1 - t) * f(y) + 1e-12:
bad += 1
return bad
convex_f = lambda x: x**2 + np.exp(x) # convex
double_well = lambda x: (x**2 - 1) ** 2 # two minima, not convex
print("violations, x^2+exp(x):", violations(convex_f))
print("violations, (x^2-1)^2: ", violations(double_well))
# 2. Gradient descent with step 1/L on f(x) = 0.5 x^T H x (minimum value 0 at the origin).
def run(eigs, steps, x0):
H = np.diag(eigs)
L = max(eigs)
x = np.array(x0, dtype=float)
f = lambda z: 0.5 * z @ H @ z
fvals = [f(x)]
for _ in range(steps):
x = x - (1.0 / L) * (H @ x)
fvals.append(f(x))
return np.array(fvals), L
x0 = [1.0, 1.0]
# convex and 1-smooth but NOT strongly convex: f(x) = log(cosh(x)), f' = tanh(x), f'' <= 1, f'' -> 0 in the tails.
# Step 1/L = 1. Bound: f(x_k) - f* <= L*(x_0 - x*)^2 / (2k), with f* = 0 at x* = 0.
x = 10.0
fv_lc = [np.log(np.cosh(x))]
for _ in range(200):
x = x - np.tanh(x)
fv_lc.append(np.log(np.cosh(x)))
for k in (10, 50, 200):
bound = 1.0 * 10.0**2 / (2 * k)
print(f"log-cosh, L=1: k={k:3d} f(x_k)={fv_lc[k]:.3e} bound={bound:.3e} holds={fv_lc[k] <= bound}")
# strongly convex (mu = 1, L = 10): f(x_k) <= (1 - mu/L)^k f(x_0) (linear rate)
fv, L = run([10.0, 1.0], 200, x0)
for k in (10, 50, 200):
bound = (1 - 1.0 / L) ** k * fv[0]
print(f"mu=1, L=10: k={k:3d} f(x_k)={fv[k]:.3e} bound={bound:.3e} holds={fv[k] <= bound * (1 + 1e-9)}")
Output:
violations, x^2+exp(x): 0
violations, (x^2-1)^2: 3071
log-cosh, L=1: k= 10 f(x_k)=3.416e-02 bound=5.000e+00 holds=True
log-cosh, L=1: k= 50 f(x_k)=0.000e+00 bound=1.000e+00 holds=True
log-cosh, L=1: k=200 f(x_k)=0.000e+00 bound=2.500e-01 holds=True
mu=1, L=10: k= 10 f(x_k)=6.079e-02 bound=1.918e+00 holds=True
mu=1, L=10: k= 50 f(x_k)=1.328e-05 bound=2.835e-02 holds=True
mu=1, L=10: k=200 f(x_k)=2.489e-19 bound=3.880e-09 holds=True
Reading the output:
- The convex function x2+ex (second derivative 2+ex>0) has 0 violations. The double well (x2−1)2 has 3071 of 10,000, which is the non-convex signature.
- For the convex, smooth, not strongly convex function, the measured gap sits below the L∥x0−x⋆∥2/(2k) bound at every horizon. The bound is a worst case over all such functions, not a prediction for this one.
- With strong convexity the gap shrinks geometrically: the measured value at k=200 is on the order of 1e-19, far below the bound of about 3.9e-09.
A run you can follow by hand
Take f(x)=21(x12+4x22). Its Hessian is diag(1, 4), so μ=1, L=4, κ=4, and the step is 1/L=0.25. Each step multiplies x1 by 1−0.25⋅1=0.75 and x2 by 1−0.25⋅4=0. The guaranteed factor per step on the gap is 1−μ/L=0.75. The second program prints the first four steps from (1, 1) and then, for several values of κ, how many steps the bound guarantees for a tenfold cut of the gap, next to how many steps a run on a quadratic with that κ actually takes.
import numpy as np
# f(x) = 0.5*(1*x1^2 + 4*x2^2): Hessian diag(1, 4), so mu = 1, L = 4, kappa = 4, step 1/L = 0.25
H = np.diag([1.0, 4.0]); mu, L = 1.0, 4.0
f = lambda x: 0.5 * x @ H @ x
x = np.array([1.0, 1.0]); f0 = f(x)
print(f"k=0 x={x} f={f(x):.5f}")
for k in range(1, 5):
x = x - (H @ x) / L
print(f"k={k} x={x} f={f(x):.5f} bound (1-mu/L)^k * f(x0) = {(1 - mu / L) ** k * f0:.5f}")
# steps until the gap has shrunk by a factor of 10: what the bound guarantees, and what a run on diag(1, kappa) from (1, 0) takes
for kappa in (4, 10, 100):
factor = 1 - 1 / kappa
guaranteed = int(np.ceil(np.log(0.1) / np.log(factor)))
Hk = np.diag([1.0, float(kappa)])
z = np.array([1.0, 0.0]); g0 = 0.5 * z @ Hk @ z; measured = 0
while 0.5 * z @ Hk @ z > 0.1 * g0:
z = z - (Hk @ z) / kappa
measured += 1
print(f"kappa={kappa:3d}: factor {factor:.2f} per step, steps the bound guarantees for a 10x cut: {guaranteed}, steps a run from (1, 0) takes: {measured}")
Output:
k=0 x=[1. 1.] f=2.50000
k=1 x=[0.75 0. ] f=0.28125 bound (1-mu/L)^k * f(x0) = 1.87500
k=2 x=[0.5625 0. ] f=0.15820 bound (1-mu/L)^k * f(x0) = 1.40625
k=3 x=[0.421875 0. ] f=0.08899 bound (1-mu/L)^k * f(x0) = 1.05469
k=4 x=[0.31640625 0. ] f=0.05006 bound (1-mu/L)^k * f(x0) = 0.79102
kappa= 4: factor 0.75 per step, steps the bound guarantees for a 10x cut: 9, steps a run from (1, 0) takes: 5
kappa= 10: factor 0.90 per step, steps the bound guarantees for a 10x cut: 22, steps a run from (1, 0) takes: 11
kappa=100: factor 0.99 per step, steps the bound guarantees for a 10x cut: 230, steps a run from (1, 0) takes: 115
Reading it: f starts at 2.5 and the bound after one step is 0.75 times that, 1.875; the real value is 0.28125 because the steep coordinate vanishes at once. After that only x1 is left and it shrinks by exactly 0.75 per step, so f, which is quadratic in x1, shrinks by 0.752=0.5625 per step, faster than the guaranteed 0.75. A tenfold cut of the gap is guaranteed after ln(0.1)/ln(1−1/κ) steps rounded up: 9, 22 and 230 for κ = 4, 10 and 100. Those are guarantees that cover every function with that κ. The run from (1, 0) on a quadratic with eigenvalues 1 and κ needs 5, 11 and 115 steps, about half, because the gap of a quadratic shrinks by the square of the factor. Either way the count grows in proportion to κ: κ=10 means a factor of 0.9 per step and about 22 guaranteed steps per factor of 10; κ=100 means 0.99 per step and about ten times as many.
Trade-offs and pitfalls
- Convex does not mean easy or unique. Without strong convexity the minimizer can be a whole set, and the rate is only O(1/k).
- Smoothness is what limits the learning rate. A step above 2/L makes gradient descent diverge on a quadratic whose largest curvature is L. Not knowing L is the reason to use a backtracking line search (try a large step and shrink it until f decreases enough) or an adaptive method (one that sets the step size from the gradients seen so far, for example per coordinate).
- Strong convexity is often added deliberately. Adding the ridge (L2) penalty 2λ∥x∥2 to a loss adds λ to every Hessian eigenvalue (a penalty written λ∥x∥2 adds 2λ), turning a merely convex loss into a strongly convex one.
- Do not say "convex means one global minimum". It means every local minimum is global.
What have you actually done to build a culture of learning and knowledge-sharing on a team, beyond one-on-one mentoring?
Sample Answer
Direct answer
Building a learning culture beyond 1:1s means putting repeatable, low-friction habits in place so sharing is the default rather than a favor. What that actually looks like differs a lot depending on the starting point: growing a habit on a team that has none yet is a different job than repairing a team that's already knowledge-hoarding or blame-heavy.
Concrete mechanisms and when to use them
- Protected time. A small, explicitly scheduled block for learning or side improvements, documented so it isn't the first thing that gets cut under deadline pressure.
- Recurring show-and-tell sessions with rotating presenters. Forces more people to teach, not just attend, which is where retention actually happens.
- Pair or mob work as a distinct mechanism. This is not the same as a scheduled talk. It transfers tacit, in-the-moment judgment (why you chose this approach, what you noticed that made you suspicious) that a prepared presentation usually strips out.
- Living documentation habits. Write things down where the next person will actually find them, and treat updating docs as part of finishing the work, not an optional extra.
- Cross-functional shadowing and recognition. Exposure to how work is used downstream, plus visibly crediting people who share, reinforces that this is valued behavior, not wasted time.
Starting condition changes the plan
If the culture is already blame-heavy or knowledge-hoarding, launching a program on top of it usually fails, because the underlying incentive (don't expose what you don't know, don't give away your leverage) is still active. The first move there is addressing the trust deficit directly: blameless review of mistakes, visibly not punishing people for the time spent teaching others, and naming the hoarding pattern if a specific person is doing it deliberately.
The resistant individual case
Sometimes the blocker isn't a missing structure, it's one specific person, often senior, who prefers working alone and resists mentoring or sharing. A reasonable sequence: first understand why (overloaded? burned by a bad past experience being open? never actually rewarded for it?), then make sharing low-cost and optional (asynchronous write-ups instead of live sessions), then tie it to explicit expectations if the role genuinely requires a multiplier effect at that level, and only if it persists despite support and clear expectations, treat it as a performance conversation rather than indefinite soft nudging.
Worked example
On a team where the same questions kept getting asked repeatedly in private messages instead of anywhere visible, the actions taken were: a weekly rotating show-and-tell, a pairing rotation on non-critical work, and a push to answer questions in a shared channel instead of DMs. One senior engineer initially opted out of presenting; a private conversation surfaced that they'd had a talk go badly in a previous job and hadn't tried again since. Starting them with a low-stakes written walkthrough instead of a live talk got them re-engaged. Over the following weeks, the same question started getting asked once in the open channel instead of five times in private, and people began proposing small improvements without being asked first.
Trade-offs and pitfalls
A common junior move is to launch one big formal program and treat it as solved (checkbox mentality) instead of building the habit into the normal rhythm of the week. Another is treating a resistant individual purely as a scheduling problem when it's actually a trust or incentive problem underneath. The more durable version of this doesn't depend permanently on one person's willpower to keep running it; if it collapses the moment its champion gets busy, it was never really a culture change.
Want to create your own tailored preparation guide using our deep research?
Get Started for FreeInterview-Ready Courses
Visual-first, interactive, structured learning paths
Browse Research Scientist jobs
AI-enriched listings across hundreds of company career pages
Explore Jobs