pembrolizumab alone or with idelalisib or ibrutinib in treating patients with relapsed or refractory chronic lymphocytic leukemia or other low-grade b-cell non-hodgkin lymphomas

Conditions: Recurrent B-Cell Non-Hodgkin Lymphoma; Recurrent Chronic Lymphocytic Leukemia; Recurrent Extranodal Marginal Zone Lymphoma of Mucosa-Associated Lymphoid Tissue; Recurrent Grade 1 Follicular Lymphoma; Recurrent Grade 2 Follicular Lymphoma; Recurrent Grade 3 Follicular Lymphoma; Recurrent Lymphoplasmacytic Lymphoma; Recurrent Marginal Zone Lymphoma; Recurrent Nodal Marginal Zone Lymphoma; Recurrent Small Lymphocytic Lymphoma; Recurrent Splenic Marginal Zone Lymphoma; Recurrent Waldenstrom Macroglobulinemia; Refractory B-Cell Non-Hodgkin Lymphoma; Refractory Chronic Lymphocytic Leukemia; Refractory Extranodal Marginal Zone Lymphoma of Mucosa-Associated Lymphoid Tissue; Refractory Follicular Lymphoma; Refractory Lymphoplasmacytic Lymphoma; Refractory Nodal Marginal Zone Lymphoma; Refractory Small Lymphocytic Lymphoma; Refractory Splenic Marginal Zone Lymphoma; Refractory Waldenstrom Macroglobulinemia; Richter Syndrome; Waldenstrom Macroglobulinemia

Summary: this phase ii trial studies how well pembrolizumab alone or with idelalisib or ibrutinib works in treating patients with chronic lymphocytic leukemia or other low-grade b-cell non-hodgkin lymphomas that have returned after a period of improvement (relapsed) or have not responded to treatment (refractory). immunotherapy with monoclonal antibodies, such as pembrolizumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. idelalisib and ibrutinib may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth. giving pembrolizumab alone or with idelalisib or ibrutinib may be an effective treatment in patients with chronic lymphocytic leukemia or other low-grade b-cell non-hodgkin lymphomas.

primary objective: i. test the efficacy (overall response rate) of single-agent mk-3475 (pembrolizumab) in relapsed chronic lymphocytic leukemia (cll)/small lymphocytic lymphoma (sll) (arm a) other low grade b-cell non-hodgkin lymphoma (b-nhl), and cll with richter's transformation (arm c). secondary objectives: i. test the safety of single-agent mk-3475 in relapsed cll/sll (arm a), other low grade b-nhl (arm b), and cll with richter's transformation (arm c). ii. test the overall survival, progression free survival, treatment free survival, duration of response and time to next therapy of single-agent mk-3475 in relapsed cll/sll (arm a), other low grade b-nhl (arm b), and cll with richter's transformation (arm c). iii. test the complete response rate of single mk-3475 in relapsed cll/sll (arm a), other low grade b-nhl (arm b), and cll with richter's transformation (arm c). iv. test the safety of mk-3475 in combination with the signal inhibitor (either idelalisib or ibrutinib) in relapsed cll/sll (arm a) and cll with richter's transformation (arm c). v. test the progression-free survival, treatment-free survival, duration of response and time to next therapy, as well as overall survival of mk-3475 in combination with the signal inhibitor (either idelalisib or ibrutinib) in relapsed cll/sll (arm a) and cll with richter's transformation (arm c). vi. test the overall and complete response rates of mk-3475 in combination with the signal inhibitor (either idelalisib or ibrutinib) in relapsed cll/sll (arm a) and cll with richter's transformation (arm c). correlative research objectives: i. to assess the potential association between programmed cell death ligand 1 (pd-l1)/programmed cell death 1 (pd-1)/pd-l2 expression on tumor and t cells and/or pd-l1 soluble levels in plasma with clinical efficacy of pd-1 blockade. ii. to investigate the effects of mk-3475 on selected markers of immune modulation and immune profiles in peripheral blood and tumor samples. iii. examine t-cell immune synapse function and expression/location of co-stimulatory and co-inhibitory molecules (including effector molecules) as potential biomarkers to response for anti-pd-1 immune checkpoint blockade immunotherapy. outline: all patients (arms a, b, and c): patients receive pembrolizumab intravenously (iv) over 30 minutes on day 1. treatment repeats every 21 days for up to 12 months in the absence of disease progression or unacceptable toxicity. patients receiving benefit may continue to receive treatment for an additional 12 months at the discretion of the investigator. patients with cll or cll with richter's transformation experiencing stable disease without partial remission or progressive disease at 3 months of treatment with pembrolizumab proceed to the treatment continuation phase. continuation phase (arms a and c): patients receive pembrolizumab iv over 30 minutes on day 1. patients also receive idelalisib orally (po) twice daily (bid) on days 1-21 or ibrutinib po once daily (qd) on days 1-21. treatment repeats every 21 days for up to 12 or 24 months in the absence of disease progression or unacceptable toxicity. patients receiving benefit may continue to receive treatment for an additional 12 months at the discretion of the investigator. after completion of study treatment, patients are followed up every 3 months for 1 year.

Eligibility criteria:
inclusion criteria: * cll/sll patients (arm a) only * diagnosis of cll according to the national cancer institute (nci) criteria or sll according to the world health organization (who) criteria; this includes previous documentation of: * biopsy-proven small lymphocytic lymphoma or * diagnosis of cll according to nci working group criteria as evidenced by all of the following: * peripheral blood b cell count of \> 5 x 10\^9/l consisting of small to moderate size lymphocytes * immunophenotyping consistent with cll defined as: * the predominant population of lymphocytes share both b-cell antigens (cluster of differentiation \[cd\]19, cd20 \[typically dim expression\] or cd23) as well as cd5 in the absence of other pan-t-cell markers (cd3, cd2, etc.) * clonality as evidenced by kappa or lambda light chain expression (typically dim immunoglobulin expression) or other genetic method (e.g. immunoglobulin heavy chain variable \[ighv\] analysis) * note: splenomegaly, hepatomegaly, or lymphadenopathy are not required for the diagnosis of cll * before diagnosing cll or sll, mantle cell lymphoma must be excluded by demonstrating a negative fluorescent in situ hybridization (fish) analysis for t(11;14) (immunoglobulin h \[igh\]/cyclin d1 \[ccnd1\]) on peripheral blood or tissue biopsy or negative immunohistochemical stains for cyclin d1 on involved tissue biopsy * patients must be previously treated with at least one prior line of therapy; exception: cll patients with richter's transformation or hodgkin transformation do not need prior therapy to enroll * note: * prior chemotherapy or biologic novel therapy or anti-cancer monoclonal antibody based therapy for treatment of cll will be considered prior therapy; nutraceutical treatments with no established benefit in cll (such as epigallocatechin gallate or egcg, found in green tea or other herbal treatments) will not be considered "prior treatment" * prior oral corticosteroid therapy for an indication other than cll will not be considered "prior treatment" * previous use of corticosteroids in the combination with other therapy for treatment of autoimmune complications of cll does constitute prior therapy for cll * cll/sll patients must have progressive disease with any one of the following characteristics based on standard criteria for treatment as defined by the nci-working group (wg) 1996 * symptomatic cll characterized by any one of the following: * weight loss \>= 10% within the previous 6 months * extreme fatigue attributed to cll * fevers \>= 100.5 degree fahrenheit (f) for 2 weeks without evidence of infection * drenching night sweats without evidence of infection * evidence of progressive bone marrow failure with hemoglobin =\< 11 g/dl or platelet count =\< 100 x 10\^9/l * symptomatic or progressive lymphadenopathy, splenomegaly, or hepatomegaly * note: marked hypogammaglobulinemia or the development of a monoclonal protein in the absence of any of the above criteria for active disease are not sufficient for protocol therapy or biopsy proven richter's transformation or hodgkin transformation of the cll; note: both untreated and previously treated patients in this category can be enrolled; they do not need to meet the progressive disease criteria in first bullet as long as measurable disease can be detected by positron emission tomography (pet)/computed tomography (ct) or ct (\>= 1.5 cm in diameter) * low grade b-nhl patients only * histologically confirmed relapsed (response to last treatment \>= 6 months duration) or refractory (no response to last treatment or response duration \< 6 months) indolent/low grade b cell nhl; note: if patient has received previous anti-pd-1 or anti-pdl-1 consult with study chair * follicular lymphoma, grades 1, 2 and 3 * extranodal marginal zone b-cell lymphoma of mucosa-associated lymphoid tissue (malt) type * splenic and nodal marginal zone lymphoma * lymphoplasmacytic lymphoma including waldenstrom macroglobulinemia * measurable disease (at least 1 lesion of \>= 1.5 cm in diameter) as detected by ct or the ct images of the pet/ct; note: patients with waldenstrom macroglobulinemia are not required to have measurable disease by ct or pet/ct if monoclonal protein is detectable by serum protein electrophoresis and/or immunoglobulin m (igm) level is at least 2 times upper limit of normal * cll with richter's transformation (arm c) only * cll diagnosis confirmed as have biopsy-proven richter's transformation; note: both untreated and previously treated patients in this category can be enrolled as long as measurable disease can be detected by pet/ct or ct (\>= 1.5 cm in diameter) * all patients * eastern cooperative oncology group (ecog) performance status (ps) 0 or 1 * creatinine =\ = 60 ml/min for subject with creatinine levels \> 1.5 x institutional uln (obtained =\< 14 days prior to registration) * platelet count \>= 25 x 10\^9/l (obtained =\< 14 days prior to registration) * absolute neutrophil count \>= 0.5 x 10\^9/l (obtained =\< 14 days prior to registration) * total bilirubin =\ 1.5 x uln, a direct bilirubin should be performed and must be =\< upper limit of normal (obtained =\< 14 days prior to registration) * aspartate aminotransferase (ast) (serum glutamic oxaloacetic transaminase \[sgot\]) or alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 2.5 x uln (obtained =\< 14 days prior to registration) * negative pregnancy test done =\< 7 days prior to registration, for women of childbearing potential only * provide informed written consent * willing to return to enrolling institution for follow-up (during the active monitoring phase of the study) * note: during the active monitoring phase of a study (i.e., active treatment and observation), participants must be willing to return to the consenting institution for follow-up * willing to provide bone marrow, tissue, and blood samples for correlative research purposes * must have failed or be unable to tolerate or refused other available food and drug administration (fda) approved effective therapies; note: patients should not have other treatment options considered curative exclusion criteria: * currently participating in or has participated in a study of an investigational agent or using an investigational device =\< 28 days prior to registration * receiving systemic steroid therapy or any other form of systemic immunosuppressive therapy =\< 7 days prior to registration; exceptions: * low doses of steroids (=\< 20 mg of prednisone or equivalent dose of other steroid/day) * previous use of corticosteroids is allowed * after initiation of mk-3475 therapy, steroid can be used for management of potential immune mediated adverse events (ae) for less than 8 weeks of therapy * topical, ocular, intra-articular, intranasal, and inhalational corticosteroids (with minimal systemic absorption) are permitted * prior anti-cancer monoclonal antibody =\< 28 days prior to registration or who has not recovered (i.e., =\< grade 1 or at baseline) from adverse events due to agents administered more than 4 weeks earlier * prior chemotherapy or radiation therapy =\< 14 days prior to registration or who has not recovered (i.e., =\< grade 1 or at baseline) from adverse events due to a previously administered agent * note: subjects with =\< grade 2 neuropathy are an exception to this criterion and may qualify for the study * note: if subject received major surgery, they must have recovered adequately from the toxicity and/or complications from the intervention prior to starting therapy * known additional malignancy that is progressing or requires active treatment; exceptions (these following exceptions are permitted to enroll in this trial): * basal cell carcinoma or squamous cell carcinoma or melanoma of the skin that has undergone or will undergo potentially curative therapy * in situ cervical cancer that has undergone or will undergo potentially curative therapy * active autoimmune disease requiring systemic treatment within the past 3 months or a documented history of clinically severe autoimmune disease/syndrome difficult to control in the past; exceptions: * subjects with vitiligo or resolved childhood asthma/atopy would be an exception to this rule * subjects that require intermittent use of bronchodilators or local steroid injections would not be excluded from the study * subjects with hypothyroidism stable on hormone replacement, diabetes or sjogren's syndrome are permitted for the study * patients who have a positive coombs test but no evidence of hemolysis are permitted for participation * patients with psoriasis not requiring systemic treatment are permitted for participation * conditions not expected to recur in the absence of an external trigger are permitted to enroll * evidence of interstitial lung disease or active, non-infectious pneumonitis * active infection requiring systemic therapy; note: when the infection is controlled, patients are permitted for this study * known psychiatric or substance abuse disorders that would interfere with cooperation with the requirements of the trial * any of the following because this study involves an investigational agent whose genotoxic, mutagenic, and teratogenic effects on the developing fetus and newborn are unknown: * pregnant women * nursing women * men or women of childbearing potential who are unwilling to employ adequate contraception starting with the pre-screening or screening visit through 120 days after the last dose of trial treatment * known to be human immunodeficiency virus (hiv) positive * known active hepatitis b (e.g., hepatitis b surface antigen \[hbsag\] reactive) or hepatitis c (e.g., hepatitis c virus \[hcv\] ribonucleic acid \[rna\] \[qualitative\] is detected); note: patients with active hepatitis b defined by hepatitis b surface antigen positivity or core antibody positivity in the presence of hepatitis b deoxyribonucleic acid (dna) are not eligible for this study; patients with a positive hepatitis b core antibody but with negative hepatitis b dna may participate, but must have hepatitis serologies and hepatitis b dna monitored periodically by the treating physician * note: intravenous immunoglobulin (ivig) can cause a false positive hepatitis b serology; if patients receiving routine ivig have core antibody or surface antigen positivity without evidence of active viremia (negative hepatitis b dna) they may still participate in the study, but should have hepatitis serologies and hepatitis b dna monitored periodically by the treating physician * received a live vaccine =\< 30 days prior to registration * new york heart association classification iii or iv cardiovascular disease or recent myocardial infarction or unstable angina pectoris or cardiac arrhythmia (\< 30 days) * active central nervous system (cns) lymphoma or cerebrospinal fluid involvement with malignant lymphoma cells that requires therapy * has a clinically significant coagulopathy per investigator's assessment * has received an allogeneic stem cell transplant * cll arms (arm a and arm c) for combination therapy including ibrutinib or idelalisib: * is chronically taking a strong cytochrome p450, family 3, subfamily a, polypeptide 4 (cyp3a) inhibitor or inducer and cannot be switched to an alternative agent at least 7 days prior to idelalisib or ibrutinib initiation that in the opinion of investigator/treating physicians precludes utilization of either ibrutinib or idelalisib; caution is recommended for patients taking moderate inhibitors of cyp3a * cll arms (arm a and arm c) for combination therapy including idelalisib arm: * is chronically taking a sensitive cyp3a substrate or a cyp3a substrate with a narrow therapeutic index and cannot be switched to an alternative agent at least 7 days prior to study initiation that in the opinion of investigator/treating physicians precludes utilization of idelalisib * a history of chronic diarrhea, colitis, or intestinal perforation that in the opinion of the investigator precludes utilization of idelalisib