testing the addition of an immunotherapy agent, atezolizumab, when given with the usual chemo-immunotherapy drug combination (rituximab plus gemcitabine and oxaliplatin) for relapsed/refractory (that has come back or not responded to treatment) transformed diffuse large b-cell lymphoma

Conditions: Recurrent Diffuse Large B-Cell Lymphoma; Recurrent Transformed Non-Hodgkin Lymphoma; Refractory Diffuse Large B-Cell Lymphoma; Refractory Transformed Non-Hodgkin Lymphoma; Richter Syndrome; Transformed Follicular Lymphoma to Diffuse Large B-Cell Lymphoma

Summary: this pilot phase i trial studies the side effects of atezolizumab, gemcitabine, oxaliplatin, and rituximab and to see how well they work in treating patients with transformed diffuse large b-cell lymphoma that has come back (relapsed) or does not respond to treatment (refractory). immunotherapy with monoclonal antibodies, such as atezolizumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. drugs used in chemotherapy, such as gemcitabine and oxaliplatin, work in different ways to stop the growth of cancer cells, either by killing the cells, by stopping them from dividing, or by stopping them from spreading. rituximab is a monoclonal antibody. it binds to a protein called cd20, which is found on b cells (a type of white blood cell) and some types of cancer cells. this may help the immune system kill cancer cells. giving atezolizumab, gemcitabine, oxaliplatin, and rituximab may work better in treating patients with transformed diffuse large b-cell lymphoma.

primary objectives: i. assess the safety and toxicity of atezolizumab in combination with immunogenic chemotherapy (gemcitabine plus oxaliplatin) with rituximab (r-gemox-atezo) in patients with relapsed or refractory (rel/ref) transformed diffuse large b-cell lymphoma (dlbcl), including determination of the maximum tolerated dose (mtd) and the recommended phase ii dose (rp2d) of r-gemox-atezo. ii. evaluate on-treatment changes in density of and proximity between immune cell subsets in the tumor microenvironment after immunogenic chemotherapy alone and r-gemox-atezo. secondary objectives: i. to observe and record anti-tumor activity. ii. evaluate genomic (e.g. gene expression profiles, whole exome sequencing) characteristics of patients with rel/ref transformed dlbcl treated with r-gemox-atezo. outline: induction phase: patients receive rituximab intravenously (iv), gemcitabine iv, and oxaliplatin iv every 2 weeks. starting cycle 2, patients also receive atezolizumab iv over 30-60 minutes every 2 weeks. treatment repeats every 14 days of cycle 1 and every 28 days for up to 4 cycles in the absence of disease progression or unaccepted toxicity. patients also undergo computed tomography (ct), positron emission tomography (pet)-ct, magnetic resonance imaging (mri), bone marrow biopsy, collection of blood samples, and tumor biopsy throughout induction phase. maintenance phase: patients receive rituximab iv and atezolizumab over 30-60 minutes iv on day 1. cycles repeat every 3 weeks in the absence of disease progression or unaccepted toxicity. patients also undergo ct, pet-ct, mri, bone marrow biopsy, and collection of blood samples throughout maintenance phase. after completion of study treatment, patients are followed up at 30 days and then every 6 months for up to 1 year.

Eligibility criteria:
inclusion criteria: * patients must have histologically confirmed transformed diffuse large b-cell lymphoma (dlbcl), including histologic transformation from any indolent lymphoma (e.g. follicular or marginal zone lymphoma) or richter transformation of chronic lymphocytic leukemia/small lymphocytic lymphoma (cll/sll) * patients must have measurable disease by ct or pet scan, with one or more sites of disease \>= 1.5 cm in longest dimension * relapsed or refractory disease after at least 1 prior regimen, defined using the 2014 lugano classification * age \>= 18 years. because no dosing or adverse event data are currently available on the use of atezolizumab in patients \<18 years of age, children are excluded from this study, but will be eligible for future pediatric trials * eastern cooperative oncology group (ecog) performance status =\ = 60%) * life expectancy of greater than 3 months * leukocytes \>= 2,500/mcl, unless documented bone marrow involvement by lymphoma * absolute neutrophil count \>= 1,000/mcl, unless documented bone marrow involvement by lymphoma * platelets \>= 75,000/mcl, unless documented bone marrow involvement by lymphoma * hemoglobin \>= 8 g/dl, unless documented bone marrow involvement by lymphoma * total bilirubin =\< 1.5 x institutional upper limit of normal (uln) (however, patients with known gilbert disease who have serum bilirubin level =\< 3 x uln may be enrolled) * aspartate aminotransferase (ast) (serum glutamic-oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 3 x uln (ast and/or alt =\< 5 x uln for patients with liver involvement) * alkaline phosphatase =\< 2.5 x uln (=\< 5 x uln for patients with documented liver involvement or bone metastases) * creatinine clearance \>= 30 ml/min/1.73 m\^2 by cockcroft-gault * international normalized ratio (inr) and partial thromboplastin time (aptt) =\< 1.5 x uln (this applies only to patients who do not receive therapeutic anticoagulation; patients receiving therapeutic anticoagulation, such as low-molecular-weight heparin or warfarin, should be on a stable dose) * administration of atezolizumab may have an adverse effect on pregnancy and poses a risk to the human fetus, including embryo-lethality; women of child-bearing potential and men must agree to use adequate contraception (hormonal or barrier method of birth control; abstinence) prior to study entry, for the duration of study participation, and for 5 months (150 days) after the last dose of study agent; should a woman become pregnant or suspect she is pregnant while she or her partner is participating in this study, she should inform her treating physician immediately * ability to understand and the willingness to sign a written informed consent document * patients positive for human immunodeficiency virus (hiv) are allowed on study, but hiv-positive patients must have: * a stable regimen of highly active anti-retroviral therapy (haart) * no requirement for concurrent antibiotics or antifungal agents for the prevention of opportunistic infections * a cd4 count above 250 cells/mcl and an undetectable hiv viral load on standard polymerase chain reaction (pcr)-based tests exclusion criteria: * patients with prior allogeneic bone marrow transplantation or prior solid organ transplantation * patients who have previously received gemcitabine plus oxaliplatin therapy * patients who have had chemotherapy or radiotherapy within 2 weeks (6 weeks for nitrosoureas or mitomycin c) prior to entering the study or those who have not recovered from adverse events (other than alopecia) due to agents administered more than 2 weeks earlier; however, the following therapies are allowed: * hormone-replacement therapy or oral contraceptives * herbal therapy \> 1 week prior to cycle 1, day 1 (herbal therapy intended as anticancer therapy must be discontinued at least 1 week prior to cycle 1, day 1) * prior treatment with anti-pd-1, or anti-pd-l1 therapeutic antibody or pathway-targeting agents * patients who have received prior treatment with anti-ctla-4 may be enrolled, provided the following requirements are met: * minimum of 12 weeks from the first dose of anti-ctla-4 and \> 6 weeks from the last dose * no history of severe immune-related adverse effects from anti-ctla-4 (national cancer institute \[nci\] common terminology criteria for adverse events \[ctcae\] version 5.0) * treatment with any other investigational agent within 3 weeks prior to cycle 1, day 1 * treatment with systemic immunostimulatory agents (including, but not limited to, interferon \[ifn\]-alpha or interleukin \[il\]-2) within 6 weeks prior to cycle 1, day 1 * treatment with systemic immunosuppressive medications (including, but not limited to, prednisone, cyclophosphamide, azathioprine, methotrexate, thalidomide, and anti-tumor necrosis factor \[anti-tnf\] agents) within 2 weeks prior to cycle 1, day 1 * patients who have received acute, low dose, systemic immunosuppressant medications (e.g., a one-time dose of dexamethasone for nausea) may be enrolled * the use of inhaled corticosteroids and mineralocorticoids (e.g., fludrocortisone) for patients with orthostatic hypotension or adrenocortical insufficiency is allowed * patients taking bisphosphonate therapy for symptomatic hypercalcemia; use of bisphosphonate therapy for other reasons (e.g., bone metastasis or osteoporosis) is allowed * patients requiring treatment with a rankl inhibitor (e.g. denosumab) who cannot discontinue it before treatment with atezolizumab * patients with known active central nervous system (cns) involvement by lymphoma, including leptomeningeal involvement * known hypersensitivity to chinese hamster ovary cell products or other recombinant human antibodies * history of severe allergic, anaphylactic, or other hypersensitivity reactions to chimeric or humanized antibodies or fusion proteins * history of allergic reactions attributed to compounds of similar chemical or biologic composition to other agents used in study * known clinically significant liver disease, including active viral, alcoholic, or other hepatitis; cirrhosis; fatty liver; and inherited liver disease * patients with past or resolved hepatitis b infection (defined as having a negative hepatitis b surface antigen \[hbsag\] test and a positive anti-hbc \[antibody to hepatitis b core antigen\] antibody test) are eligible * patients positive for hepatitis c virus (hcv) antibody are eligible only if polymerase chain reaction (pcr) is negative for hcv ribonucleic acid (rna) * history or risk of autoimmune disease, including, but not limited to, systemic lupus erythematosus, rheumatoid arthritis, inflammatory bowel disease, vascular thrombosis associated with antiphospholipid syndrome, wegener's granulomatosis, sjogren's syndrome, bell's palsy, guillain-barre syndrome, multiple sclerosis, autoimmune thyroid disease, vasculitis, or glomerulonephritis * patients with a history of autoimmune hypothyroidism on a stable dose of thyroid replacement hormone may be eligible * patients with controlled type 1 diabetes mellitus on a stable insulin regimen may be eligible * patients with eczema, psoriasis, lichen simplex chronicus of vitiligo with dermatologic manifestations only (e.g., patients with psoriatic arthritis would be excluded) are permitted provided that they meet the following conditions: * patients with psoriasis must have a baseline ophthalmologic exam to rule out ocular manifestations * rash must cover less than 10% of body surface area (bsa) * disease is well controlled at baseline and only requiring low potency topical steroids (e.g., hydrocortisone 2.5%, hydrocortisone butyrate 0.1%, fluocinolone 0.01%, desonide 0.05%, alclometasone dipropionate 0.05%) * no acute exacerbations of underlying condition within the last 12 months (not requiring psoralen plus ultraviolet a radiation \[puva\], methotrexate, retinoids, biologic agents, oral calcineurin inhibitors; high potency or oral steroids) * history of idiopathic pulmonary fibrosis, pneumonitis (including drug induced), organizing pneumonia (i.e., bronchiolitis obliterans, cryptogenic organizing pneumonia, etc.), or evidence of active pneumonitis on screening chest computed tomography (ct) scan; history of radiation pneumonitis in the radiation field (fibrosis) is permitted * patients with active tuberculosis (tb) are excluded * severe infections within 4 weeks prior to cycle 1, day 1, including, but not limited to, hospitalization for complications of infection, bacteremia, or severe pneumonia * signs or symptoms of infection within 2 weeks prior to cycle 1, day 1 * received oral or intravenous (iv) antibiotics within 2 weeks prior to cycle 1, day 1; patients receiving prophylactic antibiotics (e.g., for prevention of a urinary tract infection or chronic obstructive pulmonary disease) are eligible * major surgical procedure within 28 days prior to cycle 1, day 1 or anticipation of need for a major surgical procedure during the course of the study * administration of a live, attenuated vaccine within 4 weeks before cycle 1, day 1 or anticipation that such a live, attenuated vaccine will be required during the study and up to 5 months after the last dose of atezolizumab * influenza vaccination should be given during influenza season only (approximately october to march); patients must not receive live, attenuated influenza vaccine within 4 weeks prior to cycle 1, day 1 or at any time during the study * uncontrolled intercurrent illness including, but not limited to, ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * pregnant women are excluded from this study because atezolizumab, gemcitabine, and oxaliplatin are agents with the potential for teratogenic or abortifacient effects; because there is an unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with atezolizumab, gemcitabine, and oxaliplatin, breastfeeding should be discontinued if the mother is treated with atezolizumab, gemcitabine, and oxaliplatin; these potential risks may also apply to other agents used in this study