nivolumab and metformin hydrochloride in treating patients with stage iii-iv non-small cell lung cancer that cannot be removed by surgery

Conditions: Recurrent Non-Small Cell Lung Carcinoma; Stage III Non-Small Cell Lung Cancer; Stage IIIA Non-Small Cell Lung Cancer; Stage IIIB Non-Small Cell Lung Cancer; Stage IV Non-Small Cell Lung Cancer

Summary: the purpose of this study is to find the benefits of combining nivolumab with metformin in advanced non-small cell lung cancer with and without prior treatment with immunotherapy. we will also be looking at the safety of the combination. nivolumab is currently approved in certain cancers such as melanoma, lung cancer and kidney cancer. metformin is approved by the us food and drug administration (fda) to treat diabetes. in this study, metformin is being used to treat cancer. this use is not approved by the fda; therefore, in this study, it is considered experimental. experimental means the u.s. fda has not approved the drug for use in your type of cancer. nivolumab is an antibody (a human protein that sticks to a part of the tumor and/or immune cells) designed to allow the body's immune system to work against tumor cells. it is believed that metformin has immune modifying properties, meaning it can boost your immune system. as a result, it may help certain cancer treatments, known as immunotherapy, to work better.

primary objectives: i. to assess anti-tumor activity of the combination treatment of metformin hydrochloride (metformin) with nivolumab in patients with non-small cell lung cancer with and without prior exposure to pd-1/pd-l1 inhibitors. secondary objectives: i. to assess the efficacy of the combination treatment of metformin with nivolumab according to depth, duration, and persistence of response, disease control rate (dcr; complete response \[cr\], partial response \[pr\], and stable disease \[sd\] at 24 weeks), progression-free survival (pfs), and overall survival (os) in patients with non-small cell lung cancer with and without prior exposure to pd-1/pd-l1 inhibitors using response evaluation criteria in solid tumors (recist) criteria version (v)1.1. ii. to assess the efficacy of the combination treatment of metformin with nivolumab according to depth, duration, and persistence of response, objective response rate (orr), dcr, pfs, and os in the above population using immune-related recist (irrecist) criteria. iii. to assess the safety and tolerability profile of the combination treatment of metformin with nivolumab in the above population using common terminology criteria for adverse events (ctcae) version 4.03. tertiary objectives: i. to assess the immune-related tumor and blood biomarkers including t cell markers and their association with treatment response in the above population. ii. to assess the dynamic change in both immune and genomic biomarkers in blood that may correlate with response to metformin. outline: patients receive metformin hydrochloride orally (po) once daily (qd) on days -7 to -1 and 1-28. patients also receive nivolumab intravenously (iv) over 30 minutes on days 1 and 15 of courses 1-4, then over 60 minutes on day 1 beginning course 5. courses repeat every 28 days in the absence of disease progression, unacceptable toxicity, or withdrawal of consent. after completion of study treatment, patients are followed up for 30 days, every 3 months for 1 year, then every 6 months for 3 years.

Eligibility criteria:
inclusion criteria: * patients must have histologically confirmed, locally advanced or metastatic stage iv or non-resectable stage iii non-small cell lung cancer (nsclc) * patients may have received any number and type of prior treatment regimens for their nsclc (aside from patients in arm a, who cannot have had pd-1/pd-l1 inhibitors) * arm a: patients must be treatment naive to single agent pd-1/pd-l1 inhibitors including but not limited to durvalumab, pembrolizumab, atezolizumab, nivolumab, and avelumab * arm b: patients' tumor must be either refractory to or progressed on one of the above agents * both cases are defined by initial progressive disease (pd) or pd after cr, pr, or sd using recist criteria, respectively * patients must have measurable disease according to the standard recist version 1.1 * note: computed tomography (ct) scans or magnetic resonance imaging (mri)s used to assess the measurable disease must have been completed with 28 days prior to the study drug initiation * patients need to have adequate kidney, bone marrow, and liver functions =\< 14 days of registration as specified below: * absolute neutrophil \>= 1,000/mcl; transfusion and/or growth factor are permitted within any timeframe * platelets \>= 50,000/mcl; transfusion and/or growth factor are permitted within any timeframe * total bilirubin =\< 1.5 times the institutional upper limit of normal (uln) (or =\< 3 times uln in case of liver metastasis or gilbert syndrome) * aspartate aminotransferase (ast) (serum glutamic-oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[spgt\]) =\< 2.5 x institutional uln (or =\< 5 times uln in case of liver metastasis) * creatinine =\< 1.4 ng/ml for females; =\< 1.5 ng/ml for males; patients with creatinine =\< 2.0 ng/ml may still be eligible if in the opinion of the investigator, the benefits of treatment outweigh the risks * patients must exhibit an eastern cooperative oncology group (ecog) performance status of =\< 2 * patients must have the ability to understand and the willingness to sign a written informed consent prior to registration on study * females of child-bearing potential (focbp) and men who are sexually active must agree to follow instructions for method(s) of contraception for the duration of treatment and the designated post-treatment period * note: a focbp is any woman (regardless of sexual orientation, having undergone a tubal ligation, or remaining celibate by choice) who meets the following criteria: * has not undergone a hysterectomy or bilateral oophorectomy * has had menses at any time in the preceding 12 consecutive months (and therefore has not been naturally postmenopausal for \> 12 months) * focbp must have a negative pregnancy test =\< 7 days prior to registration on study * patients with known history of central nervous system (cns) metastases are eligible if cns disease has been radiographically and neurologically stable for at least 6 weeks prior to study registration and do not require corticosteroids (of any dose) for symptomatic management * note: cns imaging is only required at baseline for patients with known history of cns metastases * patients must have the ability to swallow oral medications * patients who are known to be egfr- or alk-positive must have received prior egfr- or alk-targeted therapy, respectively * note: in such cases, documentation of egfr mutation or alk translocation status should be provided if available exclusion criteria: * both arms: patients should not have received metformin within 6 months prior to registration * arm b: patients who were on metformin while on pd-1/pd-l1 inhibitors are not eligible * patients should not have received prior immunotherapies (exception; arm b); they include but are not limited to interleukin-2 and other immune checkpoint antagonist targeting ctla-4, lag-3, tim-3, kir etc. and/or agonists targeting ox40, icos, cd137, etc * note: prior cancer vaccine treatments are permitted; for arm b, exposure to single agent pd-1/pd-l1 inhibitors are allowed \>= 14 days from registration * arm b: patients must not have had prior exposure to combination treatment with pd-1/pd-l1 inhibitors and another systemic treatment * note: radiation therapy and surgery do not count as combination treatment * patients who are intolerant to pd-1/pd-l1 inhibitors and/or metformin are excluded * patients with active autoimmune disease or history of autoimmune disease that might recur, which may affect vital organ function or require immune suppressive treatment including chronic prolonged systemic corticosteroids (defined as corticosteroid use of duration one month or greater), should be excluded; these include but are not limited to patients with a history of: * immune related neurologic disease * multiple sclerosis * autoimmune (demyelinating) neuropathy * guillain-barre syndrome * myasthenia gravis * systemic autoimmune disease such as systemic lupus erythematosus (sle) * connective tissue diseases * scleroderma * inflammatory bowel disease (ibd) * crohn's * ulcerative colitis * patients with a history of toxic epidermal necrolysis (ten) * stevens-johnson syndrome * anti-phospholipid syndrome * note: subjects with vitiligo, type i diabetes mellitus, residual hypothyroidism due to autoimmune condition only requiring hormone replacement, psoriasis not requiring systemic treatment, or conditions not expected to recur in the absence of an external trigger are permitted to enroll * patients are ineligible who have any condition requiring systemic treatment with corticosteroids (\> 10 mg daily prednisone equivalents) or other immunosuppressive medications =\< 14 days prior to registration * note: inhaled steroids and adrenal replacement steroid doses \> 10 mg daily prednisone equivalents are permitted in the absence of active autoimmune disease; a brief (less than 3 weeks) course of corticosteroids for prophylaxis (eg, contrast dye allergy) or for treatment of non-autoimmune conditions (eg, delayed-type hypersensitivity reaction caused by a contact allergen) is permitted * patients who have an uncontrolled intercurrent illness including, but not limited to any of the following, are not eligible: * uncontrolled hypertension - blood pressure \>= 150/90 mmhg despite medical therapy * ongoing or active infection requiring systemic treatment * symptomatic congestive heart failure * unstable angina pectoris * cardiac arrhythmia * psychiatric illness/social situations that would limit compliance with study requirements * any other illness or condition that the treating investigator feels would interfere with study compliance or would compromise the patient's safety or study endpoints * patients must not have had another primary malignancy within 2 years prior to starting study treatment with the exception of adequately treated basal cell carcinoma, squamous cell carcinoma or other non-melanomatous skin cancer, or in-situ carcinoma of the uterine cervix, or any local cancers that are deemed to be cured from investigator's point of view * patients may not be receiving any other investigational agents =\< 14 days from registration * patients with known history of testing positive for human immunodeficiency virus (hiv) or known acquired immunodeficiency syndrome (aids) are excluded * patients who have any positive test for hepatitis b or hepatitis c virus indicating acute or chronic infection are excluded * patients with known diabetes whose glucose control or general health condition may be adversely affected by the use of metformin as per the study protocol as deemed by either the study investigator or endocrinologist are excluded * patients must not have any of the following contraindications to metformin: * hypersensitivity to metformin or any component of the formulation * kidney dysfunction or abnormal creatinine (cr \< 2 ng/ml) from any cause * acute or metabolic acidosis